Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 26 Oct 2012 09:31:56 +0800
From: Brian Wang <brian.wang.0721@...il.com>
To: musl@...ts.openwall.com
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.


Brian

-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe

Powered by blists - more mailing lists

Your e-mail address:

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