mirror of
https://github.com/pret/agbcc.git
synced 2026-04-23 02:17:31 -05:00
Fix most warnings
This commit is contained in:
parent
faa413eb0e
commit
3ed59ac9bf
|
|
@ -3133,7 +3133,7 @@ build_unary_op (code, xarg, noconvert)
|
|||
return fold (build1 (code, argtype, arg));
|
||||
}
|
||||
|
||||
error (errstring);
|
||||
error ("%s", errstring);
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -151,6 +151,7 @@ static struct pred_table
|
|||
{"address_operand", {CONST_INT, CONST_DOUBLE, CONST, SYMBOL_REF,
|
||||
LABEL_REF, SUBREG, REG, MEM, PLUS, MINUS, MULT}},
|
||||
{"register_operand", {SUBREG, REG}},
|
||||
{"s_register_operand", {SUBREG, REG}},
|
||||
{"scratch_operand", {SCRATCH, REG}},
|
||||
{"immediate_operand", {CONST_INT, CONST_DOUBLE, CONST, SYMBOL_REF,
|
||||
LABEL_REF}},
|
||||
|
|
|
|||
|
|
@ -4068,7 +4068,7 @@ mtherr (name, code)
|
|||
name = "square root";
|
||||
sprintf (errstr, "%s during real %s", ermsg[code], name);
|
||||
if (extra_warnings)
|
||||
warning (errstr);
|
||||
warning ("%s", errstr);
|
||||
/* Set global error message word */
|
||||
merror = code + 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1127,7 +1127,7 @@ extern rtx gen_rtx_MEM (enum machine_mode, rtx);
|
|||
|
||||
/* We need the cast here to ensure that we get the same result both with
|
||||
and without prototypes. */
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (N))
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (intptr_t) (N))
|
||||
|
||||
#define arg_pointer_rtx (&global_rtl.arg_pointer_val)
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ extern int target_flags;
|
|||
fprintf((STREAM), ", %d\t%s %d\n", (ROUNDED), (ASM_COMMENT_START), (SIZE)))
|
||||
|
||||
#define ASM_GENERATE_INTERNAL_LABEL(STRING,PREFIX,NUM) \
|
||||
sprintf ((STRING), "*%s%s%d", (LOCAL_LABEL_PREFIX), (PREFIX), (NUM))
|
||||
sprintf ((STRING), "*%s%s%ld", (LOCAL_LABEL_PREFIX), (PREFIX), (long unsigned int) (NUM))
|
||||
|
||||
/* This is how to output an internal numbered label where
|
||||
PREFIX is the class of label and NUM is the number within the class. */
|
||||
|
|
|
|||
|
|
@ -1046,7 +1046,7 @@ fatal_io_error(char *name)
|
|||
void
|
||||
fatal_insn(char *message, rtx insn)
|
||||
{
|
||||
error(message);
|
||||
error("%s", message);
|
||||
debug_rtx(insn);
|
||||
if (asm_out_file)
|
||||
fflush(asm_out_file);
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
lang.all.build:
|
||||
lang.all.cross:
|
||||
lang.start.encap:
|
||||
lang.rest.encap:
|
||||
lang.info:
|
||||
lang.dvi:
|
||||
lang.install-normal:
|
||||
lang.install-common:
|
||||
lang.install-info:
|
||||
lang.install-man:
|
||||
lang.uninstall:
|
||||
lang.distdir:
|
||||
lang.mostlyclean:
|
||||
lang.clean:
|
||||
lang.distclean:
|
||||
lang.extraclean:
|
||||
lang.maintainer-clean:
|
||||
lang.stage1:
|
||||
lang.stage2:
|
||||
lang.stage3:
|
||||
lang.stage4:
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
CROSS_LIBGCC1 = libgcc1-asm.a
|
||||
LIB1ASMSRC = arm/lib1funcs.asm
|
||||
# CYGNUS LOCAL interworking
|
||||
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _call_via_rX
|
||||
# END CYGNUS LOCAL interworking
|
||||
|
||||
# These are really part of libgcc1, but this will cause them to be
|
||||
# built correctly, so...
|
||||
|
||||
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
|
||||
|
||||
fp-bit.c: $(srcdir)/config/fp-bit.c
|
||||
echo '#define FLOAT' > fp-bit.c
|
||||
echo '#ifndef __ARMEB__' >> fp-bit.c
|
||||
echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
|
||||
echo '#endif' >> fp-bit.c
|
||||
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
|
||||
|
||||
dp-bit.c: $(srcdir)/config/fp-bit.c
|
||||
echo '#ifndef __ARMEB__' > dp-bit.c
|
||||
echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
|
||||
echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
|
||||
echo '#endif' >> dp-bit.c
|
||||
cat $(srcdir)/config/fp-bit.c >> dp-bit.c
|
||||
|
||||
# CYGNUS LOCAL
|
||||
MULTILIB_OPTIONS = mlittle-endian/mbig-endian mhard-float/msoft-float mapcs-32/mapcs-26 mno-thumb-interwork/mthumb-interwork fno-leading-underscore/fleading-underscore mcpu=arm7
|
||||
MULTILIB_DIRNAMES = le be fpu soft 32bit 26bit normal interwork elf under nofmult
|
||||
MULTILIB_EXCEPTIONS = *mapcs-26/*mthumb-interwork* *mthumb-interwork*/*mcpu=arm7*
|
||||
MULTILIB_MATCHES = mbig-endian=mbe mlittle-endian=mle mcpu?arm7=mcpu?arm7d mcpu?arm7=mcpu?arm7di mcpu?arm7=mcpu?arm70 mcpu?arm7=mcpu?arm700 mcpu?arm7=mcpu?arm700i mcpu?arm7=mcpu?arm710 mcpu?arm7=mcpu?arm710c mcpu?arm7=mcpu?arm7100 mcpu?arm7=mcpu?arm7500 mcpu?arm7=mcpu?arm7500fe mcpu?arm7=mcpu?arm6 mcpu?arm7=mcpu?arm60 mcpu?arm7=mcpu?arm600 mcpu?arm7=mcpu?arm610 mcpu?arm7=mcpu?arm620
|
||||
LIBGCC = stmp-multilib
|
||||
INSTALL_LIBGCC = install-multilib
|
||||
# END CYGNUS LOCAL
|
||||
|
||||
TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc
|
||||
|
|
@ -1587,7 +1587,7 @@ check_format_info (info, params)
|
|||
++format_chars;
|
||||
if (params == 0)
|
||||
{
|
||||
warning (tfaff);
|
||||
warning ("%s", tfaff);
|
||||
return;
|
||||
}
|
||||
if (info->first_arg_num != 0)
|
||||
|
|
@ -1630,7 +1630,7 @@ check_format_info (info, params)
|
|||
++format_chars;
|
||||
if (params == 0)
|
||||
{
|
||||
warning (tfaff);
|
||||
warning ("%s", tfaff);
|
||||
return;
|
||||
}
|
||||
cur_param = TREE_VALUE (params);
|
||||
|
|
@ -1825,7 +1825,7 @@ check_format_info (info, params)
|
|||
continue;
|
||||
if (params == 0)
|
||||
{
|
||||
warning (tfaff);
|
||||
warning ("%s", tfaff);
|
||||
return;
|
||||
}
|
||||
cur_param = TREE_VALUE (params);
|
||||
|
|
|
|||
|
|
@ -3147,7 +3147,7 @@ build_unary_op (code, xarg, noconvert)
|
|||
return fold (build1 (code, argtype, arg));
|
||||
}
|
||||
|
||||
error (errstring);
|
||||
error ("%s", errstring);
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
#include "auto-host.h"
|
||||
#include "gansidecl.h"
|
||||
#include "i386/xm-i386.h"
|
||||
#ifndef HAVE_ATEXIT
|
||||
#define HAVE_ATEXIT
|
||||
#endif
|
||||
#ifndef POSIX
|
||||
#define POSIX
|
||||
#endif
|
||||
#ifndef BSTRING
|
||||
#define BSTRING
|
||||
#endif
|
||||
|
|
@ -148,7 +148,7 @@ do { \
|
|||
/* Make an internal label into a string. */
|
||||
#ifndef ASM_GENERATE_INTERNAL_LABEL
|
||||
#define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \
|
||||
sprintf (STRING, "*%s%s%d", LOCAL_LABEL_PREFIX, PREFIX, NUM)
|
||||
sprintf (STRING, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long int) NUM)
|
||||
#endif
|
||||
|
||||
/* Nothing special is done about jump tables */
|
||||
|
|
|
|||
|
|
@ -5577,7 +5577,7 @@ output_func_epilogue (f, frame_size)
|
|||
else if (lr_save_eliminated)
|
||||
fprintf (f, (TARGET_APCS_32 ? "\tmov\t%spc, %slr\n"
|
||||
: "\tmovs\t%spc, %slr\n"),
|
||||
REGISTER_PREFIX, REGISTER_PREFIX, f);
|
||||
REGISTER_PREFIX, REGISTER_PREFIX);
|
||||
else
|
||||
print_multi_reg (f, "ldmfd\t%ssp!", live_regs_mask | 0x8000,
|
||||
TARGET_APCS_32 ? FALSE : TRUE);
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#include "auto-host.h"
|
||||
#include "gansidecl.h"
|
||||
#include "i386/xm-i386.h"
|
||||
#ifndef HAVE_ATEXIT
|
||||
#define HAVE_ATEXIT
|
||||
#endif
|
||||
#ifndef POSIX
|
||||
#define POSIX
|
||||
#endif
|
||||
#ifndef BSTRING
|
||||
#define BSTRING
|
||||
#endif
|
||||
|
|
@ -453,41 +453,41 @@ print_blocks_internal (stream, block, level)
|
|||
static char *vars_types_name[] = {"vars: ", "types:"};
|
||||
|
||||
fprintf (stream, "%*sBlock ", level*4, "");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX, (HOST_WIDE_INT) block);
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX, (HOST_WIDE_INT) (intptr_t) block);
|
||||
|
||||
if (BLOCK_CHAIN (block))
|
||||
{
|
||||
fprintf (stream, ", chain ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_CHAIN (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_CHAIN (block));
|
||||
}
|
||||
|
||||
if (BLOCK_VARS (block))
|
||||
{
|
||||
fprintf (stream, ", vars ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_VARS (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_VARS (block));
|
||||
}
|
||||
|
||||
if (BLOCK_TYPE_TAGS (block))
|
||||
{
|
||||
fprintf (stream, ", types ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_TYPE_TAGS (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_TYPE_TAGS (block));
|
||||
}
|
||||
|
||||
if (BLOCK_SUBBLOCKS (block))
|
||||
{
|
||||
fprintf (stream, ", subblocks ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_SUBBLOCKS (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_SUBBLOCKS (block));
|
||||
}
|
||||
|
||||
if (BLOCK_ABSTRACT_ORIGIN (block))
|
||||
{
|
||||
fprintf (stream, ", abstract origin ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_ABSTRACT_ORIGIN (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_ABSTRACT_ORIGIN (block));
|
||||
}
|
||||
|
||||
if (BLOCK_ABSTRACT (block))
|
||||
|
|
|
|||
|
|
@ -5729,7 +5729,7 @@ mtherr (name, code)
|
|||
name = "square root";
|
||||
sprintf (errstr, "%s during real %s", ermsg[code], name);
|
||||
if (extra_warnings)
|
||||
warning (errstr);
|
||||
warning ("%s", errstr);
|
||||
/* Set global error message word */
|
||||
merror = code + 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1132,7 +1132,7 @@ extern rtx gen_rtx_MEM PROTO((enum machine_mode, rtx));
|
|||
|
||||
/* We need the cast here to ensure that we get the same result both with
|
||||
and without prototypes. */
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (N))
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (intptr_t) (N))
|
||||
|
||||
|
||||
/* If HARD_FRAME_POINTER_REGNUM is defined, then a special dummy reg
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
#include "gansidecl.h"
|
||||
#include "arm/xm-arm.h"
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#define TARGET_CPU_DEFAULT (TARGET_CPU_generic)
|
||||
#include "gansidecl.h"
|
||||
#include "arm/unknown-elf.h"
|
||||
|
|
@ -1393,7 +1393,7 @@ fatal_insn (message, insn)
|
|||
char *message;
|
||||
rtx insn;
|
||||
{
|
||||
error (message);
|
||||
error ("%s", message);
|
||||
debug_rtx (insn);
|
||||
if (asm_out_file)
|
||||
fflush (asm_out_file);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user