1. 13 Jul, 2000 9 commits
    • diagnostic.c (vline_wrapper_message_with_location, [...]): Remove. · c91ad699
      2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
      
              * diagnostic.c (vline_wrapper_message_with_location,
              v_message_with_file_and_line, v_error_with_file_and_file,
              v_error_for_asm, v_warning_for_asm, vfatal,
              v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
              vsorry, verror, vwarning, vpedwarn): Remove.
              (diagnostic_for_asm): New function.
              (pedwarn, error, warning, pedwarn_with_file_and_line,
              error_with_file_and_line, warning_with_file_and_line, sorry,
              error_for_asm, warning_for_asm, fatal): Reimplement.
              (finish_diagnostic): Clear diagnostic info as well.
      
      From-SVN: r35011
      Gabriel Dos Reis committed
    • c-common.h (flag_digraphs): New. · 530d0ba5
      	* c-common.h (flag_digraphs): New.
      	* c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
      	* c-lex.c (yylex): Use flag_digraphs to decide whether to
      	honour digraphs.
      
      	* testsuite/gcc.dg/cpp/digraph1.c,
      	testsuite/gcc.dg/cpp/digraph2.c,
      	testsuite/gcc.dg/cpp/digraphs.c: New tests.
      
      From-SVN: r35010
      Neil Booth committed
    • Daily bump. · 1920d8c7
      From-SVN: r35009
      Jeff Law committed
    • gcc.c (do_spec_1): Add new %B operator. · ea414c97
      	* gcc.c (do_spec_1): Add new %B operator.
      	(set_input): Prepare for %B.
      
      	(link_command_spec): Move up with the other tm.h-
      	overrideable specs.  Factor out the portion conditional on
      	LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
      	(struct compiler): Just have a single spec string.  All users
      	updated.
      	(default_compilers): Remove unnecessary braces.
      	(static_specs): Update.
      
      	(trad_capable_cpp, cpp_options, cc1_options, asm_options): New
      	named specs.
      	(C and assembly specs): Use the new named specs, as appropriate.
      
      	* objc/lang-specs.h, ch/lang-specs.h, cp/lang-specs.h,
      	f/lang-specs.h, java/lang-specs.h: Use the new named specs.
      	Remove unnecessary braces.
      
      From-SVN: r35008
      Zack Weinberg committed
    • * tradcif.c: Remove. · 45062494
      From-SVN: r35007
      Zack Weinberg committed
    • gcc.c (execute): If a subprocess gets a fatal signal... · c334349b
      	* gcc.c (execute): If a subprocess gets a fatal signal, report
      	strsignal() of the signal number, and ask for a bug report.
      	Do not do this for SIGPIPE if there's already been an error.
      
      	* tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
      	Delete pipe_closed.
      
      From-SVN: r35006
      Zack Weinberg committed
    • final.c (profile_function): Do not emit profile counters in the data section, if… · dcacfa04
      final.c (profile_function): Do not emit profile counters in the data section, if NO_PROFILE_COUNTERS is defined.
      
      	* final.c (profile_function): Do not emit profile counters in
      	the data section, if NO_PROFILE_COUNTERS is defined.
      	* tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
      	FUNCTION_PROFILER.
      
      	* config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
      	(FUNCTION_PROFILER): Just emit a call to mcount.
      
      From-SVN: r35005
      Zack Weinberg committed
    • * tradcpp.c (main): Rename 'perror' label to 'sys_error'. · 6e993bdb
      From-SVN: r35004
      Zack Weinberg committed
    • cppexp.c, [...]: Eradicate all traces of code dependent on traditional,… · f9a0e96c
      cppexp.c, [...]: Eradicate all traces of code dependent on traditional, lang_chill, or lang_fortran.
      
      	* cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
      	cpplib.c, cpplib.h: Eradicate all traces of code dependent on
      	traditional, lang_chill, or lang_fortran.
      
      	* cppfiles.c: #undef strcmp to suppress warning about macros
      	used without arguments.
      	(_cpp_execute_include): Use f, not fname, in "No include path"
      	error.
      	(_cpp_pop_file_buffer): New function.
      	* cpplib.c: Don't include <sys/mman.h>.
      	(cpp_push_buffer): Set line_base and lineno in new buffer.
      	(cpp_pop_buffer): Use _cpp_pop_file_buffer.
      
      	* cpplex.c: Move all prototypes and structure declarations to the
      	top of the file.  Properly parenthesise some macro arguments.
      	(cpp_scan_line): New function.
      	(special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
      	don't need to walk up the stack counting.
      
      From-SVN: r35003
      Zack Weinberg committed
  2. 12 Jul, 2000 28 commits
  3. 11 Jul, 2000 3 commits
    • Remove. No longer expected to fail. · e1a60e2c
      From-SVN: r34973
      David Billinghurst committed
    • [multiple changes] · 417f3e3a
      2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>
      
      	* cpplex.c (parse_name): No longer inline (premature optimization).
      	(do_pop_context): Fold into pop_context.
      	(pop_context): Returns int.
      	(lex_next): Hoist test for end of directive into pop_context.
      	(push_macro_context): Returns int; takes just reader and token.
      	Hoist test for excessive nesting to caller.
      	(push_arg_context): Returns void; takes just reader and token.
      	Do not call stringify_arg or get_raw_token.
      	(get_raw_token): Convert tail recursion through	push_arg_context
      	to a loop at this level.  Call stringify_arg here if appropriate.
      	(maybe_paste_with_next): Convert tail recursion to a while loop.
      	Hoist test of paste_level to caller.
      
      	(stringify_arg): Push arg context at beginning.
      	(cpp_get_token): Split out core into _cpp_get_token.  Call
      	process_directive here.  Throw away CPP_PLACEMARKER tokens.
      	(_cpp_get_token): Convert tail recursion through
      	push_macro_context to a loop at this level.
      	(_cpp_glue_header_name, is_macro_disabled, stringify_arg,
      	_cpp_get_raw_token): Use _cpp_get_token.
      	(_cpp_skip_rest_of_line): Drop the context stack directly; do
      	not call pop_context.
      	(_cpp_run_directive): Call lex_next directly.
      
      	* cpphash.h: Prototype _cpp_get_token.
      	* cppexp.c (lex): Use it.
      	* cpphash.c (parse_define): Use it.
      	* cpplib.c (get_define_node, do_undef, parse_include,
      	read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
      	do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
      	parse_ifdef, validate_else): Use it.
      	(cpp_push_buffer): Tweak error message; abort if anyone tries
      	to push a buffer while macro expansions are stacked.
      
      2000-07-11  Donn Terry  <donnte@microsoft.com>
      
      	* cpplex.c (free_macro_args, save_token): Cast arg of free
      	and/or xrealloc to PTR.
      	(_cpp_init_input_buffer): Clear all fields of the base context.
      
      From-SVN: r34972
      Zack Weinberg committed