gcc:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Jun 2015 07:55:05 +0000 (07:55 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Jun 2015 07:55:05 +0000 (07:55 +0000)
PR bootstrap/66448
* passes.c (rest_of_decl_compilation): Do not register globals for
early debug if they are declared in built-ins.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224451 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/passes.c

index 052dac2..ceda880 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 d3ffe33..1bc8a36 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);
 }