Activity log for bug #1039401

Date Who What changed Old value New value Message
2012-08-21 07:29:34 Коренберг Марк bug added bug
2012-08-21 07:31:53 Коренберг Марк description $ gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc test.c $ LANG=C gcc -O2 test.c test.c: In function 'main': test.c:6:1: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccYojEN6.out file, please attach this to your bugreport. $ cat test.c int main (void) { volatile int a; if (a == 42) return 1; } -------------------------------- If I add "return 0;" to the end of function - problem is fixed. I understand, that program is not correct, but, as I think, gcc should not fail on that. It seems, it is optimizer bug. The problem does not appear in upstream (look at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54340 ) $ gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc test.c $ gcc -O2 test.c test.c: In function 'main': test.c:6:1: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccYojEN6.out file, please attach this to your bugreport. $ cat test.c int main (void) {   volatile int a;   if (a == 42)     return 1; } -------------------------------- If I add "return 0;" to the end of function - problem is fixed. I understand, that program is not correct, but, as I think, gcc should not fail on that. It seems, it is optimizer bug. The problem does not appear in upstream (look at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54340 )
2012-09-06 10:23:19 Matthias Klose bug task added gcc-linaro
2012-09-06 10:24:16 Matthias Klose gcc-4.6 (Ubuntu): status New Incomplete
2012-09-10 03:16:16 Zhenqiang Chen gcc-linaro: status New Incomplete
2012-09-12 22:58:00 Matthias Klose gcc-4.6 (Ubuntu): status Incomplete Invalid
2014-01-09 21:06:21 Viktor gcc-linaro: status Incomplete Invalid