[Bug middle-end/31878] Spurious warnings with -Wreturn-type due to not performing CCP/VRP in the front-end

sabre at nondot dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 29 06:07:00 GMT 2009



------- Comment #8 from sabre at nondot dot org  2009-12-29 06:07 -------
Clang does not produce diagnostics from the optimizer.  We intentionally do not
want to do this, because of the fragility of the diagnostics as the optimizer
evolves.  IMO it is much better to produce a consistent and predictable set of
diagnostics rather than trying to avoid all false positives by relying on the
optimizer to be tricky.


-- 

sabre at nondot dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sabre at nondot dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31878



More information about the Gcc-bugs mailing list