Compound Literals patch breaks kernel and glibc! (Was Re: Testcase for a new ICE)
Andreas Jaeger
aj@suse.de
Mon Dec 17 01:19:00 GMT 2001
"Joseph S. Myers" <jsm28@cam.ac.uk> writes:
> On Mon, 17 Dec 2001, Andreas Jaeger wrote:
>
>> The example from glibc is slightly different from the kernel example
>> (that's the testcase you committed):
>>
>> inline int
>> finite (double __x)
>> {
>> return (__extension__
>> (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
>> | 0x800fffffu) + 1) >> 31));
>> }
>>
>> int
>> main (void)
>> {
>> double x = 1.0;
>>
>> return finite (x);
>> }
>>
>> Should I commit this testcase? It seems also to be fixed now,
>
> Having more tests is always good.
Ok, I've committed it,
Andreas
2001-12-17 Andreas Jaeger <aj@suse.de>
* gcc.c-torture/compile/20011217-2.c: New test.
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Gcc-patches
mailing list