[PATCH, testsuite]: Fix PR 36057: [4.3/4.4 Regression] struct-layout-1_generate.c uses non-ISO C '%n$' operand number formats

Janis Johnson janis187@us.ibm.com
Tue May 20 19:09:00 GMT 2008


On Sat, 2008-05-17 at 15:07 +0200, Uros Bizjak wrote:
> Hello!
> 
> Attached patch removes numbered arguments from format strings in 
> struct-layout-1_generate.c. It turns out that some (crippled ;) targets 
> do not fully support POSIX 1003.1. Sigh, since numbered arguments are 
> quite usable extension for printf format strings.
> 
> 2008-05-17  Uros Bizjak  <ubizjak@gmail.com>
> 
>     PR testsuite/36057
>     * g++.dg/compat/struct-layout-1_generate.c (DG_OPTIONS): Remove.
>     (const char *dg_options): New array.
>     (switchfiles): Loop through dg_options array to generate dg-options
>     directives.  Remove numbered arguments usage from fprintf
>     format strings.
> 
> Patch was tested on x86_64-pc-linux-gnu {,-m32}. OK for 4.3 and 4.4?

OK.

Janis



More information about the Gcc-patches mailing list