http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54169

             Bug #: 54169
           Summary: [4.8 Regression] ICE in expand_call, at  calls.c:3162
                    -- bad stack alignment
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: dang...@gcc.gnu.org
              Host: hppa*-*-* (32-bit)
            Target: hppa*-*-* (32-bit)
             Build: hppa*-*-* (32-bit)


In stage2,

if [ x"-fPIC" != x ]; then \
          /home/dave/gnu/gcc/objdir/./prev-gcc/xgcc
-B/home/dave/gnu/gcc/objdir/
./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu/bin/
-B/home/dave/
opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu/bin/
-B/home/dave/opt/gnu/gcc/gcc-4.7.0/hpp
a-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu/includ
e -isystem /home/dave/opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu/sys-include    -c
-DHAVE_CONFIG_H -g -O2  -I. -I../../gcc/libiberty/../include  -W -Wall
-Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fPIC
../../gcc/libiberty/regex.c -o pic/regex.o; \        else true; fi

../../gcc/libiberty/regex.c: In function ‘byte_re_compile_fastmap’:
../../gcc/libiberty/regex.c:152:35: internal compiler error: in expand_call, at
calls.c:3162
 #      define bzero(s, n) (memset (s, '\0', n), (s))
                                   ^
../../gcc/libiberty/regex.c:4582:3: note: in expansion of macro 'bzero'
   bzero (fastmap, 1 << BYTEWIDTH);  /* Assume nothing's valid.  */
   ^
(gdb) p stack_pointer_delta
$5 = 24
(gdb) p preferred_unit_stack_boundary
$6 = 64

dave@mx3210:~/gnu/gcc/objdir/prev-gcc$ ./xgcc -B./ -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: hppa-linux-gnu
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared
--enable-multiarch --with-multiarch-defaults=hppa-linux-gnu
--enable-linker-build-id --build=hppa-linux-gnu --host=hppa-linux-gnu
--target=hppa-linux-gnu --prefix=/home/dave/opt/gnu/gcc/gcc-4.7.0
--with-local-prefix=/home/dave/opt/gnu --enable-threads=posix
--enable-__cxa_atexit --build=hppa-linux-gnu --enable-clocale=gnu
--enable-java-gc=boehm
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada,lto
Thread model: posix
gcc version 4.8.0 20120801 (experimental) [trunk revision 190051] (GCC) 

Introduced by,

2012-08-01  Richard Henderson  <r...@redhat.com>

        PR middle-end/34548
        * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
        * cfgexpand.c (gimple_expand_cfg): Initialise it.
        * explow.c (allocate_dynamic_stack_space): Set it.  Simplify
        alignment requirements given the known alignment of dynamic_offset.
        * function.c (instantiate_virtual_regs): Align dtnamic_offset.

Reply via email to