diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mep/mep.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c85c486..752b1a7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-09-10 Nick Clifton <nickc@redhat.com> + + * config/mep/mep.c (mep_encode_section_info): Copy weakness + attribute and referring decl when creating renamed symbol. + 2009-09-10 Richard Guenther <rguenther@suse.de> PR middle-end/41257 diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index efed4b6..80d3995 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -4564,6 +4564,8 @@ mep_encode_section_info (tree decl, rtx rtl, int first) idp = get_identifier (newname); XEXP (rtl, 0) = gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (idp)); + SYMBOL_REF_WEAK (XEXP (rtl, 0)) = DECL_WEAK (decl); + SET_SYMBOL_REF_DECL (XEXP (rtl, 0), decl); switch (encoding) { |