aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lang-specs.h
AgeCommit message (Collapse)AuthorFilesLines
2015-06-22gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if ↵Pierre-Marie de Rodat1-2/+3
-fdump-ada-spec is passed but not if... * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if -fdump-ada-spec is passed but not if -fsyntax-only is. cp/ * lang-specs.h: Pass "-o %g.s" to cc1plus for headers even if -fdump-ada-spec is passed. From-SVN: r224755
2015-01-05Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r219188
2014-01-02Update copyright years in gcc/Richard Sandiford1-1/+1
From-SVN: r206289
2013-01-10Update copyright years in gcc/Richard Sandiford1-2/+1
From-SVN: r195098
2011-03-06lang-specs.h: Match -save-temps* instead of -save-temps.Joseph Myers1-9/+9
cp: * lang-specs.h: Match -save-temps* instead of -save-temps. objc: * lang-specs.h: Match -save-temps* instead of -save-temps. objcp * lang-specs.h: Match -save-temps* instead of -save-temps. From-SVN: r170715
2010-06-25gcc.c (translate_options): Don't mention +e in comment.Joseph Myers1-4/+4
* gcc.c (translate_options): Don't mention +e in comment. (process_command): Don't handle +e specially. cp: * lang-specs.h: Remove +e handling. objcp: * lang-specs.h: Remove +e handling. From-SVN: r161355
2010-06-01Make-lang.in (CXX_C_OBJS): Add c-ada-spec.o.Arnaud Charlet1-1/+2
* Make-lang.in (CXX_C_OBJS): Add c-ada-spec.o. * decl2.c: Include langhooks.h and c-ada-spec.h. (cpp_check, collect_source_refs, collect_ada_namespace, collect_all_refs): New functions. (cp_write_global_declarations): Add handling of -fdump-ada-spec. * lang-specs.h: Ditto. Co-Authored-By: Matthew Gingell <gingell@adacore.com> From-SVN: r160103
2007-08-06re PR pch/13676 (GCC failes to recognize files ending in .hpp as headers to ↵Alfred Minarik1-0/+6
be precompiled) PR pch/13676 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header. cp: * lang-specs.h: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header. * g++spec.c (lang_specific_driver): Check them. From-SVN: r127239
2007-08-02typeck.c: Change copyright header to refer to version 3 of the GNU General ↵Nick Clifton1-5/+4
Public... * typeck.c: Change copyright header to refer to version 3 of the GNU General Public License and to point readers at the COPYING3 file and the FSF's license web page. * optimize.c, lang-specs.h, init.c, class.c, repo.c, decl.c, config-lang.in, cp-tree.def, call.c, decl.h, ptree.c, Make-lang.in, method.c, rtti.c, cp-objcp-common.c, g++spec.c, cp-objcp-common.h, except.c, error.c, operators.def, cvt.c, tree.c, mangle.c, cp-tree.h, dump.c, search.c, friend.c, expr.c, cp-gimplify.c, cxx-pretty-print.c, cp-lang.c, typeck2.c, pt.c, cxx-pretty-print.h, semantics.c, name-lookup.c, lex.c, decl2.c, name-lookup.h, parser.c: Likewise. From-SVN: r127154
2006-08-25re PR driver/28528 (C language extensions override -x in C++ driver)Danny Smith1-1/+1
PR driver/28528 * g++spec.c (lang_specific_driver): Always check if we need to swallow a space-separated arg to '-x'. * lang-specs.h: Don't create ouput files for '-xc++-header' if -fsyntax-only. From-SVN: r116392
2005-06-25Update FSF address.Kelley Cook1-2/+2
From-SVN: r101312
2005-06-15Canonicalize whitespace.Mike Stump1-1/+1
From-SVN: r100965
2004-05-30* lang-specs.h: Add missing initializers for .ii.Andreas Jaeger1-2/+2
From-SVN: r82461
2004-04-05gcc.c (combine_flag): New global variable, for new driver option.Caroline Tice1-12/+12
2004-04-05 Caroline Tice <ctice@apple.com> * gcc.c (combine_flag): New global variable, for new driver option. (struct compiler): Add two new fields, to be used when combining multiple input files in a single pass (IMA). (default_compilers): Add values for the new fields to all compiler entries. Modify the "@c" compiler entry for doing IMA properly with "-save-temps" and the "combine" flag. (option_map): Add new driver option, "--combine", to tell driver to pass multiple input files to compiler at one time. (have_o_argbuf_index): New global variable. (store_arg): Modify to assign value to have_o_argbuf_index. (struct infile): Add three new fields, to help with IMA. (display_help): Add help for new "combine" option. (process_command): Remove local variable have_o; add code to check for new "combine" option; remove assignment to combine_inputs. (do_spec_1): Modify to deal with IMA better. (main): Make variable 'lang_n_infiles' local to entire function rather than to a single block. Use flag combine_flag to determine whether to do IMA or not; Modify loop initializing infiles to deal properly with linker files. Add code for doing preprocessing in presence of IMA with "-save-temps" flag. Modify "main" loop to handle multiple input files, in multiple languages, with or without preprocessing, gracefully. * toplev.c (set_src_pwd): Modify to not complain if attempting to re-set it to same directory it's previously been set to (avoid irritating, meaningless warning messages when doing IMA with save-temps). * doc/invoke.texi: Add "-combine" to list of Overall Options; remove documentation about IMA that is no longer accurate; Add documentation explaining what "-combine" does. * ada/lang-specs.h: Add initialization values for new fields in "struct compiler". * cp/lang-specs.h: Likewise. * f/lang-specs.h: Likewise. * java/lang-specs.h: Likewise. * objc/lang-specs.h: Likewise. * treelang/lang-specs.h: Likewise. Fix gcc driver to work properly with IMI. From-SVN: r80435
2003-05-23rs6000.c (expand_block_move): Unify the TARGET_STRING and ! TARGET_STRING cases.Geoffrey Keating1-5/+5
* config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING and ! TARGET_STRING cases. From-SVN: r67140
2003-03-11Makefile.in: Update.Neil Booth1-8/+6
* Makefile.in: Update. * c-common.c: Don't include real.h or except.h. (REGISTER_PREFIX): Remove. (builtin_define_std, builtin_define_with_value, builtin_define_with_int_value, builtin_define_with_hex_fp_value, builtin_define_type_max, builtin_define_type_precision, builtin_define_float_constants): Move to c-cppbuiltin.c. (c_stddef_cpp_builtins): New. * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New. * c-cppbuiltin.c: New, extracted from c-common.c. (define__GNUC__): New. * cppspec.c (lang_specific_driver): Remove support of -no-gcc. * gcc.c: Remove support of %v1, %v2 and %v3 specs. (cpp_unique_options): Don't support no-gcc. (do_spec_1): Remove support of version specs. * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3. * doc/passes.texi: Update. * doc/tm.texi: Update. cp: * Make-lang.in (CXX_C_OBJS): Update. * lang-specs.h: Don't define __GNUG__ here. From-SVN: r64162
2003-03-09* lang-specs.h (c++-header): Change .pch to .gch.Geoffrey Keating1-1/+1
From-SVN: r64013
2003-03-02gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke an external ↵Ashif Harji1-4/+4
cpp during compilation. * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke an external cpp during compilation. (option_map): Likewise. * cp/lang-specs.h (default_compilers): Similarly. * objc/lang-specs.h (default_compilers): Similarly. * doc/invoke.texi: Document -no-integrated-cpp flag. From-SVN: r63664
2003-01-10Merge from pch-branch.Geoffrey Keating1-0/+13
From-SVN: r61136
2003-01-02except.c, [...]: Fix Copyright years.Steven Bosscher1-2/+2
2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl> * cp/except.c, cp/expr.c, cp/friend.c, cp/g++spec.c, cp/lang-options.h, cp/lang-specs.h, cp/lex.h, cp/ptree.c, cp/repo.c, java/jcf-reader.c, java/jvgenmain.c, java/keyword.gperf, java/lang-options.h, java/mangle.c, java/mangle_name.c, java/xref.c, java/zextract.c,java/zipfile.h, objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h, objc/objc-act.h: Fix Copyright years. From-SVN: r60783
2003-01-01call.c, [...]: Replace "GNU CC" with "GCC" in the copyright header.Steven Bosscher1-4/+4
* call.c, class.c, cp-lang.c, cp-tree.h, cvt.c, dump.c, error.c, except.c, expr.c friend.c, g++spec.c, init.c, lang-options.h, lang-specs.h, lex.c, mangle.c, method.c, optimize.c, parser.c, pt.c, ptree.c, repo.c, rtti.c, search.c, semantics.c, tree.c, typeck.c, typeck2.c: Replace "GNU CC" with "GCC" in the copyright header. * lex.h: parse.y is dead, so don't mention it. Also replace the copyright header with the default GNU copyright header. From-SVN: r60738
2002-12-19This was approved for 3.4 BIB branch.Devang Patel1-0/+1
This was approved for 3.4 BIB branch. But since it is dead now, I am putting this in mainline sources. 2002-12-19 Devang Patel <dpatel@apple.com> * gcc.c (struct default_compiler): Recognizes input file name with .CPP extension as C++ source files * cp/lang-spec.h: Same * doc/invoke.texi: Add documentation for .CPP support. From-SVN: r60330
2002-08-10c-opts.c (set_std_cxx98, [...]): New.Neil Booth1-5/+3
* c-opts.c (set_std_cxx98, set_std_c89): New. (COMMAND_LINE_OPTIONS): Move more from cppinit.c. (c_common_decode_option): Handle new switches from cppinit.c. Add -std=gnu++98. * cppinit.c (set_lang): Rename cpp_set_lang. Export. (no_arg, no_num): Remove. (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang- switches apart from -lang-objc and lang-asm. (cpp_handle_option): Similarly. * cpplib.h (cpp_set_lang): New. * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98, -std=gnu++98. * objc/lang-specs.h: Remove -ansi. cp: * lang-specs.h: Remove -ansi. From-SVN: r56185
2002-08-01c-common.c (cb_register_builtins): If C++, define __EXCEPTIONS, __DEPRECATED ↵Neil Booth1-19/+7
and __GXX_ABI_VERSION as appropriate. * c-common.c (cb_register_builtins): If C++, define __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate. * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION. cp: * lang-specs.h: Simplify in accordance with new code in c-common.c. From-SVN: r55924
2002-07-30gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.Franz Sirl1-3/+0
gcc/ * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101. gcc/cp/ * lang-specs.h: Remove __GXX_ABI_VERSION, moved to gcc.c. From-SVN: r55880
2002-07-19[ ChangeLog ]Chris Demetriou1-2/+2
2002-07-19 Chris Demetriou <cgd@broadcom.com> * gcc.c (cpp_options): Include "%1" (cc1_spec). [ cp/ChangeLog ] 2002-07-19 Chris Demetriou <cgd@broadcom.com> * lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever cpp_options is included. From-SVN: r55591
2002-05-31gcc.c (cpp_unique_options): Remove "-d" options.Matthew Woodcraft1-1/+2
* gcc.c (cpp_unique_options): Remove "-d" options. (cpp_debug_options): New spec string. (default_compilers): Use it. * objc/lang-specs.h: Likewise. * cp/lang-specs.h: Likewise. * f/lang-specs.h: Likewise. From-SVN: r54121
2002-05-14gcc.c (cpp_options): Must pass -m* and -f* options to the front end even ↵Neil Booth1-2/+2
when only preprocessing. * gcc.c (cpp_options): Must pass -m* and -f* options to the front end even when only preprocessing. (cc1_options): Remove redundant -lang-c. * tradcpp.c (main): Ignore -m options. cp: * lang-specs.h: Remove redundant -lang-c++. objc: * lang-specs.h: Similarly. From-SVN: r53460
2002-03-24Removal of separate preprocessor cpp0.Neil Booth1-2/+2
* Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS, cpp0, install-common): Update. * c-common.c (flag_preprocess_only): New. (c_common_init): Preprocess for -E. * c-common.h (flag_preprocess_only): New. * c-decl.c (c_decode_option): Handle -E, and -std=c++98. * c-objc-common.c (c_init_decl_processing): Exit quickly for NULL return from c_common_init. * cpplib.h (cpp_preprocess_file): New. * cppmain.c (main, general_init, pfile, progname): Remove. (do_preprocessing): Rename cpp_preprocess_file, don't call cpp_finish. Don't close stdout here. (setup_callbacks): Update prototype. * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers): Update. * tradcpp.c (main): Ignore -quiet. cp: * decl2.c (cxx_decode_option): Handle -E. * lang-specs.h (default_compilers): Preprocess with cc1plus. * lex.c (cxx_init): Exit quickly if c_common_init returns NULL. objc: * lang-specs.h (default_compilers): Preprocess with cc1obj. Co-Authored-By: Aldy Hernandez <aldyh@redhat.com> From-SVN: r51256
2002-01-29re PR other/1502 (Nonexistent -W options not diagnosed)Jakub Jelinek1-2/+2
PR other/1502: * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero, don't ignore unrecognized -W* options. (cpp_handle_options): Pass 1 as last argument to cpp_handle_option. * cpplib.h (cpp_handle_option): Adjust prototype. * c-decl.c (c_decode_options): Pass 0 as last argument to cpp_handle_option. PR c/2896: * gcc.c (cpp_unique_options): Split from cpp_options. (cpp_options): Source cpp_unique_options. (default_compilers): Use cpp_unique_options instead of cpp_options when used together with cc1_options. (static_specs): Add cpp_unique_options. * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options when used together with cc1_options. * decl2.c (cxx_decode_option): Pass 0 as last argument to cpp_handle_option. * lang-specs.h: Use cpp_unique_options instead of cpp_options when used together with cc1_options. From-SVN: r49315
2001-07-21Remove old-abi remnants.Nathan Sidwell1-3/+3
Remove old-abi remnants. Remove comments about old abi behaviour. Remove refences to 'new-abi' in comments. * cp-tree.h: Adjust comments. (vbase_offsets_in_vtable_p): Delete. (vcall_offsets_in_vtable_p): Delete. (vptrs_present_everywhere_p): Delete. (all_overridden_vfuns_in_vtables_p): Delete. (merge_primary_and_secondary_vtables_p): Delete. (TYPE_CONTAINS_VPTR_P): Adjust. (VTT_NAME_PREFIX): Remove. (CTOR_VTBL_NAME_PREFIX): Remove. (init_vbase_pointers): Remove. * class.c: Adjust coments. (build_vbase_pointer_fields): Delete. (build_vbase_pointer): Remove old-abi code. (build_secondary_vtable): Likewise. (modify_all_vtables): Likewise. (create_vtable_ptr): Likewise. (layout_class_type): Likewise. (finish_struct_1): Likewise. (finish_vtbls): Likewise. (dfs_finish_vtbls): Delete. (build_vbase_offset_vtbl_entries): Remove old-abi code. * cvt.c: Adjust comments. * decl.c: Adjust comments. * decl2.c: Adjust comments. * init.c: Adjust comments. (construct_virtual_bases): Remove old-abi code. * lang-specs.h: Remove -fno-new-abi. * mangle.c: Adjust comments. * rtti.c: Adjust comments. (get_base_offset): Remove old-abi-code. * search.c: Adjust comments. (dfs_init_vbase_pointers): Remove. (dfs_vtable_path_unmark): Remove. (init_vbase_pointers): Remove. * semantics.c: Adjust comments. (emit_associated_thunks): Remove old-abi code. * typeck.c: Adjust comments. From-SVN: r44215
2001-06-07lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.Phil Edwards1-3/+3
2001-06-07 Phil Edwards <pme@sources.redhat.com> * cp/lang-specs.h: Move -D_GNU_SOURCE to config/linux.h. * config/linux.h (CPLUSPLUS_CPP_SPEC): Move -D_GNU_SOURCE to here. * config/pa/pa-linux.h: Allow CPLUSPLUS_CPP_SPEC to remain. From-SVN: r42989
2001-04-06lang-specs.h: Add __DEPRECATED.Benjamin Kosnik1-3/+3
2001-04-05 Benjamin Kosnik <bkoz@redhat.com> * lang-specs.h: Add __DEPRECATED. From-SVN: r41142
2001-04-06lang-specs.h: Add __GXX_DEPRECATED.Benjamin Kosnik1-0/+3
2001-04-05 Benjamin Kosnik <bkoz@redhat.com> * lang-specs.h: Add __GXX_DEPRECATED. From-SVN: r41141
2001-03-02gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements.Zack Weinberg1-13/+14
* gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h, objc/lang-specs.h: Add zero initializer for cpp_spec field to all array elements. * cp/lang-specs.h: Don't put an #ifdef inside the initializer list; set a default for CPLUSPLUS_CPP_SPEC and use it. From-SVN: r40173
2001-02-13* lang-specs.h: Add more __EXCEPTIONS.Jason Merrill1-1/+3
From-SVN: r39633
2001-02-12Makefile.in (GXX_ABI_FLAG): Don't define.Mark Mitchell1-21/+0
* Makefile.in (GXX_ABI_FLAG): Don't define. * configure.in (--enable-new-gxx-abi): Remove option. * config.in: Regenerated. * configure: Likewise. * decl2.c (flag_vtable_thunks): Always set it to 1. (flag_new_abi): Likewise. * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI. From-SVN: r39595
2001-02-09* lang-specs.h: Restore definition of __EXCEPTIONS.Jason Merrill1-0/+2
From-SVN: r39564
2001-02-07defaults.h (CPLUSPLUS_CPP_SPEC): New macro.Mark Mitchell1-0/+3
* defaults.h (CPLUSPLUS_CPP_SPEC): New macro. * gcc.c (struct compiler): Add cpp_spec field. (input_file_compiler): New variable. (do_spec_1): Allow a particular compiler to handle `%C' specially. (main): Store the current compiler in input_file_compiler. * tm.texi (CPLUSPLUS_CPP_SPEC): Document. * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor spec. From-SVN: r39524
2001-01-19decl2.c (arg_assoc_class): Fix double iteration logic.Jason Merrill1-1/+22
* decl2.c (arg_assoc_class): Fix double iteration logic. * init.c (build_delete): Always call convert_force to strip cv-quals. * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI. * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI. * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI. From-SVN: r39133
2000-12-06lang-specs.h (c++): When invoking the stand-alone preprocessor for ↵Alexandre Oliva1-6/+10
-save-temps... * lang-specs.h (c++): When invoking the stand-alone preprocessor for -save-temps, pass all relevant -Defines to it, and then don't pass them to cc1plus. From-SVN: r38067
2000-11-26Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.Neil Booth1-2/+2
* Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib. * c-decl.c: Remove parse_in declaration. * c-lang.c: Similarly. * c-lex.c: Similarly. * c-parse.in: Similarly. * c-pragma.c: Similarly. * configure.in: Similarly. * cp/Make-lang.in: Similarly. * cp/spew.c: Similarly. * cp/decl2.c: Remove check for lang-c++ option. * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line. * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++. * c-lex.h: Add declaration of parse_in. * cppinit.c: Call set_lang after allocating pfile->pending. * configure: Regenerate. From-SVN: r37754
2000-11-25c-common.c: Remove USE_CPPLIB conditional inclusions.Neil Booth1-11/+1
* c-common.c: Remove USE_CPPLIB conditional inclusions. * c-common.h: Similarly. * c-decl.c: Similarly. * c-lang.c: Similarly. * c-lex.c: Similarly. * c-parse.in: Similarly. * c-pragma.c: Similarly. * c-pragma.h: Similarly. * gcc.c: Similarly. * toplev.c: Similarly. * cp/cp-tree.h: Similarly. * cp/decl2.c: Similarly. * cp/lang-specs.h: Similarly. * cp/lex.c: Similarly. * cp/lex.h: Similarly. * cp/spew.c: Similarly. * java/lang-options.h: Similarly. * objc/lang-specs.h: Similarly. * objc/objc-act.c: Similarly. * configure.in: Remove configure option. * config.in: Regenerate. * configure: Regenerate. From-SVN: r37742
2000-11-14Fix cc1plus specs breakage.Jim Wilson1-3/+3
* lang-specs.h: Add %2 after %(cc1_options). From-SVN: r37468
2000-11-07* cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.Neil Booth1-2/+3
From-SVN: r37299
2000-09-26gcc.c (cpp_options): Add spec for -ftabstop=.Neil Booth1-7/+10
* gcc.c (cpp_options): Add spec for -ftabstop=. (invoke_as): New spec that handles invoking as. Update specs to handle -save-temps and -traditional. * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h: Use invoke_as. * cp/lang-specs.h, objc/lang-specs.h: Update to use invoke_as, and handle -save-temps and -traditional (if appropriate). From-SVN: r36646
2000-09-07Integrated preprocessor.Zack Weinberg1-2/+2
top level: * Makefile.in: Remove all references to c-parse.gperf, c-gperf.h, and c-parse.h. Remove -d from yacc command line generating c-parse.c. Update dependencies. * c-parse.gperf, c-gperf.h: Delete. * c-common.c: Don't define parse_options, cpp_token, yy_cur, yy_lim, or yy_get_token. Don't define get_directive_line if USE_CPPLIB. * c-common.h: Add multiple include guard. Define RID values for every keyword in C, C++, and Objective C. Put all the modifiers first. (struct c_fileinfo, get_fileinfo, dump_time_statistics): New. * c-decl.c (c_decode_option): Handle -lang-objc here. (print_lang_identifier): Handle C_IS_RESERVED_WORD case. (grokdeclarator): Adjust for new RID scheme. (extract_interface_info): New stub. * c-lang.c: Don't declare yy_cur or parse_options. (lang_init_options): Call cpp_init. Don't call cpp_options_init. (lang_init): Don't call check_newline if USE_CPPLIB. * c-lex.c: Don't include c-parse.h. Do include timevar.h. Elide lots of unnecessary code if USE_CPPLIB. Delete code rendered unnecessary by new architecture. Move routines not shared with C++ to c-parse.in. Maintain a local idea of the line number. Handle C++ as well as C. [USE_CPPLIB]: Declare and register callbacks for #ident and for entering/leaving files. (init_c_lex, c_lex): Are now the entry points to this file. (check_newline): Break out directive handling to process_directive. (read_ucs, is_extended_char, utf8_extend_token): Moved here from C++ front end. (readescape, parse_float): Overhaul. (lex_number, lex_string, lex_charconst): Break out of c_lex (n'ee yylex). (get_fileinfo, update_header_times, dump_one_header, dump_time_statistics): New and/or moved here from C++. Support per-file data needed by C++ and per-header timing statistics (C++ only, at the moment). * c-lex.h: Update prototypes. Add multiple include guard. * c-tree.h (struct lang_identifier): Add rid_code field. (C_IS_RESERVED_WORD, C_RID_CODE): New. * c-parse.in: Include c-pragma.h. Remove unnecesary calls to reinit_parse_for_function and/or position_after_white_space. (save_filename, save_lineno): Look ahead before saving. (label -> identifier ':'): Save file and line before shifting ':'. (reservedwords): No need to call get_identifier. (init_parse, finish_parse, yyerror, yylex, yyprint, make_pointer_declarator): Are now here for C/ObjC. (rid_to_yy): Conversion table from RID constants to Yacc codes. * c-pragma.c: Rewrite parsing logic to fit with cpplib's #pragma registry. Provide dummy implementation of that interface if !USE_CPPLIB. * c-pragma.h: Update to match. * flags.h: Add multiple include guard. (flag_detailed_statistics): Moved here from C++. * toplev.c: Define flag_detailed_statistics. * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case #if USE_CPPLIB. * timevar.def (TV_CPP, TV_LEX): New. * timevar.h: Add multiple include guard. * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case #if USE_CPPLIB. * objc/objc-act.c: Don't mention yy_cur or parse_options. Initialize cpplib properly. Force lineno to 0 after first call to check_newline. Don't handle -lang-objc here. Move forget_protocol_qualifiers and remember_protocol_qualifiers here. cp: * Make-lang.in, Makefile.in: Remove all references to input.c, gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS. * gxx.gperf, hash.h, input.c: Delete. * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is initialized properly. * class.c (fixup_pending_inline): Take a tree, not a struct pending_inline *. All callers changed. (init_class_processing): Set RID_PUBLIC, RID_PRIVATE, RID_PROTECTED entries in ridpointers[] array here. * decl.c (duplicate_decls): Do not refer to struct pending_inline. (record_builtin_type, init_decl_processing): Use RID_MAX not CP_RID_MAX. (grokdeclarator): Use C_IS_RESERVED_WORD. * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of cpplib. (grok_x_components): Do not inspect pending_inlines chain. * cp-tree.h (struct lang_identifier): Add rid_code entry. (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New. (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare. (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME, TIME_IDENTIFIER_FILEINFO): Kill. Update prototypes. * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a single 32-bit word. * parse.y: Call do_pending_inlines unconditionally. reinit_parse_for_method is now snarf_method. fn.defpen is no longer necessary. Remove unnecessary <itype> annotation on SCOPE. Do not refer to end_of_file or struct pending_inline. * semantics.c (begin_inline_definitions): Call do_pending_inlines unconditionally. * lex.c: Remove all code now shared with C front end. Initialize cpplib properly if USE_CPPLIB. Put reserved words into the get_identifier table. Rewrite pragma handling to work with the registry. Move code to save tokens for later processing to spew.c. * spew.c: Rewrite everything in terms of token streams instead of text. Move routines here from lex.c / input.c as appropriate. GC-mark trees hanging off the pending inlines chain. testsuite: * g++.old-deja/g++.benjamin/13478.C: Put meaningful tags on ERROR markers. * g++.old-deja/g++.brendan/crash8.C: Move ERROR marker up one line. * gcc.dg/c99-array-nonobj-1.c: Don't expect func[] cases to fail. * gcc.dg/wtr-label-1.c: Don't use unconstrained .* in error regexps. * gcc.dg/wtr-suffix-1.c: Correct error regexps. * gcc.dg/cpp/unc1.c, gcc.dg/cpp/unc2.c, gcc.dg/cpp/unc3.c: Preprocess only. * gcc.dg/cpp/unc4.c: Adjust line number in dg-error line. * gcc.dg/noncompile/const-ll-1.c: Generalize error regexp. From-SVN: r36216
2000-08-21lang-specs.h: Do not process -o or run the assembler if -fsyntax-only.Nix1-5/+7
* lang-specs.h: Do not process -o or run the assembler if -fsyntax-only. From-SVN: r35853
2000-07-31* lang-specs.h: Use %i in rule for .ii files.Jason Merrill1-1/+1
From-SVN: r35392
2000-07-31Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and xcpp to cpp ↵Zack Weinberg1-2/+2
throughout. * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and xcpp to cpp throughout. (native): Remove unnecessary dependency on cpp. * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp, tradcpp to tradcpp0. (.i spec): Add missing output-file spec to cc1 command line. * ch/lang-specs.h, cp/lang-specs.h, f/lang-specs.h, objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0. From-SVN: r35389