Commit b3656137 by Kaveh R. Ghazi Committed by Kaveh Ghazi

1750a.md: Add default case in switch.

	* 1750a.md: Add default case in switch.
	* alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
	if-else statement.
	* dsp16xx.c (print_operand_address): Likewise.
	* i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
	* ia64.md: Add missing braces.
	* rs6000-protos.h (s8bit_cint_operand): Prototype.
	* s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
        if-else statement.
	* stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
	* v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
	* dbxout.c (dbxout_source_file): Move a variable into the scope
	where it is used.
	* final.c (profile_function): Mark parameter with
	ATTRIBUTE_UNUSED.
	* genemit.c (gen_expand): Likewise for generated file.
	* insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.

From-SVN: r47812
parent cadf4f29
2001-12-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-12-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* 1750a.md: Add default case in switch.
* alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
if-else statement.
* dsp16xx.c (print_operand_address): Likewise.
* i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
* ia64.md: Add missing braces.
* rs6000-protos.h (s8bit_cint_operand): Prototype.
* s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
if-else statement.
* stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
* v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
* dbxout.c (dbxout_source_file): Move a variable into the scope
where it is used.
* final.c (profile_function): Mark parameter with
ATTRIBUTE_UNUSED.
* genemit.c (gen_expand): Likewise for generated file.
* insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.
* vmsdbg.h: Delete spurious close-comment. * vmsdbg.h: Delete spurious close-comment.
(DST_HEADER): Fix typo in ENUM_BITFIELD parameter. (DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
* vmsdbgout.c (write_modbeg): Define return type. * vmsdbgout.c (write_modbeg): Define return type.
......
...@@ -693,6 +693,8 @@ ...@@ -693,6 +693,8 @@
case 4: case 4:
istr = \"dv \"; istr = \"dv \";
break; break;
default:
abort();
} }
return mod_regno_adjust (istr, operands); return mod_regno_adjust (istr, operands);
}") }")
......
...@@ -148,6 +148,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -148,6 +148,8 @@ Boston, MA 02111-1307, USA. */
+ get_frame_size () \ + get_frame_size () \
+ current_function_pretend_args_size) \ + current_function_pretend_args_size) \
- current_function_pretend_args_size); \ - current_function_pretend_args_size); \
else \
abort(); \
if ((TO) == STACK_POINTER_REGNUM) \ if ((TO) == STACK_POINTER_REGNUM) \
(OFFSET) += ALPHA_ROUND (current_function_outgoing_args_size); \ (OFFSET) += ALPHA_ROUND (current_function_outgoing_args_size); \
} }
......
...@@ -1941,6 +1941,8 @@ print_operand_address(file, addr) ...@@ -1941,6 +1941,8 @@ print_operand_address(file, addr)
offset = INTVAL(XEXP(addr,0)), base = XEXP(addr,1); offset = INTVAL(XEXP(addr,0)), base = XEXP(addr,1);
else if (GET_CODE (XEXP(addr,1)) == CONST_INT) else if (GET_CODE (XEXP(addr,1)) == CONST_INT)
offset = INTVAL(XEXP(addr,1)), base = XEXP(addr,0); offset = INTVAL(XEXP(addr,1)), base = XEXP(addr,0);
else
abort();
if (GET_CODE (base) == REG && REGNO(base) == STACK_POINTER_REGNUM) if (GET_CODE (base) == REG && REGNO(base) == STACK_POINTER_REGNUM)
{ {
if (offset >= -31 && offset <= 0) if (offset >= -31 && offset <= 0)
......
...@@ -153,9 +153,9 @@ do \ ...@@ -153,9 +153,9 @@ do \
{ \ { \
if (!OSF_PROFILE_BEFORE_PROLOGUE) \ if (!OSF_PROFILE_BEFORE_PROLOGUE) \
{ \ { \
char *prefix = ""; \ const char *const prefix = ""; \
char *lprefix = LPREFIX; \ const char *const lprefix = LPREFIX; \
int labelno = LABELNO; \ int labelno = LABELNO; \
\ \
/* Note that OSF/rose blew it in terms of calling mcount, \ /* Note that OSF/rose blew it in terms of calling mcount, \
since OSF/rose prepends a leading underscore, but mcount's \ since OSF/rose prepends a leading underscore, but mcount's \
......
...@@ -5057,14 +5057,18 @@ ...@@ -5057,14 +5057,18 @@
"" ""
{ {
static const char * const alt[2][4] = { static const char * const alt[2][4] = {
"lfetch.nta [%0]", {
"lfetch.nt1 [%0]", "lfetch.nta [%0]",
"lfetch.nt2 [%0]", "lfetch.nt1 [%0]",
"lfetch [%0]", "lfetch.nt2 [%0]",
"lfetch.excl.nta [%0]", "lfetch [%0]"
"lfetch.excl.nt1 [%0]", },
"lfetch.excl.nt2 [%0]", {
"lfetch.excl [%0]" "lfetch.excl.nta [%0]",
"lfetch.excl.nt1 [%0]",
"lfetch.excl.nt2 [%0]",
"lfetch.excl [%0]"
}
}; };
int i = (INTVAL (operands[1])); int i = (INTVAL (operands[1]));
int j = (INTVAL (operands[2])); int j = (INTVAL (operands[2]));
......
...@@ -70,6 +70,7 @@ extern int call_operand PARAMS ((rtx, enum machine_mode)); ...@@ -70,6 +70,7 @@ extern int call_operand PARAMS ((rtx, enum machine_mode));
extern int current_file_function_operand PARAMS ((rtx, enum machine_mode)); extern int current_file_function_operand PARAMS ((rtx, enum machine_mode));
extern int input_operand PARAMS ((rtx, enum machine_mode)); extern int input_operand PARAMS ((rtx, enum machine_mode));
extern int small_data_operand PARAMS ((rtx, enum machine_mode)); extern int small_data_operand PARAMS ((rtx, enum machine_mode));
extern int s8bit_cint_operand PARAMS ((rtx, enum machine_mode));
extern int constant_pool_expr_p PARAMS ((rtx)); extern int constant_pool_expr_p PARAMS ((rtx));
extern int toc_relative_expr_p PARAMS ((rtx)); extern int toc_relative_expr_p PARAMS ((rtx));
extern int expand_block_move PARAMS ((rtx[])); extern int expand_block_move PARAMS ((rtx[]));
......
...@@ -395,6 +395,8 @@ while (0) ...@@ -395,6 +395,8 @@ while (0)
{ (OFFSET) = s390_arg_frame_offset (); } \ { (OFFSET) = s390_arg_frame_offset (); } \
else if ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM) \ else if ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM) \
{ (OFFSET) = s390_arg_frame_offset (); } \ { (OFFSET) = s390_arg_frame_offset (); } \
else \
abort(); \
} }
#define CAN_DEBUG_WITHOUT_FP #define CAN_DEBUG_WITHOUT_FP
......
...@@ -1234,17 +1234,17 @@ enum reg_class ...@@ -1234,17 +1234,17 @@ enum reg_class
`hard-reg-set.h'. */ `hard-reg-set.h'. */
#define REG_CLASS_CONTENTS \ #define REG_CLASS_CONTENTS \
{ \ { \
0x00000, \ { 0x00000 }, \
0x00001, \ { 0x00001 }, \
0x00002, \ { 0x00002 }, \
0x00003, \ { 0x00003 }, \
0x00004, \ { 0x00004 }, \
0x000FF, \ { 0x000FF }, \
0x00100, \ { 0x00100 }, \
0x00300, \ { 0x00300 }, \
0x6FFFF, \ { 0x6FFFF }, \
0x10000, \ { 0x10000 }, \
(1 << FIRST_PSEUDO_REGISTER) - 1 \ { (1 << FIRST_PSEUDO_REGISTER) - 1 } \
} }
/* A C expression whose value is a register class containing hard register /* A C expression whose value is a register class containing hard register
......
...@@ -1254,7 +1254,7 @@ do { \ ...@@ -1254,7 +1254,7 @@ do { \
#define OUTPUT_ADDR_CONST_EXTRA(FILE, X, FAIL) \ #define OUTPUT_ADDR_CONST_EXTRA(FILE, X, FAIL) \
if (GET_CODE (x) == TRUNCATE) \ if (GET_CODE (x) == TRUNCATE) \
return output_addr_const (FILE, XEXP (X, 0)); \ output_addr_const (FILE, XEXP (X, 0)); \
else \ else \
goto FAIL; goto FAIL;
......
...@@ -566,13 +566,13 @@ dbxout_source_file (file, filename) ...@@ -566,13 +566,13 @@ dbxout_source_file (file, filename)
FILE *file; FILE *file;
const char *filename; const char *filename;
{ {
char ltext_label_name[100];
if (filename && (lastfile == 0 || strcmp (filename, lastfile))) if (filename && (lastfile == 0 || strcmp (filename, lastfile)))
{ {
#ifdef DBX_OUTPUT_SOURCE_FILENAME #ifdef DBX_OUTPUT_SOURCE_FILENAME
DBX_OUTPUT_SOURCE_FILENAME (file, filename); DBX_OUTPUT_SOURCE_FILENAME (file, filename);
#else #else
char ltext_label_name[100];
ASM_GENERATE_INTERNAL_LABEL (ltext_label_name, "Ltext", ASM_GENERATE_INTERNAL_LABEL (ltext_label_name, "Ltext",
source_label_number); source_label_number);
fprintf (file, "%s", ASM_STABS_OP); fprintf (file, "%s", ASM_STABS_OP);
......
...@@ -1600,7 +1600,7 @@ profile_after_prologue (file) ...@@ -1600,7 +1600,7 @@ profile_after_prologue (file)
static void static void
profile_function (file) profile_function (file)
FILE *file; FILE *file ATTRIBUTE_UNUSED;
{ {
#ifndef NO_PROFILE_COUNTERS #ifndef NO_PROFILE_COUNTERS
int align = MIN (BIGGEST_ALIGNMENT, LONG_TYPE_SIZE); int align = MIN (BIGGEST_ALIGNMENT, LONG_TYPE_SIZE);
......
...@@ -464,7 +464,7 @@ gen_expand (expand) ...@@ -464,7 +464,7 @@ gen_expand (expand)
for (i = operands; i <= max_dup_opno; i++) for (i = operands; i <= max_dup_opno; i++)
printf (" rtx operand%d;\n", i); printf (" rtx operand%d;\n", i);
for (; i <= max_scratch_opno; i++) for (; i <= max_scratch_opno; i++)
printf (" rtx operand%d;\n", i); printf (" rtx operand%d ATTRIBUTE_UNUSED;\n", i);
printf (" rtx _val = 0;\n"); printf (" rtx _val = 0;\n");
printf (" start_sequence ();\n"); printf (" start_sequence ();\n");
......
...@@ -41,7 +41,7 @@ extern int insn_current_address; ...@@ -41,7 +41,7 @@ extern int insn_current_address;
if (INSN_ADDRESSES_SET_P ()) \ if (INSN_ADDRESSES_SET_P ()) \
{ \ { \
if (INSN_ADDRESSES_SIZE () <= insn_uid__) \ if (INSN_ADDRESSES_SIZE () <= insn_uid__) \
insn_addresses_ = VARRAY_GROW (insn_addresses_, insn_uid__ + 1); \ VARRAY_GROW (insn_addresses_, insn_uid__ + 1); \
INSN_ADDRESSES (insn_uid__) = insn_addr__; \ INSN_ADDRESSES (insn_uid__) = insn_addr__; \
} \ } \
} \ } \
......
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