GCC modified for the FreeChainXenon project
Find a file
Jakub Jelinek d66a703c8b tree-inline: Fix up __builtin_va_arg_pack handling [PR100898]
The following testcase ICEs, because gimple_call_arg_ptr (..., 0)
asserts that there is at least one argument, while we were using
it even if we didn't copy anything just to get a pointer from/to which
the zero arguments should be copied.

Fixed by guarding the memcpy calls.  Also, the code was calling
gimple_call_num_args too many times - 5 times instead of 2, so the patch
adds two temporaries for those.

2021-06-07  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/100898
	* tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
	should copy any arguments.  Don't call gimple_call_num_args
	on id->call_stmt or call_stmt more than once.

	* g++.dg/ext/va-arg-pack-3.C: New test.
2021-06-07 09:25:37 +02:00
c++tools Daily bump. 2021-05-26 00:16:41 +00:00
config Daily bump. 2021-05-19 00:16:45 +00:00
contrib Daily bump. 2021-05-26 00:16:41 +00:00
fixincludes Daily bump. 2020-12-15 00:16:35 +00:00
gcc tree-inline: Fix up __builtin_va_arg_pack handling [PR100898] 2021-06-07 09:25:37 +02:00
gnattools Daily bump. 2021-05-08 00:16:27 +00:00
gotools
include Daily bump. 2021-05-07 00:16:33 +00:00
INSTALL
intl Daily bump. 2021-04-17 00:16:25 +00:00
libada
libatomic
libbacktrace Daily bump. 2021-05-04 00:16:53 +00:00
libcc1 Daily bump. 2021-05-06 00:16:37 +00:00
libcody Daily bump. 2021-04-07 00:16:39 +00:00
libcpp Daily bump. 2021-05-21 00:16:57 +00:00
libdecnumber Daily bump. 2021-05-04 00:16:53 +00:00
libffi
libgcc Fix my name in ChangeLog files. 2021-05-14 12:14:22 +02:00
libgfortran Daily bump. 2021-06-06 00:16:22 +00:00
libgo libgo: update configure to current sources 2021-05-18 19:57:54 -07:00
libgomp Daily bump. 2021-05-29 00:16:29 +00:00
libiberty Daily bump. 2021-06-06 00:16:22 +00:00
libitm
libobjc
liboffloadmic Daily bump. 2021-05-26 00:16:41 +00:00
libphobos Daily bump. 2021-05-15 00:16:27 +00:00
libquadmath
libsanitizer Daily bump. 2021-05-22 00:16:29 +00:00
libssp
libstdc++-v3 Daily bump. 2021-06-06 00:16:22 +00:00
libvtv
lto-plugin Daily bump. 2021-05-11 00:16:36 +00:00
maintainer-scripts Daily bump. 2021-05-15 00:16:27 +00:00
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2021-06-06 00:16:22 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure sim: leverage gnulib 2021-05-29 10:59:54 -04:00
configure.ac sim: leverage gnulib 2021-05-29 10:59:54 -04:00
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
MAINTAINERS Fix maintainers-verify.sh 2021-06-05 09:55:33 -04:00
Makefile.def sim: depend on gnulib 2021-05-18 17:45:19 -04:00
Makefile.in sim: depend on gnulib 2021-05-18 17:45:19 -04:00
Makefile.tpl
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.