Go to file
Richard Earnshaw 3032df28f2 arm: correctly handle zero-sized bit-fields in AAPCS [PR102024]
On arm the AAPCS states that an HFA is determined by the 'shape' of
the object after layout has been completed, so anything that adds no
members and does not cause the layout to be modified should be ignored
for the purposes of determining which registers are used for parameter
passing.

A zero-sized bit-field falls into this category.  This was not handled
correctly for C structs and in G++-11 only handled correctly because
such fields were eliminated early by the front end.

gcc/ChangeLog:

	PR target/102024
	* config/arm/arm.cc (aapcs_vfp_sub_candidate): Handle zero-sized
	bit-fields.  Detect cases where a warning may be needed.
	(aapcs_vfp_is_call_or_return_candidate): Emit a note if
	a zero-sized bit-field has caused parameter passing to change.

gcc/testsuite/ChangeLog:

	PR target/102024
	* gcc.target/arm/aapcs/vfp26.c: New test.
2022-03-29 17:37:15 +01:00
c++tools
config LoongArch Port: Regenerate configure 2022-03-29 17:43:32 +08:00
contrib LoongArch Port: Add doc. 2022-03-29 17:43:36 +08:00
fixincludes
gcc arm: correctly handle zero-sized bit-fields in AAPCS [PR102024] 2022-03-29 17:37:15 +01:00
gnattools
gotools
include Daily bump. 2022-03-20 00:16:30 +00:00
INSTALL
intl
libada
libatomic Daily bump. 2022-03-25 00:17:18 +00:00
libbacktrace
libcc1
libcody
libcpp
libdecnumber
libffi
libgcc LoongArch Port: Regenerate libgcc/configure. 2022-03-29 17:43:35 +08:00
libgfortran
libgo
libgomp LoongArch Port: libgomp 2022-03-29 17:43:35 +08:00
libiberty Daily bump. 2022-03-20 00:16:30 +00:00
libitm
libobjc
liboffloadmic
libphobos Daily bump. 2022-03-22 00:16:44 +00:00
libquadmath
libsanitizer
libssp
libstdc++-v3 libstdc++: Workaround for missing 'using enum' in Clang 12 2022-03-29 10:06:33 +01:00
libvtv
lto-plugin Daily bump. 2022-03-23 00:16:45 +00:00
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2022-03-29 00:17:13 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure LoongArch Port: Regenerate configure 2022-03-29 17:43:32 +08:00
configure.ac LoongArch Port: Regenerate configure 2022-03-29 17:43:32 +08:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS: Add myself and Lulu as LoongArch port maintainer. 2022-03-29 17:56:06 +08:00
Makefile.def
Makefile.in
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.