https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware dot com --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- diff --git a/gcc/calls.c b/gcc/calls.c index 27b59f26ad3..f23dde58671 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2735,7 +2735,8 @@ expand_call (tree exp, rtx target, int ignore) && (!(flags & ECF_LOOPING_CONST_OR_PURE)) && (flags & ECF_NOTHROW) && (ignore || target == const0_rtx - || TYPE_MODE (rettype) == VOIDmode)) + || TYPE_MODE (rettype) == VOIDmode) + && !optimize) { bool volatilep = false; tree arg;