On 26/08/16 18:56, Tim Shen wrote: >> >> Adding '#include <bits/exception_defines.h>' to >> 'include/c++/7.0.0/variant' "fixes" that. Not sure its the right >> approach though. > > Why not? > I'm not saying its the wrong approach, I'm just saying thats the first thing I tried and it "seemed" to solve it but I didnt really look into whether it was the right thing to do.
>> >> For Cortex-M3 it builds but run.cc fails at execution time. I will look >> further into this. > I only now noticed this execution failure was for our newlib-nano test run, which does not support exceptions, so ignore that. > Can you attach testsuite/libstdc++.log? I'll find an arm machine to > reproduce it. > You can reproduce for the compile failure with: $ arm-none-eabi-g++ src/gcc/libstdc++-v3/testsuite/20_util/variant/compile.cc -S -std=gnu++17 -mcpu=cortex-m0 -mthumb which fails and if you change -mcpu=cortex-m0 to -mcpu=cortex-m3 it builds. Cheers, Andre