re PR bootstrap/66448 (Bootstrap fails on darwin after r224161)
authorIain Sandoe <iain@codesourcery.com>
Sat, 13 Jun 2015 07:55:05 +0000 (07:55 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 13 Jun 2015 07:55:05 +0000 (07:55 +0000)
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
gcc/passes.c

index 052dac22de834491649198cad81449043f4984f3..ceda880c0ba86efb2d0f7e9271470bc89c3b3375 100644 (file)
@@ -1,3 +1,9 @@
+2015-06-13  Iain Sandoe  <iain@codesourcery.com>
+
+       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  <aldyh@redhat.com>
 
        * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
index d3ffe33540b886cf0a5f13c0000a72eb192b04b9..1bc8a360f008f0060e4481661192aa41c85c39a6 100644 (file)
@@ -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);
 }