From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgiyO-0003Nt-Ij for qemu-devel@nongnu.org; Fri, 19 Sep 2008 12:36:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgiyN-0003Nh-W3 for qemu-devel@nongnu.org; Fri, 19 Sep 2008 12:36:48 -0400 Received: from [199.232.76.173] (port=56185 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgiyN-0003Ne-Ri for qemu-devel@nongnu.org; Fri, 19 Sep 2008 12:36:47 -0400 Received: from nf-out-0910.google.com ([64.233.182.185]:2699) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgiyN-0000y6-I6 for qemu-devel@nongnu.org; Fri, 19 Sep 2008 12:36:47 -0400 Received: by nf-out-0910.google.com with SMTP id b2so274959nfb.12 for ; Fri, 19 Sep 2008 09:36:46 -0700 (PDT) Date: Fri, 19 Sep 2008 19:37:32 +0300 From: "Kirill A. Shutemov" Subject: Re: [Qemu-devel] [PATCH, RFC] ld flag --warn-common Message-ID: <20080919163730.GA5016@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 07, 2008 at 11:24:37AM +0300, Blue Swirl wrote: > Hi, >=20 > These trivial patches enable linker flag --warn-common and fix the > warnings caused by enabling the flag. This flag cause a lot of warning on my machine, even with trivial program. $ cat 1.c #include int main() { printf("test\n"); return 0; } $ gcc -Wl,--warn-common -static 1.c=20 /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtoul.o): = warning: multiple common of `_nl_category_name_idxs' /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): w= arning: previous common is here /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol_l.o):= warning: multiple common of `_nl_category_name_idxs' /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): w= arning: previous common is here /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtoul_l.o)= : warning: multiple common of `_nl_category_name_idxs' /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): w= arning: previous common is here /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(vfprintf.o):= warning: multiple common of `_nl_category_name_idxs' /usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): w= arning: previous common is here =2E..and so on. Is it problem with my toolchain? What is your testing environment? --=20 Regards, Kirill A. Shutemov + Belarus, Minsk + ALT Linux Team, http://www.altlinux.com/ --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjT1UoACgkQbWYnhzC5v6rBEwCghT4FrxTHGZuf9TAyq+aI43jy zcoAn27+76qTnYxLgsVS6DYJd2gZdYUo =WKWI -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--