Go to file
Iain Buclaw f67d7f9416 d: RHS value lost when a target_expr modifies LHS in a cond_expr
To prevent the RHS of an assignment modifying the LHS before the
assignment proper, a target_expr is forced so that function calls that
return with slot optimization modify the temporary instead.  This did
not work for conditional expressions however, to give one example.  So
now the RHS is always forced to a temporary.

	PR d/101282

gcc/d/ChangeLog:

	* d-codegen.cc (build_assign): Force target_expr on RHS for non-POD
	assignment expressions.

gcc/testsuite/ChangeLog:

	* gdc.dg/torture/pr101282.d: New test.

(cherry picked from commit c77230856e)
2021-07-03 00:45:40 +02:00
c++tools Daily bump. 2021-06-01 00:18:21 +00:00
config Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
contrib Daily bump. 2021-06-24 00:18:21 +00:00
fixincludes Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
gcc d: RHS value lost when a target_expr modifies LHS in a cond_expr 2021-07-03 00:45:40 +02:00
gnattools Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
gotools Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
include Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
INSTALL
intl Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libada Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libatomic Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libbacktrace Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libcc1 Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libcody Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libcpp Daily bump. 2021-06-17 00:18:41 +00:00
libdecnumber Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libffi Daily bump. 2021-06-18 00:18:48 +00:00
libgcc Daily bump. 2021-06-30 00:18:23 +00:00
libgfortran Daily bump. 2021-06-25 00:18:34 +00:00
libgo libgo: update to Go1.16.5 release 2021-06-10 14:42:37 -07:00
libgomp Daily bump. 2021-06-24 00:18:21 +00:00
libhsail-rt Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libiberty Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libitm Daily bump. 2021-06-19 00:18:23 +00:00
libobjc Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
liboffloadmic Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libphobos Daily bump. 2021-06-12 00:18:14 +00:00
libquadmath Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libsanitizer Daily bump. 2021-05-22 00:18:07 +00:00
libssp Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
libstdc++-v3 Daily bump. 2021-06-23 00:18:00 +00:00
libvtv Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
lto-plugin Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
maintainer-scripts Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
zlib Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
.dir-locals.el .dir-locals.el: Set 'fill-column' to 80 for c-mode 2020-12-14 12:19:56 +01:00
.gitattributes
.gitignore Sync .gitignore with binutils-gdb 2020-12-02 11:04:01 -07:00
ABOUT-NLS
ar-lib
ChangeLog Update ChangeLog and version files for release 2021-04-27 09:23:56 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess config.sub, config.guess : Import upstream 2021-01-25. 2021-02-23 17:21:10 +08:00
config.rpath
config.sub config.sub, config.guess : Import upstream 2021-01-25. 2021-02-23 17:21:10 +08:00
configure Add C++tools 2020-12-15 07:42:59 -08:00
configure.ac Add C++tools 2020-12-15 07:42:59 -08:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4 Update GNU/Hurd configure support 2021-01-05 16:04:14 -07:00
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS: Add myself for write after approval 2021-04-11 12:09:11 +01:00
Makefile.def sim: drop dep on configure-gdb 2021-03-12 19:48:13 -05:00
Makefile.in sim: drop dep on configure-gdb 2021-03-12 19:48:13 -05:00
Makefile.tpl Add -fprofile-reproducible=parallel-runs to STAGEfeedback_CFLAGS to Makefile.tpl. 2021-03-11 16:18:56 +01: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.