This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36500] New: gcc ICEs when being passed -mfpu=neon
- From: "koen at openembedded dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2008 18:43:58 -0000
- Subject: [Bug c/36500] New: gcc ICEs when being passed -mfpu=neon
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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:
koen@lieve:/OE/angstrom-tmp/work$ cat helloworld.c
#include <stdio.h>
int main(void)
{
printf("Hello world!\n"); while(1);
return 0;
}
koen@lieve:/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:
koen@lieve:/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
koen@lieve:/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