This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49618] When building uClibc with GCC 4.6.1 old_atexit is miscompiled
- From: "tg at mirbsd dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 3 Jul 2011 14:59:03 +0000
- Subject: [Bug tree-optimization/49618] When building uClibc with GCC 4.6.1 old_atexit is miscompiled
- Auto-submitted: auto-generated
- References: <bug-49618-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49618
Thorsten Glaser <tg at mirbsd dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tg at mirbsd dot org
--- Comment #1 from Thorsten Glaser <tg at mirbsd dot org> 2011-07-03 14:58:47 UTC ---
Ouch. I can see where it might be NULLâ but in anal-C99 taking a pointer of
an object (&__dso_handle) can never be a NULL pointer, so GCC might, in a
very theoretical sense, be correct in optimising away this check.
Does adding -fno-delete-null-pointer-checks to the compile options help?