]> git.ipfire.org Git - thirdparty/gcc.git/commit
rx.c (struct decl_chain): New local structure.
authorNick Clifton <nickc@redhat.com>
Wed, 3 Oct 2012 16:12:22 +0000 (16:12 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 3 Oct 2012 16:12:22 +0000 (16:12 +0000)
commit7fb80860d62c9b64c969213a475a556a3c816a25
tree46ee8015faaeb50c30f8914640d00b5c20e6d402
parentaf9e6b7458f099b26a1c28c2f02093d7b30dfa3f
rx.c (struct decl_chain): New local structure.

* config/rx/rx.c (struct decl_chain): New local structure.
(warned_decls): New local variable.  Contains a stack of decls for
which warnings have been issued.
(add_warned_decl): Adds a decl to the stack.
(already_warned): Returns true if a given decl is on the stack.
(rx_set_current_function): Issue a warning if multiple fast
interrupt handlers are defined.
* config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
* doc/invoke.texi: Document the option.

From-SVN: r192041
gcc/ChangeLog
gcc/config/rx/rx.c
gcc/config/rx/rx.opt
gcc/doc/invoke.texi