head -r309179 clang 3.9.0 TARGET_ARCH=powerpc64 cross-built buildkernel stops for: rejected assembler notation
Mark Millard
markmi at dsl-only.net
Mon Nov 28 11:52:14 UTC 2016
[To get this far I had to use WERROR= to get past other C/C++ rejections.]
Below are some example errors that clang 3.9.0 reports for trying to
handle the assembler notations that are used:
--- hwpmc_e500.o ---
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_e500.c:475:19: error: unrecognized instruction mnemonic
uint32_t pmgc0 = mfpmr(PMR_PMGC0);
^
./machine/pmc_mdep.h:24:21: note: expanded from macro 'mfpmr'
__asm __volatile("mfpmr %0,%1" : "=r"(val) : "K"(reg)); \
^
<inline asm>:1:2: note: instantiated into assembly here
mfpmr 3,400
^
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_e500.c:478:2: error: unrecognized instruction mnemonic
mtpmr(PMR_PMGC0, pmgc0);
^
./machine/pmc_mdep.h:21:19: note: expanded from macro 'mtpmr'
__asm __volatile("mtpmr %0,%1" : : "K"(reg), "r"(val))
^
<inline asm>:1:2: note: instantiated into assembly here
mtpmr 400,3
^
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_e500.c:446:2: error: unrecognized instruction mnemonic
mtpmr(PMR_PMGC0, PMGC_FAC | PMGC_PMIE | PMGC_FCECE);
^
./machine/pmc_mdep.h:21:19: note: expanded from macro 'mtpmr'
__asm __volatile("mtpmr %0,%1" : : "K"(reg), "r"(val))
^
<inline asm>:1:2: note: instantiated into assembly here
mtpmr 400,3
^
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_e500.c:408:14: error: unrecognized instruction mnemonic
pmc_pmlc = mfpmr(PMR_PMLCa0);
^
./machine/pmc_mdep.h:24:21: note: expanded from macro 'mfpmr'
__asm __volatile("mfpmr %0,%1" : "=r"(val) : "K"(reg)); \
^
<inline asm>:1:2: note: instantiated into assembly here
mfpmr 10,144
^
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_e500.c:410:3: error: unrecognized instruction mnemonic
mtpmr(PMR_PMLCa0, pmc_pmlc);
^
./machine/pmc_mdep.h:21:19: note: expanded from macro 'mtpmr'
__asm __volatile("mtpmr %0,%1" : : "K"(reg), "r"(val))
^
<inline asm>:1:2: note: instantiated into assembly here
mtpmr 144,10
^
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_e500.c:413:14: error: unrecognized instruction mnemonic
pmc_pmlc = mfpmr(PMR_PMLCa1);
^
./machine/pmc_mdep.h:24:21: note: expanded from macro 'mfpmr'
__asm __volatile("mfpmr %0,%1" : "=r"(val) : "K"(reg)); \
^
<inline asm>:1:2: note: instantiated into assembly here
mfpmr 10,145
^
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_e500.c:415:3: error: unrecognized instruction mnemonic
mtpmr(PMR_PMLCa1, pmc_pmlc);
^
./machine/pmc_mdep.h:21:19: note: expanded from macro 'mtpmr'
__asm __volatile("mtpmr %0,%1" : : "K"(reg), "r"(val))
^
<inline asm>:1:2: note: instantiated into assembly here
mtpmr 145,10
^
===
Mark Millard
markmi at dsl-only.net
More information about the freebsd-ppc
mailing list