Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-22 Thread Laszlo Ersek
On 07/21/20 18:02, Alex Bennée wrote: > > Philippe Mathieu-Daudé writes: > >> On 7/17/20 6:46 PM, Laszlo Ersek wrote: >>> On 07/17/20 11:26, Laszlo Ersek wrote: On 07/16/20 17:09, Philippe Mathieu-Daudé wrote: > On 7/16/20 4:42 PM, Laszlo Ersek wrote: >> Quoting ISO C99 6.7.8p4, "Al

Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-21 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > On 7/17/20 6:46 PM, Laszlo Ersek wrote: >> On 07/17/20 11:26, Laszlo Ersek wrote: >>> On 07/16/20 17:09, Philippe Mathieu-Daudé wrote: On 7/16/20 4:42 PM, Laszlo Ersek wrote: > Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an >

Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-17 Thread Philippe Mathieu-Daudé
On 7/17/20 6:46 PM, Laszlo Ersek wrote: > On 07/17/20 11:26, Laszlo Ersek wrote: >> On 07/16/20 17:09, Philippe Mathieu-Daudé wrote: >>> On 7/16/20 4:42 PM, Laszlo Ersek wrote: Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an object that has static storage duration s

Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-17 Thread Laszlo Ersek
On 07/17/20 11:26, Laszlo Ersek wrote: > On 07/16/20 17:09, Philippe Mathieu-Daudé wrote: >> On 7/16/20 4:42 PM, Laszlo Ersek wrote: >>> Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an >>> object that has static storage duration shall be constant expressions or >>> string lit

Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-17 Thread Laszlo Ersek
On 07/16/20 18:31, Alex Bennée wrote: > > Laszlo Ersek writes: > >> Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an >> object that has static storage duration shall be constant expressions or >> string literals". >> >> The compound literal produced by the make_floatx80() m

Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-17 Thread Laszlo Ersek
On 07/16/20 17:09, Philippe Mathieu-Daudé wrote: > On 7/16/20 4:42 PM, Laszlo Ersek wrote: >> Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an >> object that has static storage duration shall be constant expressions or >> string literals". >> >> The compound literal produced b

Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-16 Thread Alex Bennée
Laszlo Ersek writes: > Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an > object that has static storage duration shall be constant expressions or > string literals". > > The compound literal produced by the make_floatx80() macro is not such a > constant expression, per 6.

Re: [PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-16 Thread Philippe Mathieu-Daudé
On 7/16/20 4:42 PM, Laszlo Ersek wrote: > Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an > object that has static storage duration shall be constant expressions or > string literals". > > The compound literal produced by the make_floatx80() macro is not such a > constant ex

[PATCH] target/i386: floatx80: avoid compound literals in static initializers

2020-07-16 Thread Laszlo Ersek
Quoting ISO C99 6.7.8p4, "All the expressions in an initializer for an object that has static storage duration shall be constant expressions or string literals". The compound literal produced by the make_floatx80() macro is not such a constant expression, per 6.6p7-9. (An implementation may accept