Detect ARM CPU version in configure

Instead of guessing the ARM CPU version to compile for from tcc.h, we
now detect it in configure and output the value in config.h
This commit is contained in:
Thomas Preud'homme
2012-12-04 11:17:51 +01:00
parent 8d90205fd9
commit c4a18f47a2
2 changed files with 16 additions and 9 deletions

8
tcc.h
View File

@ -105,14 +105,6 @@
#define TCC_TARGET_I386
#endif
#if defined (TCC_TARGET_ARM) && !defined(TCC_ARM_VERSION)
#ifdef TCC_ARM_HARDFLOAT
#define TCC_ARM_VERSION 7
#else
#define TCC_ARM_VERSION 4
#endif
#endif
#if !defined(TCC_UCLIBC) && !defined(TCC_TARGET_ARM) && \
!defined(TCC_TARGET_C67) && !defined(TCC_TARGET_X86_64)
#define CONFIG_TCC_BCHECK /* enable bound checking code */