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

David S. Miller (davem@redhat.com)
Fri, 18 Oct 2002 17:15:04 -0700 (PDT)


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/