Re: egcs snapshots hate 2.2.15pre

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Sat Mar 11 2000 - 23:11:48 EST


In <200003120207.e2C27Tb07897@sleipnir.valparaiso.cl> Horst von Brand (vonbrand@sleipnir.valparaiso.cl) wrote:
> Trying to compile linux 2.2.15pre14 on SPARC and i686 with egcs-20000306, I
> get failures due to use of '#' in front of non-macro-arguments. Note that
> the as.info explicitly says the current form is only for compatibility with
> Sun's assemblers, the correct version is the one I give in the patch below.
> This is essentially what 2.3.51 defines in include/linux/init.h, BTW.

You are NOT supposed to build 2.2 with never versions of egcs then 1.1.2.
Just like youare NOT supposed to build 2.0 with anything never then gcc 2.7.2
Why ? Ok. Linux kernel stress gcc VERY much so it's not uncommon to have
breakage with new versions of gcc. So basically THE WHOLE stable series should
be compiled with latest compiler available when stable series started
(2.4 should be compiled with gcc 2.96 but NOT gcc 3.0 :-)

> The asm-*/init.h files are almost the same in this area, so the same fix
> should probably be applied to all of them. asm-sparc{,64}/uaccess.h also
> uses the Sun form extensively, my SPARC is at work so I can't check right
> now. asm-arm/init.h uses a strange syntax, @ instead of #, is that OK?

> --- linux-2.2.15pre/include/asm-i386/init.h.dist Sat Mar 11 21:57:32 2000+++ linux-2.2.15pre/include/asm-i386/init.h Sat Mar 11 21:21:43 2000
> @@ -7,9 +7,9 @@
> __arginit __init; \
> __arginit
> /* For assembly routines */
> -#define __INIT .section ".text.init",#alloc,#execinstr
> +#define __INIT .section .text.init,"ax"
> #define __FINIT .previous
> -#define __INITDATA .section ".data.init",#alloc,#write
> +#define __INITDATA .section .data.init,"aw"

> #define __cacheline_aligned __attribute__ \
> ((__section__ (".data.cacheline_aligned")))
> --
> Horst von Brand vonbrand@sleipnir.valparaiso.cl
> Casilla 9G, Viņa del Mar, Chile +56 32 672616

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:20 EST