Fix for PR target/33360 (typo in CONST_INT_P-ification)

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Wed Sep 12 05:13:00 GMT 2007


My fault for not testing cris-linux, only cris-elf.  It's a
build-breaker, so I didn't add a test-case (-fPIC/-fpic is not
allowed for cris-elf so can't test that there).  Checked that
build of libgcc passes the point of failure and that the
generated code looks ok.

        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.

Index: config/cris/cris.c
===================================================================
--- config/cris/cris.c	(revision 128405)
+++ config/cris/cris.c	(working copy)
@@ -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);
 

brgds, H-P



More information about the Gcc-patches mailing list