Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(56)

Issue 4388057: [pph/libcpp] Allow include callback to not read the file (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Diego Novillo
Modified:
13 years ago
Reviewers:
CC:
Lawrence Crowl, tromey_redhat.com, gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
M gcc/cp/pph.c View 4 chunks +14 lines, -3 lines 0 comments Download
M libcpp/directives.c View 1 chunk +8 lines, -4 lines 0 comments Download
M libcpp/include/cpplib.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 6
Diego Novillo
During pph processing, when we find an included file that we are going to instantiate ...
13 years ago (2011-04-12 20:28:47 UTC) #1
Lawrence Crowl
This change is not source compatible with existing code using the callbacks (which may not ...
13 years ago (2011-04-13 00:41:43 UTC) #2
Diego Novillo
On Tue, Apr 12, 2011 at 20:41, Lawrence Crowl <crowl@google.com> wrote: > This change is ...
13 years ago (2011-04-13 00:50:42 UTC) #3
tromey_redhat.com
>>>>> "Diego" == Diego Novillo <dnovillo@google.com> writes: Diego> During pph processing, when we find an ...
13 years ago (2011-04-13 16:20:56 UTC) #4
tromey_redhat.com
>>>>> "Diego" == Diego Novillo <dnovillo@google.com> writes: Lawrence> This change is not source compatible with ...
13 years ago (2011-04-13 16:21:58 UTC) #5
Diego Novillo
13 years ago (2011-04-13 17:23:33 UTC) #6
On Wed, Apr 13, 2011 at 12:21, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Diego" == Diego Novillo <dnovillo@google.com> writes:
>
> Lawrence> This change is not source compatible with existing code using
> Lawrence> the callbacks (which may not be in the gcc svn).  Perhaps a new
> Lawrence> callback is needed?
>
> Diego> Well, it only changes the return value for the callback.  Existing
> Diego> users do not really need to be changed.
>
> Diego> I don't think we want a new callback.  The callback would do exactly
> Diego> what cb.include does.
>
> My grep shows 2 places that set this: c-family/c-ppoutput.c and
> fortran/cpp.c.  It seems like it would be simple to just update those
> two functions to account for the type change.

Oh, right.  Here I was thinking of users outside of gcc, but of course
there aren't those.  I'll fix the calls in the existing front ends.


Diego.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b