invoke.texi (-Wno-prio-ctor-dtor): Document new warning -Wno-prio-ctor-dtor.
authorVinay Kumar <vinay.kumar@blackfigtech.com>
Thu, 4 Oct 2018 18:23:25 +0000 (18:23 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 4 Oct 2018 18:23:25 +0000 (12:23 -0600)
commit8cff06522fce85a76296f6d891830a56f1feebc1
tree77b5bd8b9e5a9bf1326f8d5f1623e59700365ec8
parentf4ebbd243f887b3c5e01c65ad80a8f64a8261e61
invoke.texi (-Wno-prio-ctor-dtor): Document new warning -Wno-prio-ctor-dtor.

* doc/invoke.texi (-Wno-prio-ctor-dtor): Document new warning
-Wno-prio-ctor-dtor.

* c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
to generate constructor destructor priority warning.
* c.opt (-Wprio-ctor-dtor): New option.

* c-c++-common/Wprio-ctor-dtor.c: New test.

From-SVN: r264853
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/c-family/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wprio-ctor-dtor.c [new file with mode: 0644]