public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13893] New: ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression)
@ 2004-01-28 10:33 martin at mpa-garching dot mpg dot de
2004-01-28 10:36 ` [Bug optimization/13893] " martin at mpa-garching dot mpg dot de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2004-01-28 10:33 UTC (permalink / raw)
To: gcc-bugs
Current g++ fails to compile the attached test case when optimization
is enabled and give the following output:
/bugrep>g++ -v -O2 -ffast-math -c test.ii
Reading specs from /afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/3.5.0/
specs
Configured with: /scratch/gcc/configure --prefix=/afs/mpa/data/martin/ugcc
--enable-languages=c++ --disable-checking
Thread model: posix
gcc version 3.5.0 20040128 (experimental)
/afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/3.5.0/cc1plus
-fpreprocessed test.ii -quiet -dumpbase test.ii -mtune=pentiumpro -auxbase
test -O2 -version -ffast-math -o /tmp/ccfPqmQs.s
GNU C++ version 3.5.0 20040128 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.5.0 20040128 (experimental).
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63470
cxxmod/detector_pointing.cc: In member function `void
Detector_Pointing::Get_Pointings(int, double, int, arr<pointing>&, arr<vec3>&,
arr<double>&) const':
cxxmod/detector_pointing.cc:56: internal compiler error: in emit_pop_insn, at
reg-stack.c:922
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This is a regression to g++ 3.3.2.
I can try to reproduce the problem with a compiler which has checking
enabled, if needed.
Sorry for the very big test case; I currently don't have time to make it
smaller.
--
Summary: ICE on legal code in emit_pop_insn, at reg-stack.c:922
(regression)
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin at mpa-garching dot mpg dot de
CC: gcc-bugs at gcc dot gnu dot org,martin at mpa-garching
dot mpg dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13893
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/13893] ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression)
2004-01-28 10:33 [Bug optimization/13893] New: ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression) martin at mpa-garching dot mpg dot de
@ 2004-01-28 10:36 ` martin at mpa-garching dot mpg dot de
2004-01-28 14:11 ` [Bug optimization/13893] [3.5 regression] ICE " bangerth at dealii dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2004-01-28 10:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From martin at mpa-garching dot mpg dot de 2004-01-28 10:36 -------
Created an attachment (id=5599)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5599&action=view)
testcase for the bug report
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13893
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/13893] [3.5 regression] ICE emit_pop_insn, at reg-stack.c:922 (regression)
2004-01-28 10:33 [Bug optimization/13893] New: ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression) martin at mpa-garching dot mpg dot de
2004-01-28 10:36 ` [Bug optimization/13893] " martin at mpa-garching dot mpg dot de
@ 2004-01-28 14:11 ` bangerth at dealii dot org
2004-02-05 10:23 ` zlomek at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2004-01-28 14:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-28 14:11 -------
Confirmed. This wasn't too hard:
------------------
double atan2 (double, double) throw ();
struct V { double x, y, z; };
void bar (V &);
inline double xatan2 (double y, double x) {
return 1 ? atan2(y,x) : 0.0;
}
double orientation (const V &dir) {
if (dir.x>0)
return xatan2(dir.y,-dir.x);
else
return xatan2(dir.y,dir.x);
}
void foo (V *vdetpt, double* heading) {
bar (vdetpt[0]);
heading[0] = orientation (vdetpt[0]);
}
-----------------------------------
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c -O2 -mtune=pentiumpro
-ffast-math x.cc
x.cc: In function `double orientation(const V&)':
x.cc:16: internal compiler error: in emit_pop_insn, at reg-stack.c:922
This is a mainline regression against the 3.4 branch. 3.3.x doesn't have
-mtune=pentiumpro.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2004-01-28 14:11:19
date| |
Summary|ICE on legal code in |[3.5 regression] ICE
|emit_pop_insn, at reg- |emit_pop_insn, at reg-
|stack.c:922 (regression) |stack.c:922 (regression)
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13893
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/13893] [3.5 regression] ICE emit_pop_insn, at reg-stack.c:922 (regression)
2004-01-28 10:33 [Bug optimization/13893] New: ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression) martin at mpa-garching dot mpg dot de
2004-01-28 10:36 ` [Bug optimization/13893] " martin at mpa-garching dot mpg dot de
2004-01-28 14:11 ` [Bug optimization/13893] [3.5 regression] ICE " bangerth at dealii dot org
@ 2004-02-05 10:23 ` zlomek at gcc dot gnu dot org
2004-02-05 10:24 ` zlomek at gcc dot gnu dot org
2004-02-06 1:38 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: zlomek at gcc dot gnu dot org @ 2004-02-05 10:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zlomek at gcc dot gnu dot org 2004-02-05 10:23 -------
Probably the same bug as PR/13893
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13893
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/13893] [3.5 regression] ICE emit_pop_insn, at reg-stack.c:922 (regression)
2004-01-28 10:33 [Bug optimization/13893] New: ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression) martin at mpa-garching dot mpg dot de
` (2 preceding siblings ...)
2004-02-05 10:23 ` zlomek at gcc dot gnu dot org
@ 2004-02-05 10:24 ` zlomek at gcc dot gnu dot org
2004-02-06 1:38 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: zlomek at gcc dot gnu dot org @ 2004-02-05 10:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zlomek at gcc dot gnu dot org 2004-02-05 10:24 -------
I meant PR/13938
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13893
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/13893] [3.5 regression] ICE emit_pop_insn, at reg-stack.c:922 (regression)
2004-01-28 10:33 [Bug optimization/13893] New: ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression) martin at mpa-garching dot mpg dot de
` (3 preceding siblings ...)
2004-02-05 10:24 ` zlomek at gcc dot gnu dot org
@ 2004-02-06 1:38 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-06 1:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-06 01:38 -------
This is a dup of bug 13938.
*** This bug has been marked as a duplicate of 13938 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13893
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-02-06 1:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-28 10:33 [Bug optimization/13893] New: ICE on legal code in emit_pop_insn, at reg-stack.c:922 (regression) martin at mpa-garching dot mpg dot de
2004-01-28 10:36 ` [Bug optimization/13893] " martin at mpa-garching dot mpg dot de
2004-01-28 14:11 ` [Bug optimization/13893] [3.5 regression] ICE " bangerth at dealii dot org
2004-02-05 10:23 ` zlomek at gcc dot gnu dot org
2004-02-05 10:24 ` zlomek at gcc dot gnu dot org
2004-02-06 1:38 ` pinskia at gcc dot gnu dot org
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).