[Bug c++/77543] ARM: G++ generates redundant instructions at -O0

2016-09-12 Thread mh at ashwireless dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77543 --- Comment #5 from Michael Haben --- (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 exce

[Bug c++/77543] ARM: G++ generates redundant instructions at -O0

2016-09-12 Thread mh at ashwireless dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77543 --- Comment #4 from Michael Haben --- (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 wan

[Bug c++/77543] ARM: G++ generates redundant instructions at -O0

2016-09-12 Thread mh at ashwireless dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77543 --- Comment #2 from Michael Haben --- "eh" being exception handling? Is there any command-line switch that will turn off generation of this "tree" thing in code that doesn't (and can't) use exceptions (e.g. ARM microcontroller code, for which GCC

[Bug c++/77543] New: ARM: G++ generates redundant instructions at -O0

2016-09-09 Thread mh at ashwireless dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mh at ashwireless dot com Target Milestone: --- (This is using the 2016q2 release of the ARM toolchain, GCC 5.4.1). Use first arm-none-eabi-gcc and then arm-none-eabi-g++ to compile this code (without any optimisation i.e