On Tue, 10 Jan 2017, Martin Sebor wrote:

> The -Walloca-larger-than, -Wformat-length, and -Wformat-truncation
> options do not mention LTO among the supported languages and so are
> disabled when -flto is used, causing false negatives.
> 
> The attached patch adds the missing LTO to the three options.  This
> makes -Walloca-larger-than work with LTO but not the other two
> options, implying that something else is preventing the gimple-ssa-
> sprintf pass from running when -flto is enabled.  I haven't had
> the cycles to look into what that might be yet.  Since the root
> causes are independent I'd like to commit this patch first and
> deal with the  -Wformat-{length,truncation} problem separately,
> under a new bug (or give someone with a better understanding of
> LTO the opportunity to do it).

Ok.

Richarx.

> Thanks
> Martin
> 

-- 
Richard Biener <rguent...@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 
21284 (AG Nuernberg)

Reply via email to