New GCC 7 -Wformat-truncation suppressed by (and only by) -Og?
Stephan Bergmann
sbergman@redhat.com
Thu Feb 23 16:15:00 GMT 2017
On 02/23/2017 05:02 PM, Martin Sebor wrote:
> On 02/23/2017 06:51 AM, Stephan Bergmann wrote:
>> At least with a recent GCC 7 trunk build ("gcc (GCC) 7.0.1 20170221
>> (experimental)"), I noticed that -Wformat-truncation warnings happen to
>> not be emitted if and only if -Og is given:
>
> That's unfortunately a bug. The warning runs at different stages
> depending on whether or not optimization is enabled and it looks
> like the global GCC variable it uses to determine this is not set
> for -Og. Can you please open a bug in Bugzilla?
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79691>
"-Wformat-truncation suppressed by (and only by) -Og"
More information about the Gcc
mailing list