public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/58617] New: gcc crashed on compile arithmetic (or) expression
@ 2013-10-04 11:53 heiko.abraham@hella-gutmann.com
2013-10-07 8:32 ` [Bug c/58617] " heiko.abraham@hella-gutmann.com
0 siblings, 1 reply; 2+ messages in thread
From: heiko.abraham@hella-gutmann.com @ 2013-10-04 11:53 UTC (permalink / raw)
To: gcc-bugs
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.abraham@hella-gutmann.com
gcc 4.8.1 will crashed, if compile follow simple lines:
#include <stdio.h>
/* arm-linux-gcc -c -o main.o -g -O0 main.c */
int main(int argc, char **argv)
{
unsigned int x;
x = (2 * x | 1) & 0x0000FFFF;
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/58617] gcc crashed on compile arithmetic (or) expression
2013-10-04 11:53 [Bug c/58617] New: gcc crashed on compile arithmetic (or) expression heiko.abraham@hella-gutmann.com
@ 2013-10-07 8:32 ` heiko.abraham@hella-gutmann.com
0 siblings, 0 replies; 2+ messages in thread
From: heiko.abraham@hella-gutmann.com @ 2013-10-07 8:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58617
--- Comment #2 from Heiko.Abraham <heiko.abraham@hella-gutmann.com> ---
I can confirm, r202652 resolve this bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-07 8:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-04 11:53 [Bug c/58617] New: gcc crashed on compile arithmetic (or) expression heiko.abraham@hella-gutmann.com
2013-10-07 8:32 ` [Bug c/58617] " heiko.abraham@hella-gutmann.com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).