https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83105
Bug ID: 83105
Summary: [8 regression] error: -mfloat-abi=hard: selected
processor lacks an FPU
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: nsz at gcc dot gnu.org
Target Milestone: ---
if gcc is configured with
--with-float=hard --target=arm-linux-gnueabihf
but without --with-fpu or --with-arch setting then the
configuration succeeds but the built xgcc fails:
$ ./xgcc -B. -xc - </dev/null
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU
during the build the selftest segfaults:
$ ./xgcc -B. -xc -nostdinc /dev/null -S -o /dev/null
-fself-test=SRC/gcc/testsuite/selftests
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
previously such a configuration worked and
i think produced a compiler as if
--with-arch=armv5t --with-fpu=vfp
was used, at least the attributes in object files
created by such a compiler was
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "ARM10TDMI"
Tag_CPU_arch: v5T
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_rounding: Needed
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_VFP_args: VFP registers
Tag_ABI_optimization_goals: Aggressive Size