This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[BUG] gcc HEAD 2004-10-08, linux-x-sh-elf, SEGV when building newlib/libm/math/e_scalb.c


[Please CC me, I'm not subscribed to the list]

Hi,

I encountered the following SEGV when trying to build newlib for sh-elf
using gcc from HEAD, both (gcc and newlib) checked out this morning:

newlib/libm/math/e_scalb.c: In function '__ieee754_scalb':
newlib/libm/math/e_scalb.c:53: internal compiler error: Segmentation fault

This happens in all m2a and m4 multilibs.  I've attached the precompiled
source code.  The SEGV does not occur when building without optimization
or with -O, it only happens with -O2.

Running `cc1 -g -O2 -fno-builtin -m2a e_scalb.i' under GDB reports:

Starting program: [...]/libexec/gcc/sh-elf/4.0.0/cc1 -g -O2 -fno-builtin -m2a e_scalb.i
 __ieee754_scalb

Analyzing compilation unit
Performing intraprocedural optimizations
Assembling functions:
 __ieee754_scalb

Program received signal SIGSEGV, Segmentation fault.
optimize_mode_switching (file=0x0) at [...]/gcc/gcc/lcm.c:1035
1035          if (eg->flags & EDGE_FALLTHRU)
(


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.

Attachment: e_scalb.i
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]