Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 26 Oct 2012 09:31:56 +0800
From: Brian Wang <>
Subject: Difference between -O2 and -g

Hello all,

I am experiencing a rather strange problem...

I have an oldish kdrive/Xfbdev that works on my ARM device with
CodeSourcery toolchains.
Now, I tried it with musl (0.9.6 and the recent git master branch as well).
First it failed to find the screen and refused to start.  After some naive
attempts with printf without success, I recompiled it with -g and no
-Ox with the hope that gdbserver
would help pin point the problem.  However, with only -g, it runs!

They are running in different code paths, apparently.  Even though it
looks like the compiler is faulty,
I would rather believe GCC 4.7.2 should be quite good.

I know I didn't give much information and it's a shot in the dark.

Any pointers are appreciated.

Thanks in advance.



Cool-Karaoke - The smallest recording studio, in your palm, open-sourced

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.