public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/114980] New: [14/15 Regression] -fdiagnostics-urls=never does not suppress URLs in `'-Werror=' argument '-Werror=...' not valid for ...` warnings
@ 2024-05-08  2:39 xry111 at gcc dot gnu.org
  2024-05-08  2:47 ` [Bug other/114980] " xry111 at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: xry111 at gcc dot gnu.org @ 2024-05-08  2:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114980

            Bug ID: 114980
           Summary: [14/15 Regression] -fdiagnostics-urls=never does not
                    suppress URLs in `'-Werror=' argument '-Werror=...'
                    not valid for ...` warnings
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xry111 at gcc dot gnu.org
  Target Milestone: ---

$ cat hw.c
#include <stdio.h>

int
main ()
{
  printf ("Hello, world.\n");
}
$ env -i PATH=$PATH TERM=xterm-256colors LANG= cc hw.c -fdiagnostics-urls=never
-Werror=target-lifetime
cc1: warning: '-Werror=' argument '-Werror=target-lifetime' is not valid for C

But with GCC 14.1.0 the "-Werror" and "-Werror=target-lifetime" are hyperlinks.
 This causes several test failures like:

spawn -ignore SIGHUP /home/xry111/sources/lfs/gcc-14.1.0/build/gcc/xgcc
-B/home/xry111/sources/lfs/gcc-14.1.0/build/gcc/
/home/xry111/sources/lfs/gcc-14.1.0/gcc/testsuite/gcc.dg/pr91172.c
-fdiagnostics-plain-output -Werror=target-lifetime -S -o pr91172.s
cc1: warning:
'^[]8;;https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Werror^G-Werror=^[]8;;^G'
argument
'^[]8;;https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Werror^G-Werror=target-lifetime^[]8;;^G'
is not valid for C
FAIL: gcc.dg/pr91172.c  at line 3 (test for warnings, line ) 
FAIL: gcc.dg/pr91172.c (test for excess errors)
Excess errors:
cc1: warning:
'^[]8;;https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Werror^G-Werror=^[]8;;^G'
argument
'^[]8;;https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Werror^G-Werror=target-lifetime^[]8;;^G'
is not valid for C

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-05-10  3:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-08  2:39 [Bug other/114980] New: [14/15 Regression] -fdiagnostics-urls=never does not suppress URLs in `'-Werror=' argument '-Werror=...' not valid for ...` warnings xry111 at gcc dot gnu.org
2024-05-08  2:47 ` [Bug other/114980] " xry111 at gcc dot gnu.org
2024-05-08  2:49 ` pinskia at gcc dot gnu.org
2024-05-08  2:50 ` xry111 at gcc dot gnu.org
2024-05-08  2:52 ` pinskia at gcc dot gnu.org
2024-05-08  2:56 ` xry111 at gcc dot gnu.org
2024-05-08  2:58 ` xry111 at gcc dot gnu.org
2024-05-08  3:21 ` xry111 at gcc dot gnu.org
2024-05-08  3:25 ` [Bug driver/114980] " xry111 at gcc dot gnu.org
2024-05-08  5:58 ` xry111 at gcc dot gnu.org
2024-05-08  8:20 ` rguenth at gcc dot gnu.org
2024-05-10  3:20 ` cvs-commit at gcc dot gnu.org
2024-05-10  3:21 ` cvs-commit at gcc dot gnu.org
2024-05-10  3:22 ` xry111 at gcc dot gnu.org

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).