This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR c++/9367: Builtins for *scanf and *printf
- From: Michael Matz <matz at suse dot de>
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Cc: Roger Sayle <roger at www dot eyesopen dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 10 Mar 2003 23:38:13 +0100 (CET)
- Subject: Re: [PATCH] PR c++/9367: Builtins for *scanf and *printf
Hi,
On Mon, 10 Mar 2003, Franz Sirl wrote:
> this patch causes dozens of regression on powerpc-linux in a -O2 c++
> testsuite run. The errors are all like:
>
> test-vprintf.cpp: In function `int vprintf(const char*, __va_list_tag*)':
> test-vprintf.cpp:19: error: declaration of `int vprintf(const char*,
> __va_list_tag*) throw ()' throws different exceptions
> test-vprintf.cpp:16: error: than previous declaration `int vprintf(const
> char*,
> __va_list_tag*)'
Yep. I also noticed this on x86-64-linux while checking other programs.
> Strangely enough all is fine on i686---linux. So can people please try
> to compile the appended testcase on more platforms with "g++ -c
> test-vprintf.cpp -O1 -ansi -pedantic-errors" and report if they see
> the above error or not?
For me just "g++ -pedantic" is enough.
Ciao,
Michael.