aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-05-04 22:51:01 +0930
committerAlan Modra <amodra@gcc.gnu.org>2016-05-04 22:51:01 +0930
commit967245d1f63076dde846f0201a0fba05c334a3e6 (patch)
treebd4f250e946db86a56518417ac86f36eee11a47b /gcc
parentd577ba89642ebb5701d6e2ca7aaf31de2a427794 (diff)
downloadgcc-967245d1f63076dde846f0201a0fba05c334a3e6.zip
gcc-967245d1f63076dde846f0201a0fba05c334a3e6.tar.gz
gcc-967245d1f63076dde846f0201a0fba05c334a3e6.tar.bz2
[RS6000] Simplify sysv4.h TARGET_TOC
We can use the TARGET_* defines here. There isn't any reason to use the underlying variable and masks. Also, TARGET_RELOCATABLE implies TARGET_MINIMAL_TOC, so there is no need to test TARGET_RELOCATABLE. * config/rs6000/sysv4.h (TARGET_TOC): Simplify. From-SVN: r235875
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog1
-rw-r--r--gcc/config/rs6000/sysv4.h6
2 files changed, 3 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f339b0ec..a097aee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,6 @@
2016-05-04 Alan Modra <amodra@gmail.com>
+ * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
* config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
Align .toc.
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index cbf9097..af9fe1a 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -40,10 +40,8 @@
#undef ASM_DEFAULT_SPEC
#define ASM_DEFAULT_SPEC "-mppc"
-#define TARGET_TOC ((rs6000_isa_flags & OPTION_MASK_64BIT) \
- || ((rs6000_isa_flags \
- & (OPTION_MASK_RELOCATABLE \
- | OPTION_MASK_MINIMAL_TOC)) \
+#define TARGET_TOC (TARGET_64BIT \
+ || (TARGET_MINIMAL_TOC \
&& flag_pic > 1) \
|| DEFAULT_ABI != ABI_V4)