From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22733 invoked by alias); 30 Apr 2009 00:34:43 -0000 Received: (qmail 22073 invoked by uid 48); 30 Apr 2009 00:34:31 -0000 Date: Thu, 30 Apr 2009 00:34:00 -0000 Message-ID: <20090430003431.22072.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "lcwu at gcc dot gnu dot org" 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: 2009-04/txt/msg03012.txt.bz2 ------- Comment #2 from lcwu at gcc dot gnu dot org 2009-04-30 00:34 ------- The sole use of gcc_version in plugin.c is in function try_init_one_plugin, which is guarded by the macro ENABLE_PLUGIN. Since ENABLE_PLUGIN is set to 0 on the Darwin systems, the function was compiled out. I think we need to guard the inclusion of plugin-version.h with ENABLE_PLUGIN as well. -- lcwu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dnovillo at google dot com, | |lcwu at gcc dot gnu dot org, | |espindola at google dot com Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-04-30 00:34:30 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968