Go to file
Dodji Seketeli c468587ac2 Support location tracking for built-in macro tokens
When a built-in macro is expanded, the location of the token in the
epansion list is the location of the expansion point of the built-in
macro.

This patch creates a virtual location for that token instead,
effectively tracking locations of tokens resulting from built-in macro
tokens.

libcpp/
	* include/line-map.h (line_maps::builtin_location): New data
	member.
	(line_map_init): Add a new parameter to initialize the new
	line_maps::builtin_location data member.
	* line-map.c (linemap_init): Initialize the
	line_maps::builtin_location data member.
	* macro.c (builtin_macro): Create a macro map and track the token
	resulting from the expansion of a built-in macro.
gcc/
	* input.h (is_location_from_builtin_token): New function
	declaration.
	* input.c (is_location_from_builtin_token): New function
	definition.
	* toplev.c (general_init): Tell libcpp what the pre-defined
	spelling location for built-in tokens is.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>

From-SVN: r212637
2014-07-16 12:33:27 +02:00
boehm-gc
config Fix include path for in-tree cloog. 2014-06-23 19:15:16 +00:00
contrib * gennews: Use gcc-3.0/index.html. 2014-06-28 21:08:21 +00:00
fixincludes
gcc Support location tracking for built-in macro tokens 2014-07-16 12:33:27 +02:00
gnattools
include
INSTALL
intl
libada
libatomic Makefile.am (libatomic_la_LDFLAGS): Add lt_host_flags. 2014-06-17 22:43:18 +02:00
libbacktrace
libcilkrts
libcpp Support location tracking for built-in macro tokens 2014-07-16 12:33:27 +02:00
libdecnumber
libffi Normalize interface for all *-dg-runtest. 2014-07-04 07:28:17 +02:00
libgcc libgcov.h (struct gcov_fn_info): Make ctrs size 1. 2014-07-14 13:22:02 +00:00
libgfortran libgfortran.h (libcaf_atomic_codes): Add. 2014-07-12 21:02:57 +02:00
libgo runtime: Merge master revision 19185. 2014-07-12 00:01:09 +00:00
libgomp pr34020.f90: Make compile with TS 18508/Fortran 2015 2014-07-13 08:40:16 +02:00
libiberty
libitm
libjava
libobjc
libquadmath
libsanitizer sanitizer_common_interceptors.inc: Cherry pick upstream r211008. 2014-06-23 19:03:07 +00:00
libssp
libstdc++-v3 printers.py (SingleObjContainerPrinter): New base class for experimental::any and experimental::optional printers. 2014-07-15 13:00:18 +01:00
libvtv
lto-plugin
maintainer-scripts
zlib
.dir-locals.el
.gitignore Ignore gcc_update output 2014-06-18 17:47:18 -07:00
ABOUT-NLS
ChangeLog Don't accept isl 0.10. 2014-07-05 20:18:14 +00:00
ChangeLog.tree-ssa
compile
config-ml.in * config-ml.in: Robustify ac_configure_args parsing. 2014-06-13 16:32:29 +02:00
config.guess
config.rpath
config.sub
configure Don't accept isl 0.10. 2014-07-05 20:18:14 +00:00
configure.ac Don't accept isl 0.10. 2014-07-05 20:18:14 +00:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS * MAINTAINERS: Update my email address. 2014-07-01 01:46:57 +00:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.