]> gcc.gnu.org Git - gcc.git/commitdiff
pa-hpux10.h (NEW_HP_ASSEMBLER): Define to 1.
authorAlan Modra <amodra@one.net.au>
Fri, 13 Apr 2001 05:34:06 +0000 (05:34 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 13 Apr 2001 05:34:06 +0000 (15:04 +0930)
* pa-hpux10.h (NEW_HP_ASSEMBLER): Define to 1.
* pa-hpux11.h (NEW_HP_ASSEMBLER): Likewise.
* pa.h (LEGITIMATE_CONSTANT_P) Collapse two defines depending on
NEW_HP_ASSEMBLER into one.  Kill warnings.

From-SVN: r41326

gcc/ChangeLog
gcc/config/pa/pa-hpux10.h
gcc/config/pa/pa-hpux11.h
gcc/config/pa/pa.h

index c37c6fe3a94573c2e2c1bff47e864d129d740475..0fbc838e575edd5a12208e922c65bc53919511d7 100644 (file)
@@ -1,5 +1,10 @@
 2001-04-13  Alan Modra  <amodra@one.net.au>
 
+       * pa-hpux10.h (NEW_HP_ASSEMBLER): Define to 1.
+       * pa-hpux11.h (NEW_HP_ASSEMBLER): Likewise.
+       * pa.h (LEGITIMATE_CONSTANT_P) Collapse two defines depending on
+       NEW_HP_ASSEMBLER into one.  Kill warnings.
+
        * pa-gas.h: Delete file.
        * config.gcc: Match `parisc' as well as `hppa' for cpu_type=pa.
        Add new targets hppa*64*-*-linux* and parisc*64*-*-linux*.  Update
index 22223e10c7353394805ea9b7c65cd89ed57270e1..c9322b9ab657d85f9223d21cb555d12507fa573d 100644 (file)
@@ -60,4 +60,5 @@ Boston, MA 02111-1307, USA.  */
 
 /* hpux10 has the new HP assembler.  It's still lousy, but it's a whole lot
    better than the assembler shipped with older versions of hpux.  */
-#define NEW_HP_ASSEMBLER
+#undef NEW_HP_ASSEMBLER
+#define NEW_HP_ASSEMBLER 1
index 42858e7246fad79332bc638f9045c88a43cf5435..522605453f6ffd20c962675a5ac7b172232e9a33 100644 (file)
@@ -59,7 +59,8 @@ Boston, MA 02111-1307, USA.  */
 
 /* hpux11 has the new HP assembler.  It's still lousy, but it's a whole lot
    better than the assembler shipped with older versions of hpux.  */
-#define NEW_HP_ASSEMBLER
+#undef NEW_HP_ASSEMBLER
+#define NEW_HP_ASSEMBLER 1
 
 /* Make GCC agree with types.h.  */
 #undef SIZE_TYPE
index 74db8a43bf28de5b0c386ea2ed2395847dabebd3..7548c1f4d36d0096d815246e2226a5a5c835ed6e 100644 (file)
@@ -1116,28 +1116,20 @@ extern int may_call_alloca;
 
    ?!? For now also reject CONST_DOUBLES in 64bit mode.  This will need
    further work.  */
-#ifdef NEW_HP_ASSEMBLER
-#define LEGITIMATE_CONSTANT_P(X)               \
-  ((GET_MODE_CLASS (GET_MODE (X)) != MODE_FLOAT        \
-    || (X) == CONST0_RTX (GET_MODE (X)))       \
-   && !(TARGET_64BIT && GET_CODE (X) == CONST_DOUBLE) \
-   && !(TARGET_64BIT && GET_CODE (X) == CONST_INT \
-       && !(cint_ok_for_move (INTVAL (X))      \
-            || ((INTVAL (X) & 0xffffffff80000000L) == 0xffffffff80000000L) \
-            || ((INTVAL (X) & 0xffffffff00000000L) == 0x0000000000000000L))) \
-   && !function_label_operand (X, VOIDmode))
-#else
-#define LEGITIMATE_CONSTANT_P(X)               \
-  ((GET_MODE_CLASS (GET_MODE (X)) != MODE_FLOAT        \
-    || (X) == CONST0_RTX (GET_MODE (X)))       \
-   && (GET_CODE (X) != LABEL_REF || TARGET_GAS)\
-   && !(TARGET_64BIT && GET_CODE (X) == CONST_DOUBLE) \
-   && !(TARGET_64BIT && GET_CODE (X) == CONST_INT \
-       && !(cint_ok_for_move (INTVAL (X))      \
-            || ((INTVAL (X) & 0xffffffff80000000L) == 0xffffffff80000000L) \
-            || ((INTVAL (X) & 0xffffffff00000000L) == 0x0000000000000000L))) \
-   && !function_label_operand (X, VOIDmode))
+#ifndef NEW_HP_ASSEMBLER
+#define NEW_HP_ASSEMBLER 0
 #endif
+#define LEGITIMATE_CONSTANT_P(X)                               \
+  ((GET_MODE_CLASS (GET_MODE (X)) != MODE_FLOAT                        \
+    || (X) == CONST0_RTX (GET_MODE (X)))                       \
+   && (NEW_HP_ASSEMBLER || TARGET_GAS || GET_CODE (X) != LABEL_REF)    \
+   && !(TARGET_64BIT && GET_CODE (X) == CONST_DOUBLE)          \
+   && !(TARGET_64BIT && GET_CODE (X) == CONST_INT              \
+       && !(HOST_BITS_PER_WIDE_INT <= 32                       \
+            || (INTVAL (X) >= (HOST_WIDE_INT) -1 << 31         \
+                && INTVAL (X) < (HOST_WIDE_INT) 1 << 32)       \
+            || cint_ok_for_move (INTVAL (X))))                 \
+   && !function_label_operand (X, VOIDmode))
 
 /* Subroutine for EXTRA_CONSTRAINT.
 
This page took 0.090538 seconds and 5 git commands to generate.