OSDN Git Service

* c-tree.h (C_DECL_REGISTER): New.
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Mar 2004 00:31:41 +0000 (00:31 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Mar 2004 00:31:41 +0000 (00:31 +0000)
commit7746224a4b8634a5cd02d2ab5fe2ac7697425400
tree3acc8edeeba4106c03dff66761ed088a39992358
parent9244990b2470a62407d20d318c8bc239ee65e84f
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80037 138bc75d-0d04-0410-961f-82ee72b054a4
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]