PowerPC BSPs with GCC Head

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jan 13 06:11:56 UTC 2015


Since this worked for a long time, this might be a CPP regression, but a 
%1 parameter doesn't really look like a C construct.

On 11/01/15 18:29, Joel Sherrill wrote:
> Hi
>
> Many BSPs fail building with the GCC head in bat.c. In particular psim
> is impacted. Any ideas what's going on and how to resolve it?
>
> gmake[5]: Entering directory
> `/home2/joel/build/b-powerpc-psim/powerpc-rtems4.11/c/psim/lib/libcpu/powerpc'
> powerpc-rtems4.11-gcc --pipe -B../../../../.././lib/
> -B../../../../.././psim/lib/ -specs bsp_specs -qrtems
> -DPACKAGE_NAME=\"rtems-c-src-lib-libcpu-powerpc\"
> -DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-powerpc\"
> -DPACKAGE_VERSION=\"4.10.99.0\"
> -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\ 4.10.99.0\"
> -DPACKAGE_BUGREPORT=\"https://devel.rtems.org/newticket\"
> -DPACKAGE_URL=\"\" -I.
> -I/users/joel/test-gcc/rtems/c/src/lib/libcpu/powerpc  -isystem
> ../../../../.././psim/lib/include   -meabi -mcpu=603e -msdata=sysv
> -fno-common -Dppc603e -O2 -g -fno-keep-inline-functions -Wall
> -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
> -Wnested-externs -MT mpc6xx/mmu/mpc6xx_mmu_rel-bat.o -MD -MP -MF
> mpc6xx/mmu/.deps/mpc6xx_mmu_rel-bat.Tpo -c -o
> mpc6xx/mmu/mpc6xx_mmu_rel-bat.o `test -f 'mpc6xx/mmu/bat.c' || echo
> '/users/joel/test-gcc/rtems/c/src/lib/libcpu/powerpc/'`mpc6xx/mmu/bat.c
> /users/joel/test-gcc/rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:62:36:
> error: '#' is not followed by a macro parameter
>   #define SETBAT_ASM(batu, batl, u, l)  \
>                                      ^
> /users/joel/test-gcc/rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
> function 'asm_setdbat0':
> /users/joel/test-gcc/rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
> error: expected ':' or ')' before 'SETBAT_ASM'
>    SETBAT_ASM(%0,%1,%2,%3)   \
> .... many more ...
>

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list