Problems with genautomata

Vladimir Makarov vmakarov@redhat.com
Wed Jun 19 11:38:00 GMT 2002


law@redhat.com wrote:
> 
> I'm sitting here trying to figure out why the automaton generator is failing
> miserably for hppa64-hp-hpux11.00 native in the mainline sources.  Every
> indication I'm getting is that we have a bug in genautomata.c that just
> happens to expose itself on hppa64-hp-hpux11.00.
> 
> 

...

> However, on PA64, the address happens to have the high bit set, thus if
> we interpret it as an integer, it's value is negative which in turn causes
> make_numeric_value to abort.
> 
> This (of course) keeps the PA64 from bootstrapping and needs to be resolved.
> 
> I would strongly recommend that when you have a selector to access different
> fields in a union that you use checking macros like we do for trees/rtl to
> ensure that you only access the field that is appropriate for the given mode.
> Clearly if ENABLE_CHECKING is not defined, then you wouldn't do the extra
> sanity checks.

Thanks, Jeff, for the information.  I've already seen the analogous
problem.  Your proposal is also reasonable.  So I'll start work on it. 
I hope the patch will be ready tomorrow.

Vlad



More information about the Gcc mailing list