[Linux-ia64] gcc-3.2 bug

From: Alex Williamson <alex_williamson_at_hp.com>
Date: 2003-01-29 08:58:28
   I've been trying to figure out why agpgart_be.c won't compile on
ia64 w/ gcc-3.2, and I've got a pretty simple test case that seems
to show a compiler bug.  Not being much of a tools guy, I figured
I'd toss it out here.  If I compile with -O2, I get an undefined
reference much like I see in the kernel:

# gcc -O2 -o test test.c
/tmp/ccQCPFMM.o(.text+0xa0): In function `main':
: undefined reference to `.L13'
collect2: ld returned 1 exit status

If I compile w/o optimization or w/ gcc-2.96, it works fine.  It
also works fine on x86 w/ gcc-3.2.  Here's my gcc info:

# gcc -v
Reading specs from /usr/lib/gcc-lib/ia64-linux/3.2.2/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2
--enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc ia64-linux
Thread model: posix
gcc version 3.2.2 20030124 (Debian prerelease)

This is the Debian unstable 3.2.2-0pre6.  I'll file a bug there too.
Test case attached.  Thanks,


Alex Williamson                                  Linux Development Lab
alex_williamson@hp.com                                 Hewlett Packard
970-898-9173                                          Fort Collins, CO

Received on Tue Jan 28 14:02:04 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:11 EST