From owner-freebsd-stable@FreeBSD.ORG Thu Oct 9 09:34:41 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 711F610656A1 for ; Thu, 9 Oct 2008 09:34:41 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57005.mail.re3.yahoo.com (web57005.mail.re3.yahoo.com [66.196.97.109]) by mx1.freebsd.org (Postfix) with SMTP id 1C9578FC34 for ; Thu, 9 Oct 2008 09:34:40 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 52045 invoked by uid 60001); 9 Oct 2008 09:34:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=LlyzVaOu9QS6nr6KG1VKmwOcB2pNPsRf0K0g66zjN22JoYmo7wyQptrwvIGB1jamCpREijkAsS/xuC5IGNSJM2fnVUcM/Wm/n5fJwdFCeICOzA0tsa5NAtCTnWGutpf0Cv4srWbkRsbozWTF2K7yU0fFdoiphh+80LF9RXYm90Y=; X-YMail-OSG: 4x45w38VM1nF5PqSpxpyKixSoHWKAAM91oiloyA6J1KXZ.AKe16EhSaVNQ1EoloPsR7XE5wsyQf77yNik2tm4SBzrqImEbDOlSqnA5a7nPbCVJcdlJNkvKjutStPjKHoWqU3UuZj.9Ja6DSndSfDLjfm1aU- Received: from [220.255.7.249] by web57005.mail.re3.yahoo.com via HTTP; Thu, 09 Oct 2008 02:34:40 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Thu, 9 Oct 2008 02:34:40 -0700 (PDT) From: Unga To: Alexander Kabaev In-Reply-To: <20081007185328.29220983@kan.dnsalias.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <533947.52036.qm@web57005.mail.re3.yahoo.com> Cc: freebsd-stable@freebsd.org Subject: Re: Help me to develop a FreeBSD patch for gcc-4.2.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 09:34:41 -0000 --- On Wed, 10/8/08, Alexander Kabaev wrote: > If you still have CVS tree available, you can do 'cvs > diff -rFSF' in > contrib/gcc and apply the patches to files gcc-4.2.1/gcc. > Hi Alexander Here is how I made the patch: cd ~ mkdir -pv freebsd cd freebsd cvs -d freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs co -rRELENG_7 src cvs diff -rFSF >& FreeBSD-gcc-4.2.1.patch I have applied the patch on a fresh copy of gcc-4.2.1 and compiled. As before it develops errors: ../../gcc-4.2.1/gcc/c-format.c: In function 'check_format_info_main': ../../gcc-4.2.1/gcc/c-format.c:1780: error: 'flag_format_extensions' undeclared (first use in this function) ../../gcc-4.2.1/gcc/c-format.c:1780: error: (Each undeclared identifier is reported only once ../../gcc-4.2.1/gcc/c-format.c:1780: error: for each function it appears in.) gmake[2]: *** [c-format.o] Error 1 Have I missed out something? Could you help me to move forward from here? For an example, I can over come the above error by adding following lines to the gcc-4.2.1/gcc/config/i386/i386.opt: fformat-extensions Common Report Var(flag_format_extensions) Init(0) Allow FreeBSD kernel-specific printf format specifiers. Is that the correct move forward? Best regards Unga