[all-commits] [llvm/llvm-project] 4935f0: [clang][PAC] Disallow -pedantic-errors in conjunct...

Oliver Hunt via All-commits all-commits at lists.llvm.org
Wed Aug 13 15:08:04 PDT 2025


  Branch: refs/heads/users/ojhunt/pedantic-errors-incompatible-with-arm64e
  Home:   https://github.com/llvm/llvm-project
  Commit: 4935f078f188aced9963e2799ecdf7f1df18966f
      https://github.com/llvm/llvm-project/commit/4935f078f188aced9963e2799ecdf7f1df18966f
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2025-08-13 (Wed, 13 Aug 2025)

  Changed paths:
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/Driver/aarch64-ptrauth-pedantic-errors.c

  Log Message:
  -----------
  [clang][PAC] Disallow -pedantic-errors in conjunction with pointer authentication

The __has_extension query for the __ptrauth qualifier returns false
when -pedantic-errors is specified by the developer, which results
in ABI mismatches and potentially ODR violations as well.

The only way to resolve this is to to make it an error to attempt to
use the -pedantic-errors option when targeting a platform where
pointer authentication is present. This may cause compilation issues
for some projects but is better than bad codegen.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list