diff mbox

fix final piece of PR66448 (Bootstrap fail on Darwin, after 224161).

Message ID 547D8D82-CEC0-435D-8FE4-DCF51943D663@codesourcery.com
State New
Headers show

Commit Message

Iain Sandoe June 12, 2015, 3:21 p.m. UTC
Hi,

Since debug is not initialised at the time built-ins are initialised, whilst the latter may make forward declarations, those should not be considered for early debug,

bootstrapped / tested on x86_64-darwin12 and x86_64-linux-gnu.

OK?
Iain

gcc:
	PR bootstrap/66448
	* passes.c (rest_of_decl_compilation): Do not register globals for
	early debug if they are declared in built-ins.

Comments

Jason Merrill June 13, 2015, 2:33 a.m. UTC | #1
OK.

Jason
diff mbox

Patch

diff --git a/gcc/passes.c b/gcc/passes.c
index d3ffe33..1bc8a36 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);
 }