This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: toy frontend
- To: Oskar Liljeblad <oskar at osk dot mine dot nu>
- Subject: Re: toy frontend
- From: Michal Moskal <malekith at pld dot org dot pl>
- Date: Wed, 12 Sep 2001 12:40:40 +0200
- Cc: gcc at gcc dot gnu dot org
On Tue, Sep 11, 2001 at 08:58:30PM +0200, Oskar Liljeblad wrote:
> 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.
Ah, this :) I got this when toplevel expressions wasn't BIND_EXPR.
So simply wrapping function body in it should work.
> 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
init_parse() doesn't check if it gets a name, or NULL (for stdin).
This can be easly fixed.
> Could this be due to a malformed lang-specs.h?
I guess not.
--
: Michal ``,/\/\, '' Moskal | | : GCS {C,UL}++++$
: | |alekith @ |)|(| . org . pl : {E--, W, w-,M}-
: | : {b,e>+}++ !tv h
: Current project: ftp://aleph-0.dhs.org/pub/ksi/ : PLD Team member