]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/18686 (#pragma longcall broken on 3.4.x)
authorAlan Modra <amodra@bigpond.net.au>
Sat, 27 Nov 2004 00:50:21 +0000 (00:50 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Sat, 27 Nov 2004 00:50:21 +0000 (11:20 +1030)
PR target/18686
* config/rs6000/rs6000-c.c (rs6000_pragma_longcall): Use
integer_zerop and integer_onep instead of comparing against
canonical trees.

From-SVN: r91360

gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c

index f7ce7dab640db6ce0165a4eb7aa253904c3f6911..a71d6d9e8117aa7ba1f874c6df17c8dd27cc05dc 100644 (file)
@@ -1,3 +1,10 @@
+2004-11-27  Alan Modra  <amodra@bigpond.net.au>
+
+       PR target/18686
+       * config/rs6000/rs6000-c.c (rs6000_pragma_longcall): Use
+       integer_zerop and integer_onep instead of comparing against
+       canonical trees.
+
 2004-11-25  Richard Henderson  <rth@redhat.com>
 
        PR c++/6764
index 08e34af88e6a3bffed66a02104f096d52f7c0cf7..13d0ca6eb6505cce3b6d3c131eb8c1232bbfe499 100644 (file)
@@ -62,13 +62,13 @@ rs6000_pragma_longcall (cpp_reader *pfile ATTRIBUTE_UNUSED)
   if (c_lex (&x) != CPP_CLOSE_PAREN)
     SYNTAX_ERROR ("missing close paren");
 
-  if (n != integer_zero_node && n != integer_one_node)
+  if (!integer_zerop (n) && !integer_onep (n))
     SYNTAX_ERROR ("number must be 0 or 1");
 
   if (c_lex (&x) != CPP_EOF)
     warning ("junk at end of #pragma longcall");
 
-  rs6000_default_long_calls = (n == integer_one_node);
+  rs6000_default_long_calls = integer_onep (n);
 }
 
 /* Handle defining many CPP flags based on TARGET_xxx.  As a general