From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30014 invoked by alias); 28 Jan 2004 14:11:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29978 invoked by uid 48); 28 Jan 2004 14:11:22 -0000 Date: Wed, 28 Jan 2004 14:11:00 -0000 Message-ID: <20040128141122.29977.qmail@sources.redhat.com> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040128103256.13893.martin@mpa-garching.mpg.de> References: <20040128103256.13893.martin@mpa-garching.mpg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/13893] [3.5 regression] ICE emit_pop_insn, at reg-stack.c:922 (regression) X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03570.txt.bz2 List-Id: ------- 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