aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-pch.c
AgeCommit message (Collapse)AuthorFilesLines
2003-05-13diagnostic.c (output_format): Add support for %m.Zack Weinberg1-14/+8
* diagnostic.c (output_format): Add support for %m. (output_printf, output_verbatim, diagnostic_set_info, verbatim): Set err_no field of the text_info structure being initialized. (fatal_io_error): Delete function. * diagnostic.h (text_info): Add err_no field. * toplev.h (fatal_io_error): Delete prototype. * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c * f/com.c, java/jcf-parse.c, java/jcf-write.c, java/lex.c * objc/objc-act.c: Replace all calls to fatal_io_error with calls to fatal_error; add ": %m" to the end of all the affected error messages. From-SVN: r66769
2003-04-12c-pch.c: Include flags.h.Geoffrey Keating1-25/+72
* c-pch.c: Include flags.h. Add comments to routines. (struct c_pch_validity): New. (get_ident): Update PCH file version number. (pch_init): Output current debugging type. (c_common_valid_pch): Check debugging type. * Makefile.in (c-pch.o): Update dependencies. * flags.h (debug_type_names): Declare. * toplev.c (debug_type_names): Move out of decode_g_option. From-SVN: r65499
2003-04-05dbxout.c (scope_labelno): Add GTY.Geoffrey Keating1-11/+6
2003-04-04 Geoffrey Keating <geoffk@apple.com> * dbxout.c (scope_labelno): Add GTY. (have_used_extensions): Add GTY. (source_label_number): Add GTY. (lastfile): Add GTY. (lastfile_is_base): New. (base_input_file): New. (dbxout_handle_pch): New. (dbx_debug_hooks): Add handle_pch. (xcoff_debug_hooks): Likewise. (dbxout_function_end): Remove scope_labelno. (dbxout_init): Set base_input_file. (dbxout_handle_pch): New. (dbxout_source_file): Honour lastfile_is_base. * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch. * sdbout.c (sdb_debug_hooks): Add dummy handle_pch. * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch. * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch. * debug.c (do_nothing_debug_hooks): Add dummy handle_pch. * debug.h (struct gcc_debug_hooks): Add handle_pch. * c-pch.c (pch_init): Don't call start_source_file, but do call handle_pch. (c_common_write_pch): Call handle_pch. (c_common_read_pch): Don't call start_source_file, or end_source_file. Index: gcc/testsuite/ChangeLog 2003-04-04 Geoffrey Keating <geoffk@apple.com> * gcc.dg/pch/static-3.c: New. * gcc.dg/pch/static-3.hs: New. * gcc.dg/pch/pch.exp: Test with -O0 -g too. From-SVN: r65266
2003-03-13c-pch.c, [...]: Replace "GNU CC" with "GCC".Nathanael Nerode1-4/+4
* c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c, langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace "GNU CC" with "GCC". From-SVN: r64297
2003-03-07lang-specs.h (objective-c-header): Use .gch not .pch; support ↵Geoffrey Keating1-8/+4
-no-integrated-cpp. * objc/lang-specs.h (objective-c-header): Use .gch not .pch; support -no-integrated-cpp. * c-pch.c (get_ident): Use c_language_kind and flag_objc rather than langhooks.name. From-SVN: r63955
2003-03-07c-pch.c: Include langhooks.h.Geoffrey Keating1-7/+33
* c-pch.c: Include langhooks.h. (IDENT_LENGTH): New. (get_ident): New. (pch_ident): Delete. (pch_init): Use get_ident, IDENT_LENGTH. (c_common_valid_pch): Likewise. Also, use actual language in warning message. * Makefile.in (c-pch.o): Add langhooks.h to dependencies. * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate c-parse.in. * objc/Make-lang.in (objc/objc-act.o): Add dependency on gt-objc-objc-act.h. (gt-objc-objc-act.h): New rule. * objc/lang-specs.h: Support PCH. * objc/objc-act.c: Include gt-objc-objc-act.h. (objc_add_static_instance): Move num_static_inst out, mark for PCH. (build_selector_reference_decl): Move idx out, mark for PCH. (build_class_reference_decl): Likewise. (build_objc_string_decl): Move *_idx out, mark for PCH. (build_tmp_function_decl): Move xxx out, mark for PCH. From-SVN: r63924
2003-01-12c-pch.c (asm_file_startpos): Change to `long'.Kaveh R. Ghazi1-8/+8
* c-pch.c (asm_file_startpos): Change to `long'. (pch_init): Use ftell, not ftello. (c_common_write_pch): Use ftell/fseek, not ftello/fseeko. Use `long' instead of `off_t'. (c_common_read_pch): Likewise. * ggc-common.c (gt_pch_save): Use long/ftell instead of off_t/ftello. From-SVN: r61233
2003-01-10Merge from pch-branch.Geoffrey Keating1-0/+226
From-SVN: r61136