I too am having a go at building GHDL with a newer gcc...
I started with the newest SVN revision on gna.org (143) and incorporated
some of the changes from a git branch to ortho-lang.c.
I can get it to build (I need to learn how to update the
configure/makefile mechanism, it doesn't build without human
intervention yet, but that can wait)
By modifying gimplify.c so it continues past the first error, I have got
it to start producing gimple tree dumps. So far, of only the first std
library function, but at least that gives me a hope of seeing what goes
wrong...
The primitives used to build syntax trees have changed, so GHDL is using
tools that are either no longer there, or deprecated. I have updated
some of these and moved forward a little, but there is some way to go
yet.
So far, all the problems appear to be in the C adapter layer
(ortho-lang.c) and none in the Ada code. And coming back to C after Ada
programming, I am astonished and frankly shocked at how fragile a C
program can be, and how difficult to correct...
Anyway...
It would be very useful to me if someone with an older working
installation could run the following :
ghdl1 --std=87 -quiet -o std_standard.s --compile-standard
-fdump-gimple-tree
and post (or email me) the resulting file, probably named
*stdin*.004t.gimple. I expect it will be considerably larger than this
one!
That would help me pin down what is missing.
(I don't have a gcc old enough to build and run it here, and I'd rather
not mess with trying to find and install one)
I have no doubt I will have other questions, but I'll try not to bother
the list with too many...
Thanks,
- Brian
std__standard__string_EQ (struct std__standard__string * left, struct
std__standard__string * right)
{
std__standard__boolean D.376;
__ghdl_index_type I;
__ghdl_index_type length;
<D.374>:
return D.376;
return D.376;
goto <D.374>;
}
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss