From: "H.J. Lu" <hjl.tools@gmail.com>
To: Sandra Loosemore <sandra@codesourcery.com>
Cc: Jason Merrill <jason@redhat.com>,
Richard Guenther <richard.guenther@gmail.com>,
"Joseph S. Myers" <joseph@codesourcery.com>,
Martin Sebor <msebor@gmail.com>,
GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: V8 [PATCH] C/C++: Add -Waddress-of-packed-member
Date: Wed, 19 Dec 2018 14:53:00 -0000 [thread overview]
Message-ID: <CAMe9rOoJ60ihpMogAyRxBvzUDczeYth_PYVOukZps02Rz3sanQ@mail.gmail.com> (raw)
In-Reply-To: <dae0bfdc-49b8-1629-5930-264461240a1f@codesourcery.com>
On Tue, Dec 18, 2018 at 7:19 PM Sandra Loosemore
<sandra@codesourcery.com> wrote:
>
> On 12/18/18 2:12 PM, H.J. Lu wrote:
> >
> > diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
> > index ac2ee59d92c..47f2fc3f518 100644
> > --- a/gcc/doc/invoke.texi
> > +++ b/gcc/doc/invoke.texi
> > @@ -358,6 +358,7 @@ Objective-C and Objective-C++ Dialects}.
> > -Wuseless-cast -Wvariadic-macros -Wvector-operation-performance @gol
> > -Wvla -Wvla-larger-than=@var{byte-size} -Wvolatile-register-var @gol
> > -Wwrite-strings @gol
> > +-Waddress-of-packed-member @gol
> > -Wzero-as-null-pointer-constant -Whsa}
> >
> > @item C and Objective-C-only Warning Options
>
> Minor documentation nit: it looks like some effort has been made to
> alphabetize that list. Can you please put -Waddress-of-packed member in
> the right place, and also fix the misplaced -Whsa at the end?
>
I am applying
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 47f2fc3f518..14365fba501 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -281,7 +281,8 @@ Objective-C and Objective-C++ Dialects}.
@xref{Warning Options,,Options to Request or Suppress Warnings}.
@gccoptlist{-fsyntax-only -fmax-errors=@var{n} -Wpedantic @gol
-pedantic-errors @gol
--w -Wextra -Wall -Waddress -Waggregate-return -Waligned-new @gol
+-w -Wextra -Wall -Waddress -Waddress-of-packed-member @gol
+-Waggregate-return -Waligned-new @gol
-Walloc-zero -Walloc-size-larger-than=@var{byte-size} @gol
-Walloca -Walloca-larger-than=@var{byte-size} @gol
-Wno-aggressive-loop-optimizations -Warray-bounds -Warray-bounds=@var{n} @gol
@@ -310,7 +311,7 @@ Objective-C and Objective-C++ Dialects}.
-Wformat-y2k -Wframe-address @gol
-Wframe-larger-than=@var{byte-size} -Wno-free-nonheap-object @gol
-Wjump-misses-init @gol
--Wif-not-aligned @gol
+-Whsa -Wif-not-aligned @gol
-Wignored-qualifiers -Wignored-attributes -Wincompatible-pointer-types @gol
-Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=@var{n} @gol
-Wimplicit-function-declaration -Wimplicit-int @gol
@@ -358,8 +359,7 @@ Objective-C and Objective-C++ Dialects}.
-Wuseless-cast -Wvariadic-macros -Wvector-operation-performance @gol
-Wvla -Wvla-larger-than=@var{byte-size} -Wvolatile-register-var @gol
-Wwrite-strings @gol
--Waddress-of-packed-member @gol
--Wzero-as-null-pointer-constant -Whsa}
+-Wzero-as-null-pointer-constant}
@item C and Objective-C-only Warning Options
@gccoptlist{-Wbad-function-cast -Wmissing-declarations @gol
Thanks.
--
H.J.
prev parent reply other threads:[~2018-12-19 14:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-25 15:47 V4 " H.J. Lu
2018-11-04 15:16 ` PING: " H.J. Lu
2018-11-25 14:38 ` PING^2: " H.J. Lu
2018-12-13 20:50 ` Jason Merrill
2018-12-14 0:09 ` V5 " H.J. Lu
2018-12-14 22:10 ` Jason Merrill
2018-12-14 22:48 ` V6 " H.J. Lu
2018-12-17 9:39 ` Richard Biener
2018-12-17 12:43 ` H.J. Lu
2018-12-17 13:34 ` Richard Biener
2018-12-17 13:53 ` Jason Merrill
2018-12-18 14:11 ` V7 " H.J. Lu
2018-12-18 20:36 ` Jason Merrill
2018-12-18 21:13 ` V8 " H.J. Lu
2018-12-18 22:14 ` Jason Merrill
2018-12-19 14:52 ` H.J. Lu
2018-12-19 17:36 ` V9 " H.J. Lu
2018-12-20 19:40 ` Jason Merrill
2018-12-20 20:07 ` V10 " H.J. Lu
2018-12-20 21:31 ` Jason Merrill
2018-12-20 21:47 ` H.J. Lu
2018-12-19 3:19 ` V8 " Sandra Loosemore
2018-12-19 14:53 ` H.J. Lu [this message]
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=CAMe9rOoJ60ihpMogAyRxBvzUDczeYth_PYVOukZps02Rz3sanQ@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=joseph@codesourcery.com \
--cc=msebor@gmail.com \
--cc=richard.guenther@gmail.com \
--cc=sandra@codesourcery.com \
/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: link
Be 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).