On Tue, Oct 07, 2014 at 05:00:26PM +0200, Richard Biener wrote: > On Tue, Oct 7, 2014 at 4:51 PM, Marek Polacek <pola...@redhat.com> wrote: > > On Tue, Oct 07, 2014 at 04:39:55PM +0200, Richard Biener wrote: > >> Why not annotate builtins.def with the info? > > > > Because I think that would be more hairy, I'd have to change DEF_BUILTIN > > and all the builtins. That seemed superfluous given that this hint is > > only for a C FE... > > All C family frontends, no? And builtins.def is used by (and only by) > all C family frontends...
Well, the C++ FE on say: void bar (void) { abort (); } just errors out: /tmp/a.c: In function ‘void bar()’: /tmp/a.c:4:10: error: ‘abort’ was not declared in this scope abort (); ^ adding a hint in this case is less obvious than in the C case, because, what if this wasn't supposed to be ::abort (), but std::abort (), or some other namespace abort, or some class abort () method etc.? Jakub