* arm/aof.h (aof_text_section, aof_data_section): Don't declare.
(common_section): Delete unused variable.
(ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
(ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
* arm-protos.h (arm_poke_function_name, aof_add_import,
aof_delete_import): Const-ify.
* arm.c (legitimize_pic_address): Wrap variables in the macro
controlling their usage.
(arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
(arm_poke_function_name, pic_chain, import, aof_add_import,
aof_delete_import): Const-ify.
* i386.c (ix86_osf_output_function_prologue): Const-ify.
* i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
* i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
* i860/sysv3.h: Add missing comment closure.
* m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
* m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
to symbolic_operand.
* config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
(i960-*-*): Set tmake_file.
(sparc86x-*-elf*): Fix typo in header name.
* sched-rgn.c (schedule_insns): Delete unused variable.
From-SVN: r46776
+2001-11-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
+ (common_section): Delete unused variable.
+ (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
+ (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
+ * arm-protos.h (arm_poke_function_name, aof_add_import,
+ aof_delete_import): Const-ify.
+ * arm.c (legitimize_pic_address): Wrap variables in the macro
+ controlling their usage.
+ (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
+ (arm_poke_function_name, pic_chain, import, aof_add_import,
+ aof_delete_import): Const-ify.
+ * i386.c (ix86_osf_output_function_prologue): Const-ify.
+ * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
+ ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
+ * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
+ * i860/sysv3.h: Add missing comment closure.
+ * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
+ * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
+ to symbolic_operand.
+
+ * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
+ (i960-*-*): Set tmake_file.
+ (sparc86x-*-elf*): Fix typo in header name.
+
+ * sched-rgn.c (schedule_insns): Delete unused variable.
+
2001-11-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
PR c/2820
hppa*-*-* | parisc*-*-*)
cpu_type=pa
;;
-m68000-*-*)
+m680[02]0-*-*)
cpu_type=m68k
;;
mips*-*-*)
;;
i960-*-*) # Default i960 environment.
use_collect2=yes
+ tmake_file=i960/t-960bare
c_target_objs="i960-c.o"
cxx_target_objs="i960-c.o"
;;
tmake_file=sparc/t-sp86x
;;
sparc86x-*-elf*)
- tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
+ tm_file="sparc/sol2.h sparc/elf.h sparc/sp86x-elf.h"
tmake_file=sparc/t-sp86x
extra_parts="crtbegin.o crtend.o"
;;
two areas with the same attributes will be linked adjacently in the
resulting executable, so we have to be careful not to do pc-relative
addressing across such boundaries. */
-char *aof_text_section ();
#define TEXT_SECTION_ASM_OP aof_text_section ()
#define SELECT_RTX_SECTION(MODE,RTX,ALIGN) text_section ();
-char *aof_data_section ();
#define DATA_SECTION_ASM_OP aof_data_section ()
#define EXTRA_SECTIONS in_zero_init, in_common
void \
common_section () \
{ \
- static int common_count = 1; \
if (in_section != in_common) \
{ \
in_section = in_common; \
int i; \
const char *ptr = (PTR); \
fprintf ((STREAM), "\tDCB"); \
- for (i = 0; i < (LEN); i++) \
+ for (i = 0; i < (long)(LEN); i++) \
fprintf ((STREAM), " &%02x%s", \
(unsigned ) *(ptr++), \
- (i + 1 < (LEN) \
+ (i + 1 < (long)(LEN) \
? ((i & 3) == 3 ? "\n\tDCB" : ",") \
: "\n")); \
}
fprintf ((STREAM), "|%s|", NAME)
#define ASM_GENERATE_INTERNAL_LABEL(STRING,PREFIX,NUM) \
- sprintf ((STRING), "*|%s..%d|", (PREFIX), (NUM))
+ sprintf ((STRING), "*|%s..%ld|", (PREFIX), (long)(NUM))
#define ASM_FORMAT_PRIVATE_NAME(OUTVAR,NAME,NUMBER) \
((OUTVAR) = (char *) alloca (strlen ((NAME)) + 10), \
extern const char * arithmetic_instr PARAMS ((rtx, int));
extern void output_ascii_pseudo_op PARAMS ((FILE *, const unsigned char *, int));
extern const char * output_return_instruction PARAMS ((rtx, int, int));
-extern void arm_poke_function_name PARAMS ((FILE *, char *));
+extern void arm_poke_function_name PARAMS ((FILE *, const char *));
extern void arm_print_operand PARAMS ((FILE *, rtx, int));
extern void arm_print_operand_address PARAMS ((FILE *, rtx));
extern void arm_final_prescan_insn PARAMS ((rtx));
extern void aof_dump_pic_table PARAMS ((FILE *));
extern char * aof_text_section PARAMS ((void));
extern char * aof_data_section PARAMS ((void));
-extern void aof_add_import PARAMS ((char *));
-extern void aof_delete_import PARAMS ((char *));
+extern void aof_add_import PARAMS ((const char *));
+extern void aof_delete_import PARAMS ((const char *));
extern void aof_dump_imports PARAMS ((FILE *));
extern void zero_init_section PARAMS ((void));
extern void common_section PARAMS ((void));
{
if (GET_CODE (orig) == SYMBOL_REF)
{
+#ifndef AOF_ASSEMBLER
rtx pic_ref, address;
+#endif
rtx insn;
int subregs = 0;
void
arm_finalize_pic (prologue)
- int prologue;
+ int prologue ATTRIBUTE_UNUSED;
{
#ifndef AOF_ASSEMBLER
rtx l1, pic_tmp, pic_tmp2, seq, pic_rtx;
void
arm_poke_function_name (stream, name)
FILE * stream;
- char * name;
+ const char * name;
{
unsigned long alignlength;
unsigned long length;
struct pic_chain
{
struct pic_chain * next;
- char * symname;
+ const char * symname;
};
static struct pic_chain * aof_pic_chain = NULL;
struct import
{
struct import * next;
- char * name;
+ const char * name;
};
static struct import * imports_list = NULL;
void
aof_add_import (name)
- char * name;
+ const char * name;
{
struct import * new;
void
aof_delete_import (name)
- char * name;
+ const char * name;
{
struct import ** old;
FILE *file;
HOST_WIDE_INT size;
{
- char *prefix = "";
- char *lprefix = LPREFIX;
+ const char *prefix = "";
+ const char *const lprefix = LPREFIX;
int labelno = profile_label_no;
#ifdef OSF_OS
do { long value; \
REAL_VALUE_TO_TARGET_SINGLE ((VALUE), value); \
if (sizeof (int) == sizeof (long)) \
- fprintf((FILE), "%s0x%x\n", ASM_LONG, value); \
+ fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value); \
else \
fprintf((FILE), "%s0x%lx\n", ASM_LONG, value); \
} while (0)
REAL_VALUE_TO_TARGET_DOUBLE ((VALUE), value); \
if (sizeof (int) == sizeof (long)) \
{ \
- fprintf((FILE), "%s0x%x\n", ASM_LONG, value[0]); \
- fprintf((FILE), "%s0x%x\n", ASM_LONG, value[1]); \
+ fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[0]); \
+ fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[1]); \
} \
else \
{ \
REAL_VALUE_TO_TARGET_LONG_DOUBLE ((VALUE), value); \
if (sizeof (int) == sizeof (long)) \
{ \
- fprintf((FILE), "%s0x%x\n", ASM_LONG, value[0]); \
- fprintf((FILE), "%s0x%x\n", ASM_LONG, value[1]); \
- fprintf((FILE), "%s0x%x\n", ASM_LONG, value[2]); \
+ fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[0]); \
+ fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[1]); \
+ fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[2]); \
} \
else \
{ \
sets long & unsigned long in 18 & 19, not in 100 & 101 as shown above. */
#define DBX_OUTPUT_STANDARD_TYPES(syms) \
-{ char *dtyps[]={"", "char", "short int", "int", "logical*1", \
+{ static const char *const dtyps[] = { \
+ "", "char", "short int", "int", "logical*1", \
"logical*2", "logical*4", "float", "double", "complex", \
"doublecomplex", "character", "void", "nil", "boolean", \
"unsigned char", "short unsigned int", "unsigned int", \
fprintf ((FILE), "\t.set .,.+%u\n", (ROUNDED)); \
} while (0)
-/* The routine used to output string literals.
+/* The routine used to output string literals. */
#define ASCII_DATA_ASM_OP "\t.byte\t"
if (TARGET_5200) \
return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \
else \
- return "jmp %%pc@(2,%0:w)" \
+ return "jmp %%pc@(2,%0:w)"; \
} while (0)
/* Here are the new register names. */
#undef SELECT_RTX_SECTION
#define SELECT_RTX_SECTION(MODE,RTX,ALIGN) \
{ \
- if (flag_pic && symbolic_operand (RTX)) \
+ if (flag_pic && symbolic_operand ((RTX), (MODE))) \
data_section (); \
else \
const_section (); \
for (rgn = 0; rgn < nr_regions; rgn++)
if (RGN_NR_BLOCKS (rgn) == 1)
{
- int b;
-
sbitmap_zero (blocks);
SET_BIT (blocks, rgn_bb_table[RGN_BLOCKS (rgn)]);