PR preprocessor/34695 gcc: * Makefile.in (c-opts.o): Depend on c-tree.h. * c-common.c: Move down include of diagnostic.h. (done_lexing, c_cpp_error): New. * c-common.h (done_lexing): Declare. * c-decl.c (c_write_global_declarations): Don't check cpp_errors (parse_in). * c-opts.c: Include c-tree.h. (c_common_init_options): Set preprocessor error callback. (c_common_handle_option): Do not set preprocessor inhibit_warnings, warnings_are_errors, warn_system_headers, pedantic_errors or inhibit_warnings flags. (c_common_post_options): Do not check cpp_errors (parse_in). (c_common_finish): Do not output dependencies if there were errors. Do not check return value of cpp_finish. * c-ppoutput.c (pp_file_change): Set input_location. * c-tree.h (c_cpp_error): Declare. * diagnostic.c (diagnostic_set_info_translated): Also initialize override_column. (diagnostic_build_prefix): Check override_column. * diagnostic.h (diagnostic_info): Add override_column field. (diagnostic_override_column): Define. gcc/cp: * cp-tree.h (cp_cpp_error): Remove. * error.c (cp_cpp_error): Remove. * parser.c (cp_lexer_new_main): Set done_lexing instead of client_diagnostic and error callback. gcc/fortran: * cpp.c (cb_cpp_error): New. (gfc_cpp_post_options): Don't set cpp_option->inhibit_warnings. Don't check cpp_errors (cpp_in). (gfc_cpp_init_0): Set cb->error. gcc/testsuite: * gcc.dg/builtin-redefine.c, gcc.dg/cpp/redef2.c, gcc.dg/cpp/redef3.c, gcc.dg/cpp/trad/redef2.c: Use dg-message instead of dg-warning for "previous definition" messages. * gcc.dg/cpp/Wvariadic-1.c, gcc.dg/cpp/Wvariadic-3.c: Expect "warnings being treated as errors" message. * gcc.dg/fltconst-1.c: Use -fshow-column. libcpp: * makedepend.c: Remove. * Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove. (all, clean, TAGS_SOURCES, include): Remove makedepend handling. * directives.c (cpp_errors): Remove. * errors.c (print_location, _cpp_begin_message, v_message): Remove. (cpp_error, cpp_error_with_line): Always use error callback. (cpp_error, cpp_error_with_line, cpp_errno): Return bool. * include/cpplib.h (cpp_options): Remove pedantic_errors, inhibit_warnings, warn_system_headers, inhibit_errors, warnings_are_errors, client_diagnostic. (cpp_callbacks): Add extra arguments to error callback; make it return bool. (cpp_finish): Return void. (cpp_destroy): Remove inaccurate comment about return value. (cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove. (CPP_DL_NOTE): Define. * include/line-map.h (linemap_print_containing_files): Remove. * init.c (cpp_finish): Do not check for or return number of errors. * internal.h (cpp_reader): Remove errors field. * line-map.c (linemap_print_containing_files): Remove. * macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message about previous definition. Only emit it if previous diagnostic was emitted. From-SVN: r145263
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
Wunused.c | Loading commit data... | |
Wunused.h | Loading commit data... | |
__STDC__.c | Loading commit data... | |
argcount.c | Loading commit data... | |
assembler.S | Loading commit data... | |
assert1.c | Loading commit data... | |
assert2.c | Loading commit data... | |
assert3.c | Loading commit data... | |
builtins.c | Loading commit data... | |
builtins.h | Loading commit data... | |
cmdlne-C.c | Loading commit data... | |
cmdlne-C2.c | Loading commit data... | |
cmdlne-dD.c | Loading commit data... | |
cmdlne-dM.c | Loading commit data... | |
comment-2.c | Loading commit data... | |
comment-3.c | Loading commit data... | |
comment.c | Loading commit data... | |
define.c | Loading commit data... | |
defined.c | Loading commit data... | |
directive.c | Loading commit data... | |
escaped-eof.c | Loading commit data... | |
escaped-nl.c | Loading commit data... | |
funlike-2.c | Loading commit data... | |
funlike-3.c | Loading commit data... | |
funlike-4.c | Loading commit data... | |
funlike-5.c | Loading commit data... | |
funlike.c | Loading commit data... | |
hash.c | Loading commit data... | |
include.c | Loading commit data... | |
literals-1.c | Loading commit data... | |
literals-2.c | Loading commit data... | |
maccom1.c | Loading commit data... | |
maccom2.c | Loading commit data... | |
maccom3.c | Loading commit data... | |
maccom4.c | Loading commit data... | |
maccom6.c | Loading commit data... | |
macro.c | Loading commit data... | |
macroargs.c | Loading commit data... | |
mi1.c | Loading commit data... | |
mi1c.h | Loading commit data... | |
mi1nd.h | Loading commit data... | |
mi1ndp.h | Loading commit data... | |
mi1x.h | Loading commit data... | |
mi2.c | Loading commit data... | |
mi2a.h | Loading commit data... | |
mi2b.h | Loading commit data... | |
mi2c.h | Loading commit data... | |
mi3.c | Loading commit data... | |
mi3.def | Loading commit data... | |
mi3.h | Loading commit data... | |
mi4.c | Loading commit data... | |
mi5.c | Loading commit data... | |
mi6.c | Loading commit data... | |
mi6a.h | Loading commit data... | |
mi6b.h | Loading commit data... | |
mi6c.h | Loading commit data... | |
mi6d.h | Loading commit data... | |
mi6e.h | Loading commit data... | |
mi7.c | Loading commit data... | |
mi7a.h | Loading commit data... | |
mi7b.h | Loading commit data... | |
null-drctv.c | Loading commit data... | |
num-sign.c | Loading commit data... | |
paste.c | Loading commit data... | |
quote.c | Loading commit data... | |
recurse-1.c | Loading commit data... | |
recurse-2.c | Loading commit data... | |
recurse-3.c | Loading commit data... | |
redef1.c | Loading commit data... | |
redef2.c | Loading commit data... | |
strify.c | Loading commit data... | |
trad.exp | Loading commit data... | |
uchar.c | Loading commit data... | |
xwin1.c | Loading commit data... |