Commit c167bc5b by David Edelsohn Committed by David Edelsohn

rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit lglobl if not weak.

        * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
        lglobl if not weak.

From-SVN: r202264
parent e3458796
2013-09-04 David Edelsohn <dje.gcc@gmail.com>
* config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
lglobl if not weak.
2013-09-04 Easwaran Raman <eraman@google.com> 2013-09-04 Easwaran Raman <eraman@google.com>
PR middle-end/57370 PR middle-end/57370
......
...@@ -2139,6 +2139,8 @@ extern int toc_initialized; ...@@ -2139,6 +2139,8 @@ extern int toc_initialized;
} \ } \
else if (TARGET_XCOFF) \ else if (TARGET_XCOFF) \
{ \ { \
if (!RS6000_WEAK || !DECL_WEAK (DECL)) \
{ \
fputs ("\t.lglobl\t.", FILE); \ fputs ("\t.lglobl\t.", FILE); \
RS6000_OUTPUT_BASENAME (FILE, alias); \ RS6000_OUTPUT_BASENAME (FILE, alias); \
putc ('\n', FILE); \ putc ('\n', FILE); \
...@@ -2146,6 +2148,7 @@ extern int toc_initialized; ...@@ -2146,6 +2148,7 @@ extern int toc_initialized;
RS6000_OUTPUT_BASENAME (FILE, alias); \ RS6000_OUTPUT_BASENAME (FILE, alias); \
putc ('\n', FILE); \ putc ('\n', FILE); \
} \ } \
} \
fputs ("\t.set\t.", FILE); \ fputs ("\t.set\t.", FILE); \
RS6000_OUTPUT_BASENAME (FILE, alias); \ RS6000_OUTPUT_BASENAME (FILE, alias); \
fputs (",.", FILE); \ fputs (",.", FILE); \
......
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