/* * gcc3_arm_bug.c * Written by Mikael Pettersson, [EMAIL PROTECTED], 2005-05-22. * Adapted from glibc-2.3.5/sysdeps/generic/s_fmax.c * * gcc-3.4.4 configured for arm-unknown-linux gets an * internal compiler error when compiling this program * with optimisation enabled: * * gcc3_arm_bug.c: In function `__fmax': * gcc3_arm_bug.c:28: internal compiler error: in elim_reg_cond, at flow.c:3267 * * Notes: * - gcc-3.4.4 was built as a cross-compiler for arm-unknown-linux * hosted on i686-pc-linux-gnu. The cross-compilation toolchain * consisted of binutils-2.16, gcc-3.4.4, glibc-2.3.5, and kernel * headers from linux-2.4.30. * - Using -O0 prevents the ICE. * - gcc-3.4.4, gcc-3.3.6, and gcc-3.2.3 all exhibit this bug. * - gcc-4.0.1 (20050521) does not have this bug. */ extern int __isnan (double __value);
double __fmax (double x, double y) { return (__builtin_isgreaterequal(x, y) || __isnan (y)) ? x : y; } int main(void) { return 0; } -- Summary: gcc-3.4.4 ICE when compiling glibc-2.3.5 for arm Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikpe at csd dot uu dot se CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-unknown-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21710