Re: [PATCH] fixes for building kernel using Intel compiler

From: David S. Miller (davem@redhat.com)
Date: Fri Oct 18 2002 - 19:15:04 EST


   From: Andi Kleen <ak@suse.de>
   Date: 19 Oct 2002 02:07:41 +0200
   
> -/* Enable FXSR and company _before_ testing for FP problems. */
> - /*
> - * Verify that the FXSAVE/FXRSTOR data will be 16-byte aligned.
> - */
> - if (offsetof(struct task_struct, thread.i387.fxsave) & 15) {
> - extern void __buggy_fxsr_alignment(void);
> - __buggy_fxsr_alignment();
> - }
   
   Why does that not work? IMHO it is legal ISO-C

Depending upon the compiler to optimize away the non-existent function
reference is not ISO-C :-) Although the fact the Intel compiler isn't
doing this is amusing.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:45 EST