Find a file
Jakub Jelinek 95dc11475d rust: Fix up aarch64-linux bootstrap [PR106072]
Bootstrap fails on aarch64-linux and some other arches with:
.../gcc/rust/parse/rust-parse-impl.h: In member function ‘Rust::AST::ClosureParam Rust::Parser<ManagedTokenSource>::parse_closure_param() [with ManagedTokenSource = Rust::Lexer]’:
.../gcc/rust/parse/rust-parse-impl.h:8916:49: error: ‘this’ pointer is null [-Werror=nonnull]
The problem is that while say on x86_64-linux the side-effects in the
arguments are evaluated from last argument to first, on aarch64-linux
it is the other way around, from first to last.  The C++ I believe even
in C++17 makes the evaluation of those side-effects unordered
(indeterminately sequenced with no interleaving), so that is fine.
But, when the call in return statement is evaluated from first to
last, std::move (pattern) happens before pattern->get_locus () and
the former will make pattern (std::unique_ptr) a wrapper object around
nullptr, so dereferencing it later to call get_locus () on it is invalid.

2022-12-14  Jakub Jelinek  <jakub@redhat.com>

	PR rust/106072
	* parse/rust-parse-impl.h (parse_closure_param): Store
	pattern->get_locus () in a temporary before std::move (pattern) is
	invoked.
2022-12-14 11:36:33 +01:00
c++tools Daily bump. 2022-11-24 00:17:47 +00:00
config Daily bump. 2022-11-15 08:32:29 +00:00
contrib mklog: do not depend on recent unidiff version 2022-12-14 11:33:25 +01:00
fixincludes Daily bump. 2022-11-24 00:17:47 +00:00
gcc rust: Fix up aarch64-linux bootstrap [PR106072] 2022-12-14 11:36:33 +01:00
gnattools Daily bump. 2022-09-01 00:17:39 +00:00
gotools Daily bump. 2022-08-31 00:16:45 +00:00
include Daily bump. 2022-12-08 00:17:45 +00:00
INSTALL
intl Daily bump. 2022-11-24 00:17:47 +00:00
libada Daily bump. 2022-08-26 00:16:21 +00:00
libatomic Daily bump. 2022-11-17 00:16:52 +00:00
libbacktrace Daily bump. 2022-12-11 00:17:43 +00:00
libcc1 Daily bump. 2022-11-02 00:17:38 +00:00
libcody Daily bump. 2022-11-24 00:17:47 +00:00
libcpp Daily bump. 2022-12-08 00:17:45 +00:00
libdecnumber Daily bump. 2022-11-24 00:17:47 +00:00
libffi changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libgcc Daily bump. 2022-12-09 00:18:54 +00:00
libgfortran Daily bump. 2022-10-13 00:17:37 +00:00
libgm2 Add initial ChangeLogs for modula2. 2022-12-10 09:10:29 +00:00
libgo libgo: bump major version 2022-12-12 14:18:14 -08:00
libgomp Daily bump. 2022-12-11 00:17:43 +00:00
libiberty Daily bump. 2022-11-24 00:17:47 +00:00
libitm changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libobjc changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libphobos Daily bump. 2022-12-12 00:22:21 +00:00
libquadmath changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libsanitizer Daily bump. 2022-12-14 00:18:37 +00:00
libssp Daily bump. 2022-10-13 00:17:37 +00:00
libstdc++-v3 Daily bump. 2022-12-14 00:18:37 +00:00
libvtv changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
lto-plugin Daily bump. 2022-11-24 00:17:47 +00:00
maintainer-scripts Daily bump. 2022-12-01 00:17:51 +00:00
zlib Daily bump. 2022-11-24 00:17:47 +00:00
.dir-locals.el dir-locals: Use https for bug references 2021-07-20 11:40:34 +01:00
.gitattributes
.gitignore .gitignore: do not ignore config.h 2022-07-19 17:07:04 +03:00
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2022-12-14 00:18:37 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub config.sub: change mode to 755. 2021-12-21 09:10:57 +01:00
configure configure: When host-shared, pass --with-pic to in-tree lib configs. 2022-12-07 11:16:31 +00:00
configure.ac configure: When host-shared, pass --with-pic to in-tree lib configs. 2022-12-07 11:16:31 +00:00
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
depcomp
install-sh
libtool-ldflags
libtool.m4 Generic configury support for shared libs on VxWorks 2022-10-11 07:31:07 +00:00
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
MAINTAINERS MAINTAINERS: fix spacing 2022-12-09 11:08:55 +01:00
Makefile.def gccrs: Add gcc-check-target check-rust 2022-12-13 14:00:03 +01:00
Makefile.in gccrs: Add gcc-check-target check-rust 2022-12-13 14:00:03 +01:00
Makefile.tpl Revert "configure: Implement --enable-host-pie" 2022-11-22 21:10:31 -05:00
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
symlink-tree
test-driver
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.