From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3BCE386EC66; Sun, 17 Jan 2021 12:40:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3BCE386EC66 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/98708] [11 Regression] cxx11-ios_failure-lt.s:36733: Error: file number less than one by r11-6755 Date: Sun, 17 Jan 2021 12:40:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW 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: Sun, 17 Jan 2021 12:40:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98708 --- Comment #10 from H.J. Lu --- (In reply to Jakub Jelinek from comment #9) > Bootstrap is fine if one uses older binutils. > The thing is that cxx11-ios_failure* is built by hand first with -g -O2 -= S, > then the assembly is modified by a script and then it is assembled, and as > older assemblers would fail miserably on assembling .s file containing > .debug_info etc. with -g (-gdwarf-2 passed to assembler), the assembly is > invoked with -g -O2 -c -g0. > I really think this should be fixed solely on the assembler side, and > if needed, we can add a temporary workaround, I guess compiling > cxx11-ios_failure* with -gno-as-loc-support could fix that. Assembler option: --gdwarf- generate DWARF debugging information. 2 <=3D <=3D 5 both accepts and generates DWARF info. This decision is made very early= .=