From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5451 invoked by alias); 11 Jan 2011 00:07:20 -0000 Received: (qmail 5441 invoked by uid 22791); 11 Jan 2011 00:07:19 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Jan 2011 00:07:12 +0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/46037] --enable-stage1-languages=c,lto --enable-languages=c,lto --with-build-config=bootstrap-lto fails on darwin X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 11 Jan 2011 00:36:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00987.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46037 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at redhat dot com --- Comment #8 from Jan Hubicka 2011-01-11 00:07:08 UTC --- I guess it is decode options. But I wonder how we manage to play this ping-pong game. I see darwin.c setting the uninit: if (flag_var_tracking && (generating_for_darwin_version >= 9) && debug_info_level >= DINFO_LEVEL_NORMAL && debug_hooks->var_location != do_nothing_debug_hooks.var_location) flag_var_tracking_uninit = 1; and toplev.c clearing it: /* We know which debug output will be used so we can set flag_var_tracking and flag_var_tracking_uninit if the user has not specified them. */ if (debug_info_level < DINFO_LEVEL_NORMAL || debug_hooks->var_location == do_nothing_debug_hooks.var_location) { if (flag_var_tracking == 1 || flag_var_tracking_uninit == 1) { if (debug_info_level < DINFO_LEVEL_NORMAL) warning (0, "variable tracking requested, but useless unless " "producing debug info"); else warning (0, "variable tracking requested, but not supported " "by this debug format"); } flag_var_tracking = 0; flag_var_tracking_uninit = 0; } First time we go process_options->darwin_override_options and we end up with flag disabled (can't verify as I am not big friend with Jack's gdb) next time we go #0 0x00000001009edb40 in darwin_override_options () #1 0x000000010099b120 in ix86_option_override_internal () #2 0x000000010099f15b in ix86_valid_target_attribute_tree () #3 0x000000010099f25b in ix86_valid_target_attribute_p () #4 0x000000010007ac04 in handle_target_attribute () #5 0x00000001000024ca in decl_attributes () this time we bypass process_options. I don't see how those two conditionals can both match. I also wonder why is darwin enabling the flag? It seems to be off at all configurations except for darwin even if looks like generic var tracking feature. -fvar-tracking-uninit is also undocumented.