Le dimanche 11 novembre 2012 17:14:45, Milutin Jovanović a écrit : > Hi, > > Sorry for resurecting an old thread, but I do believe it is related. I am > having some trouble passing tests on Raspberry Pi (armv6 vfp), specifically > float point ones. > > Below pseude code is my understanding of compiler predefines. Did I > understand their meaning correctly? > > #if !defined(TCC_ARM_VFP) && !defined(TCC_ARM_HARDFLOAT) > // == gcc -float-abi=soft > #elif defined(TCC_ARM_VFP) && !defined(TCC_ARM_HARDFLOAT) > // == gcc -float-abi=softfp > #elif defined(TCC_ARM_VFP) && defined(TCC_ARM_HARDFLOAT) > // == gcc -float-abi=hard
I made TCC_ARM_HARDFLOAT to support the case of -march=armv7-a + -float- abi=hard. This assumption is in several place in the code where I used instructions from ARMv7 instruction set. I should check but probably the instructions I used are also available on ARMv6 so it should be fine for Raspbian. But yeah, the way TCC_ARM_HARDFLOAT is detected is not the best one. Suggestions welcome. > #elif !defined(TCC_ARM_VFP) && defined(TCC_ARM_HARDFLOAT) > #error this is not allowed > #endif Correct otherwise. > > Miki. Tom
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel