[all-commits] [llvm/llvm-project] e655e7: AST: Create __va_list in the std namespace even in C.

pcc via All-commits all-commits at lists.llvm.org
Wed Jun 23 18:59:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e655e74a318e0b4140391ae18725300c7f0629f6
      https://github.com/llvm/llvm-project/commit/e655e74a318e0b4140391ae18725300c7f0629f6
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/test/CodeGen/aarch64-varargs.c
    M clang/test/CodeGen/arm64-be-hfa-vararg.c
    A clang/test/CodeGen/cfi-icall-va-list.c
    M clang/test/Headers/stdarg.cpp

  Log Message:
  -----------
  AST: Create __va_list in the std namespace even in C.

This ensures that the mangled type names match between C and C++,
which is significant when using -fsanitize=cfi-icall. Ideally we
wouldn't have created this namespace at all, but it's now part of
the ABI (e.g. in mangled names), so we can't change it.

Differential Revision: https://reviews.llvm.org/D104830




More information about the All-commits mailing list