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: Need some help regarding bug Bug 38612


On Tue, 2016-02-16 at 12:25 +0530, Prasad Ghangal wrote:
> Hi !
> I am trying to fix bug 38612
> (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38612).
> As mentioned in comment 4,  I am changing warning message in
> typeck2.c. TREE_TYPE(datum) gives type as 'X', but I want 'X*' 

I believe you want to use build_pointer_type (defined in gcc/tree.c) to
go from type X to type X*.

> also
> how to add notes as suggested in the comment ?

Somewhat confusingly, "inform" is the function to call to get a "note".

"inform" is defined in gcc/diagnostic.c.


Hope this is helpful
Dave


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