aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-07-05 18:26:26 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-07-05 18:26:26 +0000
commit9eb5f744ae21f805a1e5b80aabc6d86306f3b3d7 (patch)
tree261d80d92786b0fe7a2228aac806775fbfb6f6a9 /gcc
parent26f8363d85fd386430ddb612a2e70624715c2ac3 (diff)
downloadgcc-9eb5f744ae21f805a1e5b80aabc6d86306f3b3d7.zip
gcc-9eb5f744ae21f805a1e5b80aabc6d86306f3b3d7.tar.gz
gcc-9eb5f744ae21f805a1e5b80aabc6d86306f3b3d7.tar.bz2
[Darwin.PPC] Remove dead code.
TARGET_LINK_STACK is unused on Darwin, and only relevant to a processor on which the port was never released. 2019-07-05 Iain Sandoe <iain@sandoe.co.uk> * config/rs6000/rs6000-logue.c: Remove unused code. From-SVN: r273148
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/rs6000-logue.c23
2 files changed, 9 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7b1109b..00a01c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
+
+ * config/rs6000/rs6000-logue.c: Remove unused code.
+
2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
diff --git a/gcc/config/rs6000/rs6000-logue.c b/gcc/config/rs6000/rs6000-logue.c
index 3fe6230..8454f96 100644
--- a/gcc/config/rs6000/rs6000-logue.c
+++ b/gcc/config/rs6000/rs6000-logue.c
@@ -5100,24 +5100,11 @@ macho_branch_islands (void)
#endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */
if (flag_pic)
{
- if (TARGET_LINK_STACK)
- {
- char name[32];
- get_ppc476_thunk_name (name);
- strcat (tmp_buf, ":\n\tmflr r0\n\tbl ");
- strcat (tmp_buf, name);
- strcat (tmp_buf, "\n");
- strcat (tmp_buf, label);
- strcat (tmp_buf, "_pic:\n\tmflr r11\n");
- }
- else
- {
- strcat (tmp_buf, ":\n\tmflr r0\n\tbcl 20,31,");
- strcat (tmp_buf, label);
- strcat (tmp_buf, "_pic\n");
- strcat (tmp_buf, label);
- strcat (tmp_buf, "_pic:\n\tmflr r11\n");
- }
+ strcat (tmp_buf, ":\n\tmflr r0\n\tbcl 20,31,");
+ strcat (tmp_buf, label);
+ strcat (tmp_buf, "_pic\n");
+ strcat (tmp_buf, label);
+ strcat (tmp_buf, "_pic:\n\tmflr r11\n");
strcat (tmp_buf, "\taddis r11,r11,ha16(");
strcat (tmp_buf, name_buf);