Commit c4ad648e by Alan Modra Committed by Alan Modra

linux.h: Formatting, whitespace.

	* config/rs6000/linux.h: Formatting, whitespace.
	* config/rs6000/linux64.h: Likewise.
	* config/rs6000/rs6000-protos.h: Likewise.
	* config/rs6000/rs6000.c: Likewise.
	(easy_vector_splat_const): Add fall thru comments.
	(output_vec_const_move): Likewise.

From-SVN: r88551
parent 406176be
2004-10-05 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/linux.h: Formatting, whitespace.
* config/rs6000/linux64.h: Likewise.
* config/rs6000/rs6000-protos.h: Likewise.
* config/rs6000/rs6000.c: Likewise.
(easy_vector_splat_const): Add fall thru comments.
(output_vec_const_move): Likewise.
2004-10-05 Kelley Cook <kcook@gcc.gnu.org> 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.in: Update -Wno-error exceptions for move to build dir. * Makefile.in: Update -Wno-error exceptions for move to build dir.
......
...@@ -33,15 +33,15 @@ ...@@ -33,15 +33,15 @@
#define TARGET_C99_FUNCTIONS 1 #define TARGET_C99_FUNCTIONS 1
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define_std ("PPC"); \ builtin_define_std ("PPC"); \
builtin_define_std ("powerpc"); \ builtin_define_std ("powerpc"); \
builtin_assert ("cpu=powerpc"); \ builtin_assert ("cpu=powerpc"); \
builtin_assert ("machine=powerpc"); \ builtin_assert ("machine=powerpc"); \
TARGET_OS_SYSV_CPP_BUILTINS (); \ TARGET_OS_SYSV_CPP_BUILTINS (); \
} \ } \
while (0) while (0)
#undef CPP_OS_DEFAULT_SPEC #undef CPP_OS_DEFAULT_SPEC
......
...@@ -100,7 +100,7 @@ extern int dot_symbols; ...@@ -100,7 +100,7 @@ extern int dot_symbols;
target_flags &= ~MASK_PROTOTYPE; \ target_flags &= ~MASK_PROTOTYPE; \
error (INVALID_64BIT, "prototype"); \ error (INVALID_64BIT, "prototype"); \
} \ } \
if ((target_flags & MASK_POWERPC64) == 0) \ if ((target_flags & MASK_POWERPC64) == 0) \
{ \ { \
target_flags |= MASK_POWERPC64; \ target_flags |= MASK_POWERPC64; \
error ("-m64 requires a PowerPC64 cpu"); \ error ("-m64 requires a PowerPC64 cpu"); \
...@@ -134,16 +134,16 @@ extern int dot_symbols; ...@@ -134,16 +134,16 @@ extern int dot_symbols;
#ifndef RS6000_BI_ARCH #ifndef RS6000_BI_ARCH
#define ASM_DEFAULT_SPEC "-mppc64" #define ASM_DEFAULT_SPEC "-mppc64"
#define ASM_SPEC "%(asm_spec64) %(asm_spec_common)" #define ASM_SPEC "%(asm_spec64) %(asm_spec_common)"
#define LINK_OS_LINUX_SPEC "%(link_os_linux_spec64)" #define LINK_OS_LINUX_SPEC "%(link_os_linux_spec64)"
#else #else
#if DEFAULT_ARCH64_P #if DEFAULT_ARCH64_P
#define ASM_DEFAULT_SPEC "-mppc%{!m32:64}" #define ASM_DEFAULT_SPEC "-mppc%{!m32:64}"
#define ASM_SPEC "%{m32:%(asm_spec32)}%{!m32:%(asm_spec64)} %(asm_spec_common)" #define ASM_SPEC "%{m32:%(asm_spec32)}%{!m32:%(asm_spec64)} %(asm_spec_common)"
#define LINK_OS_LINUX_SPEC "%{m32:%(link_os_linux_spec32)}%{!m32:%(link_os_linux_spec64)}" #define LINK_OS_LINUX_SPEC "%{m32:%(link_os_linux_spec32)}%{!m32:%(link_os_linux_spec64)}"
#else #else
#define ASM_DEFAULT_SPEC "-mppc%{m64:64}" #define ASM_DEFAULT_SPEC "-mppc%{m64:64}"
#define ASM_SPEC "%{!m64:%(asm_spec32)}%{m64:%(asm_spec64)} %(asm_spec_common)" #define ASM_SPEC "%{!m64:%(asm_spec32)}%{m64:%(asm_spec64)} %(asm_spec_common)"
#define LINK_OS_LINUX_SPEC "%{!m64:%(link_os_linux_spec32)}%{m64:%(link_os_linux_spec64)}" #define LINK_OS_LINUX_SPEC "%{!m64:%(link_os_linux_spec32)}%{m64:%(link_os_linux_spec64)}"
#endif #endif
#endif #endif
...@@ -296,7 +296,7 @@ extern int dot_symbols; ...@@ -296,7 +296,7 @@ extern int dot_symbols;
#define TARGET_C99_FUNCTIONS 1 #define TARGET_C99_FUNCTIONS 1
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
if (TARGET_64BIT) \ if (TARGET_64BIT) \
......
...@@ -138,7 +138,7 @@ extern void rs6000_split_multireg_move (rtx, rtx); ...@@ -138,7 +138,7 @@ extern void rs6000_split_multireg_move (rtx, rtx);
extern void rs6000_emit_move (rtx, rtx, enum machine_mode); extern void rs6000_emit_move (rtx, rtx, enum machine_mode);
extern rtx rs6000_legitimize_address (rtx, rtx, enum machine_mode); extern rtx rs6000_legitimize_address (rtx, rtx, enum machine_mode);
extern rtx rs6000_legitimize_reload_address (rtx, enum machine_mode, extern rtx rs6000_legitimize_reload_address (rtx, enum machine_mode,
int, int, int, int *); int, int, int, int *);
extern int rs6000_legitimate_address (enum machine_mode, rtx, int); extern int rs6000_legitimate_address (enum machine_mode, rtx, int);
extern bool rs6000_mode_dependent_address (rtx); extern bool rs6000_mode_dependent_address (rtx);
extern rtx rs6000_return_addr (int, rtx); extern rtx rs6000_return_addr (int, rtx);
...@@ -146,20 +146,21 @@ extern void rs6000_output_symbol_ref (FILE*, rtx); ...@@ -146,20 +146,21 @@ extern void rs6000_output_symbol_ref (FILE*, rtx);
extern HOST_WIDE_INT rs6000_initial_elimination_offset (int, int); extern HOST_WIDE_INT rs6000_initial_elimination_offset (int, int);
extern bool rs6000_legitimate_offset_address_p (enum machine_mode, rtx, int); extern bool rs6000_legitimate_offset_address_p (enum machine_mode, rtx, int);
extern rtx rs6000_machopic_legitimize_pic_address (rtx orig, extern rtx rs6000_machopic_legitimize_pic_address (rtx orig,
enum machine_mode mode, rtx reg); enum machine_mode mode,
rtx reg);
#endif /* RTX_CODE */ #endif /* RTX_CODE */
#ifdef TREE_CODE #ifdef TREE_CODE
extern unsigned int rs6000_special_round_type_align (tree, int, int); extern unsigned int rs6000_special_round_type_align (tree, int, int);
extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
tree, int); tree, int);
extern int function_arg_boundary (enum machine_mode, tree); extern int function_arg_boundary (enum machine_mode, tree);
extern struct rtx_def *function_arg (CUMULATIVE_ARGS *, extern struct rtx_def *function_arg (CUMULATIVE_ARGS *,
enum machine_mode, tree, int); enum machine_mode, tree, int);
extern int function_arg_partial_nregs (CUMULATIVE_ARGS *, extern int function_arg_partial_nregs (CUMULATIVE_ARGS *,
enum machine_mode, tree, int); enum machine_mode, tree, int);
extern rtx rs6000_function_value (tree, tree); extern rtx rs6000_function_value (tree, tree);
extern rtx rs6000_libcall_value (enum machine_mode); extern rtx rs6000_libcall_value (enum machine_mode);
extern struct rtx_def *rs6000_va_arg (tree, tree); extern struct rtx_def *rs6000_va_arg (tree, tree);
...@@ -199,7 +200,7 @@ extern void rs6000_emit_eh_reg_restore (rtx, rtx); ...@@ -199,7 +200,7 @@ extern void rs6000_emit_eh_reg_restore (rtx, rtx);
extern const char * output_isel (rtx *); extern const char * output_isel (rtx *);
extern int vrsave_operation (rtx, enum machine_mode); extern int vrsave_operation (rtx, enum machine_mode);
extern int rs6000_register_move_cost (enum machine_mode, extern int rs6000_register_move_cost (enum machine_mode,
enum reg_class, enum reg_class); enum reg_class, enum reg_class);
extern int rs6000_memory_move_cost (enum machine_mode, enum reg_class, int); extern int rs6000_memory_move_cost (enum machine_mode, enum reg_class, int);
extern bool rs6000_tls_referenced_p (rtx); extern bool rs6000_tls_referenced_p (rtx);
extern int rs6000_tls_symbol_ref (rtx, enum machine_mode); extern int rs6000_tls_symbol_ref (rtx, enum machine_mode);
......
...@@ -147,7 +147,7 @@ extern const char *rs6000_tls_size_string; /* For -mtls-size= */ ...@@ -147,7 +147,7 @@ extern const char *rs6000_tls_size_string; /* For -mtls-size= */
N_("Link with libmvme.a, libc.a and crt0.o") }, \ N_("Link with libmvme.a, libc.a and crt0.o") }, \
{ "emb", 0, \ { "emb", 0, \
N_("Set the PPC_EMB bit in the ELF flags header") }, \ N_("Set the PPC_EMB bit in the ELF flags header") }, \
{ "windiss", 0, N_("Use the WindISS simulator") }, \ { "windiss", 0, N_("Use the WindISS simulator") }, \
{ "shlib", 0, N_("no description yet") }, \ { "shlib", 0, N_("no description yet") }, \
{ "64", MASK_64BIT | MASK_POWERPC64 | MASK_POWERPC, \ { "64", MASK_64BIT | MASK_POWERPC64 | MASK_POWERPC, \
N_("Generate 64-bit code") }, \ N_("Generate 64-bit code") }, \
...@@ -420,9 +420,9 @@ do { \ ...@@ -420,9 +420,9 @@ do { \
usual way is COMPUTED and the alignment explicitly specified was usual way is COMPUTED and the alignment explicitly specified was
SPECIFIED. */ SPECIFIED. */
#define ROUND_TYPE_ALIGN(TYPE, COMPUTED, SPECIFIED) \ #define ROUND_TYPE_ALIGN(TYPE, COMPUTED, SPECIFIED) \
((TARGET_ALTIVEC && TREE_CODE (TYPE) == VECTOR_TYPE) \ ((TARGET_ALTIVEC && TREE_CODE (TYPE) == VECTOR_TYPE) \
? MAX (MAX ((COMPUTED), (SPECIFIED)), 128) \ ? MAX (MAX ((COMPUTED), (SPECIFIED)), 128) \
: MAX (COMPUTED, SPECIFIED)) : MAX (COMPUTED, SPECIFIED))
#undef BIGGEST_FIELD_ALIGNMENT #undef BIGGEST_FIELD_ALIGNMENT
...@@ -776,38 +776,38 @@ extern int fixuplabelno; ...@@ -776,38 +776,38 @@ extern int fixuplabelno;
#define TARGET_VERSION fprintf (stderr, " (PowerPC System V.4)"); #define TARGET_VERSION fprintf (stderr, " (PowerPC System V.4)");
#endif #endif
#define TARGET_OS_SYSV_CPP_BUILTINS() \ #define TARGET_OS_SYSV_CPP_BUILTINS() \
do \ do \
{ \ { \
if (flag_pic == 1) \ if (flag_pic == 1) \
{ \ { \
builtin_define ("__pic__=1"); \ builtin_define ("__pic__=1"); \
builtin_define ("__PIC__=1"); \ builtin_define ("__PIC__=1"); \
} \ } \
else if (flag_pic == 2) \ else if (flag_pic == 2) \
{ \ { \
builtin_define ("__pic__=2"); \ builtin_define ("__pic__=2"); \
builtin_define ("__PIC__=2"); \ builtin_define ("__PIC__=2"); \
} \ } \
if (target_flags_explicit \ if (target_flags_explicit \
& MASK_RELOCATABLE) \ & MASK_RELOCATABLE) \
builtin_define ("_RELOCATABLE"); \ builtin_define ("_RELOCATABLE"); \
} \ } \
while (0) while (0)
#ifndef TARGET_OS_CPP_BUILTINS #ifndef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define_std ("PPC"); \ builtin_define_std ("PPC"); \
builtin_define_std ("unix"); \ builtin_define_std ("unix"); \
builtin_define ("__svr4__"); \ builtin_define ("__svr4__"); \
builtin_assert ("system=unix"); \ builtin_assert ("system=unix"); \
builtin_assert ("system=svr4"); \ builtin_assert ("system=svr4"); \
builtin_assert ("cpu=powerpc"); \ builtin_assert ("cpu=powerpc"); \
builtin_assert ("machine=powerpc"); \ builtin_assert ("machine=powerpc"); \
TARGET_OS_SYSV_CPP_BUILTINS (); \ TARGET_OS_SYSV_CPP_BUILTINS (); \
} \ } \
while (0) while (0)
#endif #endif
...@@ -1239,7 +1239,7 @@ ncrtn.o%s" ...@@ -1239,7 +1239,7 @@ ncrtn.o%s"
/* Override rs6000.h definition. */ /* Override rs6000.h definition. */
#undef SUBTARGET_EXTRA_SPECS #undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \ #define SUBTARGET_EXTRA_SPECS \
{ "crtsavres_default", CRTSAVRES_DEFAULT_SPEC }, \ { "crtsavres_default", CRTSAVRES_DEFAULT_SPEC }, \
{ "lib_ads", LIB_ADS_SPEC }, \ { "lib_ads", LIB_ADS_SPEC }, \
{ "lib_yellowknife", LIB_YELLOWKNIFE_SPEC }, \ { "lib_yellowknife", LIB_YELLOWKNIFE_SPEC }, \
{ "lib_mvme", LIB_MVME_SPEC }, \ { "lib_mvme", LIB_MVME_SPEC }, \
...@@ -1249,7 +1249,7 @@ ncrtn.o%s" ...@@ -1249,7 +1249,7 @@ ncrtn.o%s"
{ "lib_linux", LIB_LINUX_SPEC }, \ { "lib_linux", LIB_LINUX_SPEC }, \
{ "lib_netbsd", LIB_NETBSD_SPEC }, \ { "lib_netbsd", LIB_NETBSD_SPEC }, \
{ "lib_openbsd", LIB_OPENBSD_SPEC }, \ { "lib_openbsd", LIB_OPENBSD_SPEC }, \
{ "lib_windiss", LIB_WINDISS_SPEC }, \ { "lib_windiss", LIB_WINDISS_SPEC }, \
{ "lib_default", LIB_DEFAULT_SPEC }, \ { "lib_default", LIB_DEFAULT_SPEC }, \
{ "startfile_ads", STARTFILE_ADS_SPEC }, \ { "startfile_ads", STARTFILE_ADS_SPEC }, \
{ "startfile_yellowknife", STARTFILE_YELLOWKNIFE_SPEC }, \ { "startfile_yellowknife", STARTFILE_YELLOWKNIFE_SPEC }, \
...@@ -1260,7 +1260,7 @@ ncrtn.o%s" ...@@ -1260,7 +1260,7 @@ ncrtn.o%s"
{ "startfile_linux", STARTFILE_LINUX_SPEC }, \ { "startfile_linux", STARTFILE_LINUX_SPEC }, \
{ "startfile_netbsd", STARTFILE_NETBSD_SPEC }, \ { "startfile_netbsd", STARTFILE_NETBSD_SPEC }, \
{ "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \ { "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \
{ "startfile_windiss", STARTFILE_WINDISS_SPEC }, \ { "startfile_windiss", STARTFILE_WINDISS_SPEC }, \
{ "startfile_default", STARTFILE_DEFAULT_SPEC }, \ { "startfile_default", STARTFILE_DEFAULT_SPEC }, \
{ "endfile_ads", ENDFILE_ADS_SPEC }, \ { "endfile_ads", ENDFILE_ADS_SPEC }, \
{ "endfile_yellowknife", ENDFILE_YELLOWKNIFE_SPEC }, \ { "endfile_yellowknife", ENDFILE_YELLOWKNIFE_SPEC }, \
...@@ -1271,7 +1271,7 @@ ncrtn.o%s" ...@@ -1271,7 +1271,7 @@ ncrtn.o%s"
{ "endfile_linux", ENDFILE_LINUX_SPEC }, \ { "endfile_linux", ENDFILE_LINUX_SPEC }, \
{ "endfile_netbsd", ENDFILE_NETBSD_SPEC }, \ { "endfile_netbsd", ENDFILE_NETBSD_SPEC }, \
{ "endfile_openbsd", ENDFILE_OPENBSD_SPEC }, \ { "endfile_openbsd", ENDFILE_OPENBSD_SPEC }, \
{ "endfile_windiss", ENDFILE_WINDISS_SPEC }, \ { "endfile_windiss", ENDFILE_WINDISS_SPEC }, \
{ "endfile_default", ENDFILE_DEFAULT_SPEC }, \ { "endfile_default", ENDFILE_DEFAULT_SPEC }, \
{ "link_path", LINK_PATH_SPEC }, \ { "link_path", LINK_PATH_SPEC }, \
{ "link_shlib", LINK_SHLIB_SPEC }, \ { "link_shlib", LINK_SHLIB_SPEC }, \
...@@ -1312,7 +1312,7 @@ ncrtn.o%s" ...@@ -1312,7 +1312,7 @@ ncrtn.o%s"
{ "cpp_os_linux", CPP_OS_LINUX_SPEC }, \ { "cpp_os_linux", CPP_OS_LINUX_SPEC }, \
{ "cpp_os_netbsd", CPP_OS_NETBSD_SPEC }, \ { "cpp_os_netbsd", CPP_OS_NETBSD_SPEC }, \
{ "cpp_os_openbsd", CPP_OS_OPENBSD_SPEC }, \ { "cpp_os_openbsd", CPP_OS_OPENBSD_SPEC }, \
{ "cpp_os_windiss", CPP_OS_WINDISS_SPEC }, \ { "cpp_os_windiss", CPP_OS_WINDISS_SPEC }, \
{ "cpp_os_default", CPP_OS_DEFAULT_SPEC }, \ { "cpp_os_default", CPP_OS_DEFAULT_SPEC }, \
{ "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }, \ { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }, \
SUBSUBTARGET_EXTRA_SPECS SUBSUBTARGET_EXTRA_SPECS
......
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