When crosscompiling for OMAP3 gcc will ICE if you use -mfpu=neon
No ICE: -march=armv7-a -mtune=cortex-a8 -mfpu=vfp -mfloat-abi=softfp
ICE: -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
Testcase:
[EMAIL PROTECTED]:/OE/angstrom-tmp/work$ cat helloworld.c
#include stdio.h
int main(void)
{
printf(Hello world!\n); while(1);
return 0;
}
[EMAIL PROTECTED]:/OE/angstrom-tmp/work$ arm-angstrom-linux-gnueabi-gcc-4.3.1
helloworld.c -o helloworld -march=armv7-a -mtune=cortex-a8 -mfpu=neon
-mfloat-abi=softfp
helloworld.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
Replace it with -mfpu=vfp:
[EMAIL PROTECTED]:/OE/angstrom-tmp/work$ arm-angstrom-linux-gnueabi-gcc-4.3.1
helloworld.c -o helloworld -march=armv7-a -mtune=cortex-a8 -mfpu=vfp
-mfloat-abi=softfp
[EMAIL PROTECTED]:/OE/angstrom-tmp/work$ file helloworld
helloworld: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux
2.6.14, dynamically linked (uses shared libs), not stripped
--
Summary: gcc ICEs when being passed -mfpu=neon
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: koen at openembedded dot org
GCC build triplet: i686-linux
GCC host triplet: i686-linux
GCC target triplet: arm-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36500