PowerPC BSPs with GCC Head

Joel Sherrill joel.sherrill at oarcorp.com
Tue Jan 13 15:52:17 UTC 2015


On 1/13/2015 12:11 AM, Sebastian Huber wrote:
> 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.
I filed this as GCC PR 64576 and am doing a git bisect now.

I would like to get a ruling and/or suggestion for it. This code
is 15 years old so gcc has accepted it a LONG time.
> 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 ...
>>

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the devel mailing list