From 522b7b88b21334d7c88b6c3e87409e3abcc31306 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sat, 13 Jun 2015 07:55:05 +0000 Subject: [PATCH] re PR bootstrap/66448 (Bootstrap fails on darwin after r224161) gcc: PR bootstrap/66448 * passes.c (rest_of_decl_compilation): Do not register globals for early debug if they are declared in built-ins. From-SVN: r224451 --- gcc/ChangeLog | 6 ++++++ gcc/passes.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 052dac22de8..ceda880c0ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-06-13 Iain Sandoe + + PR bootstrap/66448 + * passes.c (rest_of_decl_compilation): Do not register globals for + early debug if they are declared in built-ins. + 2015-06-12 Aldy Hernandez * dwarf2out.c (check_die): Protect with ENABLE_CHECKING. diff --git a/gcc/passes.c b/gcc/passes.c index d3ffe33540b..1bc8a360f00 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -332,7 +332,7 @@ rest_of_decl_compilation (tree decl, */ && !decl_function_context (decl) && !current_function_decl - + && DECL_SOURCE_LOCATION (decl) != BUILTINS_LOCATION && !decl_type_context (decl)) (*debug_hooks->early_global_decl) (decl); } -- 2.30.2