From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lug-owl.de (lug-owl.de [188.68.32.151]) by sourceware.org (Postfix) with ESMTP id 559C9385840D for ; Sat, 4 Sep 2021 19:10:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 559C9385840D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lug-owl.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lug-owl.de Received: by lug-owl.de (Postfix, from userid 1001) id 2C0D541F0F; Sat, 4 Sep 2021 21:10:17 +0200 (CEST) Date: Sat, 4 Sep 2021 21:10:17 +0200 From: Jan-Benedict Glaw To: gcc@gcc.gnu.org Cc: Tom de Vries Subject: nvtpx: error: array subscript -1 is below array bounds of 'short int [2][16]' Message-ID: <20210904191017.2dqr6cxwedrt5bsg@lug-owl.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gndkhvvagqgvyyqv" Content-Disposition: inline X-Operating-System: Linux chamaeleon 5.8.0-0.bpo.2-amd64 X-gpg-fingerprint: 250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB X-gpg-key: wwwkeys.de.pgp.net X-Echelon-Enable: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-TKUeV: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-message-flag: Please send plain text messages only. Do not send HTML emails. Thank you. User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2021 19:10:20 -0000 --gndkhvvagqgvyyqv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! Running automated tests again, I found that when building current (2fcfc03459a907c0237ea6e2c6e4ce4871034bed) GCC with a recent GCC, a build (make all-gcc) when ./configure'ed for -target=3Dnvptx-none --enable-werror-always --enable-languages=3Dall --disable-gcov --disable-shared --disable-threads --without-headers fails with: [all 2021-09-04 16:33:59] /usr/lib/gcc-snapshot/bin/g++ -fno-PIE -c -g -= O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasyn= chronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual = -Wno-error=3Dformat-diag -Wmissing-format-attribute -Woverloaded-virtual -p= edantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror= -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I.= =2E/../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc= /../libcody -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumbe= r/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o lra-constraint= s.o -MT lra-constraints.o -MMD -MP -MF ./.deps/lra-constraints.TPo ../../gc= c/gcc/lra-constraints.c [all 2021-09-04 16:34:07] In function 'bool check_and_process_move(bool*, b= ool*)', [all 2021-09-04 16:34:07] inlined from 'bool curr_insn_transform(bool)'= at ../../gcc/gcc/lra-constraints.c:4092:33: [all 2021-09-04 16:34:07] ../../gcc/gcc/lra-constraints.c:1317:56: error: a= rray subscript -1 is below array bounds of 'short int [2][16]' [-Werror=3Da= rray-bounds] [all 2021-09-04 16:34:07] 1317 | reg_renumber[dregno] =3D ira_class_= hard_regs[dclass][0]; [all 2021-09-04 16:34:07] In file included from ../../gcc/gcc/lra-constrain= ts.c:123: [all 2021-09-04 16:34:07] ../../gcc/gcc/ira.h: In function 'bool curr_insn_= transform(bool)': [all 2021-09-04 16:34:07] ../../gcc/gcc/ira.h:85:9: note: while referencing= 'target_ira::x_ira_class_hard_regs' [all 2021-09-04 16:34:07] 85 | short x_ira_class_hard_regs[N_REG_CLASS= ES][FIRST_PSEUDO_REGISTER]; [all 2021-09-04 16:34:07] | ^~~~~~~~~~~~~~~~~~~~~ [all 2021-09-04 16:34:07] In function 'bool check_and_process_move(bool*, b= ool*)', [all 2021-09-04 16:34:07] inlined from 'bool curr_insn_transform(bool)'= at ../../gcc/gcc/lra-constraints.c:4092:33: [all 2021-09-04 16:34:07] ../../gcc/gcc/lra-constraints.c:1324:56: error: a= rray subscript -1 is below array bounds of 'short int [2][16]' [-Werror=3Da= rray-bounds] [all 2021-09-04 16:34:07] 1324 | reg_renumber[sregno] =3D ira_class_= hard_regs[sclass][0]; [all 2021-09-04 16:34:07] In file included from ../../gcc/gcc/lra-constrain= ts.c:123: [all 2021-09-04 16:34:07] ../../gcc/gcc/ira.h: In function 'bool curr_insn_= transform(bool)': [all 2021-09-04 16:34:07] ../../gcc/gcc/ira.h:85:9: note: while referencing= 'target_ira::x_ira_class_hard_regs' [all 2021-09-04 16:34:07] 85 | short x_ira_class_hard_regs[N_REG_CLASS= ES][FIRST_PSEUDO_REGISTER]; [all 2021-09-04 16:34:07] | ^~~~~~~~~~~~~~~~~~~~~ [all 2021-09-04 16:34:13] cc1plus: all warnings being treated as errors [all 2021-09-04 16:34:13] make[1]: *** [Makefile:1142: lra-constraints.o] E= rror 1 [all 2021-09-04 16:34:13] make[1]: Leaving directory '/var/lib/laminar/run/= gcc-nvptx-none/5/toolchain-build/gcc' [all 2021-09-04 16:34:13] make: *** [Makefile:4407: all-gcc] Error 2 Thanks, Jan-Benedict --=20 --gndkhvvagqgvyyqv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCYTPElgAKCRAdvV51g5nh u4ONAJ40oErdohU7qL0md9bgXPc1eC6aQgCfXT5aF8cphzKw9YZvuVlFFeJe454= =APr0 -----END PGP SIGNATURE----- --gndkhvvagqgvyyqv--