This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to fix bootstrapping with --enable-mapped-location
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: pinskia at physics dot uc dot edu
- Date: Sat, 15 Oct 2005 08:38:15 -0700
- Subject: PATCH to fix bootstrapping with --enable-mapped-location
This patch broke builds configured with --enabled-mapped-location:
2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
* tree.c (last_annotated_node): Change type to location_t*.
The problem is location_t is undefined when USE_MAPPED_LOCATION.
Fixed with the attached patch.
I think this qualifies as a regression and obvious (since it fixes
a build failure, albeit with a non-default configuration), so I'll
check it in tomorrow unless there are objections.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
2005-10-15 Per Bothner <per@bothner.com>
* tree.c (last_annotated_node): Use sources_locus typedef.
This permits bootstrapping with --enable-mapped-location.
Index: tree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.c,v
retrieving revision 1.509
diff -u -r1.509 tree.c
--- tree.c 12 Oct 2005 20:54:48 -0000 1.509
+++ tree.c 14 Oct 2005 15:15:25 -0000
@@ -3107,7 +3107,7 @@
#if 1 /* ! defined(USE_MAPPED_LOCATION) */
/* ??? gengtype doesn't handle conditionals */
-static GTY(()) location_t *last_annotated_node;
+static GTY(()) source_locus last_annotated_node;
#endif
#ifdef USE_MAPPED_LOCATION