This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13893] [3.5 regression] ICE emit_pop_insn, at reg-stack.c:922 (regression)
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2004 14:11:22 -0000
- Subject: [Bug optimization/13893] [3.5 regression] ICE emit_pop_insn, at reg-stack.c:922 (regression)
- References: <20040128103256.13893.martin@mpa-garching.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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