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