From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27812 invoked by alias); 8 Aug 2014 17:59:56 -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 Received: (qmail 27768 invoked by uid 48); 8 Aug 2014 17:59:51 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/62067] New: lto-lang.c:549: too many calls to va_end on some code paths ? Date: Fri, 08 Aug 2014 17:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00551.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62067 Bug ID: 62067 Summary: lto-lang.c:549: too many calls to va_end on some code paths ? Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com [trunk/gcc/lto/lto-lang.c:549]: (error) va_list 'list' used before va_start() was called. egress: builtin_types[def] = t; va_end (list); For function def_fn_type, there are some code paths where va_end is called twice. Suggest code rework. If that means removing the goto statement, even better.