public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/9630: [3.2/3.3/3.4 regression] crash with -freg-struct-return in C++ code
@ 2003-03-12 11:16 Steven Bosscher
0 siblings, 0 replies; 4+ messages in thread
From: Steven Bosscher @ 2003-03-12 11:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/9630; it has been noted by GNATS.
From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
stefan@space.twc.de, bangerth@gcc.gnu.org
Cc:
Subject: Re: optimization/9630: [3.2/3.3/3.4 regression] crash with -freg-struct-return
in C++ code
Date: Wed, 12 Mar 2003 12:08:48 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9630
Stefan, Wolfgang,
I cannot reproduce this bug with yesterdays 3.3 sources for
i586-pc-linux-gnu.
Do you still see it? Maybe this one is present on 3.2 but not 3.3? If
so, this
shouldn't be marked as a 3.3/3.4 regression.
Greetz
Steven
# gcc-3.3 -v -lstdc++ test.cc -freg-struct-return -O2
Reading specs from /opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --disable-nls --with-gnu-as
--with-gnu-ld --prefix=/opt/experimental --program-suffix=-3.3
--enable-languages=c,c++
Thread model: posix
gcc version 3.3 20030311 (prerelease)
/opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/cc1plus -quiet -v
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE
test.cc -D__GNUG__=3 -quiet -dumpbase test.cc -auxbase test -O2 -version
-freg-struct-return -o /tmp/cc1NHg6T.s
GNU C++ version 3.3 20030311 (prerelease) (i586-pc-linux-gnu)
compiled by GNU C version 3.3 20030311 (prerelease).
GGC heuristics: --param ggc-min-expand=42 --param ggc-min-heapsize=23891
ignoring nonexistent directory "/opt/experimental/i586-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/experimental/include/c++/3.3
/opt/experimental/include/c++/3.3/i586-pc-linux-gnu
/opt/experimental/include/c++/3.3/backward
/usr/local/include
/opt/experimental/include
/opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/include
/usr/include
End of search list.
as -V -Qy -o /tmp/cccnvLCd.o /tmp/cc1NHg6T.s
GNU assembler version 2.11.90.0.24 (i486-suse-linux) using BFD version
2.11.90.0.24
/opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/collect2 -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o
/usr/lib/crti.o
/opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/crtbegin.o
-L/opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3
-L/opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/../../.. -lstdc++
/tmp/cccnvLCd.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh
/opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/crtend.o /usr/lib/crtn.o
# LD_LIBRARY_PATH=/opt/experimental/lib/ a.out
2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization/9630: [3.2/3.3/3.4 regression] crash with -freg-struct-return in C++ code
@ 2003-03-12 18:44 steven
0 siblings, 0 replies; 4+ messages in thread
From: steven @ 2003-03-12 18:44 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, stefan
Synopsis: [3.2/3.3/3.4 regression] crash with -freg-struct-return in C++ code
State-Changed-From-To: analyzed->closed
State-Changed-By: steven
State-Changed-When: Wed Mar 12 18:44:56 2003
State-Changed-Why:
not a bug.
-freg-struct-return will change the ABI, so if you link with a library that was not compiled with this option, you can expect this kind of bug. This is documented in the manual.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9630
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization/9630: [3.2/3.3/3.4 regression] crash with -freg-struct-return in C++ code
@ 2003-03-12 11:16 Steven Bosscher
0 siblings, 0 replies; 4+ messages in thread
From: Steven Bosscher @ 2003-03-12 11:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/9630; it has been noted by GNATS.
From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
stefan@space.twc.de, bangerth@gcc.gnu.org
Cc:
Subject: Re: optimization/9630: [3.2/3.3/3.4 regression] crash with -freg-struct-return
in C++ code
Date: Wed, 12 Mar 2003 12:12:26 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9630
Oh wait... With -O and -O2 it works, but it crashes *without*
optimization... Right, hmm, OK... Ignore previous mail.
Greetz
Steven
# gcc-3.3 -lstdc++ test.cc -freg-struct-return -O
# LD_LIBRARY_PATH=/opt/experimental/lib/ a.out
2
# gcc-3.3 -lstdc++ test.cc -freg-struct-return
# LD_LIBRARY_PATH=/opt/experimental/lib/ a.out
Segmentatie fout
#
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization/9630: [3.2/3.3/3.4 regression] crash with -freg-struct-return in C++ code
@ 2003-02-14 20:53 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-02-14 20:53 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, stefan
Old Synopsis: crash with -freg-struct-return in C++ code
New Synopsis: [3.2/3.3/3.4 regression] crash with -freg-struct-return in C++ code
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Feb 14 20:53:46 2003
State-Changed-Why:
Confirmed. Worked with 2.95, so is a regression.
Stefan, if you want to help us greatly, try to reduce the
code further, by first using -save-temps to get rid
of what the preprocessor does, then delete all the lines
starting with a '#', and then chip away whatever is not
needed to demonstrate the bug. We need to find out which
function exactly is being miscompiled, and the present
testcase is too large for this, so it would take us some
time. If you could try to get it smaller, that would be
greatly appreciated!
Thanks
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9630
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-12 18:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-12 11:16 optimization/9630: [3.2/3.3/3.4 regression] crash with -freg-struct-return in C++ code Steven Bosscher
-- strict thread matches above, loose matches on Subject: below --
2003-03-12 18:44 steven
2003-03-12 11:16 Steven Bosscher
2003-02-14 20:53 bangerth
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 read-only IMAP folder(s) and NNTP newsgroup(s).