diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2006-10-23 13:38:50 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2006-10-23 13:38:50 +0000 |
commit | 6915c1cea268ed78af4db03fe631e927d63fdf0c (patch) | |
tree | eb6ff9a62aaa3a30a0283ef270a97f90d5e21443 /gcc/config | |
parent | b0cd88d2161d4b0ba7e0f80a645379c888790463 (diff) | |
download | gcc-6915c1cea268ed78af4db03fe631e927d63fdf0c.zip gcc-6915c1cea268ed78af4db03fe631e927d63fdf0c.tar.gz gcc-6915c1cea268ed78af4db03fe631e927d63fdf0c.tar.bz2 |
predicates.md ("bras_sym_operand"): Do not accept nonlocal function symbols if flag_pic.
ChangeLog:
* config/s390/predicates.md ("bras_sym_operand"): Do not accept
nonlocal function symbols if flag_pic.
testsuite/ChangeLog:
* g++.dg/other/s390-1.C: New testcase.
From-SVN: r117973
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/s390/predicates.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/s390/predicates.md b/gcc/config/s390/predicates.md index de6e796..5f9e8d4 100644 --- a/gcc/config/s390/predicates.md +++ b/gcc/config/s390/predicates.md @@ -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"))))) |