diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-07-03 01:38:49 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-07-03 01:38:49 +0100 |
commit | ea40ba9c04882ea2ddf987e2783f98cc38bac081 (patch) | |
tree | 8a19c399c9e578fcd71ada4df98540c8fc66eb48 /gcc/config | |
parent | 3be91f647000940ada4a7c512a2cf5d6e2971817 (diff) | |
download | gcc-ea40ba9c04882ea2ddf987e2783f98cc38bac081.zip gcc-ea40ba9c04882ea2ddf987e2783f98cc38bac081.tar.gz gcc-ea40ba9c04882ea2ddf987e2783f98cc38bac081.tar.bz2 |
c-common.h (GCC_DIAG_STYLE): Define.
* c-common.h (GCC_DIAG_STYLE): Define.
* c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
version for format checking to 4.1.
* c-format.c: Include toplev.h after c-common.h.
(enum format_type): Add gcc_tdiag_format_type.
(gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
(format_types_orig): Add gcc_tdiag.
(init_dynamic_diag_info): Support gcc_tdiag formats.
(handle_format_attribute): Likewise.
* toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
(GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
version for format checking to 4.1.
(warning0, warning, error, pedwarn, sorry): Use
ATTRIBUTE_GCC_DIAG.
* config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
(finish_aliases_1): Do not use %qE.
* config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
Correct format bugs.
* config/v850/v850-protos.h (v850_output_aligned_bss): Change size
parameter to unsigned HOST_WIDE_INT.
* config/v850/v850.c (v850_output_aligned_bss): Likewise.
cp:
* cp-tree.h (GCC_DIAG_STYLE): #undef before defining. Change
minimum GCC version for format checking to 4.1.
testsuite:
* gcc.dg/format/gcc_diag-1.c: Update.
From-SVN: r101543
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/arm.c | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.c | 4 | ||||
-rw-r--r-- | gcc/config/pdp11/pdp11.c | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 | ||||
-rw-r--r-- | gcc/config/v850/v850-protos.h | 2 | ||||
-rw-r--r-- | gcc/config/v850/v850.c | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 4e17d3a..4a87848 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -14750,7 +14750,7 @@ arm_unwind_emit_stm (FILE * asm_out_file, rtx p) else if (reg >= FIRST_FPA_REGNUM && reg <= LAST_FPA_REGNUM) { /* FPA registers are done differently. */ - asm_fprintf (asm_out_file, "\t.save %r, %d\n", reg, nregs); + asm_fprintf (asm_out_file, "\t.save %r, %wd\n", reg, nregs); return; } else @@ -14848,7 +14848,7 @@ arm_unwind_emit_set (FILE * asm_out_file, rtx p) || GET_CODE (XEXP (e1, 1)) != CONST_INT) abort (); - asm_fprintf (asm_out_file, "\t.pad #%d\n", + asm_fprintf (asm_out_file, "\t.pad #%wd\n", -INTVAL (XEXP (e1, 1))); } else if (REGNO (e0) == HARD_FRAME_POINTER_REGNUM) @@ -14863,7 +14863,7 @@ arm_unwind_emit_set (FILE * asm_out_file, rtx p) abort (); reg = REGNO (XEXP (e1, 0)); offset = INTVAL (XEXP (e1, 1)); - asm_fprintf (asm_out_file, "\t.setfp %r, %r, #%d\n", + asm_fprintf (asm_out_file, "\t.setfp %r, %r, #%wd\n", HARD_FRAME_POINTER_REGNUM, reg, INTVAL (XEXP (e1, 1))); } diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 7743704..f3d4376 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -14659,7 +14659,7 @@ get_element_number (tree vec_type, tree arg) if (!host_integerp (arg, 1) || (elt = tree_low_cst (arg, 1), elt > max)) { - error ("selector must be an integer constant in the range 0..%i", max); + error ("selector must be an integer constant in the range 0..%wi", max); return 0; } diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index fd97268..1b5acc4 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -1891,7 +1891,7 @@ mmix_expand_prologue (void) /* Make sure we don't get an unaligned stack. */ if ((stack_space_to_allocate % 8) != 0) - internal_error ("stack frame not a multiple of 8 bytes: %d", + internal_error ("stack frame not a multiple of 8 bytes: %wd", stack_space_to_allocate); if (current_function_pretend_args_size) @@ -2127,7 +2127,7 @@ mmix_expand_epilogue (void) /* Make sure we don't get an unaligned stack. */ if ((stack_space_to_deallocate % 8) != 0) - internal_error ("stack frame not a multiple of octabyte: %d", + internal_error ("stack frame not a multiple of octabyte: %wd", stack_space_to_deallocate); /* We will add back small offsets to the stack pointer as we go. diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index 3ba5bc9..4036b12 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -245,7 +245,7 @@ pdp11_output_function_prologue (FILE *stream, HOST_WIDE_INT size) { fprintf (stream, "\t/*abuse empty parameter slot for locals!*/\n"); if (size > 2) - fprintf(stream, "\tsub $%#o, sp\n", size - 2); + asm_fprintf (stream, "\tsub $%#wo, sp\n", size - 2); } } @@ -285,7 +285,7 @@ pdp11_output_function_prologue (FILE *stream, HOST_WIDE_INT size) /* make frame */ if (fsize) - fprintf (stream, "\tsub $%#o, sp\n", fsize); + asm_fprintf (stream, "\tsub $%#wo, sp\n", fsize); /* save CPU registers */ for (regno = 0; regno < 8; regno++) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a1cf22b..0472169 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -6826,7 +6826,7 @@ altivec_expand_builtin (tree exp, rtx target, bool *expandedp) && fcode <= ALTIVEC_BUILTIN_OVERLOADED_LAST) { *expandedp = true; - error ("unresolved overload for Altivec builtin %qE", fndecl); + error ("unresolved overload for Altivec builtin %qF", fndecl); return const0_rtx; } diff --git a/gcc/config/v850/v850-protos.h b/gcc/config/v850/v850-protos.h index 08e9f8b..aff1241 100644 --- a/gcc/config/v850/v850-protos.h +++ b/gcc/config/v850/v850-protos.h @@ -61,7 +61,7 @@ extern rtx function_arg (CUMULATIVE_ARGS *, Mmode, tree, int #ifdef TREE_CODE extern int v850_interrupt_function_p (tree); -extern void v850_output_aligned_bss (FILE *, tree, const char *, int, int); +extern void v850_output_aligned_bss (FILE *, tree, const char *, unsigned HOST_WIDE_INT, int); extern void v850_output_common (FILE *, tree, const char *, int, int); extern void v850_output_local (FILE *, tree, const char *, int, int); extern v850_data_area v850_get_data_area (tree); diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index efc8320..676c516 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -2485,7 +2485,7 @@ void v850_output_aligned_bss (FILE * file, tree decl, const char * name, - int size, + unsigned HOST_WIDE_INT size, int align) { switch (v850_get_data_area (decl)) |