This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: fix parens in tc-hppa.c


tc-hppa.c was a bit broken here.  This patch fixes it so things compile.

Jerry

Wed Sep 22 15:03:11 EDT 1999  Jerry Quinn <jerry.quinn.adv91@alum.dartmouth.org>

    * gas/config/tc-hppa.c (pa_ip):  Fix mismatched parentheses.


*** orig/gas/config/tc-hppa.c	Wed Sep 22 11:50:54 1999
--- gas-src/gas/config/tc-hppa.c	Wed Sep 22 14:28:28 1999
***************
*** 3700,3734 ****
  			opcode |= (result.l_r_select & 1) << 1;
  		      }
  		    continue;
  		default:
  		  abort ();
  		}
  	      break;
  
! 	    /* Handle L/R register halves like 'x'.  */
! 	    case 'e':
! 	      {
! 		struct pa_11_fp_reg_struct result;
! 
! 		/* This should be more strict.  Small steps.  */
! 		if (strict && *s != '%')
! 		  break;
! 		pa_parse_number (&s, &result);
! 		CHECK_FIELD (result.number_part, 31, 0, 0);
! 		opcode |= (result.number_part & 0x1f) << 16;
! 		if (need_pa11_opcode (&the_insn, &result))
! 		  {
! 		    opcode |= (result.l_r_select & 1) << 1;
! 		  }
! 		continue;
! 	      }
! 
  	    default:
  	      abort ();
  	    }
  	  break;
  	}
! 
   failed:
        /* Check if the args matched.  */
        if (match == FALSE)
--- 3700,3720 ----
  			opcode |= (result.l_r_select & 1) << 1;
  		      }
  		    continue;
+ 		  }
+ 
+ 		/* Error case for float registers. */
  		default:
  		  abort ();
  		}
  	      break;
  
! 	    /* Error case for all codes. */
  	    default:
  	      abort ();
  	    }
  	  break;
  	}
! 	  
   failed:
        /* Check if the args matched.  */
        if (match == FALSE)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]