Skip to content
Snippets Groups Projects
  1. Jul 29, 2001
  2. Jul 20, 2001
  3. Jul 04, 2001
  4. Jul 02, 2001
  5. Jun 09, 2001
  6. May 20, 2001
    • Neil Booth's avatar
      Makefile.in (OBJS, [...]): Update. · 2a967f3d
      Neil Booth authored
      	* Makefile.in (OBJS, LIBCPP_OBJS, LIBCPP_DEPS,
      	cpplib.o, cpphash.o, fix-header): Update.
      	(hashtable.o): New target.
      	* c-common.h: Include cpplib.h.  Define C_RID_CODE and
      	struct c_common_identifier here.
      	* c-lang.c (c_init_options): Update.  Call set_identifier_size.
      	* c-lex.c (c_lex): Update.
      	* c-pragma.h: Update.
      	* c-tree.h (struct lang_identifier): Contain c_common_identifier.
      	Delete rid_code.
      	(C_RID_CODE): Delete.
      	* cpphash.c: Rewrite to use hashtable.c.
      	* cpphash.h: Update include guards.
      	(struct cpp_reader): Remove hashtab.
      	hash_ob and buffer_ob are no longer pointers.  Add hash_table
      	and our_hashtable.
      	(HASHSTEP, _cpp_init_hashtable,	_cpp_lookup_with_hash): Delete.
      	(_cpp_cleanup_hashtable): Rename _cpp_destroy_hashtable.
      	(_cpp_cleanup_stacks): Rename _cpp_init_directives.
      	* cppinit.c (cpp_create_reader): Update.
      	* cpplex.c (cpp_ideq, parse_identifier, cpp_output_token): Update.
      	(cpp_interpret_charconst): Eliminate warning.
      	* cpplib.c (do_pragma, do_endif, push_conditional,
      	cpp_push_buffer, cpp_pop_buffer): Update.
      	(_cpp_init_stacks): Rename cpp_init_directives.
      	(_cpp_cleanup_stacks): Remove.
      	* cpplib.h: Update include guards.  Include tree-core.h and c-rid.h.
      	(cpp_hashnode, cpp_token, NODE_LEN, NODE_NAME,
      	 cpp_forall_identifiers, cpp_create_reader): Update.
      	(C_RID_CODE, cpp_make_node): New.
      	(c_common_identifier): New identifier node for C front ends.
      	* cppmain.c (main): Update.
      	* fix-header.c (read_scan_file): Update.
      	* flags.h (id_clash_len): Make unsigned.
      	* ggc.h (ggc_mark_nonnull_tree): New.
      	* hashtable.c: New.
      	* hashtable.h: New.
      	* stringpool.c: Update comments and copyright.  Update to use
      	hashtable.c.
      	* toplev.c (approx_sqrt): Move to hashtable.c.
      	(id_clash_len): Make unsigned.
      	* toplev.h (ident_hash): New.
      	* tree.c (gcc_obstack_init): Move to hashtable.c.
      	* tree.h: Include hashtable.h.
      	(IDENTIFIER_POINTER, IDENTIFIER_LENGTH): Update.
      	(GCC_IDENT_TO_HT_IDENT, HT_IDENT_TO_GCC_IDENT): New.
      	(struct tree_identifier): Update.
      	(make_identifier): New.
      cp:
      	* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
      	(C_RID_CODE): Remove.
      	* lex.c (cxx_init_options): Call set_identifier_size.  Update.
      	(init_parse): Don't do it here.
      objc:
      	* objc-act.c (objc_init_options): Call set_identifier_size. Update.
      
      From-SVN: r42334
      2a967f3d
  7. May 10, 2001
    • Zack Weinberg's avatar
      cppinit.c (cpp_post_options): Shut off macro expansion if -fpreprocessed. · 6d4587f7
      Zack Weinberg authored
      	* cppinit.c (cpp_post_options): Shut off macro expansion if
      	-fpreprocessed.
      	* cpplib.c (_cpp_handle_directive): If -fpreprocessed, accept
      	IN_I directives only if the # is in column 1 and the directive
      	name begins in column 2.
      	* cppmain.c (scan_buffer): Insert a space between # and an
      	identifier, when that identifier is a directive name.
      
      	* tradcpp.c (struct file_buf): Add a pointer to the next entry
      	in the header search path.
      	(enum node_type): Add T_INCLUDE_NEXT.
      	(directive_table): Add entry for include_next.
      	(do_include_next): New function.
      	(process_include): New routine, broken out of do_include.
      	(finclude): Insert 'nhd' argument, to be copied into
      	next_header_dir of the new buffer.
      	(main): Adjust to match.
      	* gsyslimits.h, limity.h: Un-indent #include_next.
      
      testsuite:
      	* gcc.dg/cpp/direct2.c: New test.
      	* gcc.dg/cpp/direct2s.c: New test.
      
      	* gcc.c-torture/execute/920730-1t.c: #undef __GNUC__ at head.
      
      From-SVN: r41932
      6d4587f7
  8. Apr 06, 2001
    • Neil Booth's avatar
      configure.in: Add check for lstat. · f9200da2
      Neil Booth authored
      	* configure.in: Add check for lstat.
      	* configure, config.in: Regenerate.
      	* cppinit.c (append_include_chain): Make empty path ".".
              * cpplib.c (do_line): Don't simplify #line paths.
              * cppfiles.c (remove_component_p): New function.
      	(find_or_create_entry): Acknowledge stat () errors during
      	path simplification.
      	(handle_missing_header): Don't simplify paths.
              (_cpp_simplify_pathname): Don't simplify VMS paths.  Return
              the empty path untouched.  Don't leave a trailing '/'.
      
      From-SVN: r41148
      f9200da2
  9. Mar 15, 2001
    • Neil Booth's avatar
      cpp.texi: Update documentation for -include and -imacros. · ba133c96
      Neil Booth authored
      	* cpp.texi: Update documentation for -include and -imacros.
      	* cppfiles.c (struct include_file): Remove "defined" memeber.
      	(find_or_create_entry): Make a copy of the file name, and
      	simplify it.
      	(open_file): Update to ensure we use the simplified filename.
      	(stack_include_file): Don't set search_from.
      	(cpp_included): Don't simplify the path name here.
      	(find_include_file): New prototype.  Call search_from to
      	get the start of the "" include chain.  Don't simplify the
      	filenames here.
      	(_cpp_execute_include): New prototype.  Move diagnostics to
      	do_include_common.  Update.
      	(_cpp_pop_file_buffer): Don't set defined.
      	(search_from): New prototype.  Use the preprocessor's cwd
      	for files included from the command line.
      	(read_name_map): Don't simplify the pathname here.
      	* cpphash.h (enum include_type): New.
      	(struct buffer): Delete search from.  New search_cached.
      	(_cpp_execute_include): Update prototype.
      	* cppinit.c (do_includes): Use _cpp_execute_include.
      	* cpplib.c (do_include_common): New function.
      	(do_include, do_include_next, do_import): Use it.
      
      From-SVN: r40486
      ba133c96
  10. Mar 04, 2001
    • Neil Booth's avatar
      cppfiles.c (_cpp_execute_include): Don't make a null-terminated copy of the filename. · 7868b4a2
      Neil Booth authored
      	* cppfiles.c (_cpp_execute_include): Don't make a null-terminated
      	copy of the filename.  Don't use CPP_PREV_BUFFER.  Don't call
      	strlen or strcpy; we already know the length.
      	(_cpp_compare_file_date): Similarly.
      	* cpphash.h (struct cpp_reader): Delete done_initialising.
      	(CPP_PREV_BUFFER): Delete.
      	* cppinit.c (cpp_start_read): Don't set done_initialising.
      	* cpplex.c (parse_string): Guarantee null-termination.
      	(_cpp_equiv_toklists): Remove.
      	* cpplib.c (glue_header_name): Null-terminate.
      	(do_line): Don't leak memory.
      	* cpplib.h (BT_WEAK): Delete.
      	* cppmain.c (cb_ident): Strings are now null-terminated.
      
      From-SVN: r40233
      7868b4a2
  11. Mar 02, 2001
    • Christopher Faylor's avatar
      cppinit.c (append_include_chain): Mark "after" include file name list as a system directory. · 4737b274
      Christopher Faylor authored
      * cppinit.c (append_include_chain): Mark "after" include file name list as a
      system directory.
      * cpp.texi: Document new behavior.
      
      From-SVN: r40189
      4737b274
    • Neil Booth's avatar
      cppfiles.c (struct include_file): Update. · 591e15a1
      Neil Booth authored
              * cppfiles.c (struct include_file): Update.
              (stack_include_file): Use search_from.
              (cpp_included, find_include_file): Update.
              (cpp_execute_include): Update.  ptr->name may not be
              null terminated.  Use the new search_from member variable
              of cpp_buffer.
              (_cpp_compare_file_date): Similarly.
              (search_from): New function, similiar to actual_directory.
              (actual_directory): Delete.
              (remap_filename): Update.  loc->name may not be null terminated.
              (struct file_name_list): Rename search_path.  Update.
              * cpphash.h (struct cpp_buffer): Delete actual_dir.  New members
              search_from and dir.
              (struct cpp_reader): Remove actual_dirs.
              * cppinit.c (struct cpp_pending): Update for renamed objects.
              (append_include_chain, remove_dup_dir, remove_dup_dirs,
              merge_include_chains, cpp_destroy, cpp_start_read): Similarly.
              * cpplib.h (struct cpp_options): Similarly.
      
      From-SVN: r40178
      591e15a1
    • John David Anglin's avatar
      cpplib.c (_cpp_init_stacks): Cast enum for comparison. · 37b8524c
      John David Anglin authored
      	* cpplib.c (_cpp_init_stacks): Cast enum for comparison.
      	* cppexp.c (lex): Cast enums for comparison.
      	* cppinit.c (parse_option): Cast enum for comparison.
      	* cpplex.c (cpp_spell_token): Cast enums to int for minus.
      	(cpp_output_token): Likewise.
      	(cpp_can_paste): Cast enums for comparsion and plus/minus.
      	(cpp_avoid_paste): Cast enums for minus and comparison.
      
      From-SVN: r40174
      37b8524c
    • Zack Weinberg's avatar
      cpphash.h (struct cpp_reader): Add print_version field. · cb773845
      Zack Weinberg authored
      	* cpphash.h (struct cpp_reader): Add print_version field.
      	* cppinit.c (cpp_handle_option): For -v, -version, and --version,
      	just set print_version and other flags as appropriate.
      	(cpp_post_options): Print version here if print_version is set.
      
      	* toplev.c (exit_after_options): New flag.
      	(independent_decode_option): Don't exit here; just set
      	exit_after_options.
      	(main): Exit after calling lang_hooks.post_options if
      	exit_after_options is true.
      
      	* cppinit.c (append_include_chain): Drop never-used case QUOTE.
      	(merge_include_chains): Adjust comment to match code.
      
      From-SVN: r40171
      cb773845
  12. Feb 25, 2001
    • Neil Booth's avatar
      cppinit.c (builtin_array): Update. · 618cdda7
      Neil Booth authored
              * cppinit.c (builtin_array): Update.
              (init_builtins): Flag builtins to warn if redefined or
              undefined.  Define __GXX_WEAK as a normal macro.
              * cpplib.c (do_undef): Warn if flagged NODE_WARN.
              * cpplib.h (NODE_WARN): New flag.
              * cppmacro.c (builtin_macro): Remove handling of __GXX_WEAK__.
              Handle __STDC__ as a builtin only on Solaris.
              (warn_of_redefinition): Renamed from check_macro_definition.
              Reverse sense of test.  Always warn if NODE_WARN.
              (_cpp_create_definition): Use warn_of_redefinition.  Flag
              any macro beginning with "__STDC_" to require a mandatory
              warning if redefined or undefined.
      
      From-SVN: r40053
      618cdda7
  13. Feb 21, 2001
    • Neil Booth's avatar
      cppfiles.c: Update comments. · 373e2177
      Neil Booth authored
              * cppfiles.c: Update comments.
              (_cpp_read_file): Don't check for NULL filenames any more.
              * cppinit.c (cpp_start_read): Don't do canonicalization of
              in_fname and out_fname.  Use the passed file name exclusively.
              (_cpp_handle_options): Don't treat "-" as a command line option,
              but as a normal filename.
              (_cpp_post_options): Canonicalize in_fname and out_fname.
              * cppmain.c (printer_init): Don't check out_fname for NULL.
              * c-lex.c (orig_filename): Rename cpp_filename for clarity.
              (init_c_lex): Update, and use "" to represent stdin to CPP.
              (yyparse): Update.
      
      From-SVN: r39938
      373e2177
  14. Feb 20, 2001
  15. Feb 07, 2001
    • Zack Weinberg's avatar
      cpphash.h (struct spec_nodes): Add n_true and n_false. · 7d4918a2
      Zack Weinberg authored
      	* cpphash.h (struct spec_nodes): Add n_true and n_false.
      	* cppinit.c (cpp_create_reader): Initialize them.
      	(append_include_chain): cxx_aware arg might be unused.
      	* cppexp.c (lex): In C++ mode, recognize 'true' and 'false'
      	keywords and give them their phase 7 meaning.  Pedwarn about
      	this unless '__bool_true_false_are_defined' is defined.
      
      	* g++.dg/stdbool-if.C: New test.
      
      From-SVN: r39523
      7d4918a2
  16. Feb 04, 2001
    • Mark Mitchell's avatar
      cppinit.c (BC): New macro. · 1ca894a0
      Mark Mitchell authored
      	* cppinit.c (BC): New macro.
      	(builtin_array): Add __GXX_WEAK__.
      	* cpplib.h (builtin_type): Add BT_WEAK.
      	* cppmacro.c (builtin_macro): Handle BT_WEAK.
      	* defaults.h (SUPPORTS_ONE_ONLY): Define.
      	* varasm.c (SUPPORTS_ONE_ONLY): Do not define.
      
      From-SVN: r39436
      1ca894a0
  17. Feb 03, 2001
  18. Jan 24, 2001
    • Jakub Jelinek's avatar
      cppfiles.c (_cpp_read_file): Add to dependencies if requested. · 7855db7c
      Jakub Jelinek authored
      	* cppfiles.c (_cpp_read_file): Add to dependencies if requested.
      	* cppinit.c (cpp_start_read): Remove deps_add_dep call.
      	* tradcpp.c (main): Add -imacros or -include'd dependencies
      	for -M*.
      	* cpp.texi (-M, -MM): Document -M -include behaviour.
      
      From-SVN: r39240
      7855db7c
  19. Jan 21, 2001
  20. Jan 14, 2001
    • Neil Booth's avatar
      c-parse.in (finish_parse): Add comment about cpp_destroy. · 400023a3
      Neil Booth authored
              * c-parse.in (finish_parse): Add comment about cpp_destroy.
              * cp/lex.c (finish_parse): Similarly.
              * cppinit.c (cpp_cleanup): Rename cpp_destroy for clarity.
              Return the number of errors encountered.
              * cpplib.h (cpp_cleanup): Rename cpp_destroy, return int.
              * cppmain.c (main): Don't call cpp_destroy.
      
      From-SVN: r39020
      400023a3
  21. Jan 13, 2001
    • Neil Booth's avatar
      cppinit.c (cpp_handle_option): help_only is now part of the cpp_options structure. · 7e96d768
      Neil Booth authored
              * cppinit.c (cpp_handle_option): help_only is now part of the
              cpp_options structure.
              * cpplib.c (cpp_errors, cpp_get_options, cpp_get_callbacks,
              cpp_set_callbacks): New functions.
              * cpplib.h (cpp_callbacks): Break out as a named structure.
              (cpp_options): Move help_only here from cpp_reader.
              (CPP_FATAL_ERRORS): Update to use cpp_errors.
              (cpp_errors, cpp_get_options, cpp_get_callbacks,
              cpp_set_callbacks): New prototypes.
              * cppmain.c (main): Update for help_only.
      
      From-SVN: r38971
      7e96d768
  22. Jan 11, 2001
    • Neil Booth's avatar
      * cppinit.c (do_includes): Fix typo. · a4299d07
      Neil Booth authored
      From-SVN: r38928
      a4299d07
    • Neil Booth's avatar
      [multiple changes] · 05e81724
      Neil Booth authored
      2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
      
              * cppinit.c (cpp_start_read): If -fpreprocessed, ignore
      	-D, -U and -A, and don't initialize the builtins.
      	* cppmain.c (cb_define, cb_undef): Unconditionally process
      	the callback.
      	* tradcpp.c (main): Fix typo.
      
      2000-01-11  Mark Elbrecht  <snowball3@bigfoot.com>
      
              * cppfiles.c (cpp_included, find_include_file, _cpp_execute_include)
                (read_name_map): Use IS_ABSOLUTE_PATH.
              * tradcpp.c (get_filename): Likewise.
      
      From-SVN: r38925
      05e81724
  23. Jan 10, 2001
    • Neil Booth's avatar
      Makefile.in (tradcpp0): Depend on mkdeps.h. · 2f638f96
      Neil Booth authored
              * Makefile.in (tradcpp0): Depend on mkdeps.h.  Link mkdeps.o
              * cppinit.c (cpp_start_read): Update comment, remove unneeded
              if statement.
              * tradcpp.c: Include mkdeps.h.
              (deps, print_deps_phony_targets, deps_append, output_deps,
              init_dependency_output, output_deps): New.
              (deps_buffer, deps_allocated_size, deps_size, deps_column,
              deps_output): Delete.
              (print_deps_missing_files): Rename deps_missing_files.
              (inhibit_output): Make global.
              (main): Delete inhibit_output, deps_stream, deps_target.
              Use mkdeps functionality in the same way as cpplib.  Remove
              -g3 handling.  Handle -MF, -MP, -MQ, -MT.  Update handling of
              -M and -MM.  Remove old handling of deps via deps_out, and
              old reading of environment variables.
              (get_filename): Update to use deps_add_dep.
      
      From-SVN: r38885
      2f638f96
    • Neil Booth's avatar
      cppinit.c (OPT_g): Remove. · 5c5d1ea0
      Neil Booth authored
              * cppinit.c (OPT_g): Remove.
              (cpp_handle_option): Update for removed -g3.
              (print_help): Update.
              * cpplib.h (struct cpp_options): Remove debug_output.
              * cppmain.c (setup_callbacks, cb_define): Update.
              * gcc.c (cpp_options): Translate -g3 to -dD.
      
      From-SVN: r38881
      5c5d1ea0
  24. Jan 09, 2001
  25. Jan 08, 2001
    • Neil Booth's avatar
      cppinit.c (init): Rename init_library. · 674c3b40
      Neil Booth authored
              * cppinit.c (init): Rename init_library.
              (cpp_create_reader): Update.
              * gcc.c (cpp_options): If -o given, use it as the target of
              any -M options.
      
      From-SVN: r38805
      674c3b40
  26. Jan 07, 2001
    • Neil Booth's avatar
      c-lang.c (c_post_options): Call cpp_post_options. · 96302433
      Neil Booth authored
              * c-lang.c (c_post_options): Call cpp_post_options.
              * cppmain.c (main): Similarly.
              * fix-header.c (read_scan_file): Similarly.
              * cp/decl2.c (cxx_post_options): Similarly.
              * objc/objc-act.c (objc_post_options): Similarly.
              * cppinit.c (cpp_start_read): Move option consistency checks
              to cpp_post_options.  Don't call init_dependency_output.
              If needed, add default target and main file dependency.
              (OPT_MD, OPT_MMD): Remove.
              (OPT_MF): New.
              (cpp_handle_option): Update for OPT_* changes.
              (cpp_post_options): New.
              (init_dependency_output): Command line -MF overrides environment
              variables.  Don't set default target etc.  Suppress output
              if dependencies are going to stdout.
              (print_help): Update.
              * cpplib.h (cpp_post_options): New.
              * gcc.c (cpp_options): Update for -MD, -MMD, -MF.
      
      From-SVN: r38777
      96302433
    • Neil Booth's avatar
      (initialize, [...]): Rename s/initialize/init. · 7ca3d2b1
      Neil Booth authored
              * (initialize, initialize_builtins,
              initialize_dependency_output, initialize_standard_includes):
              Rename s/initialize/init. Update.
              (init_dependency_output): Move to after
              cpp_handle_options, the correct location temporally at least.
              (opt_comp): Move next to init (), its caller.  Fix prototype.
              (init): Make "initialized" local scope.
              (cpp_create_reader): Always call init ().
              (cpp_start_read): Update.
              (output_deps): New function, broken out of cpp_finish.
              (cpp_finish): Break out output_deps.
      
      From-SVN: r38770
      7ca3d2b1
  27. Jan 06, 2001
    • Neil Booth's avatar
      cpp.texi: Update for -MQ. · f7114e17
      Neil Booth authored
              * cpp.texi: Update for -MQ.
              * cppinit.c (cpp_create_reader): Always create pfile->deps.
              (cpp_cleanup): Always free pfile->deps.
              (initialize_dependency_output): Don't create pfile->deps.
              (cpp_handle_option): Similarly.
              (OPT_MQ): New.
              * gcc.c (cpp_options): Handle -MQ.
              (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
              * mkdeps.c (base_name): Remove.
              (deps_init): Don't allocate vector space until it's needed.
              (deps_free): Only free vectors if allocated.
              (deps_add_target, deps_add_dep): Update for initial allocation.
              (deps_add_default_target): Don't strip to the base_name.
      
      From-SVN: r38735
      f7114e17
  28. Jan 05, 2001
    • Zack Weinberg's avatar
      cpplib.h (struct cpp_reader): Add help_only field. · f4cdc368
      Zack Weinberg authored
      	* cpplib.h (struct cpp_reader): Add help_only field.
      	* cppinit.c (COMMAND_LINE_OPTIONS): Add OPT_version.
      	(cpp_handle_option): Set pfile->help_only if we see -h,
      	--help, -target-help, or --version.  Print version string but
      	do not set help_only if we see -v or -version.  Make text
      	printed by -v match that printed by (-)-version.
      
      	* cppmain.c (main): Exit after option parsing if
      	pfile->help_only is true.
      
      	* toplev.c (independent_decode_option): Call print_version,
      	then exit, if we see --version (but not -version).
      	(print_version): Split lengthy message into two lines.
      
      From-SVN: r38733
      f4cdc368
    • Neil Booth's avatar
      cpp.texi: Update for -MP. · a5a4ce3c
      Neil Booth authored
              * cpp.texi: Update for -MP.  Clarify behaviour of -MT.
              * cppinit.c (initialize_dependency_output):  Update.
              (cpp_finish): Output dummy targets for -MP.
              (OPT_MP): New.
              (cpp_handle_option): Handle -MP.  Don't quote -MT options.
              * cpplib.h (struct cpp_options): Add deps_phony_targets.
              * gcc.c (cpp_options): Update to handle -MP.
              * mkdeps.c (deps_add_target, deps_add_default_target): Update
              to quote only the default target.
              (deps_phony_targets): Insert a preceding newline.  Rename from
              deps_dummy_targets for consistency.
              * mkdeps.h: Update
      java:
              * lang.c (lang_decode_option): Change -MA to -MP.
              * jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target):
              Update to new prototype; do quote targets.
              (jcf_dependency_write): Update.
      
      From-SVN: r38707
      a5a4ce3c
  29. Jan 04, 2001
    • Neil Booth's avatar
      cpp.texi: Update for -MT. · 03b9ab42
      Neil Booth authored
              * cpp.texi: Update for -MT.
              * cppinit.c (initialize_dependency_output): Add a default
              target if none has been given already.
              (no_tgt, OPT_MT): New.
              (cpp_handle_option): Handle -MT.  Update -M etc.
              * cpplib.h (struct cpp_options): Remove deps_target.
              * gcc.c (cpp_options): Handle -MT.
              * mkdeps.c (struct deps): Move from mkdeps.h.
              (deps_calc_target): Rename deps_add_default_target.  Add a
              default target if none has been specified already.
              * mkdeps.h (struct deps): Move to mkdeps.c.
              (deps_calc_target): Rename deps_add_default_target.
      
      From-SVN: r38681
      03b9ab42
  30. Dec 17, 2000
    • Neil Booth's avatar
      cpplib.h (struct cpp_reader): Remove references to string_pool and temp_string_pool. · 49fe13f6
      Neil Booth authored
              * cpplib.h (struct cpp_reader): Remove references to string_pool
              and temp_string_pool.
              * cppinit.c (cpp_create_reader, cpp_cleanup): Similarly; using
              ident_pool in place.
              * cpplex.c (parse_number, unescaped_terminator_p, parse_string,
              save_comment, cpp_token_as_text): Similarly.
              * cpplib.c (do_define, glue_header_name, parse_assertion): Similarly.
              * cppmacro.c (make_number_token, builtin_macro, lock_pools,
              unlock_pools, stringify_arg, paste_tokens): Similarly.
      
      From-SVN: r38336
      49fe13f6
  31. Dec 15, 2000
    • Jakub Jelinek's avatar
      gcc.c (cpp_options): Pass -fno-operator-names. · be768055
      Jakub Jelinek authored
      	* gcc.c (cpp_options): Pass -fno-operator-names.
      	* cpplib.h (struct cpp_options): Add operator_names.
      	* cppinit.c (cpp_create_reader): Initialize it.
      	(initialize_builtins): If -fno-operator-names, don't add
      	C++ alternate operator names.
      	(COMMAND_LINE_OPTIONS): Add -fno-operator-names.
      	(cpp_handle_option): Clear operator_names.
      
      From-SVN: r38288
      be768055
  32. Dec 08, 2000
    • Zack Weinberg's avatar
      safe-ctype.h: New file. · f6bbde28
      Zack Weinberg authored
      include:
      	* safe-ctype.h: New file.
      libiberty:
      	* safe-ctype.c: New file.
      	* Makefile.in (CFILES): Add safe-ctype.c.
      	(REQUIRED_OFILES): Add safe-ctype.o.
      
      	* argv.c: Define ISBLANK and use it, not isspace.
      	* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
      	strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
      	uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
      	before calling TOLOWER(c)/TOUPPER(c).
      gcc:
      	* Makefile.in (HOST_RTL): Add safe-ctype.o.
      	(safe-ctype.o): New rule.
      	* system.h: Include safe-ctype.h, not ctype.h.  No need to
      	wrap ctype macros.
      
      	* cpphash.h: Zap IStable and related macros.  Define is_* in
      	terms of safe-ctype.h macros.
      	* cppinit.c: Delete the IStable and all related code.
      
      	* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
      	is_space arrays.  Delete initialize_char_syntax.  Change all
      	references to the above arrays to use macros instead.
      	* tradcpp.h: Define is_idchar, is_idstart, is_space, and
      	is_nvspace in terms of safe_ctype.h's macros.
      	* tradcif.y: is_idchar, is_idstart are macros not arrays.
      
      	* config/i370/i370.c, config/winnt/dirent.c,
      	config/winnt/fixinc-nt.c, config/winnt/ld.c:
      	Use uppercase ctype macros.  If we included ctype.h,
      	include safe-ctype.h instead.
      
      	* fixinc/fixfixes.c: Use uppercase ctype macros.  Don't test
      	ISLOWER(c) before calling TOUPPER(c).
      	* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
      	* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h.  No need to
      	wrap ctype macros.  Don't test ISUPPER(x) before calling TOLOWER(x).
      gcc/ch:
      	* lex.c: Don't bother checking whether ISUPPER(c) before
      	calling TOLOWER(c).  Don't bother checking whether isascii(c)
      	before testing ISSPACE(c); ISSPACE(c) includes '\n'.
      gcc/f:
      	* Make-lang.in: Link f/fini with safe-ctype.o.
      	* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
      	* com.c: Use TOUPPER, not ffesrc_toupper.
      	* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
      	* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
      	* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
      	initializing code; use TOUPPER and TOLOWER instead of
      	ffesrc_toupper and ffesrc_tolower.
      	* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
      	Don't define ffesrc_toupper or ffesrc_tolower.
      gcc/java:
      	* jvgenmain.c: Use ISPRINT not isascii.
      
      From-SVN: r38124
      f6bbde28
Loading