[ARM] Fix incorrect restore of FP registers in nested APCS frame

Eric Botcazou ebotcazou@adacore.com
Fri Jan 10 09:48:00 GMT 2014

> This new test fails when GCC is configured as target
> arm-none-linux-gnueabihf and --with-float=hard:
> tools/arm-none-linux-gnueabihf/bin/ld: error: ./neon-nested-apcs.exe
> uses VFP register arguments, /tmp/cc9LLqES.o does not
> tools/arm-none-linux-gnueabihf/bin/ld: failed to merge target specific
> data of file /tmp/cc9LLqES.o
> collect2: error: ld returned 1 exit status

Is it sufficient to static-ify 'bar' and 'foo'?  If so, please do that.

> This is because startup and library code is compiled in hardfp mode,
> and is incompatible with the -mfloat-abi=softfp forced in the test.

Other tests in the gcc.target/arm directory do the same though.

Eric Botcazou

More information about the Gcc-patches mailing list