* [COMMITTED] Regenerate c.opt.urls
@ 2024-04-13 21:08 Mark Wielaard
0 siblings, 0 replies; 3+ messages in thread
From: Mark Wielaard @ 2024-04-13 21:08 UTC (permalink / raw)
To: gcc-patches; +Cc: Jason Merrill, Mark Wielaard
Fixes: df7bfdb7dbf2 ("c++: reference cast, conversion fn [PR113141]")
A new warning option -Wcast-user-defined was added to c.opt and
documented in doc/invoke.texi. But c.opt.urls wasn't regenerate.
gcc/c-family/ChangeLog:
* c.opt.urls: Regenerate.
---
gcc/c-family/c.opt.urls | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/c-family/c.opt.urls b/gcc/c-family/c.opt.urls
index 631719863a5e..dd455d7c0dc7 100644
--- a/gcc/c-family/c.opt.urls
+++ b/gcc/c-family/c.opt.urls
@@ -208,6 +208,9 @@ UrlSuffix(gcc/Warning-Options.html#index-Wcast-function-type)
Wcast-qual
UrlSuffix(gcc/Warning-Options.html#index-Wcast-qual)
+Wcast-user-defined
+UrlSuffix(gcc/Warning-Options.html#index-Wcast-user-defined)
+
Wcatch-value
UrlSuffix(gcc/C_002b_002b-Dialect-Options.html#index-Wcatch-value)
--
2.39.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [COMMITTED] Regenerate c.opt.urls
2024-07-17 16:07 ` Mark Wielaard
@ 2024-07-17 16:23 ` Alejandro Colomar
0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Colomar @ 2024-07-17 16:23 UTC (permalink / raw)
To: Mark Wielaard
Cc: Jonathan Wakely, gcc-patches, builder, gcc-help, gcc-testresults,
David Malcolm, Martin Uecker
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
Hi Mark,
On Wed, Jul 17, 2024 at 06:07:20PM GMT, Mark Wielaard wrote:
> > diff --git a/gcc/c-family/c.opt.urls b/gcc/c-family/c.opt.urls
> > index 1b60ae4847b..df5f58a1eee 100644
> > --- a/gcc/c-family/c.opt.urls
> > +++ b/gcc/c-family/c.opt.urls
> > @@ -870,6 +870,9 @@ UrlSuffix(gcc/Warning-Options.html#index-Wno-unknown-pragmas) LangUrlSuffix_D(gd
> > Wunsuffixed-float-constants
> > UrlSuffix(gcc/Warning-Options.html#index-Wno-unsuffixed-float-constants)
> >
> > +Wunterminated-string-initialization
> > +UrlSuffix(gcc/Warning-Options.html#index-Wno-unterminated-string-initialization)
> > +
> > Wunused
> > UrlSuffix(gcc/Warning-Options.html#index-Wno-unused)
>
> I made sure that was also generated locally and pushed the attached to
> make the autoregen buildbot happy.
Thanks!
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [COMMITTED] Regenerate c.opt.urls
[not found] ` <3a3c8eca54092f2f542abc5d9134b005997999e3.camel@klomp.org>
@ 2024-07-17 16:07 ` Mark Wielaard
2024-07-17 16:23 ` Alejandro Colomar
0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2024-07-17 16:07 UTC (permalink / raw)
To: Alejandro Colomar, Jonathan Wakely, gcc-patches
Cc: builder, gcc-help, gcc-testresults, David Malcolm, Martin Uecker
[-- Attachment #1: Type: text/plain, Size: 2389 bytes --]
Hi,
On Wed, 2024-07-17 at 13:55 +0200, Mark Wielaard wrote:
> On Sun, 2024-07-14 at 15:31 +0200, Alejandro Colomar wrote:
> > On Sun, Jul 14, 2024 at 01:37:02PM GMT, Jonathan Wakely wrote:
> > > On Sun, 14 Jul 2024, 12:30 Alejandro Colomar via Gcc-help, <
> > > gcc-help@gcc.gnu.org> wrote:
> > > > Did I break anything? I see the failure being `git diff --exit-code`,
> > > > which doesn't seem like anything broken, but I don't know what that test
> > > > is for, so I'll ask.
> > > >
> > >
> > > It checks that necessary auto-generated files have been regenerated and
> > > committed.
> > >
> > > If you didn't do anything related to that warning option that would have
> > > affected the c.opts.urls file then it wasn't you (I think it was a change
> > > from Marek).
> >
> > I did add that warning option:
> >
> > commit 44c9403ed1833ae71a59e84f9e37af3182be0df5
> > Author: Alejandro Colomar <alx@kernel.org>
> > AuthorDate: Sat Jun 29 15:10:43 2024 +0200
> > Commit: Martin Uecker <uecker@gcc.gnu.org>
> > CommitDate: Sun Jul 14 11:41:00 2024 +0200
> >
> > c, objc: Add -Wunterminated-string-initialization
> >
> > Warn about the following:
> >
> > char s[3] = "foo";
> >
> > I guess I should have committed some re-generated files? Is that
> > documented somewhere?
>
> Adding David Malcolm to CC who might know where this is documented.
>
> But yes, after adding a new warning option you should run:
>
> make html && cd gcc && make regenerate-opt-urls
>
> This will produce the needed opt.url changes you should commit together
> with your change. In this case:
>
> diff --git a/gcc/c-family/c.opt.urls b/gcc/c-family/c.opt.urls
> index 1b60ae4847b..df5f58a1eee 100644
> --- a/gcc/c-family/c.opt.urls
> +++ b/gcc/c-family/c.opt.urls
> @@ -870,6 +870,9 @@ UrlSuffix(gcc/Warning-Options.html#index-Wno-unknown-pragmas) LangUrlSuffix_D(gd
> Wunsuffixed-float-constants
> UrlSuffix(gcc/Warning-Options.html#index-Wno-unsuffixed-float-constants)
>
> +Wunterminated-string-initialization
> +UrlSuffix(gcc/Warning-Options.html#index-Wno-unterminated-string-initialization)
> +
> Wunused
> UrlSuffix(gcc/Warning-Options.html#index-Wno-unused)
I made sure that was also generated locally and pushed the attached to
make the autoregen buildbot happy.
Cheers,
Mark
[-- Attachment #2: 0001-Regenerate-c.opt.urls.patch --]
[-- Type: text/x-patch, Size: 1050 bytes --]
From bdb4db1ec966c974b9b7bf5e3d2edda93d8635aa Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Wed, 17 Jul 2024 17:58:14 +0200
Subject: [PATCH] Regenerate c.opt.urls
The addition of -Wunterminated-string-initialization should have
regenerated the c.opt.urls file.
Fixes: 44c9403ed183 ("c, objc: Add -Wunterminated-string-initialization")
gcc/c-family/ChangeLog:
* c.opt.urls: Regenerate.
---
gcc/c-family/c.opt.urls | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/c-family/c.opt.urls b/gcc/c-family/c.opt.urls
index 1b60ae4847b1..df5f58a1eeed 100644
--- a/gcc/c-family/c.opt.urls
+++ b/gcc/c-family/c.opt.urls
@@ -870,6 +870,9 @@ UrlSuffix(gcc/Warning-Options.html#index-Wno-unknown-pragmas) LangUrlSuffix_D(gd
Wunsuffixed-float-constants
UrlSuffix(gcc/Warning-Options.html#index-Wno-unsuffixed-float-constants)
+Wunterminated-string-initialization
+UrlSuffix(gcc/Warning-Options.html#index-Wno-unterminated-string-initialization)
+
Wunused
UrlSuffix(gcc/Warning-Options.html#index-Wno-unused)
--
2.45.2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-17 16:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-13 21:08 [COMMITTED] Regenerate c.opt.urls Mark Wielaard
[not found] <20240714100134.35A3D385DDD7@sourceware.org>
[not found] ` <f2xo7i6xb3rttxvxcb3jpkxo4qhtago266d7wznmzps452g6en@zshwyap3ys3x>
[not found] ` <CAH6eHdTVZrqyoqaCM5Xjg9qcqv31bedf3Cx6FfJvsF_L7fmiAQ@mail.gmail.com>
[not found] ` <7tykqfbbfxsxvgg7wmk64yilmlqve2p6aliyuqqwbeqdcrrdqu@pm3zg7vem5ok>
[not found] ` <3a3c8eca54092f2f542abc5d9134b005997999e3.camel@klomp.org>
2024-07-17 16:07 ` Mark Wielaard
2024-07-17 16:23 ` Alejandro Colomar
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).