[all-commits] [llvm/llvm-project] d63764: [clang][Driver] Fix enabling strict alising by def...

Max Winkler via All-commits all-commits at lists.llvm.org
Fri May 24 16:12:59 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d63764718c93a40d25cf4ae62b6ea6cb8eda6435
      https://github.com/llvm/llvm-project/commit/d63764718c93a40d25cf4ae62b6ea6cb8eda6435
  Author: Max Winkler <max.enrico.winkler at gmail.com>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/Ofast.c
    M clang/test/Driver/clang_f_opts.c

  Log Message:
  -----------
  [clang][Driver] Fix enabling strict alising by default when the environment is MSVC (#91689)

>From looking at the rest of code and from my own understanding, the
driver mode is supposed to be independent of MSVC compatibility when the
target triple is `*-windows-msvc`.
Therefore strict aliasing should be disabled by default when the target
triple is `*-windows-msvc` so code assuming MSVC behaves as expected
when compiled with Clang.



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