Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2023 21:13:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271047] [exp-run] Against llvm-16-update branch on GitHub
Message-ID:  <bug-271047-7788-MYzASVRCvP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271047-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271047-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271047

--- Comment #79 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D1ac57eed95099f4d9da2ecab6000ad66d=
05c1018

commit 1ac57eed95099f4d9da2ecab6000ad66d05c1018
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-04-20 19:22:59 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-06-22 18:22:26 +0000

    Merge commit db492316399a from llvm-project (by Dimitry Andric):

      [clang][BFloat] Avoid redefining bfloat16_t in arm_neon.h

      As of https://reviews.llvm.org/D79708, clang-tblgen generates
`arm_neon.h`,
      `arm_sve.h` and `arm_bf16.h`, and all those generated files will cont=
ain
a
      typedef of `bfloat16_t`. However, `arm_neon.h` and `arm_sve.h` include
      `arm_bf16.h` immediately before their own typedef:

          #include <arm_bf16.h>
          typedef __bf16 bfloat16_t;

      With a recent version of clang (I used 16.0.1) this results in warnin=
gs:

          /usr/lib/clang/16/include/arm_neon.h:38:16: error: redefinition of
typedef 'bfloat16_t' is a C11 feature [-Werror,-Wtypedef-redefinition]

      Since `arm_bf16.h` is very likely supposed to be the one true place w=
here
      `bfloat16_t` is defined, I propose to delete the duplicate typedefs f=
rom
the
      generated `arm_neon.h` and `arm_sve.h`.

      Reviewed By: sdesmalen, simonbutcher

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

    PR:             271047
    MFC after:      1 month

 contrib/llvm-project/clang/utils/TableGen/NeonEmitter.cpp | 1 -
 contrib/llvm-project/clang/utils/TableGen/SveEmitter.cpp  | 1 -
 2 files changed, 2 deletions(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271047-7788-MYzASVRCvP>