aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2013-09-15 09:44:29 +0000
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>2013-09-15 09:44:29 +0000
commit97191ad09302f458e7861f8680370985f19ffed5 (patch)
treedaf0d34336479c17c3125270287dcc33f10150a8
parentf8962cb214e655265010f946fb6a6f3117dffe31 (diff)
downloadgcc-97191ad09302f458e7861f8680370985f19ffed5.zip
gcc-97191ad09302f458e7861f8680370985f19ffed5.tar.gz
gcc-97191ad09302f458e7861f8680370985f19ffed5.tar.bz2
* config/vax/constraints.md (T): Add missing CONSTANT_P check.
From-SVN: r202600
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/vax/constraints.md5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1db5b27..097dbcd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/vax/constraints.md b/gcc/config/vax/constraints.md
index a4774d4..66d6bf0 100644
--- a/gcc/config/vax/constraints.md
+++ b/gcc/config/vax/constraints.md
@@ -114,5 +114,6 @@
(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"))))