Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] gcc-11 enters ~arch tree
Date: Tue, 27 Apr 2021 18:22:38
Message-Id: 20210427192227.3b89875d@sf
1 Today gcc-11.1.0 released upstream and was added to ::gentoo as:
2 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc068d96fb49e308456cbe944fb29b1f78e6ad5c
3
4 User-visible changes are nicely described in upstream porting doc:
5 https://gcc.gnu.org/gcc-11/porting_to.html
6
7 A few highlights I personally encountered are:
8 - use -std=gnu++17 instead of -std=gnu++14
9 - ordered pointer comparison with integer (like int *p; 'p > 0')
10 - dynamic exception specifications
11 - gcc now enforces that comparison objects be invocable as const
12 - header dependency changes
13
14 On top of that:
15 - -fipa-modref (enabled by default) might expose latent bugs in existing
16 programs. -fno-ipa-modref should be a quick hack to check the hypothesis.
17
18 Failures don't look widespread, thus gcc-11 should be fine to use as a
19 default compiler.
20
21 Check out known bugs and workarounds on gcc-11 tracker:
22 https://bugs.gentoo.org/show_bug.cgi?id=gcc-11
23
24 Gentoo Toolchain wiki page for common fixes (nothing there so far):
25 https://wiki.gentoo.org/wiki/Project:Toolchain#gcc-11
26
27 As usual if you can't figure out what is wrong with your package
28 pull in toolchain@ to the bug and we'll get to the bottom of it.
29
30 Good luck!
31
32 --
33
34 Sergei

Replies

Subject Author
Re: [gentoo-dev] gcc-11 enters ~arch tree Sam James <sam@g.o>