summaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-07 21:14:12 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-07 21:14:12 +0000
commit47e69468f19a280502935718ecdfba033426de2e (patch)
tree413d97c6eb6d9cb6750a5233f116bf870414d6b7 /gcc/tree.h
parent2e18d182dfcb13eb14b09a9dd8fea8f7d7bffd2b (diff)
downloadgcc-47e69468f19a280502935718ecdfba033426de2e.tar.gz
Various fixes to allow us to again build if --enable-mapped-location:
* c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of unavailable annotate_with_file_line, if USE_MAPPED_LOCATION. * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of local variable loc. Change logic appropriately. * tree-vect-transform.c (vect_finish_stmt_generation): Use EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION. * c-parser.c (c_parser_for_statement): Initialize loc variable. * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96045 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index acbfc93eaa6..34394f13eeb 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1952,7 +1952,11 @@ struct tree_binfo GTY (())
#define DECL_SOURCE_LOCATION(NODE) (DECL_CHECK (NODE)->decl.locus)
#define DECL_SOURCE_FILE(NODE) LOCATION_FILE (DECL_SOURCE_LOCATION (NODE))
#define DECL_SOURCE_LINE(NODE) LOCATION_LINE (DECL_SOURCE_LOCATION (NODE))
-#ifdef USE_MAPPED_LOCATION
+#if 0
+/* Should be: #ifdef USE_MAPPED_LOCATION
+ However, there appears to be a jc1 bug that this would expose.
+ (It prevents bookstrapping because dwarf2out tries to emit a
+ non-found class.) FIXME. */
#define DECL_IS_BUILTIN(DECL) \
(DECL_SOURCE_LOCATION (DECL) <= BUILTINS_LOCATION)
#else