[Bug 2016042] Re: Please add -D_GLIBCXX_ASSERTIONS to default build flags
Mark Esler
2016042 at bugs.launchpad.net
Mon Oct 30 22:16:27 UTC 2023
** Description changed:
- This flag has a long history of distro use in Fedora [0] and is used
- by Gentoo [1].
+ > The _GLIBCXX_ASSERTIONS macro defines a subset of the _GLIBCXX_DEBUG
+ > checks, with no impact on class layout and minimal impact on runtime
+ > (and no changes in algorithmic complexity). It is intended to be
+ > suitable for both debug builds and release builds. [1]
_GLIBCXX_ASSERTIONS was developed not to impact ABI or big-O complexity.
- > The _GLIBCXX_ASSERTIONS macro defines a subset of the _GLIBCXX_DEBUG
- > checks, with no impact on class layout and minimal impact on runtime
- > (and no changes in algorithmic complexity). It is intended to be
- > suitable for both debug builds and release builds.
- [2]
+ Distros which use this flag include Fedora (2018), Arch Linux (2021)
+ Gentoo Hardened (2022), Alpine (2023), and OpenSUSE [1].
- As with -D_FORTIFY_SOURCE=3, poor quality code requires more mitigations
- and therefore have higher performance penalties.
-
- When Fedora initially added this default flag some packages FTBFS. Now
- packages appear stable.
-
- [0] https://src.fedoraproject.org/rpms/redhat-rpm-config/c/0d162176e9dba1adc330a9ee561b91c8e5e62cb5
- [1] https://bugs.gentoo.org/876895
- [2] https://bugs.launchpad.net/kicad/+bug/1838448/comments/40
+ [0] https://bugs.launchpad.net/kicad/+bug/1838448/comments/40
+ [1] https://github.com/jvoisin/compiler-flags-distro
** Also affects: gcc-13 (Ubuntu)
Importance: Undecided
Status: New
** Changed in: gcc-13 (Ubuntu)
Importance: Undecided => High
** Changed in: gcc-13 (Ubuntu)
Milestone: None => ubuntu-24.04
** Description changed:
> The _GLIBCXX_ASSERTIONS macro defines a subset of the _GLIBCXX_DEBUG
> checks, with no impact on class layout and minimal impact on runtime
> (and no changes in algorithmic complexity). It is intended to be
- > suitable for both debug builds and release builds. [1]
+ > suitable for both debug builds and release builds. [0]
_GLIBCXX_ASSERTIONS was developed not to impact ABI or big-O complexity.
Distros which use this flag include Fedora (2018), Arch Linux (2021)
Gentoo Hardened (2022), Alpine (2023), and OpenSUSE [1].
[0] https://bugs.launchpad.net/kicad/+bug/1838448/comments/40
[1] https://github.com/jvoisin/compiler-flags-distro
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/2016042
Title:
Please add -D_GLIBCXX_ASSERTIONS to default build flags
Status in dpkg package in Ubuntu:
New
Status in gcc-12 package in Ubuntu:
New
Status in gcc-13 package in Ubuntu:
New
Bug description:
> The _GLIBCXX_ASSERTIONS macro defines a subset of the _GLIBCXX_DEBUG
> checks, with no impact on class layout and minimal impact on runtime
> (and no changes in algorithmic complexity). It is intended to be
> suitable for both debug builds and release builds. [0]
_GLIBCXX_ASSERTIONS was developed not to impact ABI or big-O
complexity.
Distros which use this flag include Fedora (2018), Arch Linux (2021)
Gentoo Hardened (2022), Alpine (2023), and OpenSUSE [1].
[0] https://bugs.launchpad.net/kicad/+bug/1838448/comments/40
[1] https://github.com/jvoisin/compiler-flags-distro
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2016042/+subscriptions
More information about the foundations-bugs
mailing list