From 8a59fff3dd9f8003c95d89ee2a71d632b130cf8b Mon Sep 17 00:00:00 2001 From: Matthew Gretton-Dann Date: Mon, 22 Feb 2010 10:24:56 +0000 Subject: [PATCH] PR 9861 * gas/config/tc-arm.c (CPU_DEFAULT): Do not define based upon build compiler's predefines. --- gas/ChangeLog | 6 ++++++ gas/config/tc-arm.c | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 08ce8288083..bd4acd59dc7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2010-02-22 Matthew Gretton-Dann + + PR 9861 + * config/tc-arm.c (CPU_DEFAULT): Do not define based upon build + compiler's predefines. + 2010-02-19 Alan Modra * configure.tgt: Whiltespace. Sort moxie entry. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 04b3f703248..b3096c5d73f 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -97,13 +97,12 @@ enum arm_float_abi /* Types of processor to assemble for. */ #ifndef CPU_DEFAULT -#if defined __XSCALE__ -#define CPU_DEFAULT ARM_ARCH_XSCALE -#else -#if defined __thumb__ -#define CPU_DEFAULT ARM_ARCH_V5T -#endif -#endif +/* The code that was here used to select a default CPU depending on compiler + pre-defines which were only present when doing native builds, thus + changing gas' default behaviour depending upon the build host. + + If you have a target that requires a default CPU option then the you + should define CPU_DEFAULT here. */ #endif #ifndef FPU_DEFAULT -- 2.30.2