Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] hppa gcc bug?
@ 2001-11-12  0:07 Randolph Chung
  2001-11-12  7:53 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Randolph Chung @ 2001-11-12  0:07 UTC (permalink / raw)
  To: parisc-linux; +Cc: debian-gcc

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

Looks like there's a strength-reduce optimization bug in g++-3.0.2 on
hppa....

Trying to compile qt-x11 gives a segmentation fault when compiling
src/kernel/qurl.cpp. (willy and lamont also saw this I believe...). Turning
off strength-reduction (-fno-strength-reduce) allows the file to
compile to completion.

It's dying inside a loop_iterations call, but I don't know enough to
say why...

Can someone more knowledgable please take a look?

Preprocessed source attached. Compilation flags:

g++ -D_REENTRANT -DQT_THREAD_SUPPORT -c -I/usr/X11R6/include
-I/usr/src/new/qt-x11-2.3.2/include -I/usr/X11R6/include -pipe
-fno-exceptions -O2 -Wall -Wpointer-arith -Wwrite-strings
-Wmissing-prototypes -fPIC -DQT_BUILTIN_GIF_READER=1 -DQT_XFT   
-o kernel/qurl.o kernel/qurl.cpp

This is using the latest binutils/gcc that are in the Debian archive.
(binutils 20011021 and gcc 3.0.2 w/ Alan's patches)

sh-2.05# gcc -v
Reading specs from /usr/lib/gcc-lib/hppa-linux/3.0.2/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,f77,proto,objc --prefix=/usr
--infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as
--with-gnu-ld --with-system-zlib --enable-long-long --enable-nls
--without-included-gettext --disable-checking --enable-threads=posix
--with-cpp-install-dir=bin hppa-linux
Thread model: posix
gcc version 3.0.2 (Debian)

sh-2.05# ld -v
GNU ld version 2.11.92.0.10 20011021 Debian/GNU Linux

randolph
-- 
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^



[-- Attachment #2: qurl.ii.gz --]
[-- Type: application/octet-stream, Size: 24324 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-12  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-12  0:07 [parisc-linux] hppa gcc bug? Randolph Chung
2001-11-12  7:53 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox