c-tree.h (C_DECL_REGISTER): New.
authorJoseph Myers <jsm@polyomino.org.uk>
Sun, 28 Mar 2004 00:31:41 +0000 (00:31 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 28 Mar 2004 00:31:41 +0000 (00:31 +0000)
commit5baeaac0676b282f9ac9815f245e60e1d2f9b31f
tree3acc8edeeba4106c03dff66761ed088a39992358
parent4c24abdce41dacb7cceffefa2bc2fd5edea24c43
c-tree.h (C_DECL_REGISTER): New.

* c-tree.h (C_DECL_REGISTER): New.
* c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
finish_decl, grokdeclarator, get_parm_info), c-typeck.c
(build_array_ref, c_mark_addressable): Set and use it.
* c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
Allow structures with volatile fields to be declared register.
Don't check TREE_ADDRESSABLE before warning about taking address
of register.
* c-decl.c (finish_decl): Don't allow structures with volatile
fields to be placed in named register.
* doc/trouble.texi: Remove reference to structures with volatile
fields in registers.

testsuite:
* gcc.dg/940409-1.c: Remove XFAIL.
* gcc.dg/reg-vol-struct-1.c: New test.

From-SVN: r80037
gcc/ChangeLog
gcc/c-aux-info.c
gcc/c-decl.c
gcc/c-tree.h
gcc/c-typeck.c
gcc/doc/trouble.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/940409-1.c
gcc/testsuite/gcc.dg/reg-vol-struct-1.c [new file with mode: 0644]