This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/66508] Attempt to Compile gcc-6.0 on OSX 10.9.4 cause segmentation fault
- From: "youfan.noey at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Jun 2015 11:06:03 +0000
- Subject: [Bug bootstrap/66508] Attempt to Compile gcc-6.0 on OSX 10.9.4 cause segmentation fault
- Auto-submitted: auto-generated
- References: <bug-66508-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66508
--- Comment #3 from Fan You <youfan.noey at gmail dot com> ---
(In reply to Dominique d'Humieres from comment #2)
> Duplicate of pr66448? Which revision are you using?
Just updated and tried again, get the same result.
Revision: 224410
After changing
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);
}
I get similar error as pr66448
/Users/jieyuandai/src/gcc/gcc/dwarf2out.c:5693:1: error: âvoid
check_die(dw_die_ref)â defined but not used [-Werror=unused-function]
check_die (dw_die_ref die)
^
cc1plus: all warnings being treated as errors
Retry build with gcc-4.9.2 get the same results.