[Bug middle-end/90191] [9 regression] -Wformat-overflow depends on --param max-jump-thread-duplication-stmts=17

2019-04-23 Thread dimhen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90191

--- Comment #2 from Dmitry G. Dyachenko  ---
(In reply to Richard Biener from comment #1)
> So is the warning good or bad?  That it now depends on the param suggests a
> change in default optimization behavior.

Sorry not to be clear

Warning with --param ... is incorrect.

And creduced testcase has "dead" code: "if(0) goto ...;"
May be some pass (jump-threading?) cant simplify it?

If so then smth like 90037 probably will be the root PR

[Bug middle-end/90191] [9 regression] -Wformat-overflow depends on --param max-jump-thread-duplication-stmts=17

2019-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90191

Richard Biener  changed:

   What|Removed |Added

   Keywords||diagnostic
   Target Milestone|--- |9.0

--- Comment #1 from Richard Biener  ---
So is the warning good or bad?  That it now depends on the param suggests a
change in default optimization behavior.