pa.c (emit_move_sequence): Always handle secondary reloads for symbolic addresses.
authorJeff Law <law@gcc.gnu.org>
Wed, 18 Aug 1993 06:45:41 +0000 (00:45 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 18 Aug 1993 06:45:41 +0000 (00:45 -0600)
        * pa.c (emit_move_sequence): Always handle secondary reloads for
        symbolic addresses.
        (secondary_reload_class): Symbolic operands always need a secondary
        reload from R1_REGS if their target class is not R1_REGS.

From-SVN: r5178

gcc/config/pa/pa.c

index c4585fc9774059b83d3de6f681d274aa277a014c..691253ce9c4cfbc58754e31292cbb9d13d9237ee 100644 (file)
@@ -852,8 +852,7 @@ emit_move_sequence (operands, mode, scratch_reg)
   /* Simplify the source if we need to.  */
   if (GET_CODE (operand1) != HIGH && immediate_operand (operand1, mode)
       || (GET_CODE (operand1) == HIGH
-         && symbolic_operand (XEXP (operand1, 0), mode)
-         && TARGET_KERNEL))
+         && symbolic_operand (XEXP (operand1, 0), mode)))
     {
       int ishighonly = 0;
 
@@ -3241,7 +3240,7 @@ secondary_reload_class (class, mode, in)
   if (GET_CODE (in) == HIGH)
     in = XEXP (in, 0);
 
-  if (TARGET_KERNEL && class != R1_REGS && symbolic_operand (in, VOIDmode))
+  if (class != R1_REGS && symbolic_operand (in, VOIDmode))
     return R1_REGS;
 
   return NO_REGS;