This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/44011] missed optimization of min/max_expr or strict overflow warnings for intended code.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2010 11:27:08 -0000
- Subject: [Bug tree-optimization/44011] missed optimization of min/max_expr or strict overflow warnings for intended code.
- References: <bug-44011-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pluto at agmk dot net 2010-05-06 11:27 -------
(In reply to comment #1)
> Place the pragma outside of the function (though it'll probably not help
> due to the inlining).
with new function attribute "warning(string...)" similary to existing
"target" and "optimize" atributtes/pragmas it would be possible to manage
warnings for intended parts of code. currently diagnostic system reports
the location of strict-overflow, so i suppose it's able to check a function
attributes and skip some warnings. am i right?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44011