mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Brian Wang <brian.wang.0721@gmail.com>
To: musl@lists.openwall.com
Subject: Difference between -O2 and -g
Date: Fri, 26 Oct 2012 09:31:56 +0800	[thread overview]
Message-ID: <CAPW=hRT3tDr8BTqhJG=rgcc3KR5gLj+N1_xsAhryWsNrH6GpYg@mail.gmail.com> (raw)

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


             reply	other threads:[~2012-10-26  1:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-26  1:31 Brian Wang [this message]
2012-10-26  1:40 ` Rich Felker
2012-10-26  2:04   ` Brian Wang
2012-10-26  2:21     ` Brian Wang
2012-10-26  2:32     ` Rich Felker
2012-10-26  2:47       ` Brian Wang
2012-10-26  2:55         ` Rich Felker
2012-10-26  3:01           ` Brian Wang
2012-10-26  3:19             ` Rich Felker
2012-10-26  6:44               ` Brian Wang
2012-10-26 17:58                 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPW=hRT3tDr8BTqhJG=rgcc3KR5gLj+N1_xsAhryWsNrH6GpYg@mail.gmail.com' \
    --to=brian.wang.0721@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).