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" {} \;
?
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; ArmVirtualizati onQemu- AARCH64/ RELEASE_ ARMGCC/ AARCH64/ MdePkg/ Library/ BaseLib/ BaseLib/ OUTPUT/ SwapBytes16. c.090t. bswap:16 bit bswap implementation found at: _7 = _4 | _6; Fat/RELEASE_ ARMGCC/ AARCH64/ MdePkg/ Library/ BaseLib/ BaseLib/ OUTPUT/ SwapBytes16. c.090t. bswap:16 bit bswap implementation found at: _7 = _4 | _6;
./Build/
./Build/
All these conversion are fine and should have triggered with GCC 4.9 as well.
Can you add -fdump-tree-bswap to CFLAGS in: Conf/tools_ def.template Source/ C/VfrCompile/ Pccts/antlr/ makefile Source/ C/VfrCompile/ Pccts/antlr/ makefile. cygwin Source/ C/VfrCompile/ Pccts/dlg/ makefile Source/ C/VfrCompile/ Pccts/dlg/ makefile. cygwin Source/ C/Makefiles/ header. makefile
BaseTools/
BaseTools/
BaseTools/
BaseTools/
BaseTools/
BaseTools/
and tell me the result of:
find -name \*.bswap -exec grep -H "found at" {} \;
?