Commit 1120a1d3 by Kazu Hirata Committed by Jeff Law

* config/h8300/h8300.h: Fix formatting.

From-SVN: r38095
parent bc98ef7f
2000-12-06 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.h: Fix formatting.
2000-12-06 Joel Sherrill <joel@OARcorp.com>
* config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*,
......
......@@ -502,11 +502,11 @@ enum reg_class {
dangerous, so we claim that it always pushes a word, then we catch
the mov.b rx,@-sp and turn it into a mov.w rx,@-sp on output.
On the H8/300h, we simplify TARGET_QUICKCALL by setting this to 4 and doing
a similar thing. */
On the H8/300H, we simplify TARGET_QUICKCALL by setting this to 4
and doing a similar thing. */
#define PUSH_ROUNDING(BYTES) \
(((BYTES) + PARM_BOUNDARY/8 - 1) & -PARM_BOUNDARY/8)
(((BYTES) + PARM_BOUNDARY / 8 - 1) & -PARM_BOUNDARY / 8)
/* Offset of first parameter from the argument pointer register value. */
/* Is equal to the size of the saved fp + pc, even if an fp isn't
......@@ -574,7 +574,7 @@ enum reg_class {
/* Define how to find the value returned by a library function
assuming the value has mode MODE. */
/* On the h8 the return value is in R0/R1 */
/* On the H8 the return value is in R0/R1. */
#define LIBCALL_VALUE(MODE) \
gen_rtx_REG (MODE, 0)
......@@ -615,9 +615,9 @@ enum reg_class {
and about the args processed so far, enough to enable macros
such as FUNCTION_ARG to determine where the next arg should go.
On the H8/300, this is a two item struct, the first is the number of bytes
scanned so far and the second is the rtx of the called library
function if any. */
On the H8/300, this is a two item struct, the first is the number
of bytes scanned so far and the second is the rtx of the called
library function if any. */
#define CUMULATIVE_ARGS struct cum_arg
struct cum_arg
......@@ -989,7 +989,7 @@ struct cum_arg
#define Pmode (TARGET_H8300H || TARGET_H8300S ? SImode : HImode)
/* ANSI C types.
We use longs for the 300h because ints can be 16 or 32.
We use longs for the 300H because ints can be 16 or 32.
GCC requires SIZE_TYPE to be the same size as pointers. */
#define NO_BUILTIN_SIZE_TYPE
#define NO_BUILTIN_PTRDIFF_TYPE
......@@ -1138,18 +1138,26 @@ readonly_data () \
{ \
if (in_section != in_readonly_data) \
{ \
fprintf (asm_out_file, "%s\n", READONLY_DATA_SECTION_ASM_OP);\
fprintf (asm_out_file, "%s\n", READONLY_DATA_SECTION_ASM_OP); \
in_section = in_readonly_data; \
} \
}
#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
do { ctors_section(); \
fprintf(FILE, "%s_%s\n", ASM_WORD_OP, NAME); } while (0)
do \
{ \
ctors_section (); \
fprintf (FILE, "%s_%s\n", ASM_WORD_OP, NAME); \
} \
while (0)
#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \
do { dtors_section(); \
fprintf(FILE, "%s_%s\n", ASM_WORD_OP, NAME); } while (0)
do \
{ \
dtors_section (); \
fprintf (FILE, "%s_%s\n", ASM_WORD_OP, NAME); \
} \
while (0)
#undef DO_GLOBAL_CTORS_BODY
#define DO_GLOBAL_CTORS_BODY \
......@@ -1198,13 +1206,15 @@ readonly_data () \
/* Store the user-specified part of SYMBOL_NAME in VAR.
This is sort of inverse to ENCODE_SECTION_INFO. */
#define STRIP_NAME_ENCODING(VAR,SYMBOL_NAME) \
(VAR) = (SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*' || (SYMBOL_NAME)[0] == '@' || (SYMBOL_NAME)[0] == '&')
(VAR) = (SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*' \
|| (SYMBOL_NAME)[0] == '@' \
|| (SYMBOL_NAME)[0] == '&');
/* How to refer to registers in assembler output.
This sequence is indexed by compiler's hard-register-number (see above). */
#define REGISTER_NAMES \
{ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp", "mac", "ap"}
{ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp", "mac", "ap" }
#define ADDITIONAL_REGISTER_NAMES \
{ {"er0", 0}, {"er1", 1}, {"er2", 2}, {"er3", 3}, {"er4", 4}, \
......@@ -1244,7 +1254,12 @@ readonly_data () \
such as the label on a static function or variable NAME. */
#define ASM_OUTPUT_LABEL(FILE, NAME) \
do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
do \
{ \
assemble_name (FILE, NAME); \
fputs (":\n", FILE); \
} \
while (0)
#define ASM_OUTPUT_LABELREF(FILE,NAME) \
asm_fprintf ((FILE), "%U%s", (NAME) + (TINY_DATA_NAME_P (NAME) ? 1 : 0))
......@@ -1255,7 +1270,13 @@ readonly_data () \
defined for reference from other files. */
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \
do { fputs ("\t.global ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0)
do \
{ \
fputs ("\t.global ", FILE); \
assemble_name (FILE, NAME); \
fputs ("\n", FILE); \
} \
while (0)
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
ASM_OUTPUT_LABEL(FILE, NAME)
......@@ -1285,14 +1306,18 @@ readonly_data () \
It is .dfloat or .gfloat, depending. */
#define ASM_OUTPUT_DOUBLE(FILE, VALUE) \
do { char dstr[30]; \
do \
{ \
char dstr[30]; \
REAL_VALUE_TO_DECIMAL ((VALUE), "%.20e", dstr); \
fprintf (FILE, "\t.double %s\n", dstr); \
} while (0)
/* This is how to output an assembler line defining a `float' constant. */
#define ASM_OUTPUT_FLOAT(FILE, VALUE) \
do { char dstr[30]; \
do \
{ \
char dstr[30]; \
REAL_VALUE_TO_DECIMAL ((VALUE), "%.20e", dstr); \
fprintf (FILE, "\t.float %s\n", dstr); \
} while (0)
......@@ -1354,7 +1379,7 @@ do { char dstr[30]; \
that says to advance the location counter by SIZE bytes. */
#define ASM_OUTPUT_IDENT(FILE, NAME) \
fprintf(FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME)
fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME)
#define ASM_OUTPUT_SKIP(FILE, SIZE) \
fprintf (FILE, "\t.space %d\n", (SIZE))
......@@ -1406,7 +1431,7 @@ do { char dstr[30]; \
#define TARGET_CR 015
/* Print an instruction operand X on file FILE.
look in h8300.c for details */
Look in h8300.c for details. */
#define PRINT_OPERAND_PUNCT_VALID_P(CODE) \
((CODE) == '#')
......@@ -1419,12 +1444,16 @@ do { char dstr[30]; \
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) print_operand_address (FILE, ADDR)
/* H8300 specific pragmas. */
#define REGISTER_TARGET_PRAGMAS(PFILE) do { \
#define REGISTER_TARGET_PRAGMAS(PFILE) \
do \
{ \
cpp_register_pragma (PFILE, 0, "saveall", h8300_pr_saveall); \
cpp_register_pragma (PFILE, 0, "interrupt", h8300_pr_interrupt); \
} while (0)
} \
while (0)
#define FINAL_PRESCAN_INSN(insn, operand, nop) final_prescan_insn (insn, operand,nop)
#define FINAL_PRESCAN_INSN(insn, operand, nop) \
final_prescan_insn (insn, operand, nop)
/* Define this macro if GNU CC should generate calls to the System V
(and ANSI C) library functions `memcpy' and `memset' rather than
......@@ -1441,7 +1470,8 @@ do { char dstr[30]; \
/* Perform target dependent optabs initialization. */
#define INIT_TARGET_OPTABS \
do { \
do \
{ \
smul_optab->handlers[(int) HImode].libfunc \
= init_one_libfunc (MULHI3_LIBCALL); \
sdiv_optab->handlers[(int) HImode].libfunc \
......@@ -1452,7 +1482,8 @@ do { char dstr[30]; \
= init_one_libfunc (MODHI3_LIBCALL); \
umod_optab->handlers[(int) HImode].libfunc \
= init_one_libfunc (UMODHI3_LIBCALL); \
} while (0)
} \
while (0)
#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