[all-commits] [llvm/llvm-project] b0ef3d: Allow #pragma float_control(push|pop) within a lan...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Jul 28 04:38:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0ef3d8f666fa6008abb09340b73d9340d442569
      https://github.com/llvm/llvm-project/commit/b0ef3d8f666fa6008abb09340b73d9340d442569
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaAttr.cpp
    M clang/test/Parser/fp-floatcontrol-syntax.cpp

  Log Message:
  -----------
  Allow #pragma float_control(push|pop) within a language linkage specification

Currently, we prohibit this pragma from appearing within a language
linkage specification, but this is useful functionality that is
supported by MSVC (which is where we inherited this feature from).
This patch allows you to use the pragma within an extern "C" {} (etc)
block.




More information about the All-commits mailing list