This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51644] [4.7 Regression] va_list vs. warning: ânoreturnâ function does return is not fixable
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Dec 2011 09:48:11 +0000
- Subject: [Bug middle-end/51644] [4.7 Regression] va_list vs. warning: ânoreturnâ function does return is not fixable
- Auto-submitted: auto-generated
- References: <bug-51644-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51644
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-21
Component|c |middle-end
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-21 09:48:11 UTC ---
We are gimplifying this to
a (int s)
{
struct args[1];
try
{
__builtin_va_start (&args, 0);
b (s, &args);
__builtin_va_end (&args);
}
finally
{
args = {CLOBBER};
}
}
So the cleanup returns normally when b throws. The ehcleanup stuff does
not trigger at -O0.