I just tried to compile the Suse Linux package smalltalk-2.1.12
with the GNU C compiler version 4.4 snapshot 20080404

The compiler said

 gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../lib-src -I../lightning
-I../lightning -I../snprintfv -I../snprintfv
-DKERNEL_PATH=\"/usr/share/smalltalk/kernel\" -Wall
-DIMAGE_PATH=\"/usr/share/smalltalk\" -DMODULE_PATH=\"/usr/lib64/smalltalk\"
-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -Wall
-Wdeclaration-after-statement -Wno-format -Wno-parentheses -Wpointer-arith
-Wno-pointer-sign -Wno-strict-aliasing -Wno-switch -fno-gcse
-fno-strict-aliasing -MT oop.lo -MD -MP -MF .deps/oop.Tpo -c oop.c -o oop.o
oop.c: In function '_gst_mark_an_oop_internal':
oop.c:2060: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. Flag -Wall required

Here is some additional help from valgrind

==2919== Invalid read of size 2
==2919==    at 0x42588E: emit_side_effect_warnings (c-typeck.c:7522)
==2919==    by 0x42DB50: c_finish_stmt_expr (c-typeck.c:7670)
==2919==    by 0x47ACB7: c_parser_postfix_expression (c-parser.c:5230)
==2919==    by 0x47AEEE: c_parser_unary_expression (c-parser.c:4982)
==2919==    by 0x47B91C: c_parser_cast_expression (c-parser.c:4857)
==2919==    by 0x47B9A4: c_parser_cast_expression (c-parser.c:4850)
==2919==    by 0x47BA6D: c_parser_conditional_expression (c-parser.c:4687)
==2919==    by 0x47C254: c_parser_expr_no_commas (c-parser.c:4448)
==2919==    by 0x47C441: c_parser_expression (c-parser.c:5695)
==2919==    by 0x47A42D: c_parser_postfix_expression (c-parser.c:5257)
==2919==    by 0x47AEEE: c_parser_unary_expression (c-parser.c:4982)
==2919==    by 0x47B91C: c_parser_cast_expression (c-parser.c:4857)
==2919==  Address 0x0 is not stack'd, malloc'd or (recently) free'd


-- 
           Summary: ice for legal code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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

Reply via email to