Commit 91ea4f8d by Kaveh R. Ghazi Committed by Kaveh Ghazi

Makefile.in (rtlanal.o): Depend on $(TM_P_H).

	* Makefile.in (rtlanal.o): Depend on $(TM_P_H).
	* arm-protos.h (rdata_section, zero_init_section, common_section):
	Prototype.
	* arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
	* avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
	traditional mode stringification.
	* function.c (thread_prologue_and_epilogue_insns): Wrap variable
	in macros controling its use.
	* rtlanal.c: Include tm_p.h.
	* varasm.c (asm_output_aligned_bss): Mark parameter with
	ATTRIBUTE_UNUSED.
	(assemble_constant_align, assemble_start_function, assemble_align,
	assemble_variable, assemble_trampoline_template,
	output_constant_def_contents): Wrap potentially empty if-stmt body
	in brackets.

From-SVN: r46360
parent acf9cc0f
2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (rtlanal.o): Depend on $(TM_P_H).
* arm-protos.h (rdata_section, zero_init_section, common_section):
Prototype.
* arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
* avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
traditional mode stringification.
* function.c (thread_prologue_and_epilogue_insns): Wrap variable
in macros controling its use.
* rtlanal.c: Include tm_p.h.
* varasm.c (asm_output_aligned_bss): Mark parameter with
ATTRIBUTE_UNUSED.
(assemble_constant_align, assemble_start_function, assemble_align,
assemble_variable, assemble_trampoline_template,
output_constant_def_contents): Wrap potentially empty if-stmt body
in brackets.
2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* a29k-protos.h (literal_section): Prototype. * a29k-protos.h (literal_section): Prototype.
* a29k.h (ASM_FILE_START): Don't discard pointer qualifier. * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
* a29k.md: Ensure function pointers are prototyped. * a29k.md: Ensure function pointers are prototyped.
......
...@@ -1385,7 +1385,7 @@ print-rtl.o : print-rtl.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \ ...@@ -1385,7 +1385,7 @@ print-rtl.o : print-rtl.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \
hard-reg-set.h $(BASIC_BLOCK_H) hard-reg-set.h $(BASIC_BLOCK_H)
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) $(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
rtlanal.o : rtlanal.c $(CONFIG_H) $(SYSTEM_H) toplev.h $(RTL_H) hard-reg-set.h rtlanal.o : rtlanal.c $(CONFIG_H) $(SYSTEM_H) toplev.h $(RTL_H) hard-reg-set.h $(TM_P_H)
errors.o : errors.c $(GCONFIG_H) $(SYSTEM_H) errors.h errors.o : errors.c $(GCONFIG_H) $(SYSTEM_H) errors.h
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) $(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
......
...@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */
#ifndef GCC_ARM_PROTOS_H #ifndef GCC_ARM_PROTOS_H
#define GCC_ARM_PROTOS_H #define GCC_ARM_PROTOS_H
extern void rdata_section PARAMS ((void));
extern void arm_override_options PARAMS ((void)); extern void arm_override_options PARAMS ((void));
extern int use_return_insn PARAMS ((int)); extern int use_return_insn PARAMS ((int));
extern int arm_regno_class PARAMS ((int)); extern int arm_regno_class PARAMS ((int));
...@@ -144,6 +145,8 @@ extern char * aof_data_section PARAMS ((void)); ...@@ -144,6 +145,8 @@ extern char * aof_data_section PARAMS ((void));
extern void aof_add_import PARAMS ((char *)); extern void aof_add_import PARAMS ((char *));
extern void aof_delete_import PARAMS ((char *)); extern void aof_delete_import PARAMS ((char *));
extern void aof_dump_imports PARAMS ((FILE *)); extern void aof_dump_imports PARAMS ((FILE *));
extern void zero_init_section PARAMS ((void));
extern void common_section PARAMS ((void));
#endif /* AOF_ASSEMBLER */ #endif /* AOF_ASSEMBLER */
#endif /* RTX_CODE */ #endif /* RTX_CODE */
......
...@@ -2614,8 +2614,8 @@ extern int making_const_table; ...@@ -2614,8 +2614,8 @@ extern int making_const_table;
#define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL1, DECL2) \ #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL1, DECL2) \
do \ do \
{ \ { \
char * LABEL1 = XSTR (XEXP (DECL_RTL (decl), 0), 0); \ const char *const LABEL1 = XSTR (XEXP (DECL_RTL (decl), 0), 0); \
char * LABEL2 = IDENTIFIER_POINTER (DECL2); \ const char *const LABEL2 = IDENTIFIER_POINTER (DECL2); \
\ \
if (TARGET_THUMB && TREE_CODE (DECL1) == FUNCTION_DECL) \ if (TARGET_THUMB && TREE_CODE (DECL1) == FUNCTION_DECL) \
{ \ { \
......
...@@ -2587,8 +2587,8 @@ sprintf (STRING, "*.%s%d", PREFIX, NUM) ...@@ -2587,8 +2587,8 @@ sprintf (STRING, "*.%s%d", PREFIX, NUM)
If this macro is not defined, nothing special is output at the end If this macro is not defined, nothing special is output at the end
of the jump-table. */ of the jump-table. */
#define ASM_OUTPUT_SKIP(STREAM, n) \ #define ASM_OUTPUT_SKIP(STREAM, N) \
fprintf (STREAM, "\t.skip %d,0\n", n) fprintf (STREAM, "\t.skip %d,0\n", N)
/* A C statement to output to the stdio stream STREAM an assembler /* A C statement to output to the stdio stream STREAM an assembler
instruction to advance the location counter by NBYTES bytes. instruction to advance the location counter by NBYTES bytes.
Those bytes should be zero when loaded. NBYTES will be a C Those bytes should be zero when loaded. NBYTES will be a C
......
...@@ -7189,7 +7189,9 @@ thread_prologue_and_epilogue_insns (f) ...@@ -7189,7 +7189,9 @@ thread_prologue_and_epilogue_insns (f)
{ {
int inserted = 0; int inserted = 0;
edge e; edge e;
#if defined (HAVE_sibcall_epilogue) || defined (HAVE_epilogue) || defined (HAVE_return) || defined (HAVE_prologue)
rtx seq; rtx seq;
#endif
#ifdef HAVE_prologue #ifdef HAVE_prologue
rtx prologue_end = NULL_RTX; rtx prologue_end = NULL_RTX;
#endif #endif
......
...@@ -25,6 +25,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -25,6 +25,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "toplev.h" #include "toplev.h"
#include "rtl.h" #include "rtl.h"
#include "hard-reg-set.h" #include "hard-reg-set.h"
#include "tm_p.h"
/* Forward declarations */ /* Forward declarations */
static void set_of_1 PARAMS ((rtx, rtx, void *)); static void set_of_1 PARAMS ((rtx, rtx, void *));
......
...@@ -524,7 +524,7 @@ asm_output_bss (file, decl, name, size, rounded) ...@@ -524,7 +524,7 @@ asm_output_bss (file, decl, name, size, rounded)
static void static void
asm_output_aligned_bss (file, decl, name, size, align) asm_output_aligned_bss (file, decl, name, size, align)
FILE *file; FILE *file;
tree decl; tree decl ATTRIBUTE_UNUSED;
const char *name; const char *name;
int size, align; int size, align;
{ {
...@@ -1029,7 +1029,9 @@ assemble_constant_align (exp) ...@@ -1029,7 +1029,9 @@ assemble_constant_align (exp)
#endif #endif
if (align > BITS_PER_UNIT) if (align > BITS_PER_UNIT)
ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (align / BITS_PER_UNIT)); {
ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (align / BITS_PER_UNIT));
}
} }
/* Output a string of literal assembler code /* Output a string of literal assembler code
...@@ -1208,7 +1210,9 @@ assemble_start_function (decl, fnname) ...@@ -1208,7 +1210,9 @@ assemble_start_function (decl, fnname)
/* Tell assembler to move to target machine's alignment for functions. */ /* Tell assembler to move to target machine's alignment for functions. */
align = floor_log2 (FUNCTION_BOUNDARY / BITS_PER_UNIT); align = floor_log2 (FUNCTION_BOUNDARY / BITS_PER_UNIT);
if (align > 0) if (align > 0)
ASM_OUTPUT_ALIGN (asm_out_file, align); {
ASM_OUTPUT_ALIGN (asm_out_file, align);
}
/* Handle a user-specified function alignment. /* Handle a user-specified function alignment.
Note that we still need to align to FUNCTION_BOUNDARY, as above, Note that we still need to align to FUNCTION_BOUNDARY, as above,
...@@ -1324,7 +1328,9 @@ assemble_align (align) ...@@ -1324,7 +1328,9 @@ assemble_align (align)
int align; int align;
{ {
if (align > BITS_PER_UNIT) if (align > BITS_PER_UNIT)
ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (align / BITS_PER_UNIT)); {
ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (align / BITS_PER_UNIT));
}
} }
/* Assemble a string constant with the specified C string as contents. */ /* Assemble a string constant with the specified C string as contents. */
...@@ -1682,8 +1688,10 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -1682,8 +1688,10 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
/* Output the alignment of this data. */ /* Output the alignment of this data. */
if (align > BITS_PER_UNIT) if (align > BITS_PER_UNIT)
ASM_OUTPUT_ALIGN (asm_out_file, {
floor_log2 (DECL_ALIGN (decl) / BITS_PER_UNIT)); ASM_OUTPUT_ALIGN (asm_out_file,
floor_log2 (DECL_ALIGN (decl) / BITS_PER_UNIT));
}
/* Do any machine/system dependent processing of the object. */ /* Do any machine/system dependent processing of the object. */
#ifdef ASM_DECLARE_OBJECT_NAME #ifdef ASM_DECLARE_OBJECT_NAME
...@@ -1905,7 +1913,9 @@ assemble_trampoline_template () ...@@ -1905,7 +1913,9 @@ assemble_trampoline_template ()
/* Write the assembler code to define one. */ /* Write the assembler code to define one. */
align = floor_log2 (TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT); align = floor_log2 (TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT);
if (align > 0) if (align > 0)
ASM_OUTPUT_ALIGN (asm_out_file, align); {
ASM_OUTPUT_ALIGN (asm_out_file, align);
}
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LTRAMP", 0); ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LTRAMP", 0);
TRAMPOLINE_TEMPLATE (asm_out_file); TRAMPOLINE_TEMPLATE (asm_out_file);
...@@ -3462,7 +3472,9 @@ output_constant_def_contents (exp, reloc, labelno) ...@@ -3462,7 +3472,9 @@ output_constant_def_contents (exp, reloc, labelno)
} }
if (align > BITS_PER_UNIT) if (align > BITS_PER_UNIT)
ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (align / BITS_PER_UNIT)); {
ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (align / BITS_PER_UNIT));
}
/* Output the label itself. */ /* Output the label itself. */
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LC", labelno); ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LC", labelno);
......
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