From: kaz K. <kk...@rr...> - 2003-02-19 05:38:51
|
Hi, "peter garrone" <pga...@li...> wrote: > The trailing program, derived from the glibc -2.3.1 file > > sysdeps/ieee754/dbl-64/e_atan2.c > > when compiled with gcc 3.2 and also gcc 3.2.2, > generates this error (gcc 3.2.2). > gcc is set up as a cross compiler, host linux pc, target sh4. > > prog.c: In function `__ieee754_atan2': > prog.c:171: Internal compiler error in output_branch, at config/sh/sh.c:1050 It is known that BBRO (basic block reordering optimization) of GCC does not work well on SH target for unfortunate case. Plain gcc-3.2/3.2.2 has no workarounds for this issue. Please give it a try with downgrading the optimization to -O1 or -O2 -fno-reorder-blocks. If you want to add -fno-reorder-blocks option only for e_atan2.c, you can add a line like CFLAGS-e_atan2.os += -fno-reorder-blocks (for PIC case) to your configparms file in your glibc build directory to do so. BTW, my current configparms is: CC := sh4-unknown-linux-gnu-gcc -B/usr/local/lib/gcc-lib/sh4-unknown-linux-gnu/3.4/ CFLAGS-s_tan.os += -O2 CFLAGS-ns_name.os += -O2 CFLAGS-rtld.os := -finline-limit=4800 --param max-inline-insns-single=4800 no-z-defs=yes and I'm using make CFLAGS=-O usually. Regards, kaz |