From ea40ba9c04882ea2ddf987e2783f98cc38bac081 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sun, 3 Jul 2005 01:38:49 +0100 Subject: 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 --- gcc/config/mmix/mmix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config/mmix/mmix.c') 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. -- cgit v1.1