[Bug c/58617] gcc crashed on compile arithmetic (or) expression

2013-10-07 Thread heiko.abra...@hella-gutmann.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58617

--- Comment #2 from Heiko.Abraham  ---
I can confirm, r202652 resolve this bug.


[Bug c/58617] New: gcc crashed on compile arithmetic (or) expression

2013-10-04 Thread heiko.abra...@hella-gutmann.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58617

Bug ID: 58617
   Summary: gcc crashed on compile arithmetic (or) expression
   Product: gcc
   Version: 4.8.1
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: heiko.abra...@hella-gutmann.com

gcc 4.8.1 will crashed, if compile follow simple lines:

#include 
/* arm-linux-gcc  -c -o main.o -g -O0  main.c */
int main(int argc, char **argv)
{
 unsigned int x;
 x = (2 * x | 1) & 0x; 
 return 1;
}


-

/home/heiko/crosscompiler/usr/bin/arm-unknown-linux-gnueabi-gcc -c -o main.o -g
-O0 main.c 
arm-unknown-linux-gnueabi-gcc: internal compiler error: Segmentation fault
(program cc1)
0x8053bb2 execute
../../gcc-4.8.1/gcc/gcc.c:2823
0x8053f24 do_spec_1
../../gcc-4.8.1/gcc/gcc.c:4615
0x8056341 process_brace_body
../../gcc-4.8.1/gcc/gcc.c:5872
0x8056341 handle_braces
../../gcc-4.8.1/gcc/gcc.c:5786
0x8054634 do_spec_1
../../gcc-4.8.1/gcc/gcc.c:5269
0x8056341 process_brace_body
../../gcc-4.8.1/gcc/gcc.c:5872
0x8056341 handle_braces
../../gcc-4.8.1/gcc/gcc.c:5786
0x8054634 do_spec_1
../../gcc-4.8.1/gcc/gcc.c:5269
0x8054419 do_spec_1
../../gcc-4.8.1/gcc/gcc.c:5374
0x8056341 process_brace_body
../../gcc-4.8.1/gcc/gcc.c:5872
0x8056341 handle_braces
../../gcc-4.8.1/gcc/gcc.c:5786
0x8054634 do_spec_1
../../gcc-4.8.1/gcc/gcc.c:5269
0x8056341 process_brace_body
../../gcc-4.8.1/gcc/gcc.c:5872
0x8056341 handle_braces
../../gcc-4.8.1/gcc/gcc.c:5786
0x8054634 do_spec_1
../../gcc-4.8.1/gcc/gcc.c:5269
0x8056341 process_brace_body
../../gcc-4.8.1/gcc/gcc.c:5872
0x8056341 handle_braces
../../gcc-4.8.1/gcc/gcc.c:5786
0x8054634 do_spec_1
../../gcc-4.8.1/gcc/gcc.c:5269
0x8056341 process_brace_body
../../gcc-4.8.1/gcc/gcc.c:5872
0x8056341 handle_braces
../../gcc-4.8.1/gcc/gcc.c:5786


-

Note: 
Preprocessor runs well and will not crashed.

/home/heiko/crosscompiler/usr/bin/arm-unknown-linux-gnueabi-gcc -E -c -o main.o
-g -O0 main.c

-

Environment:
HOST: Ubuntu 12.04 LTS i686
TARGET: arm-linux-elf


Using built-in specs.
COLLECT_GCC=/home/heiko/crosscompiler/usr/bin/arm-unknown-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/heiko/crosscompiler/usr/libexec/gcc/arm-unknown-linux-gnueabi/4.8.1/lto-wrapper


Configured with: ../gcc-4.8.1/configure --target=arm-unknown-linux-gnueabi
--prefix=/home/heiko/crosscompiler/usr
--with-local-prefix=/home/heiko/crosscompiler/usr/arm-unknown-linux-gnueabi/sysroot
--with-sysroot=/home/heiko/crosscompiler/usr/arm-unknown-linux-gnueabi/sysroot
--enable-languages=c,c++ --disable-nls --disable-multilib --enable-shared
--enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix
--enable-target-optspace --with-float=soft --with-arch=armv5te
--with-tune=arm926ej-s --enable-lto --enable-libmudflap --disable-libgomp
--enable-libssp --disable-libquadmath --disable-libada
--disable-libquadmath-support
--with-gmp-include=/home/heiko/crosscompiler/usr/include
--with-gmp-lib=/home/heiko/crosscompiler/usr/lib
--with-mpfr-include=/home/heiko/crosscompiler/usr/include
--with-mpfr-lib=/home/heiko/crosscompiler/usr/lib
--with-mpc-include=/home/heiko/crosscompiler/usr/include
--with-mpc-lib=/home/heiko/crosscompiler/usr/lib
Thread model: posix

---

mpfr-3.1.2
mpc-1.0.1
gmp-5.0.5