This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with genautomata
- From: Vladimir Makarov <vmakarov at redhat dot com>
- To: law at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 19 Jun 2002 13:47:00 -0400
- Subject: Re: Problems with genautomata
- References: <20226.1024507505@porcupine.cygnus.com>
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