Go to file
Dodji Seketeli 3ad64f53da Properly initialize cpp_context in destringize_and_run
destringize_and_run forgets to initialize all the fields of the
cpp_context that it pushes.  Later _cpp_pop_context then gets confused
when it accesses context->tokens_kind via the call to macro_of_context
on context->prev.

The first hunk of this patch is the real obvious fix.  The second hunk
is just an assert that I am adding to err on the safe side.

Tested by on x86_64-unknown-linux-gnu against trunk by running the
test gcc.dg/gomp/macro-4.c under Valgrind, and bootstrapped.

libcpp/

	* directives.c (destringize_and_run): Properly initialize the new
	context.
	* macro.c (_cpp_pop_context): Assert that we shouldn't try to pop
	the initial base context, which has the same life time as the
	current instance of cpp_file.

From-SVN: r187054
2012-05-02 18:55:19 +02:00
INSTALL
boehm-gc Fix changelog format. 2012-02-28 18:02:56 +00:00
config mmap.m4: Use *vms* instead of vms*. 2012-04-03 12:07:28 +00:00
contrib Add libatomic as a target library. 2012-05-01 08:48:28 -07:00
fixincludes fixincl.c (fix_with_system): Add missing specifier. 2012-04-24 09:24:55 +00:00
gcc coretypes.h (gimple_seq, [...]): Typedef as gimple. 2012-05-02 16:41:48 +00:00
gnattools Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
include * dwarf2.def (DW_OP): Add DW_OP_GNU_addr_index. 2012-04-28 21:37:19 +00:00
intl
libada Revert 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com> 2012-05-02 14:56:11 +02:00
libatomic Add libatomic as a target library. 2012-05-01 08:48:28 -07:00
libcpp Properly initialize cpp_context in destringize_and_run 2012-05-02 18:55:19 +02:00
libdecnumber warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in expr call. 2011-12-20 16:54:12 +00:00
libffi ffi.c (ffi_prep_args_SYSV): Declare double_tmp. 2012-04-02 13:29:22 -05:00
libgcc config.host (mips64*-*-linux*, [...]): Remove. 2012-04-28 08:03:54 +00:00
libgfortran re PR libfortran/53051 (I/O: Support reading floating-point numbers which use "Q" for the exponent) 2012-04-22 19:28:34 +02:00
libgo re PR go/52586 (libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')) 2012-04-30 16:04:17 +00:00
libgomp prune.exp (TEST_ALWAYS_FLAGS): If undefined, set to empty. 2012-04-11 20:15:35 +00:00
libiberty dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name. 2012-04-27 14:14:14 +00:00
libitm Use long long in gtm_jmpbuf for x86-64 2012-04-04 08:49:23 -07:00
libjava defineclass.cc (MAJOR_1_7, MINOR_1_7): New. 2012-04-23 13:33:32 +00:00
libmudflap re PR c++/24985 (caret diagnostics) 2012-04-11 09:26:48 +00:00
libobjc Remove obsolete Tru64 UNIX V5.1B support 2012-03-12 15:35:56 +00:00
libquadmath Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libssp Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libstdc++-v3 hashtable_policy.h: Correct namepace nesting for _Hashtable forward declaration. 2012-05-02 16:22:06 +00:00
lto-plugin re PR lto/50616 (lto1.exe: internal compiler error: invalid resolution in the resolution file) 2012-02-22 11:19:22 +01:00
maintainer-scripts crontab: Enable snapshots from gcc-4_7-branch. 2012-03-22 09:25:49 +00:00
zlib 2012-03-02 Matthias Klose <doko@ubuntu.com> 2012-03-02 17:15:20 +00:00
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Add libatomic as a target library. 2012-05-01 08:48:28 -07:00
ChangeLog.tree-ssa
MAINTAINERS MAINTAINERS (Write After Approval): Add myself. 2012-05-01 13:25:33 +01:00
Makefile.def Add libatomic as a target library. 2012-05-01 08:48:28 -07:00
Makefile.in Add libatomic as a target library. 2012-05-01 08:48:28 -07:00
Makefile.tpl configure.ac: Add tool checks for READELF and READELF_FOR_TARGET. 2011-11-09 13:57:26 -05:00
README
compile
config-ml.in
config.guess
config.rpath
config.sub Update config.sub to 2012-04-18 version from official repo. 2012-04-25 15:48:28 +00:00
configure Add libatomic as a target library. 2012-05-01 08:48:28 -07:00
configure.ac Add libatomic as a target library. 2012-05-01 08:48:28 -07:00
depcomp
install-sh
libtool-ldflags
libtool.m4 Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
symlink-tree
ylwrap

README

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.