-
- Downloads
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
Showing
- gcc/ChangeLog 33 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 1 addition, 1 deletiongcc/Makefile.in
- gcc/c-format.c 192 additions, 407 deletionsgcc/c-format.c
- gcc/c-format.h 299 additions, 0 deletionsgcc/c-format.h
- gcc/config.gcc 9 additions, 3 deletionsgcc/config.gcc
- gcc/config/sol2-c.c 72 additions, 0 deletionsgcc/config/sol2-c.c
- gcc/config/sol2.h 3 additions, 0 deletionsgcc/config/sol2.h
- gcc/config/sparc/elf.h 4 additions, 0 deletionsgcc/config/sparc/elf.h
- gcc/config/sparc/sp64-elf.h 4 additions, 0 deletionsgcc/config/sparc/sp64-elf.h
- gcc/config/t-sol2 5 additions, 0 deletionsgcc/config/t-sol2
- gcc/doc/extend.texi 24 additions, 0 deletionsgcc/doc/extend.texi
- gcc/doc/invoke.texi 1 addition, 1 deletiongcc/doc/invoke.texi
- gcc/doc/sourcebuild.texi 3 additions, 0 deletionsgcc/doc/sourcebuild.texi
- gcc/doc/tm.texi 11 additions, 0 deletionsgcc/doc/tm.texi
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/format/cmn-err-1.c 36 additions, 0 deletionsgcc/testsuite/gcc.dg/format/cmn-err-1.c
Loading
Please register or sign in to comment