S/390: Fix whitespace problems in the backend
2018-08-08 Andreas Krebbel <krebbel@linux.ibm.com> * config/s390/s390.c: Fix whitespace damage throughout the file. * config/s390/s390.h: Likewise. * config/s390/tpf.h: Likewise. From-SVN: r263395
This commit is contained in:
parent
8cc6307c88
commit
0ff3dcd61a
4 changed files with 399 additions and 393 deletions
|
@ -1,3 +1,9 @@
|
|||
2018-08-08 Andreas Krebbel <krebbel@linux.ibm.com>
|
||||
|
||||
* config/s390/s390.c: Fix whitespace damage throughout the file.
|
||||
* config/s390/s390.h: Likewise.
|
||||
* config/s390/tpf.h: Likewise.
|
||||
|
||||
2018-08-08 Ilya Leoshkevich <iii@linux.ibm.com>
|
||||
|
||||
* config/s390/s390.c (s390_loadrelative_operand_p):
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,8 +1,8 @@
|
|||
/* Definitions of target machine for GNU compiler, for IBM S/390
|
||||
Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
||||
Contributed by Hartmut Penner (hpenner@de.ibm.com) and
|
||||
Ulrich Weigand (uweigand@de.ibm.com).
|
||||
Andreas Krebbel (Andreas.Krebbel@de.ibm.com)
|
||||
Ulrich Weigand (uweigand@de.ibm.com).
|
||||
Andreas Krebbel (Andreas.Krebbel@de.ibm.com)
|
||||
|
||||
This file is part of GCC.
|
||||
|
||||
|
@ -202,13 +202,13 @@ enum processor_flags
|
|||
|
||||
#ifdef DEFAULT_TARGET_64BIT
|
||||
#define TARGET_DEFAULT (MASK_64BIT | MASK_ZARCH | MASK_HARD_DFP \
|
||||
| MASK_OPT_HTM | MASK_OPT_VX)
|
||||
| MASK_OPT_HTM | MASK_OPT_VX)
|
||||
#else
|
||||
#define TARGET_DEFAULT 0
|
||||
#endif
|
||||
|
||||
/* Support for configure-time defaults. */
|
||||
#define OPTION_DEFAULT_SPECS \
|
||||
#define OPTION_DEFAULT_SPECS \
|
||||
{ "mode", "%{!mesa:%{!mzarch:-m%(VALUE)}}" }, \
|
||||
{ "arch", "%{!march=*:-march=%(VALUE)}" }, \
|
||||
{ "tune", "%{!mtune=*:%{!march=*:-mtune=%(VALUE)}}" }
|
||||
|
@ -261,10 +261,10 @@ extern const char *s390_host_detect_local_cpu (int argc, const char **argv);
|
|||
|
||||
/* For signbit, the BFP-DFP-difference makes no difference. */
|
||||
#define S390_TDC_SIGNBIT_SET (S390_TDC_NEGATIVE_ZERO \
|
||||
| S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER \
|
||||
| S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER\
|
||||
| S390_TDC_NEGATIVE_INFINITY \
|
||||
| S390_TDC_NEGATIVE_QUIET_NAN \
|
||||
| S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER \
|
||||
| S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER\
|
||||
| S390_TDC_NEGATIVE_INFINITY \
|
||||
| S390_TDC_NEGATIVE_QUIET_NAN \
|
||||
| S390_TDC_NEGATIVE_SIGNALING_NAN )
|
||||
|
||||
#define S390_TDC_INFINITY (S390_TDC_POSITIVE_INFINITY \
|
||||
|
@ -418,51 +418,51 @@ extern const char *s390_host_detect_local_cpu (int argc, const char **argv);
|
|||
All non-FP vector registers are call-clobbered v16-v31. */
|
||||
|
||||
#define FIXED_REGISTERS \
|
||||
{ 0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
{ 0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 1, 1, 1, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 0, 0, 0 }
|
||||
|
||||
#define CALL_USED_REGISTERS \
|
||||
{ 1, 1, 1, 1, \
|
||||
1, 1, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
{ 1, 1, 1, 1, \
|
||||
1, 1, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
0, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1 }
|
||||
|
||||
#define CALL_REALLY_USED_REGISTERS \
|
||||
{ 1, 1, 1, 1, /* r0 - r15 */ \
|
||||
1, 1, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
{ 1, 1, 1, 1, /* r0 - r15 */ \
|
||||
1, 1, 0, 0, \
|
||||
0, 0, 0, 0, \
|
||||
1, 1, 1, 1, /* f0 (16) - f15 (31) */ \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, /* arg, cc, fp, ret addr */ \
|
||||
0, 0, /* a0 (36), a1 (37) */ \
|
||||
1, 1, 1, 1, /* v16 (38) - v23 (45) */ \
|
||||
0, 0, 0, 0, \
|
||||
1, 1, 1, 1, /* f0 (16) - f15 (31) */ \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, /* v24 (46) - v31 (53) */ \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, /* arg, cc, fp, ret addr */ \
|
||||
0, 0, /* a0 (36), a1 (37) */ \
|
||||
1, 1, 1, 1, /* v16 (38) - v23 (45) */ \
|
||||
1, 1, 1, 1, \
|
||||
1, 1, 1, 1, /* v24 (46) - v31 (53) */ \
|
||||
1, 1, 1, 1 }
|
||||
|
||||
/* Preferred register allocation order. */
|
||||
|
@ -470,7 +470,7 @@ extern const char *s390_host_detect_local_cpu (int argc, const char **argv);
|
|||
{ 1, 2, 3, 4, 5, 0, 12, 11, 10, 9, 8, 7, 6, 14, 13, \
|
||||
16, 17, 18, 19, 20, 21, 22, 23, \
|
||||
24, 25, 26, 27, 28, 29, 30, 31, \
|
||||
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, \
|
||||
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, \
|
||||
15, 32, 33, 34, 35, 36, 37 }
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@ extern const char *s390_host_detect_local_cpu (int argc, const char **argv);
|
|||
|
||||
/* Maximum number of registers to represent a value of mode MODE
|
||||
in a register of class CLASS. */
|
||||
#define CLASS_MAX_NREGS(CLASS, MODE) \
|
||||
#define CLASS_MAX_NREGS(CLASS, MODE) \
|
||||
s390_class_max_nregs ((CLASS), (MODE))
|
||||
|
||||
/* We can reverse a CC mode safely if we know whether it comes from a
|
||||
|
@ -499,7 +499,7 @@ extern const char *s390_host_detect_local_cpu (int argc, const char **argv);
|
|||
/* We use the following register classes:
|
||||
GENERAL_REGS All general purpose registers
|
||||
ADDR_REGS All general purpose registers except %r0
|
||||
(These registers can be used in address generation)
|
||||
(These registers can be used in address generation)
|
||||
FP_REGS All floating point registers
|
||||
CC_REGS The condition code register
|
||||
ACCESS_REGS The access registers
|
||||
|
@ -573,8 +573,8 @@ extern const enum reg_class regclass_map[FIRST_PSEUDO_REGISTER];
|
|||
/* Check whether REGNO is a hard register of the suitable class
|
||||
or a pseudo register currently allocated to one such. */
|
||||
#define REGNO_OK_FOR_INDEX_P(REGNO) \
|
||||
(((REGNO) < FIRST_PSEUDO_REGISTER \
|
||||
&& REGNO_REG_CLASS ((REGNO)) == ADDR_REGS) \
|
||||
(((REGNO) < FIRST_PSEUDO_REGISTER \
|
||||
&& REGNO_REG_CLASS ((REGNO)) == ADDR_REGS) \
|
||||
|| ADDR_REGNO_P (reg_renumber[REGNO]))
|
||||
#define REGNO_OK_FOR_BASE_P(REGNO) REGNO_OK_FOR_INDEX_P (REGNO)
|
||||
|
||||
|
@ -745,7 +745,7 @@ CUMULATIVE_ARGS;
|
|||
|
||||
/* Profiling. */
|
||||
|
||||
#define FUNCTION_PROFILER(FILE, LABELNO) \
|
||||
#define FUNCTION_PROFILER(FILE, LABELNO) \
|
||||
s390_function_profiler ((FILE), ((LABELNO)))
|
||||
|
||||
#define PROFILE_BEFORE_PROLOGUE 1
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* Definitions for target OS TPF for GNU compiler, for IBM S/390 hardware
|
||||
Copyright (C) 2003-2018 Free Software Foundation, Inc.
|
||||
Contributed by P.J. Darcy (darcypj@us.ibm.com),
|
||||
Hartmut Penner (hpenner@de.ibm.com), and
|
||||
Ulrich Weigand (uweigand@de.ibm.com).
|
||||
Hartmut Penner (hpenner@de.ibm.com), and
|
||||
Ulrich Weigand (uweigand@de.ibm.com).
|
||||
|
||||
This file is part of GCC.
|
||||
|
||||
|
@ -44,7 +44,7 @@ along with GCC; see the file COPYING3. If not see
|
|||
|
||||
/* TPF OS specific stack-pointer offset. */
|
||||
#undef STACK_POINTER_OFFSET
|
||||
#define STACK_POINTER_OFFSET 448
|
||||
#define STACK_POINTER_OFFSET 448
|
||||
|
||||
/* When building for TPF, set a generic default target that is 64 bits. Also
|
||||
enable TPF profiling support and the standard backchain by default. */
|
||||
|
@ -105,10 +105,10 @@ along with GCC; see the file COPYING3. If not see
|
|||
|
||||
#undef LIB_SPEC
|
||||
#define LIB_SPEC "-lCTIS -lCISO -lCLBM -lCTAL -lCFVS -lCTBX -lCTXO \
|
||||
-lCJ00 -lCTDF -lCOMX -lCOMS -lCTHD -lCTAD -lTPFSTUB"
|
||||
-lCJ00 -lCTDF -lCOMX -lCOMS -lCTHD -lCTAD -lTPFSTUB"
|
||||
|
||||
#define ENTRY_SPEC "%{mmain:-entry=_start} \
|
||||
%{!mmain:-entry=0}"
|
||||
%{!mmain:-entry=0}"
|
||||
|
||||
/* All linking is done shared on TPF-OS. */
|
||||
/* FIXME: When binutils patch for new emulation is committed
|
||||
|
|
Loading…
Add table
Reference in a new issue