public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* toy frontend
@ 2001-09-11 11:57 Oskar Liljeblad
  2001-09-12  3:28 ` Michal Moskal
  0 siblings, 1 reply; 3+ messages in thread
From: Oskar Liljeblad @ 2001-09-11 11:57 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: toy frontend
  2001-09-11 11:57 toy frontend Oskar Liljeblad
@ 2001-09-12  3:28 ` Michal Moskal
  0 siblings, 0 replies; 3+ messages in thread
From: Michal Moskal @ 2001-09-12  3:28 UTC (permalink / raw)
  To: Oskar Liljeblad; +Cc: gcc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Toy FrontEnd
@ 2002-06-23  9:04 khalid aggag
  0 siblings, 0 replies; 3+ messages in thread
From: khalid aggag @ 2002-06-23  9:04 UTC (permalink / raw)
  To: gcc

Hello,

I am interested in building a new frontend for gcc. To start out I am trying 
to compile Michael Meeks' modified toy frontend with
GCC 3.1.1 (http://primates.ximian.com/~michael/toy-3.1.1.tar.gz), I get some 
strange
errors:-

gcc -c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H 
-DGENERATOR_FILE    -I. -I. -I.././../GCCSRC/gcc -I.././../GCCSRC/gcc/. 
-I.././../GCCSRC/gcc/config -I.././../GCCSRC/gcc/../include 
.././../GCCSRC/gcc/print-rtl.c -o print-rtl.o
In file included from .././../GCCSRC/gcc/print-rtl.c:30:
../../GCCSRC/gcc/tree.h:332:24: tree-check.h: No such file or directory
make[1]: *** [print-rtl.o] Error 1
make[1]: Leaving directory `/home/khalid/Compiler/GCC/GCCOBJ/gcc'
make: *** [all-gcc] Error 2

I checked to see if this "tree-check.h" file exists and i didnt find it. I 
cant understand how
the "tree.h" file includes a file that doesnt actually exits. Can anyone 
help
me please, thanx alot.

Khalid Aggag

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-23 14:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-11 11:57 toy frontend Oskar Liljeblad
2001-09-12  3:28 ` Michal Moskal
2002-06-23  9:04 Toy FrontEnd khalid aggag

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).