summaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-13 07:55:05 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-13 07:55:05 +0000
commitb45a475265b9872bbbc2db28b3e36ebe2f5e8450 (patch)
tree42bc6266f5230d71df85114d15bf1deca1332d24 /gcc/passes.c
parent12defae094bedc88e2fc5266d24b97274f35a45e (diff)
downloadgcc-b45a475265b9872bbbc2db28b3e36ebe2f5e8450.tar.gz
gcc:
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
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c2
1 files changed, 1 insertions, 1 deletions
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);
}