OSDN Git Service

PR target/33360
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2007 01:56:20 +0000 (01:56 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2007 01:56:20 +0000 (01:56 +0000)
* config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128406 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/cris/cris.c

index 4af559e..aa53318 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-12  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR target/33360
+       * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
+       GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
+
 2007-09-12  Sa Liu  <saliu@de.ibm.com>
 
        * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
index 563c124..78ce75c 100644 (file)
@@ -3176,7 +3176,7 @@ cris_expand_pic_call_address (rtx *opp)
   /* It might be that code can be generated that jumps to 0 (or to a
      specific address).  Don't die on that.  (There is a
      testcase.)  */
-  if (CONSTANT_ADDRESS_P (op) && CONST_INT_P (op))
+  if (CONSTANT_ADDRESS_P (op) && !CONST_INT_P (op))
     {
       enum cris_pic_symbol_type t = cris_pic_symbol_type_of (op);