This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46072] AIX linker chokes on debug info for uninitialized static variables
- From: "david.kirkby at onetel dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Mar 2011 10:35:37 +0000
- Subject: [Bug target/46072] AIX linker chokes on debug info for uninitialized static variables
- Auto-submitted: auto-generated
- References: <bug-46072-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072
Dr. David Kirkby <david.kirkby at onetel dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david.kirkby at onetel dot
| |net
--- Comment #12 from Dr. David Kirkby <david.kirkby at onetel dot net> 2011-03-23 10:34:54 UTC ---
I'm seeing this error on AIX 5.3. Two GNU projects effected by this are
* GNU patch
* GSL (GNU Scientific library)
In the case of the former, if one configures with CFLAGS =-g0, so not to
include debugging information, the problem goes away. So when one compiles GNU
patch like this I see:
gcc -c -DHAVE_CONFIG_H -Ded_PROGRAM=\"/usr/bin/ed\" -I. -I. -g0 quotesys.c
But the GSL Scientific library can't be compiled this way, as the users's -g0
gets in before the -g added by GSL, so one see something like:
gcc -g0 -g foo.c
which means the debugging information is still present.