[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
This commit is contained in:
parent
d577ba8964
commit
967245d1f6
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user