Module Name:    src
Committed By:   mrg
Date:           Thu Jun 20 04:13:35 UTC 2024

Modified Files:
        src/external/apache2/llvm/lib: Makefile.inc
        src/external/apache2/llvm/lib/libclangSema: Makefile

Log Message:
fix building llvm with GCC 12 as a native host.

there's a specific header in llvm that is triggering a warning-as-error.
apply some ${CC_WNO_MISSING_TEMPLATE_KEYWORD} to avoid eg:

external/apache2/llvm/lib/libLLVMAArch64AsmParser/../../dist/llvm/include/llvm/ADT/PointerSumType.h:275:21:
 error: expected 'template' keyword before dependent template name 
[-Werror=missing-template-keyword]
  275 |     return SumType::create<SomeTag>(SomePointerInfo::getEmptyKey());
      |                     ^~~~~~

additionally, for libclangSema, this error is avoided:

external/apache2/llvm/lib/libclangSema/../../dist/llvm/include/llvm/ADT/APInt.h:338:18:
 error: 'void operator delete [](void*)' called on a pointer to an unallocated 
object '1' [-Werror=free-nonheap-object]
  338 |       delete[] U.pVal;
      |                  ^~~~


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/apache2/llvm/lib/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 src/external/apache2/llvm/lib/libclangSema/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to