aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>1999-12-17 16:49:32 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>1999-12-17 16:49:32 +0100
commit53f4a9f6892c0c87ea75b66d502855b1647361fb (patch)
treec0391d05f6f00f42fdbde42b8720a9976af2f2a0
parent4ce580a2546209d06674e7106f88804693331fce (diff)
downloadgcc-53f4a9f6892c0c87ea75b66d502855b1647361fb.zip
gcc-53f4a9f6892c0c87ea75b66d502855b1647361fb.tar.gz
gcc-53f4a9f6892c0c87ea75b66d502855b1647361fb.tar.bz2
sparc.h (TARGET_ARCH32): Exchange ifdefs so that if compiling libgcc2 the macro depends always on arch...
* config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if compiling libgcc2 the macro depends always on arch cpp defines. From-SVN: r30995
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/sparc.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a2d1179..c3ea883 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+1999-12-16 Jakub Jelinek <jakub@redhat.com>
+
+ * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
+ compiling libgcc2 the macro depends always on arch cpp defines.
+
Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
* loop.c (insert_loop_mem): Don't record MEMs from inside
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index b38b6f3c..09667ca 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -33,7 +33,6 @@ Boston, MA 02111-1307, USA. */
/* TARGET_ARCH{32,64} are the main macros to decide which of the two
architectures to compile for. We allow targets to choose compile time or
runtime selection. */
-#ifdef SPARC_BI_ARCH
#ifdef IN_LIBGCC2
#if defined(__sparcv9) || defined(__arch64__)
#define TARGET_ARCH32 0
@@ -41,11 +40,12 @@ Boston, MA 02111-1307, USA. */
#define TARGET_ARCH32 1
#endif /* sparc64 */
#else
+#ifdef SPARC_BI_ARCH
#define TARGET_ARCH32 (! TARGET_64BIT)
-#endif /* IN_LIBGCC2 */
#else
#define TARGET_ARCH32 (DEFAULT_ARCH32_P)
#endif /* SPARC_BI_ARCH */
+#endif /* IN_LIBGCC2 */
#define TARGET_ARCH64 (! TARGET_ARCH32)
/* Code model selection.