From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E10593947C24; Wed, 23 Feb 2022 11:14:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E10593947C24 From: "pmenzel+gcc at molgen dot mpg.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104655] [12 Regression] array subscript 0 is outside array bounds of Date: Wed, 23 Feb 2022 11:14:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pmenzel+gcc at molgen dot mpg.de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2022 11:14:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104655 --- Comment #5 from Paul Menzel --- Created attachment 52498 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52498&action=3Dedit Preprocessed file `build/bootblock/cpu/x86/lapic/lapic.i` with `-save-temps` Sorry for not sharing the file in the first place. First for the coreboot c= ase: $ x86_64-linux-gnu-gcc-12 -save-temps -MMD -Isrc -Isrc/include -Isrc/commonlib/include -Isrc/commonlib/bsd/include -Ibuild -I3rdparty/vboot/firmware/include -include src/include/kconfig.h -include src/include/rules.h -include src/commonlib/bsd/include/commonlib/bsd/compil= er.h -I3rdparty -D__BUILD_DIR__=3D\"build\" -Isrc/arch/x86/include -D__ARCH_x86_= 32__ -pipe -g -nostdinc -std=3Dgnu11 -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Wimplicit-fallthrough -Wshadow -Wdate-time -Wtype-limits -Wvla -Wdangling-= else -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer -fstrict-alias= ing -ffunction-sections -fdata-sections -fno-pie -Wno-packed-not-aligned -fconserve-stack -Wnull-dereference -Wreturn-type -Wlogical-op -Wduplicated-cond -Wno-unused-but-set-variable -Werror -Os -Wno-address-of-packed-member -m32 -Wl,-b,elf32-i386 -Wl,-melf_i386 -m32=20 -fuse-ld=3Dbfd -fno-stack-protector -Wl,--build-id=3Dnone -fno-delete-null-pointer-checks -Wlogical-op -march=3Di686 -mno-mmx -MT build/bootblock/cpu/x86/lapic/lapic.o -D__BOOTBLOCK__ -c -o build/bootblock/cpu/x86/lapic/lapic.o src/cpu/x86/lapic/lapic.c=