summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-21 06:49:16 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-21 06:49:16 +0000
commit329f67aeceef041840cf7d3c3c5a715ccdae6e81 (patch)
tree5b9f618d9d0e30a5bb0b28e8547795314514cf27 /gcc/config/darwin.c
parent66ebfa671af5f4ba43964e7faee89b30a089193a (diff)
downloadgcc-329f67aeceef041840cf7d3c3c5a715ccdae6e81.tar.gz
* config/darwin.c (machopic_indirect_data_reference): Mark
stubs as defined. * config/386/386.c (darwin_local_data_pic): Add. (legitimate_constant_p): Reorder so that PLUS handling runs before darwin_local_data_pic to match the ordering in legitimate_pic_address_disp_p and so that MINUS runs after darwin_local_data_pic as otherwise the darwin_local_data_pic logic can be skipped, which would be very bad. (legitimate_pic_address_disp_p): Move from from here to darwin_local_data_pic so it can be reused. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86355 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index d34dcfe411d..44c8539f9b7 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -455,13 +455,14 @@ machopic_indirect_data_reference (rtx orig, rtx reg)
return orig;
}
- ptr_ref = (gen_rtx_SYMBOL_REF
+ ptr_ref = (gen_rtx_SYMBOL_REF
(Pmode,
machopic_indirection_name (orig, /*stub_p=*/false)));
SYMBOL_REF_DECL (ptr_ref) = SYMBOL_REF_DECL (orig);
ptr_ref = gen_const_mem (Pmode, ptr_ref);
+ machopic_define_symbol (ptr_ref);
return ptr_ref;
}