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: Andreas Jaeger <aj at suse dot de>
- To: Michael Matz <matz at suse dot de>
- Cc: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>,Roger Sayle <roger at www dot eyesopen dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 12 Mar 2003 09:11:11 +0100
- Subject: Re: [PATCH] PR c++/9367: Builtins for *scanf and *printf
- References: <Pine.LNX.4.33.0303102336500.5124-100000@wotan.suse.de>
Michael Matz <matz at suse dot de> writes:
> 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.
Roger, are you going to fix the bugs or shall we revert the patch?
Andreas
--
Andreas Jaeger
SuSE Labs aj at suse dot de
private aj at arthur dot inka dot de
http://www.suse.de/~aj