Re: [PATCH] Suggest including for bool, true and false

2020-05-22 Thread David Malcolm via Gcc-patches
On Tue, 2020-05-19 at 23:36 +0200, Mark Wielaard wrote: > Currently gcc suggests to use _Bool instead of bool and doesn't give > any suggestions when true or false are used, but undefined. This > patch > makes it so that (for C99 or higher) a fixit hint is emitted to > include > . [...snip...] Lo

[PATCH] Suggest including for bool, true and false

2020-05-19 Thread Mark Wielaard
Currently gcc suggests to use _Bool instead of bool and doesn't give any suggestions when true or false are used, but undefined. This patch makes it so that (for C99 or higher) a fixit hint is emitted to include . gcc/c-family/ChangeLog: * known-headers.cc (get_stdlib_header_for_name): Re