From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1883939724A2; Tue, 17 Nov 2020 12:45:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1883939724A2 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97827] bootstrap error building the amdgcn-amdhsa offload compiler with LLVM 11 Date: Tue, 17 Nov 2020 12:45:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Tue, 17 Nov 2020 12:45:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97827 --- Comment #3 from Tobias Burnus --- Now filled https://bugs.llvm.org/show_bug.cgi?id=3D48201 for this LLVM and GNU as ("gas") tried to align, cf. discussion https://sourceware.org/legacy-ml/binutils/2020-02/msg00091.html and the GAS patch to turn a warning to an error: https://sourceware.org/legacy-ml/binutils/2020-02/msg00129.html However, while llvm/lib/MC/MCParser/ELFAsmParser.cpp always issues an error: + if (Section->getType() !=3D Type) + Error(loc, "changed section type for " + SectionName + ", expected: 0x= " + + utohexstr(Section->getType())); etc. The GNU assembler only does so if flags have been specified, gas/config/obj-elf.c: if (attr !=3D 0) {=20 /* If section attributes are specified the second time we see a particular section, then check that they are the same as we saw the first time. */ if (((old_sec->flags ^ flags) ...=