OSDN Git Service

ChangeLog:
[pf3gnuchains/gcc-fork.git] / gcc / config / s390 / predicates.md
index de6e796..5f9e8d4 100644 (file)
@@ -62,7 +62,8 @@
 ;; Allow SYMBOL_REFs and @PLT stubs.
 
 (define_special_predicate "bras_sym_operand"
-  (ior (match_code "symbol_ref")
+  (ior (and (match_code "symbol_ref")
+           (match_test "!flag_pic || SYMBOL_REF_LOCAL_P (op)"))
        (and (match_code "const")
            (and (match_test "GET_CODE (XEXP (op, 0)) == UNSPEC")
                 (match_test "XINT (XEXP (op, 0), 1) == UNSPEC_PLT")))))