Comment 10 for bug 1489560

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) wrote :

grep -E '[cC]{2}[ "].*' ../edk2.log | grep -Ev " (-E|(-x assembler(-with-cpp)?)) " | grep -v -- "-fdump-tree-bswap" shows that all invocation of cc or gcc for compiling had a -fdump-tree-bswap in it. This confuses me because the only "found at" I could find in the bswap dumps are for:

./Build/Shell/RELEASE_ARMGCC/AARCH64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/SwapBytes16.c.090t.bswap:16 bit bswap implementation found at: _7 = _4 | _6;
./Build/ArmVirtualizationQemu-AARCH64/RELEASE_ARMGCC/AARCH64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/SwapBytes16.c.090t.bswap:16 bit bswap implementation found at: _7 = _4 | _6;
./Build/Fat/RELEASE_ARMGCC/AARCH64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/SwapBytes16.c.090t.bswap:16 bit bswap implementation found at: _7 = _4 | _6;

All these conversion are fine and should have triggered with GCC 4.9 as well.

Can you add -fdump-tree-bswap to CFLAGS in:
BaseTools/Conf/tools_def.template
BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile.cygwin
BaseTools/Source/C/VfrCompile/Pccts/dlg/makefile
BaseTools/Source/C/VfrCompile/Pccts/dlg/makefile.cygwin
BaseTools/Source/C/Makefiles/header.makefile

and tell me the result of:
find -name \*.bswap -exec grep -H "found at" {} \;
?