From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18825 invoked by alias); 15 Jun 2006 09:12:23 -0000 Received: (qmail 18714 invoked by uid 22791); 15 Jun 2006 09:12:22 -0000 X-Spam-Check-By: sourceware.org Received: from p12018-ipbffx02marunouchi.tokyo.ocn.ne.jp (HELO mail.pizzafactory.jp) (222.147.75.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 Jun 2006 09:12:19 +0000 Received: from [192.168.0.2] (unknown [192.168.0.2]) by mail.pizzafactory.jp (Postfix) with ESMTP id DA87F2037C34; Thu, 15 Jun 2006 18:12:16 +0900 (JST) In-Reply-To: References: <9E9B2AC9-6DB7-4D6A-BF9C-2B3E387F67E2@monami-software.com> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6E68F226-6A7E-4DB7-8734-A448045A6129@monami-software.com> Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: 7bit From: Masaki Muranaka Subject: Re: [patch] Failed to build mips64-elf with NLS on OSX Date: Thu, 15 Jun 2006 09:12:00 -0000 To: Andreas Schwab X-Mailer: Apple Mail (2.750) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00226.txt.bz2 On 2006/06/15, at 17:22, Andreas Schwab wrote: > GCC should recognize gettext specially in the context of format string > tests. Regardless GCC should work so, the build was failed. This is a sample script that reproduce the error. I tested on gcc-4.0.1/OSX and gcc-3.2.2/Linux. Results are same. -8<----8<----8<----8<----8<----8<--- cat <<__EOF > test.c #include # define _(String) gettext (String) int main(int argc, char **argv) { printf(_("aaa")); } __EOF gcc -Werror -Wformat -Wformat-nonliteral -c test.c -8<----8<----8<----8<----8<----8<--- -- Masaki Muranaka Monami software