Date: Mon, 5 Dec 2022 13:51:14 -0800 From: Mark Millard <marklmi@yahoo.com> To: John Baldwin <jhb@freebsd.org>, dev-commits-src-main@freebsd.org Subject: RE: git: 442295c1fe84 - main - Silence GCC warnings when using libc++ headers. Message-ID: <CC1793B1-1D7D-420B-9305-EE029029C5BB@yahoo.com> References: <CC1793B1-1D7D-420B-9305-EE029029C5BB.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin <jhb_at_FreeBSD.org> wrote on Date: Wed, 30 Nov 2022 22:54:00 UTC : > The branch main has been updated by jhb: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D442295c1fe84b4dc3e4834acdbf4ede7= 5affe3c4 >=20 > commit 442295c1fe84b4dc3e4834acdbf4ede75affe3c4 > Author: John Baldwin <jhb@FreeBSD.org> > AuthorDate: 2022-11-30 22:50:35 +0000 > Commit: John Baldwin <jhb@FreeBSD.org> > CommitDate: 2022-11-30 22:53:29 +0000 >=20 > Silence GCC warnings when using libc++ headers. >=20 > GCC 12 raises warnings about literal operator suffixes not preceded by > '_' in libc++ headers such as <string_view> as it doesn't recognize > libc++ headers being an implementation of the standard. lang/gcc12 had the following done: author Jan Beich <jbeich@FreeBSD.org> 2022-08-20 16:06:02 +0000 committer Jan Beich <jbeich@FreeBSD.org> 2022-08-25 21:35:37 +0000 commit 86e7abbbf467e97ffa58363ca3327d08395931ee (patch) . . . lang/gcc12: Expose non-default -stdlib=3Dlibc++ support Fix -stdlib=3Dlibc++ option which produced "error: unrecognized = command-line option '-stdlib=3Dlibc++'". Might doing similarly for devel/freebsd-gcc12 and using -stdlib=3Dlibc++ for freebsd builds based on devel/freebsd-gcc12 help with the "doesn't recognize libc++ headers being an implementation of the standard" issue? > GCC 12 also warns about clang-specific pragmas in <locale>. >=20 > Disabling these warnings globally for all C++ code is not ideal, but > is a better option than patching libc++ headers to ignore these > warnings. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CC1793B1-1D7D-420B-9305-EE029029C5BB>