Go to file
Patrick O'Neill 026d9454b1
RISC-V: Fix ICE in non-canonical march parsing
Passing in a base extension in non-canonical order (i, e, g) causes GCC
to ICE:
xgcc: error: '-march=rv64ge': ISA string is not in canonical order. 'e'
xgcc: internal compiler error: in add, at common/config/riscv/riscv-common.cc:671
...

This is fixed by skipping to the next extension when a non-canonical
order is detected.

gcc/ChangeLog:

	* common/config/riscv/riscv-common.cc
	(riscv_subset_list::parse_std_ext): Emit an error and skip to
	the next extension when a non-canonical ordering is detected.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/arch-27.c: New test.
	* gcc.target/riscv/arch-28.c: New test.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
2023-11-15 10:23:44 -08:00
.github
c++tools
config Daily bump. 2023-11-14 12:23:39 +00:00
contrib Daily bump. 2023-11-15 00:16:41 +00:00
fixincludes
gcc RISC-V: Fix ICE in non-canonical march parsing 2023-11-15 10:23:44 -08:00
gnattools
gotools
include
INSTALL
libada
libatomic Daily bump. 2023-11-14 12:23:39 +00:00
libbacktrace
libcc1
libcody
libcpp Daily bump. 2023-11-15 00:16:41 +00:00
libdecnumber
libffi
libgcc Daily bump. 2023-11-14 12:23:39 +00:00
libgfortran
libgm2 Daily bump. 2023-11-14 12:23:39 +00:00
libgo
libgomp amdgcn: Add Accelerator VGPR registers 2023-11-15 14:02:00 +00:00
libiberty Daily bump. 2023-11-14 12:23:39 +00:00
libitm
libobjc
libphobos
libquadmath
libsanitizer libsanitizer: update LOCAL_PATCHES 2023-11-15 12:53:53 +01:00
libssp
libstdc++-v3 libstdc++: Fix std::deque::operator[] Xmethod [PR112491] 2023-11-15 11:16:49 +00:00
libvtv
lto-plugin
maintainer-scripts Daily bump. 2023-11-14 12:23:39 +00:00
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2023-11-14 12:23:39 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
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
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
SECURITY.txt
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.