[lkml]   [2003]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] check_gcc for i386
Alan Cox wrote:
> On Sad, 2003-08-30 at 23:58, Marcelo Tosatti wrote:
>>>-CFLAGS += -march=i686
>>>+CFLAGS += $(call check_gcc,-march=pentium4,-march=i686)
>>> endif
>>> ifdef CONFIG_MK6
>>OK, I forgot what that does. Can you please explain in detail what
>>check_gcc does.
> Tries to use gcc with the options given and if not falls back to the
> second set suggested. So it'll try -march=pentium4 (new gcc) and
> fall back to -march=i686

Yep. I introduced check_gcc into 2.4 (backported from 2.5), in fact.

The above change does exactly what Alan describes, and is a patch I was
planning to submit myself :) I did not want to change compiler options
at the time when I submitted the check_gcc patch, but after many months
of manually patching to get the best compiler flags, it seems solid.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.057 / U:17.068 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site