public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Question/proposal for USE_MAPPED_LOCATION and Ada
@ 2004-10-06 23:26 Richard Kenner
  2004-10-07 11:21 ` Giovanni Bajo
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Kenner @ 2004-10-06 23:26 UTC (permalink / raw)
  To: stevenb; +Cc: gcc

    Is that what you mean with "chain of locations"?

I believe it is, but my question is where is the code that does that?
Is it part of the line-map logic?

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: Question/proposal for USE_MAPPED_LOCATION and Ada
@ 2004-10-07 15:42 Richard Kenner
  2004-10-07 16:01 ` Giovanni Bajo
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Kenner @ 2004-10-07 15:42 UTC (permalink / raw)
  To: giovannibajo; +Cc: gcc

    > I believe it is, but my question is where is the code that does that?

    cp/error.c, print_instantiation_full_context and
    print_instantiation_partial_context.

So this is language-specific code, right, and not part of the line-map or
language-independent diagnostic code?

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Question/proposal for USE_MAPPED_LOCATION and Ada
@ 2004-10-06 21:07 Richard Kenner
  2004-10-06 22:03 ` Geert Bosch
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Kenner @ 2004-10-06 21:07 UTC (permalink / raw)
  To: gcc

Am I missing something or is the only use of linemap information in
the middle-end in tree.c:expand_location?

If so, then it would seem the simplest approach is to an a
LANGHOOK_EXPAND_LOCATION which defaults to calling expand_location but
for Ada would point to essentially what is now Sloc_to_locus.  It seems
to me that this would be a very tiny piece of code everywhere and would
completely avoid the need for redundant source position tables (note
that what's in linemap.c is very C-centric in its use of terms like include
files).

Wouldn't this work?

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

end of thread, other threads:[~2004-10-07 15:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 23:26 Question/proposal for USE_MAPPED_LOCATION and Ada Richard Kenner
2004-10-07 11:21 ` Giovanni Bajo
  -- strict thread matches above, loose matches on Subject: below --
2004-10-07 15:42 Richard Kenner
2004-10-07 16:01 ` Giovanni Bajo
2004-10-07 18:28   ` Robert Dewar
2004-10-06 21:07 Richard Kenner
2004-10-06 22:03 ` Geert Bosch
2004-10-06 22:21   ` Steven Bosscher
2004-10-06 23:04     ` Robert Dewar
2004-10-06 23:09       ` Joe Buck
2004-10-06 23:16         ` Robert Dewar
2004-10-06 23:25           ` Steven Bosscher
2004-10-06 23:30             ` Robert Dewar
2004-10-07  2:31               ` James A. Morrison
2004-10-07  6:24                 ` Robert Dewar

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