Commit c40e5172 by Jeff Sturm Committed by Jeff Sturm

re PR target/9210 ([gcc-3.3] bootstrap error in libffi building nof libs)

PR target/9210
* config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
Set SYMBOL_REF_FLAG on local data sym_ref.

From-SVN: r61064
parent de62b72c
2003-01-08 Jeff Sturm <jsturm@one-point.com>
PR target/9210
* config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
Set SYMBOL_REF_FLAG on local data sym_ref.
2003-01-08 Dale Johannesen <dalej@apple.com> 2003-01-08 Dale Johannesen <dalej@apple.com>
* function.c (assign_parms): Don't set pretend_args_size if * function.c (assign_parms): Don't set pretend_args_size if
......
...@@ -12562,11 +12562,15 @@ rs6000_elf_encode_section_info (decl, first) ...@@ -12562,11 +12562,15 @@ rs6000_elf_encode_section_info (decl, first)
&& DEFAULT_ABI == ABI_V4 && DEFAULT_ABI == ABI_V4
&& TREE_CODE (decl) == VAR_DECL) && TREE_CODE (decl) == VAR_DECL)
{ {
rtx sym_ref = XEXP (DECL_RTL (decl), 0);
int size = int_size_in_bytes (TREE_TYPE (decl)); int size = int_size_in_bytes (TREE_TYPE (decl));
tree section_name = DECL_SECTION_NAME (decl); tree section_name = DECL_SECTION_NAME (decl);
const char *name = (char *)0; const char *name = (char *)0;
int len = 0; int len = 0;
if ((*targetm.binds_local_p) (decl))
SYMBOL_REF_FLAG (sym_ref) = 1;
if (section_name) if (section_name)
{ {
if (TREE_CODE (section_name) == STRING_CST) if (TREE_CODE (section_name) == STRING_CST)
...@@ -12593,7 +12597,6 @@ rs6000_elf_encode_section_info (decl, first) ...@@ -12593,7 +12597,6 @@ rs6000_elf_encode_section_info (decl, first)
|| (len == sizeof (".PPC.EMB.sbss0") - 1 || (len == sizeof (".PPC.EMB.sbss0") - 1
&& strcmp (name, ".PPC.EMB.sbss0") == 0)))) && strcmp (name, ".PPC.EMB.sbss0") == 0))))
{ {
rtx sym_ref = XEXP (DECL_RTL (decl), 0);
size_t len = strlen (XSTR (sym_ref, 0)); size_t len = strlen (XSTR (sym_ref, 0));
char *str = alloca (len + 2); char *str = alloca (len + 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment