[cfe-dev] Issue #2 with clang-analyzer on RTEMS

Joel Sherrill joel.sherrill at OARcorp.com
Fri Sep 24 06:05:22 PDT 2010


  Hi,

Issue #2 I encountered...

The second problem is that native .h files are being picked up in a
strictly cross (x86-linux -> sparc-rtems) build.  I used the following
command to run the analysis.

scan-build -o ${OUTPUTDIR} --experimental-checks \
    --use-cc ${RTEMS_TARGET}-gcc \
    --use-c++ ${RTEMS_TARGET}-g++ \
    make

where RTEMS_TARGET was sparc-rtems4.11


In file included from ../../../sis/lib/include/sys/ioccom.h:91:
../../../sis/lib/include/rtems/bsd/sys/cdefs.h:63:9: warning: '__CONCAT'
macro redefined [-pedantic]
#define __CONCAT(x,y)   __CONCAT1(x,y)
          ^
In file included from
/home/joel/rtems-4.11-work/build/rtems/c/src/libchip/serial/ns16550.c:27:
In file included from /usr/include/stdlib.h:25: <====************* NATIVE
In file included from /usr/include/features.h:361:
/usr/include/sys/cdefs.h:80:9: note: previous definition is here
#define __CONCAT(x,y)   x ## y

Thanks.

--joel sherrill
RTEMS




More information about the cfe-dev mailing list