* config/vax/constraints.md (T): Add missing CONSTANT_P check.
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Sun, 15 Sep 2013 09:44:29 +0000 (09:44 +0000)
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>
Sun, 15 Sep 2013 09:44:29 +0000 (09:44 +0000)
From-SVN: r202600

gcc/ChangeLog
gcc/config/vax/constraints.md

index 1db5b273c5c84a2c9192349082e0710be3e65c2f..097dbcd42bd4beb284ce6e2a5df6962488a711a9 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
+
+       * config/vax/constraints.md (T): Add missing CONSTANT_P check.
+
 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
 
        PR target/58382
index a4774d4d5759316bf2b763dc48be63d98fcfb6ed..66d6bf07f3867a263684650faea1336622b9a1cd 100644 (file)
 
 (define_constraint "T"
     "@internal satisfies CONSTANT_P and, if pic is enabled, is not a SYMBOL_REF, LABEL_REF, or CONST."
-   (ior (not (match_code "const,symbol_ref,label_ref"))
-       (match_test "!flag_pic")))
+  (and (match_test ("CONSTANT_P (op)"))
+       (ior (not (match_code "symbol_ref,label_ref,const"))
+           (match_test "!flag_pic"))))