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
This commit is contained in:
Kaveh R. Ghazi 2001-12-09 16:31:53 +00:00 committed by Kaveh Ghazi
parent cadf4f299d
commit b365613798
14 changed files with 59 additions and 28 deletions

View File

@ -1,5 +1,23 @@
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.
(DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
* vmsdbgout.c (write_modbeg): Define return type.

View File

@ -693,6 +693,8 @@
case 4:
istr = \"dv \";
break;
default:
abort();
}
return mod_regno_adjust (istr, operands);
}")

View File

@ -148,6 +148,8 @@ Boston, MA 02111-1307, USA. */
+ get_frame_size () \
+ current_function_pretend_args_size) \
- current_function_pretend_args_size); \
else \
abort(); \
if ((TO) == STACK_POINTER_REGNUM) \
(OFFSET) += ALPHA_ROUND (current_function_outgoing_args_size); \
}

View File

@ -1941,6 +1941,8 @@ print_operand_address(file, addr)
offset = INTVAL(XEXP(addr,0)), base = XEXP(addr,1);
else if (GET_CODE (XEXP(addr,1)) == CONST_INT)
offset = INTVAL(XEXP(addr,1)), base = XEXP(addr,0);
else
abort();
if (GET_CODE (base) == REG && REGNO(base) == STACK_POINTER_REGNUM)
{
if (offset >= -31 && offset <= 0)

View File

@ -153,9 +153,9 @@ do \
{ \
if (!OSF_PROFILE_BEFORE_PROLOGUE) \
{ \
char *prefix = ""; \
char *lprefix = LPREFIX; \
int labelno = LABELNO; \
const char *const prefix = ""; \
const char *const lprefix = LPREFIX; \
int labelno = LABELNO; \
\
/* Note that OSF/rose blew it in terms of calling mcount, \
since OSF/rose prepends a leading underscore, but mcount's \

View File

@ -5057,14 +5057,18 @@
""
{
static const char * const alt[2][4] = {
"lfetch.nta [%0]",
"lfetch.nt1 [%0]",
"lfetch.nt2 [%0]",
"lfetch [%0]",
"lfetch.excl.nta [%0]",
"lfetch.excl.nt1 [%0]",
"lfetch.excl.nt2 [%0]",
"lfetch.excl [%0]"
{
"lfetch.nta [%0]",
"lfetch.nt1 [%0]",
"lfetch.nt2 [%0]",
"lfetch [%0]"
},
{
"lfetch.excl.nta [%0]",
"lfetch.excl.nt1 [%0]",
"lfetch.excl.nt2 [%0]",
"lfetch.excl [%0]"
}
};
int i = (INTVAL (operands[1]));
int j = (INTVAL (operands[2]));

View File

@ -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 input_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 toc_relative_expr_p PARAMS ((rtx));
extern int expand_block_move PARAMS ((rtx[]));

View File

@ -395,6 +395,8 @@ while (0)
{ (OFFSET) = s390_arg_frame_offset (); } \
else if ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM) \
{ (OFFSET) = s390_arg_frame_offset (); } \
else \
abort(); \
}
#define CAN_DEBUG_WITHOUT_FP

View File

@ -1234,17 +1234,17 @@ enum reg_class
`hard-reg-set.h'. */
#define REG_CLASS_CONTENTS \
{ \
0x00000, \
0x00001, \
0x00002, \
0x00003, \
0x00004, \
0x000FF, \
0x00100, \
0x00300, \
0x6FFFF, \
0x10000, \
(1 << FIRST_PSEUDO_REGISTER) - 1 \
{ 0x00000 }, \
{ 0x00001 }, \
{ 0x00002 }, \
{ 0x00003 }, \
{ 0x00004 }, \
{ 0x000FF }, \
{ 0x00100 }, \
{ 0x00300 }, \
{ 0x6FFFF }, \
{ 0x10000 }, \
{ (1 << FIRST_PSEUDO_REGISTER) - 1 } \
}
/* A C expression whose value is a register class containing hard register

View File

@ -1254,7 +1254,7 @@ do { \
#define OUTPUT_ADDR_CONST_EXTRA(FILE, X, FAIL) \
if (GET_CODE (x) == TRUNCATE) \
return output_addr_const (FILE, XEXP (X, 0)); \
output_addr_const (FILE, XEXP (X, 0)); \
else \
goto FAIL;

View File

@ -566,13 +566,13 @@ dbxout_source_file (file, filename)
FILE *file;
const char *filename;
{
char ltext_label_name[100];
if (filename && (lastfile == 0 || strcmp (filename, lastfile)))
{
#ifdef DBX_OUTPUT_SOURCE_FILENAME
DBX_OUTPUT_SOURCE_FILENAME (file, filename);
#else
char ltext_label_name[100];
ASM_GENERATE_INTERNAL_LABEL (ltext_label_name, "Ltext",
source_label_number);
fprintf (file, "%s", ASM_STABS_OP);

View File

@ -1600,7 +1600,7 @@ profile_after_prologue (file)
static void
profile_function (file)
FILE *file;
FILE *file ATTRIBUTE_UNUSED;
{
#ifndef NO_PROFILE_COUNTERS
int align = MIN (BIGGEST_ALIGNMENT, LONG_TYPE_SIZE);

View File

@ -464,7 +464,7 @@ gen_expand (expand)
for (i = operands; i <= max_dup_opno; i++)
printf (" rtx operand%d;\n", 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 (" start_sequence ();\n");

View File

@ -41,7 +41,7 @@ extern int insn_current_address;
if (INSN_ADDRESSES_SET_P ()) \
{ \
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__; \
} \
} \