Commit 07e4d94e by Kazu Hirata Committed by Jeff Law

h8300-proto.h: Fix formatting.

        * h8300-proto.h: Fix formatting.
        * h8300.c: Likewise.
        * h8300.h: Likewise.

From-SVN: r34882
parent 768ff52f
2000-07-05 Kazu Hirata <kazu@hxi.com>
* h8300-proto.h: Fix formatting.
* h8300.c: Likewise.
* h8300.h: Likewise.
2000-07-05 Jim Wilson <wilson@cygnus.com> 2000-07-05 Jim Wilson <wilson@cygnus.com>
* config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
......
...@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA. */
#ifdef RTX_CODE #ifdef RTX_CODE
extern const char *emit_a_shift PARAMS ((rtx, rtx *)); extern const char *emit_a_shift PARAMS ((rtx, rtx *));
extern const char *output_adds_subs PARAMS ((rtx *)); extern const char *output_adds_subs PARAMS ((rtx *));
extern const char * output_simode_bld PARAMS ((int, int, rtx[])); extern const char *output_simode_bld PARAMS ((int, int, rtx[]));
extern void print_operand_address PARAMS ((FILE *, rtx)); extern void print_operand_address PARAMS ((FILE *, rtx));
extern const char *byte_reg PARAMS ((rtx, int)); extern const char *byte_reg PARAMS ((rtx, int));
extern int const_costs PARAMS ((rtx, enum rtx_code)); extern int const_costs PARAMS ((rtx, enum rtx_code));
......
...@@ -31,7 +31,7 @@ extern int cpu_type; ...@@ -31,7 +31,7 @@ extern int cpu_type;
/* Various globals defined in h8300.c. */ /* Various globals defined in h8300.c. */
extern const char *h8_push_op,*h8_pop_op,*h8_mov_op; extern const char *h8_push_op, *h8_pop_op, *h8_mov_op;
extern const char * const *h8_reg_names; extern const char * const *h8_reg_names;
/* Names to predefine in the preprocessor for this target machine. */ /* Names to predefine in the preprocessor for this target machine. */
...@@ -157,7 +157,7 @@ do { \ ...@@ -157,7 +157,7 @@ do { \
Calls through a register are cheaper than calls to named Calls through a register are cheaper than calls to named
functions; however, the register pressure this causes makes functions; however, the register pressure this causes makes
CSEing of function addresses generally a lose. */ CSEing of function addresses generally a lose. */
#define NO_FUNCTION_CSE #define NO_FUNCTION_CSE
/* Target machine storage layout */ /* Target machine storage layout */
...@@ -177,7 +177,7 @@ do { \ ...@@ -177,7 +177,7 @@ do { \
/* Define this if most significant word of a multiword number is lowest /* Define this if most significant word of a multiword number is lowest
numbered. numbered.
This is true on an H8/300 (actually we can make it up, but we choose to This is true on an H8/300 (actually we can make it up, but we choose to
be consistent). */ be consistent). */
#define WORDS_BIG_ENDIAN 1 #define WORDS_BIG_ENDIAN 1
/* Number of bits in an addressable storage unit */ /* Number of bits in an addressable storage unit */
...@@ -354,7 +354,7 @@ do { \ ...@@ -354,7 +354,7 @@ do { \
For any two classes, it is very desirable that there be another For any two classes, it is very desirable that there be another
class that represents their union. */ class that represents their union. */
enum reg_class { enum reg_class {
NO_REGS, GENERAL_REGS, MAC_REGS, ALL_REGS, LIM_REG_CLASSES NO_REGS, GENERAL_REGS, MAC_REGS, ALL_REGS, LIM_REG_CLASSES
}; };
...@@ -604,7 +604,11 @@ enum reg_class { ...@@ -604,7 +604,11 @@ enum reg_class {
function if any. */ function if any. */
#define CUMULATIVE_ARGS struct cum_arg #define CUMULATIVE_ARGS struct cum_arg
struct cum_arg { int nbytes; struct rtx_def * libcall; }; struct cum_arg
{
int nbytes;
struct rtx_def *libcall;
};
/* Initialize a variable CUM of type CUMULATIVE_ARGS /* Initialize a variable CUM of type CUMULATIVE_ARGS
for a call to a function whose data type is FNTYPE. for a call to a function whose data type is FNTYPE.
...@@ -761,7 +765,7 @@ struct cum_arg { int nbytes; struct rtx_def * libcall; }; ...@@ -761,7 +765,7 @@ struct cum_arg { int nbytes; struct rtx_def * libcall; };
or a pseudo reg currently allocated to a suitable hard reg. or a pseudo reg currently allocated to a suitable hard reg.
Since they use reg_renumber, they are safe only once reg_renumber Since they use reg_renumber, they are safe only once reg_renumber
has been allocated, which happens in local-alloc.c. */ has been allocated, which happens in local-alloc.c. */
#define REGNO_OK_FOR_INDEX_P(regno) 0 #define REGNO_OK_FOR_INDEX_P(regno) 0
#define REGNO_OK_FOR_BASE_P(regno) \ #define REGNO_OK_FOR_BASE_P(regno) \
...@@ -840,7 +844,7 @@ struct cum_arg { int nbytes; struct rtx_def * libcall; }; ...@@ -840,7 +844,7 @@ struct cum_arg { int nbytes; struct rtx_def * libcall; };
&& GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 0)) == SYMBOL_REF \ && GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 0)) == SYMBOL_REF \
&& GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 1)) == CONST_INT) \ && GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 1)) == CONST_INT) \
&& (TARGET_H8300S || SYMBOL_REF_FLAG (XEXP (XEXP (OP, 0), 0))))) && (TARGET_H8300S || SYMBOL_REF_FLAG (XEXP (XEXP (OP, 0), 0)))))
#define EXTRA_CONSTRAINT(OP, C) \ #define EXTRA_CONSTRAINT(OP, C) \
((C) == 'U' ? OK_FOR_U (OP) : 0) ((C) == 'U' ? OK_FOR_U (OP) : 0)
...@@ -857,7 +861,7 @@ struct cum_arg { int nbytes; struct rtx_def * libcall; }; ...@@ -857,7 +861,7 @@ struct cum_arg { int nbytes; struct rtx_def * libcall; };
REG, REG+CONSTANT_ADDRESS or CONSTANT_ADDRESS. */ REG, REG+CONSTANT_ADDRESS or CONSTANT_ADDRESS. */
/* Accept either REG or SUBREG where a register is valid. */ /* Accept either REG or SUBREG where a register is valid. */
#define RTX_OK_FOR_BASE_P(X) \ #define RTX_OK_FOR_BASE_P(X) \
((REG_P (X) && REG_OK_FOR_BASE_P (X)) \ ((REG_P (X) && REG_OK_FOR_BASE_P (X)) \
|| (GET_CODE (X) == SUBREG && REG_P (SUBREG_REG (X)) \ || (GET_CODE (X) == SUBREG && REG_P (SUBREG_REG (X)) \
...@@ -1002,7 +1006,7 @@ h8300_valid_machine_decl_attribute (DECL, ATTRIBUTES, IDENTIFIER, ARGS) ...@@ -1002,7 +1006,7 @@ h8300_valid_machine_decl_attribute (DECL, ATTRIBUTES, IDENTIFIER, ARGS)
case ROTATE: \ case ROTATE: \
case ROTATERT: \ case ROTATERT: \
if (GET_MODE (RTX) == HImode) return 2; \ if (GET_MODE (RTX) == HImode) return 2; \
return 8; return 8;
/* Tell final.c how to eliminate redundant test instructions. */ /* Tell final.c how to eliminate redundant test instructions. */
...@@ -1073,7 +1077,7 @@ h8300_valid_machine_decl_attribute (DECL, ATTRIBUTES, IDENTIFIER, ARGS) ...@@ -1073,7 +1077,7 @@ h8300_valid_machine_decl_attribute (DECL, ATTRIBUTES, IDENTIFIER, ARGS)
#define EXTRA_SECTION_FUNCTIONS \ #define EXTRA_SECTION_FUNCTIONS \
\ \
void \ void \
ctors_section() \ ctors_section () \
{ \ { \
if (in_section != in_ctors) \ if (in_section != in_ctors) \
{ \ { \
...@@ -1083,7 +1087,7 @@ ctors_section() \ ...@@ -1083,7 +1087,7 @@ ctors_section() \
} \ } \
\ \
void \ void \
dtors_section() \ dtors_section () \
{ \ { \
if (in_section != in_dtors) \ if (in_section != in_dtors) \
{ \ { \
...@@ -1093,7 +1097,7 @@ dtors_section() \ ...@@ -1093,7 +1097,7 @@ dtors_section() \
} \ } \
\ \
void \ void \
readonly_data() \ readonly_data () \
{ \ { \
if (in_section != in_readonly_data) \ if (in_section != in_readonly_data) \
{ \ { \
...@@ -1102,8 +1106,6 @@ readonly_data() \ ...@@ -1102,8 +1106,6 @@ readonly_data() \
} \ } \
} }
#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \ #define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
do { ctors_section(); \ do { ctors_section(); \
fprintf(FILE, "\t%s\t_%s\n", ASM_WORD_OP, NAME); } while (0) fprintf(FILE, "\t%s\t_%s\n", ASM_WORD_OP, NAME); } while (0)
...@@ -1112,7 +1114,7 @@ readonly_data() \ ...@@ -1112,7 +1114,7 @@ readonly_data() \
do { dtors_section(); \ do { dtors_section(); \
fprintf(FILE, "\t%s\t_%s\n", ASM_WORD_OP, NAME); } while (0) fprintf(FILE, "\t%s\t_%s\n", ASM_WORD_OP, NAME); } while (0)
#undef DO_GLOBAL_CTORS_BODY #undef DO_GLOBAL_CTORS_BODY
#define DO_GLOBAL_CTORS_BODY \ #define DO_GLOBAL_CTORS_BODY \
{ \ { \
typedef (*pfunc)(); \ typedef (*pfunc)(); \
...@@ -1123,9 +1125,9 @@ readonly_data() \ ...@@ -1123,9 +1125,9 @@ readonly_data() \
{ \ { \
(*--p)(); \ (*--p)(); \
} \ } \
} }
#undef DO_GLOBAL_DTORS_BODY #undef DO_GLOBAL_DTORS_BODY
#define DO_GLOBAL_DTORS_BODY \ #define DO_GLOBAL_DTORS_BODY \
{ \ { \
typedef (*pfunc)(); \ typedef (*pfunc)(); \
...@@ -1136,7 +1138,7 @@ readonly_data() \ ...@@ -1136,7 +1138,7 @@ readonly_data() \
{ \ { \
(*p)(); \ (*p)(); \
} \ } \
} }
#define TINY_DATA_NAME_P(NAME) (*(NAME) == '&') #define TINY_DATA_NAME_P(NAME) (*(NAME) == '&')
...@@ -1210,7 +1212,7 @@ readonly_data() \ ...@@ -1210,7 +1212,7 @@ readonly_data() \
#define ASM_OUTPUT_LABELREF(FILE,NAME) \ #define ASM_OUTPUT_LABELREF(FILE,NAME) \
asm_fprintf ((FILE), "%U%s", (NAME) + (TINY_DATA_NAME_P (NAME) ? 1 : 0)) asm_fprintf ((FILE), "%U%s", (NAME) + (TINY_DATA_NAME_P (NAME) ? 1 : 0))
#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) #define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME)
/* This is how to output a command to make the user-level label named NAME /* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */ defined for reference from other files. */
...@@ -1251,7 +1253,6 @@ do { char dstr[30]; \ ...@@ -1251,7 +1253,6 @@ do { char dstr[30]; \
fprintf (FILE, "\t.double %s\n", dstr); \ fprintf (FILE, "\t.double %s\n", dstr); \
} while (0) } while (0)
/* This is how to output an assembler line defining a `float' constant. */ /* This is how to output an assembler line defining a `float' constant. */
#define ASM_OUTPUT_FLOAT(FILE, VALUE) \ #define ASM_OUTPUT_FLOAT(FILE, VALUE) \
do { char dstr[30]; \ do { char dstr[30]; \
...@@ -1424,4 +1425,3 @@ do { char dstr[30]; \ ...@@ -1424,4 +1425,3 @@ do { char dstr[30]; \
} while (0) } while (0)
#define MOVE_RATIO 3 #define MOVE_RATIO 3
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