[Bug c++/77543] ARM: G++ generates redundant instructions at -O0
mh at ashwireless dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 12 14:00:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77543
--- Comment #5 from Michael Haben <mh at ashwireless dot com> ---
(In reply to Michael Haben from comment #4)
> (In reply to Andrew Pinski from comment #3)
> > Yes try -fno-exceptions . This is all documented already and 99% of folks
> > who do embedded that don't want exceptions already use that flag. You might
> > also want to disable rtti too.
>
> Yes, I already use both of those but still get the "extra" code - I was
> hoping you might know of another "-f...." switch that was more specific.
By trial-and-error, found that -O0 -ftree-ter (Temporary Expression
Replacement) does what I want.
More information about the Gcc-bugs
mailing list