GCC modified for the FreeChainXenon project
Find a file
Nathan Sidwell 745f22096c c++: EOF location [PR 96045]
Setting the EOF token location to be the start of a line just after
the ending newline is not most helpful.  While that location is
probably the right place to report preprocessing and lexing issues,
when parsing, the location just after the last token is better.  That
way we get to point at some actual text.  Setting the location from
the previous token has the advantage over just setting the location to
be the end of the final line, in that any ending comments do not get
considered, which I think is better.

	PR c++/96045
	gcc/cp/
	* parser.c (cp_lexer_new_main): Adjust EOF token location.
	gcc/testsuite/
	* g++.dg/diagnostic/pr96045-1.C: New.
	* g++.dg/diagnostic/pr96045-2.C: New.
	* g++.dg/diagnostic/pr96045-3.C: New.
	* c-c++-common/goacc/pr79428-1.c: Adjust EOF diagnostic location.
	* c-c++-common/gomp/pr79428-2.c: Likewise
	* c-c++-common/raw-string-6.c: Likewise
	* g++.dg/cpp0x/decltype63.C: Likewise
	* g++.dg/cpp0x/gen-attrs-64.C: Likewise
	* g++.dg/cpp0x/pr68726.C: Likewise
	* g++.dg/cpp0x/pr78341.C: Likewise
	* g++.dg/cpp1y/pr65202.C: Likewise
	* g++.dg/cpp1y/pr65340.C: Likewise
	* g++.dg/cpp1y/pr68578.C: Likewise
	* g++.dg/cpp1z/class-deduction44.C: Likewise
	* g++.dg/diagnostic/unclosed-extern-c.C: Likewise
	* g++.dg/diagnostic/unclosed-function.C: Likewise
	* g++.dg/diagnostic/unclosed-namespace.C: Likewise
	* g++.dg/diagnostic/unclosed-struct.C: Likewise
	* g++.dg/ext/pr84598.C: Likewise
	* g++.dg/other/switch4.C: Likewise
	* g++.dg/parse/attr4.C: Likewise
	* g++.dg/parse/cond4.C: Likewise
	* g++.dg/parse/crash10.C: Likewise
	* g++.dg/parse/crash18.C: Likewise
	* g++.dg/parse/crash27.C: Likewise
	* g++.dg/parse/crash34.C: Likewise
	* g++.dg/parse/crash35.C: Likewise
	* g++.dg/parse/crash52.C: Likewise
	* g++.dg/parse/crash59.C: Likewise
	* g++.dg/parse/crash61.C: Likewise
	* g++.dg/parse/crash67.C: Likewise
	* g++.dg/parse/error14.C: Likewise
	* g++.dg/parse/error56.C: Likewise
	* g++.dg/parse/invalid1.C: Likewise
	* g++.dg/parse/parameter-declaration-1.C: Likewise
	* g++.dg/parse/parser-pr28152-2.C: Likewise
	* g++.dg/parse/parser-pr28152.C: Likewise
	* g++.dg/parse/pr68722.C: Likewise
	* g++.dg/parse/pr96258.C: Likewise
	* g++.dg/pr46852.C: Likewise
	* g++.dg/pr46868.C: Likewise
	* g++.dg/template/crash115.C: Likewise
	* g++.dg/template/crash43.C: Likewise
	* g++.dg/template/crash90.C: Likewise
	* g++.dg/template/error-recovery1.C: Likewise
	* g++.dg/template/error57.C: Likewise
	* g++.old-deja/g++.other/crash31.C: Likewise
2020-12-23 14:26:50 -08:00
c++tools c++tools: Fix PIE [PR 98324] 2020-12-23 04:50:00 -08:00
config Daily bump. 2020-11-26 00:16:41 +00:00
contrib Daily bump. 2020-12-22 00:16:23 +00:00
fixincludes Daily bump. 2020-12-15 00:16:35 +00:00
gcc c++: EOF location [PR 96045] 2020-12-23 14:26:50 -08:00
gnattools
gotools Daily bump. 2020-10-30 00:16:29 +00:00
include Daily bump. 2020-12-10 00:16:47 +00:00
INSTALL
intl intl: Unbreak intl build with bison 3 when no regeneration is needed [PR92008] 2020-04-16 11:55:00 +02:00
libada Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
libatomic Daily bump. 2020-12-06 00:16:44 +00:00
libbacktrace Daily bump. 2020-12-06 00:16:44 +00:00
libcc1 Daily bump. 2020-12-19 00:16:31 +00:00
libcody libcody: Remove testsuite [PR 98318] 2020-12-23 08:07:16 -08:00
libcpp Daily bump. 2020-12-15 00:16:35 +00:00
libdecnumber Daily bump. 2020-07-31 00:16:26 +00:00
libffi Daily bump. 2020-12-06 00:16:44 +00:00
libgcc Daily bump. 2020-12-21 00:16:20 +00:00
libgfortran Daily bump. 2020-12-06 00:16:44 +00:00
libgo runtime: eliminate scase.kind field 2020-12-22 14:42:22 -08:00
libgomp Daily bump. 2020-12-19 00:16:31 +00:00
libhsail-rt Daily bump. 2020-12-06 00:16:44 +00:00
libiberty Daily bump. 2020-12-23 00:16:35 +00:00
libitm Daily bump. 2020-12-06 00:16:44 +00:00
libobjc Daily bump. 2020-12-06 00:16:44 +00:00
liboffloadmic Daily bump. 2020-11-30 00:16:27 +00:00
libphobos Daily bump. 2020-12-06 00:16:44 +00:00
libquadmath Daily bump. 2020-12-06 00:16:44 +00:00
libsanitizer Daily bump. 2020-12-06 00:16:44 +00:00
libssp Daily bump. 2020-12-06 00:16:44 +00:00
libstdc++-v3 Daily bump. 2020-12-22 00:16:23 +00:00
libvtv Daily bump. 2020-12-06 00:16:44 +00:00
lto-plugin Daily bump. 2020-11-30 00:16:27 +00:00
maintainer-scripts Daily bump. 2020-12-17 00:16:37 +00:00
zlib Daily bump. 2020-12-06 00:16:44 +00:00
.dir-locals.el .dir-locals.el: Set 'fill-column' to 80 for c-mode 2020-12-14 12:19:56 +01:00
.gitattributes Add *.md diff=md. 2020-01-15 14:29:53 +01:00
.gitignore Sync .gitignore with binutils-gdb 2020-12-02 11:04:01 -07:00
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2020-12-18 00:16:30 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in config-ml.in: Suppress output from multi-do recipes 2020-11-09 14:28:37 +00:00
config.guess config.sub, config.guess : Import upstream 2020-11-07. 2020-11-23 19:30:01 +00:00
config.rpath
config.sub config.sub, config.guess : Import upstream 2020-11-07. 2020-11-23 19:30:01 +00:00
configure Add C++tools 2020-12-15 07:42:59 -08:00
configure.ac Add C++tools 2020-12-15 07:42:59 -08:00
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
depcomp
install-sh
libtool-ldflags
libtool.m4 Darwin : Update libtool and dependencies for Darwin20 [PR97865] 2020-12-05 08:43:20 +00:00
ltgcc.m4
ltmain.sh Do not use HAVE_DOS_BASED_FILE_SYSTEM for Cygwin. 2020-04-17 09:22:51 +02:00
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
MAINTAINERS MAINTAINERS: Add myself for write after approval. 2020-12-17 11:36:43 +01:00
Makefile.def Add C++tools 2020-12-15 07:42:59 -08:00
Makefile.in Add C++tools 2020-12-15 07:42:59 -08:00
Makefile.tpl Add C++tools 2020-12-15 07:42:59 -08:00
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
symlink-tree
test-driver
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.