This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ICE in change_address at emit_rtl.c




--On Saturday, November 24, 2001 11:30:47 AM +0000 Neil Booth 
<neil@daikokuya.demon.co.uk> wrote:

> mike stump wrote:-
>
>> Then you generate a spew of bad messages making gcc substantially
>> worse from the users perspective, or you in the end rediscover why
>> error_mark_node exists.
>
> I'm happy to waste a few days rediscovering that, then 8-) It's just
> got too invasive and ill-defined for my liking.  e.g. you mentioned it
> in operations, but it also creeps into types and other things.
>
> Do other compilers written in C have something equivalent?

Yes.  I know two other successful compiler front ends quite well,
and both have a similar notion.  However, the places in which it
can appear are better documented, and they use the approach I
advocate (i.e., ERROR_MARK_TYPE, ERROR_MARK_DECL, etc.) rather
than just a single node.

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]