From owner-cvs-src@FreeBSD.ORG Sat Oct 21 11:49:08 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A117916A47C; Sat, 21 Oct 2006 11:49:08 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD6043D55; Sat, 21 Oct 2006 11:49:07 +0000 (GMT) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9LBn7MD045570; Sat, 21 Oct 2006 11:49:07 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9LBn7xA045569; Sat, 21 Oct 2006 11:49:07 GMT (envelope-from kib) Message-Id: <200610211149.k9LBn7xA045569@repoman.freebsd.org> From: Konstantin Belousov Date: Sat, 21 Oct 2006 11:49:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/stdio xprintf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Oct 2006 11:49:08 -0000 kib 2006-10-21 11:49:07 UTC FreeBSD src repository Modified files: lib/libc/stdio xprintf.c Log: Workaround for (what seems to be) compiler error for gcc 3.4.6. On i386 with default optimization level (-O2), va_list pointer ap in the __v2printf function is advanced before the use. That cause argument shift and garbage instead last argument in printf-family when xprintf is activated. The nsswitch is easy victim of the bug. Reviewed by: kan Approved by: kan (mentor) MFC after: 1 week Revision Changes Path 1.4 +4 -1 src/lib/libc/stdio/xprintf.c