egcs snapshots hate 2.2.15pre

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sat Mar 11 2000 - 21:07:29 EST

  • Next message: The Doctor What: "DEVFS: How to autoload modules?"

    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.

    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 : Sat Mar 11 2000 - 21:19:49 EST