From a2bec818635587d03fa02bd57c2bf0985510de56 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 19 Jul 2004 14:48:09 +0000 Subject: Makefile.in (c-format.o): Depend on c-format.h. gcc/ * Makefile.in (c-format.o): Depend on c-format.h. * c-format.h: New file. (struct format_char_info): Add CHAIN member. * c-format.c: Move some types and constants to c-format.h. (format_type_error): Set to -1. (struct function_format_info): Use an int for format_type. (decode_format_type): Return an int. Return format_type_error on error. (print_char_table, asm_fprintf_char_table, gcc_diag_char_table) (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table) (scan_char_table, time_char_table, monetary_char_table): Initialize CHAIN to NULL. (n_format_types): New variable. (check_format_info_main): Handle CHAIN in format_char_info. (handle_format_attribute): Handle TARGET_FORMAT_TYPES and TARGET_N_FORMAT_TYPES. * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*) (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c. * config/sol2-c.c: New file. * config/t-sol2: New file. * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define. * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES. * doc/extend.texi (Target Format Checks): New section. (Function Attributes): Mention it. * doc/invoke.texi: Mention target format checks. * doc/sourcebuild.texi: Mention target format checks. * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES. testsuite/ * gcc.dg/format/cmn-err-1.c: New test. From-SVN: r84920 --- gcc/config/sparc/elf.h | 4 ++++ gcc/config/sparc/sp64-elf.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'gcc/config/sparc') diff --git a/gcc/config/sparc/elf.h b/gcc/config/sparc/elf.h index 5f01a34..150f097 100644 --- a/gcc/config/sparc/elf.h +++ b/gcc/config/sparc/elf.h @@ -48,3 +48,7 @@ Boston, MA 02111-1307, USA. */ #undef SUN_INTEGER_MULTIPLY_64 #define SUN_INTEGER_MULTIPLY_64 0 + +/* Don't include Solaris-specific format checks. */ +#undef TARGET_N_FORMAT_TYPES +#undef TARGET_FORMAT_TYPES diff --git a/gcc/config/sparc/sp64-elf.h b/gcc/config/sparc/sp64-elf.h index 650c3ff..16fa8e0 100644 --- a/gcc/config/sparc/sp64-elf.h +++ b/gcc/config/sparc/sp64-elf.h @@ -122,3 +122,7 @@ crtbegin.o%s \ #undef PREFERRED_DEBUGGING_TYPE #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG + +/* Don't include Solaris-specific format checks. */ +#undef TARGET_N_FORMAT_TYPES +#undef TARGET_FORMAT_TYPES -- cgit v1.1