Manuel López-Ibáñez - [PING^2] Waddress-of-register (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.

:ADDPATCH c++:This patch continues the effort to fix PR7651 [1].

It adds a new option -Waddress-of-register that takes over the function of warning about subscripting an array which has been declared "register" or taking the address of a variable which has been declared "register". The new option is enabled by -Wextra, so we keep the current behaviour but add the ability to enable/disable this individual warning.

Bootstrapped and regression tested with --enable-languages=all on i686-pc-linux-gnu.

OK for mainline?[1] http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01103.html
2006-12-25 Manuel Lopez-Ibanez manu@gcc.gnu.org

PR middle-end/7651

cp/ 2006-12-25 Manuel Lopez-Ibanez manu@gcc.gnu.org

PR middle-end/7651

testsuite/ 2006-12-25 Manuel Lopez-Ibanez manu@gcc.gnu.org

PR middle-end/7651