alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition of new GP reg classes.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Tue, 6 Nov 2001 14:27:58 +0000 (14:27 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 6 Nov 2001 14:27:58 +0000 (09:27 -0500)
* config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
of new GP reg classes.

From-SVN: r46807

gcc/ChangeLog
gcc/config/alpha/alpha.h

index f33e87a9dc35142870c915314277d68cb114391c..98708ec930a5d04655b0a1190d0e71a2448f5ab3 100644 (file)
@@ -1,5 +1,8 @@
 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
+       of new GP reg classes.
+
        * expr.c (store_field): When making temp object for unaligned
        component, set it to alias set 0.
 
index 155a2670826601e61369355396599f31b24cc772..7e1783ef72173eb4a6e1f73f6e342ca05d5dc91f 100644 (file)
@@ -879,7 +879,8 @@ enum reg_class {
    location unless the FIX extension is available.  */
 
 #define SECONDARY_MEMORY_NEEDED(CLASS1,CLASS2,MODE) \
- (! TARGET_FIX && (CLASS1) != (CLASS2))
+ (! TARGET_FIX && (((CLASS1) == FLOAT_REGS && (CLASS2) != FLOAT_REGS) \
+                   || ((CLASS2) == FLOAT_REGS && (CLASS1) != FLOAT_REGS)))
 
 /* Specify the mode to be used for memory when a secondary memory
    location is needed.  If MODE is floating-point, use it.  Otherwise,