Add a new flag...
authorMatt Austern <austern@apple.com>
Mon, 19 May 2003 19:19:46 +0000 (19:19 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Mon, 19 May 2003 19:19:46 +0000 (19:19 +0000)
commita01fff59e70fba464453852c561213c3a24fb2c7
treedb823fd432e76eee10d350bcaede94deebaa3066
parenteab1ff73c813a9eb0f7e6e8c784d8d41b37af687
Add a new flag...

Add a new flag, -W(no-)invalid-offsetof, to control whether or
not the compiler warns about incorrect use of the offsetof macro
in C++.  By default the warning is on.

From-SVN: r66972
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-opts.c
gcc/cp/ChangeLog
gcc/cp/lang-options.h
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/testsuite/g++.dg/other/offsetof3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/offsetof4.C [new file with mode: 0644]