aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2018-08-25 09:11:47 +0000
committerIain Sandoe <iains@gcc.gnu.org>2018-08-25 09:11:47 +0000
commitefa57feec8e47a9f6e4b62a21658f614b4aeb7d5 (patch)
tree42b31828426a232699b2568e13bf0140ada0d5bf /gcc/config/darwin.c
parentee959ecbdea8734034b0f5ee8be5eb48be9f5b8c (diff)
downloadgcc-efa57feec8e47a9f6e4b62a21658f614b4aeb7d5.zip
gcc-efa57feec8e47a9f6e4b62a21658f614b4aeb7d5.tar.gz
gcc-efa57feec8e47a9f6e4b62a21658f614b4aeb7d5.tar.bz2
Code clean-up on darwin.c
* config/darwin.c (machopic_legitimize_pic_address): Clean up extraneous parentheses, dead code section and formatting. From-SVN: r263851
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 233076a..aa2ef91 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -824,8 +824,7 @@ machopic_legitimize_pic_address (rtx orig, machine_mode mode, rtx reg)
/* First handle a simple SYMBOL_REF or LABEL_REF */
if (GET_CODE (orig) == LABEL_REF
- || (GET_CODE (orig) == SYMBOL_REF
- ))
+ || GET_CODE (orig) == SYMBOL_REF)
{
/* addr(foo) = &func+(foo-func) */
orig = machopic_indirect_data_reference (orig, reg);
@@ -1024,10 +1023,6 @@ machopic_legitimize_pic_address (rtx orig, machine_mode mode, rtx reg)
return pic_ref;
}
}
-
- else if (GET_CODE (orig) == SYMBOL_REF)
- return orig;
-
else if (GET_CODE (orig) == PLUS
&& (GET_CODE (XEXP (orig, 0)) == MEM
|| GET_CODE (XEXP (orig, 0)) == SYMBOL_REF
@@ -1057,12 +1052,10 @@ machopic_legitimize_pic_address (rtx orig, machine_mode mode, rtx reg)
}
/* Likewise, should we set special REG_NOTEs here? */
}
-
else if (GET_CODE (orig) == CONST)
{
return machopic_legitimize_pic_address (XEXP (orig, 0), Pmode, reg);
}
-
else if (GET_CODE (orig) == MEM
&& GET_CODE (XEXP (orig, 0)) == SYMBOL_REF)
{