public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mark at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> 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 13:31:40 +0000 [thread overview] Message-ID: <bug-98708-4-Hs6irgqGGL@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-98708-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98708 --- Comment #12 from Mark Wielaard <mark at gcc dot gnu.org> --- On the binutils gas side it could be as simple as turning the error into a warning: diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index a428370ecca..a216bfd6b28 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -1044,7 +1044,7 @@ dwarf2_directive_filename (void) if ((offsetT) num < 1 && DWARF2_LINE_VERSION < 5) { - as_bad (_("file number less than one")); + as_warn (_("file number less than one, ignored")); ignore_rest_of_line (); return NULL; } @@ -1143,7 +1143,8 @@ dwarf2_directive_loc (int dummy ATTRIBUTE_UNUSED) { if (filenum != 0 || DWARF2_LINE_VERSION < 5) { - as_bad (_("file number less than one")); + as_warn (_("file number less than one, ignored")); + ignore_rest_of_line (); return; } } diff --git a/gas/testsuite/gas/lns/lns-diag-1.l b/gas/testsuite/gas/lns/lns-diag-1.l index 1256e85cfcb..d8aa84d9d1a 100644 --- a/gas/testsuite/gas/lns/lns-diag-1.l +++ b/gas/testsuite/gas/lns/lns-diag-1.l @@ -1,5 +1,5 @@ .*: Assembler messages: -.*:2: Error: file number less than one +.*:2: Warning: file number less than one, ignored .*:3: Error: missing string .*:4: Error: file table slot 1 is already occupied.* .*:8: Error: unassigned file number 3 @@ -9,7 +9,7 @@ .*:19: Error: bad or irreducible absolute expression .*:23: Error: isa number less than zero .*:26: Error: bad or irreducible absolute expression -.*:26: Error: file number less than one +.*:26: Warning: file number less than one, ignored .*:27: Error: bad or irreducible absolute expression .*:28: Error: unknown .loc sub-directive `frobnitz' .*:29: Error: unknown .loc sub-directive `frobnitz'
next prev parent reply other threads:[~2021-01-17 13:31 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-17 1:07 [Bug debug/98708] New: [11 Regression] cxx11-ios_failure-lt.s:36733: Error: file number less than one hjl.tools at gmail dot com 2021-01-17 1:10 ` [Bug debug/98708] " hjl.tools at gmail dot com 2021-01-17 3:51 ` [Bug debug/98708] [11 Regression] cxx11-ios_failure-lt.s:36733: Error: file number less than one by r11-6755 hjl.tools at gmail dot com 2021-01-17 4:50 ` hjl.tools at gmail dot com 2021-01-17 8:07 ` jakub at gcc dot gnu.org 2021-01-17 10:41 ` jakub at gcc dot gnu.org 2021-01-17 10:42 ` jakub at gcc dot gnu.org 2021-01-17 10:51 ` jakub at gcc dot gnu.org 2021-01-17 11:22 ` mark at gcc dot gnu.org 2021-01-17 12:25 ` jakub at gcc dot gnu.org 2021-01-17 12:40 ` hjl.tools at gmail dot com 2021-01-17 12:59 ` mark at gcc dot gnu.org 2021-01-17 13:31 ` mark at gcc dot gnu.org [this message] 2021-01-17 15:57 ` jakub at gcc dot gnu.org 2021-01-17 15:58 ` hjl.tools at gmail dot com 2021-01-17 16:02 ` jakub at gcc dot gnu.org 2021-01-17 16:22 ` jakub at gcc dot gnu.org 2021-01-18 10:29 ` cvs-commit at gcc dot gnu.org 2021-01-19 13:39 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-98708-4-Hs6irgqGGL@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).