This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compound Literals patch breaks kernel and glibc! (Was Re: Testcasefor a new ICE)


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.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]