This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

toy frontend


I am trying out Michael Meeks' modified toy frontend with
GCC 3.0.1 (http://primates.ximian.com/~michael/toy-3.1.1.tar.gz),
but I'm getting some errors:

  test.toy: In function `a':
  test.toy:0: Internal compiler error in identify_blocks_1, at function.c:5777
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

The stack trace is this:

#1  0x0806e233 in identify_blocks_1 (insns=0x401a2d00, block_vector=0x82a9eec, 
    end_block_vector=0x82a9eec, orig_block_stack=0x82a9f28)
    at ../../gcc-3.0.1/gcc/function.c:5776
#2  0x0806e1af in identify_blocks () at ../../gcc-3.0.1/gcc/function.c:5735
#3  0x0804c9ff in rest_of_compilation (decl=0x401a3f70)
    at ../../gcc-3.0.1/gcc/toplev.c:2755
#4  0x08049dbc in build_function (fndecl=0x401a3f70, exp=0x401a2ce0)
    at ../../gcc-3.0.1/gcc/toy/toy.c:160
#5  0x08049918 in yyparse () at ../../gcc-3.0.1/gcc/toy/parse.y:33
#6  0x0804c303 in compile_file (name=0xbffffb53 "test.toy")
    at ../../gcc-3.0.1/gcc/toplev.c:2369
#7  0x0804fbeb in main (argc=2, argv=0xbffffa04)
    at ../../gcc-3.0.1/gcc/toplev.c:4990
#8  0x4004064f in __libc_start_main () from /lib/libc.so.6

Also, what is more strange, is that when I run cc1toy without arguments,
I get a segmentation fault. This time the stack trace is:

#0  0x4009a31f in strlen () from /lib/libc.so.6
#1  0x0804b915 in output_file_directive (asm_file=0x4013b4c0, input_name=0x0)
    at ../../gcc-3.0.1/gcc/toplev.c:1810
#2  0x0804c6f9 in compile_file (name=0x0) at ../../gcc-3.0.1/gcc/toplev.c:2295
#3  0x0804fde6 in main (argc=1, argv=0xbffff9e4)
    at ../../gcc-3.0.1/gcc/toplev.c:4992
#4  0x4004064f in __libc_start_main () from /lib/libc.so.6

Could this be due to a malformed lang-specs.h?

Oskar Liljeblad


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]