Re: [PATCH]: linux-2.6.14-uc0 (MMU-less support)

From: Greg Ungerer
Date: Mon Nov 07 2005 - 00:49:51 EST


Hi Adrian,

Adrian Bunk wrote:

ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
-CFLAGS += -Os
+CFLAGS += -O
else
CFLAGS += -O2
endif

Sees this undoes part of the benefit, perhaps you should add a
third option.


Even further, I don't see any reason for using -O - the resulting code is expected to be both bigger and slower than with -Os.

Is this a workaround for a gcc bug on some platform?

Yes, extacly, it is. See other post on this for more details.
Still shouldn't be here though.

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg@xxxxxxxxxxxx
SnapGear -- a CyberGuard Company PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/