Always pass explicit location to fatal_error.
The patch <https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00698.html>
adding an overload for fatal_error that passes an explicit location
broke gcc.pot regeneration because xgettext cannot handle function
overloads with the diagnostic string argument in different positions.
As the desired direction is for all diagnostics to have explicit
locations, this patch addresses the regression by removing the version
of fatal_error that does not pass a location, passing explicit
input_location everywhere (in the hope that those will incrementally
be changed to other locations, much as with the addition of a location
argument to pedwarn some time ago - a lot of cases aren't meaningfully
associated with a source file so UNKNOWN_LOCATION may be better).
Note that this patch does not attempt to fix any existing issues with
these diagnostics (such as wrongly starting with capital letters or
ending with '.' or '\n'); it just adds the input_location argument.
Bootstrapped with no regressions for x86_64-unknown-linux-gnu (Go
excluded).
gcc:
* diagnostic.c (fatal_error (const char *, ...)): Remove function.
* diagnostic-core.h (fatal_error (const char *, ...)): Remove
prototype.
* toplev.h (init_asm_output): Update comment on use of
UNKNOWN_LOCATION with fatal_error.
* cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
fatal_error changed to pass input_location as first argument.
gcc/c-family:
* c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
to pass input_location as first argument.
gcc/cp:
* class.c, except.c, parser.c, pt.c: All callers of fatal_error
changed to pass input_location as first argument.
gcc/fortran:
* f95-lang.c, gfortranspec.c, trans-const.c, trans-expr.c: All
callers of fatal_error changed to pass input_location as first
argument.
gcc/java:
* class.c, expr.c, jcf-parse.c, jvspec.c: All callers of
fatal_error changed to pass input_location as first argument.
gcc/lto:
* lto-object.c, lto-symtab.c, lto.c: All callers of fatal_error
changed to pass input_location as first argument.
libcc1:
* plugin.cc: All callers of fatal_error changed to pass
input_location as first argument.
From-SVN: r220293
2015-01-30 17:15:00 +01:00
|
|
|
2015-01-30 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* plugin.cc: All callers of fatal_error changed to pass
|
|
|
|
input_location as first argument.
|
|
|
|
|
2015-01-09 22:17:10 +01:00
|
|
|
2015-01-09 Michael Collison <michael.collison@linaro.org>
|
|
|
|
|
|
|
|
* plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
|
|
|
|
due to flattening of tree.h.
|
|
|
|
|
2014-11-21 17:49:17 +01:00
|
|
|
2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR bootstrap/63784
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
2014-11-13 11:22:22 +01:00
|
|
|
2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
|
|
|
|
* configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
|
|
|
|
* configure: Regenerate.
|
|
|
|
* connection.cc: Include <string.h>.
|
|
|
|
* libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
|
|
|
|
|
2014-11-11 21:25:18 +01:00
|
|
|
2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR target/63610
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2014-11-11 10:20:07 +01:00
|
|
|
2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR bootstrap/63699
|
|
|
|
PR bootstrap/63750
|
|
|
|
* plugin.cc: Don't include <string>.
|
|
|
|
|
2014-10-29 12:38:00 +01:00
|
|
|
2014-10-29 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
Phil Muldoon <pmuldoon@redhat.com>
|
|
|
|
|
|
|
|
* configure.ac: Remove -Werror addition to WARN_FLAGS. Add
|
|
|
|
ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
|
|
|
|
* Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
|
|
|
|
(WERROR_FLAG): Remove.
|
|
|
|
(AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
|
|
|
|
* configure: Regenerated.
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
* Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
(libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
New variables.
(libiberty): Set to -Wc, followed by the first existing noasan/,
pic/ or . libiberty.a.
(libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
* Makefile.in: Regenerated.
From-SVN: r216832
2014-10-29 12:37:18 +01:00
|
|
|
2014-10-29 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
|
|
|
|
(libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
|
|
|
|
New variables.
|
|
|
|
(libiberty): Set to -Wc, followed by the first existing noasan/,
|
|
|
|
pic/ or . libiberty.a.
|
|
|
|
(libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
|
|
|
|
libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
2014-10-27 18:21:42 +01:00
|
|
|
2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
|
|
|
|
Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
* aclocal.m4: New file.
|
|
|
|
* callbacks.cc: New file.
|
|
|
|
* callbacks.hh: New file.
|
|
|
|
* cc1plugin-config.h.in: New file.
|
|
|
|
* configure: New file.
|
|
|
|
* configure.ac: New file.
|
|
|
|
* connection.cc: New file.
|
|
|
|
* connection.hh: New file.
|
|
|
|
* findcomp.cc: New file.
|
|
|
|
* findcomp.hh: New file.
|
|
|
|
* libcc1.cc: New file.
|
|
|
|
* libcc1plugin.sym: New file.
|
|
|
|
* libcc1.sym: New file.
|
|
|
|
* Makefile.am: New file.
|
|
|
|
* Makefile.in: New file.
|
|
|
|
* marshall.cc: New file.
|
|
|
|
* marshall.hh: New file.
|
|
|
|
* names.cc: New file.
|
|
|
|
* names.hh: New file.
|
|
|
|
* plugin.cc: New file.
|
|
|
|
* rpc.hh: New file.
|
|
|
|
* status.hh: New file.
|