From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NN8xf-0004e6-VQ for mharc-grub-devel@gnu.org; Tue, 22 Dec 2009 12:55:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NN8xd-0004d1-Hg for grub-devel@gnu.org; Tue, 22 Dec 2009 12:55:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NN8xX-0004bb-Qw for grub-devel@gnu.org; Tue, 22 Dec 2009 12:55:52 -0500 Received: from [199.232.76.173] (port=47706 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NN8xX-0004bU-LB for grub-devel@gnu.org; Tue, 22 Dec 2009 12:55:47 -0500 Received: from fg-out-1718.google.com ([72.14.220.158]:49609) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NN8xW-00038i-Is for grub-devel@gnu.org; Tue, 22 Dec 2009 12:55:47 -0500 Received: by fg-out-1718.google.com with SMTP id e21so22605fga.12 for ; Tue, 22 Dec 2009 09:55:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=gObP05XgvXVjtJNeb3lsIocVNE06978dQVZPBIB4C/k=; b=BzNYAvwHyOYHQ3hWGwpb//D8zkLgNYhQhYco2qlxT/3V2F4JHY68Da5+AJqEEobVNJ mjHecFkseCix7PYxxOuQhvSeqEzerPHhQlHXfhWV57miGlR9fbTVJMZ/n8jqeHer0Teh 6aLAvzjXB0oob7Lw8BWjRAwcZVVGVVCR5OxPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=fd2cwiTjDKZToRo7N9U+Hx102fZdpd5ndnk4sLBIkpOplUZw9wpFSbOQdgVdxjwK03 fNOBW6BqMNZHPjqxO4kBtpUCE+qHEK6RfUgKlMf59o8nzW2x4xmdB3HDO/YfsVpVQpyb dOAVKH0bbBMnj6vlbYqFXS3R2BqKRhzjNKekA= Received: by 10.87.47.1 with SMTP id z1mr11656586fgj.71.1261504542048; Tue, 22 Dec 2009 09:55:42 -0800 (PST) Received: from debian.bg45.phnet (27.65.202.62.cust.bluewin.ch [62.202.65.27]) by mx.google.com with ESMTPS id e11sm15514595fga.4.2009.12.22.09.55.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Dec 2009 09:55:41 -0800 (PST) Message-ID: <4B310813.8070607@gmail.com> Date: Tue, 22 Dec 2009 18:55:31 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <4B30FCCA.1000304@labri.fr> In-Reply-To: <4B30FCCA.1000304@labri.fr> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig05DE6FA4D748BBFD7EA5AEEB" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: BVK Chaitanya Subject: Re: Fix for grub_assert_fail undefined on NetBSD and other platforms X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 17:55:53 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig05DE6FA4D748BBFD7EA5AEEB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Gr=C3=A9goire Sutre wrote: > Hi, > > > Unfortunately, I couldn't test this on NetBSD, where old technique wa= s > > reported failing as GCC optimizations didn't happen. Can Gr=C3=A9goi= re > > Sutr or anybody else try this out on NetBSD and confirm? > > Thanks for looking into this. > > I tested the second version of the patch. Linking now works without > errors but I get new warnings: > > ./include/grub/list.h:44: warning: 'error' attribute directive ignored This situation is acceptable. In unlikely case that cast is indeed bad you will get runtime error instead of compile error. But it would be a benefit if abort message would de improved by defining intermidiate macro while will pass __LINE__ and __FILE__ to bad_cast_real which will use it to tell developper where there is a problem > > I attach the log of (./autogen.sh && ./configure && gmake grub-fstest > LDFLAGS=3D-lintl). This is on NetBSD 5.0 with gcc 4.1.3 (the default).= > If I use gcc 4.4 instead, then I do not get any warning. > > Gr=C3=A9goire > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig05DE6FA4D748BBFD7EA5AEEB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAksxCBsACgkQNak7dOguQgmt+AEAlx3PQ5vHpswRUyKwvGO3BcMK BEu0DQ11C4x9k5Uh3F4BALkhynBsstJAyJ4eOLQ261s1exmD0QkLZiRJB5MDZ6eO =yxFi -----END PGP SIGNATURE----- --------------enig05DE6FA4D748BBFD7EA5AEEB--