c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
authorDevang Patel <dpatel@apple.com>
Mon, 16 Aug 2004 20:54:43 +0000 (13:54 -0700)
committerDevang Patel <dpatel@gcc.gnu.org>
Mon, 16 Aug 2004 20:54:43 +0000 (13:54 -0700)
commit8e3e233be0d6e50fcfc1da2c81ad5eb51d974baa
tree58140b66c92905176d0b282d72e2e415ec6301bb
parent580b3958265f6bca27126b24f20d95c32d00c854
c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.

        * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
        * print-tree.c (print_node): Print DECL_PRESERVE_P.
        * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
        (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
        * target.h (struct gcc_target): New member, mark_decl_preserved.
        * hooks.c (hook_void_charptr): Rename to ...
        (hook_void_constcharptr): ... new name.
        * hooks.h (hook_void_charptr): Rename to ..
        (hook_void_constcharptr): ... new name.
        * tree.h (DECL_PRESERVE_P): New #define.
        (struct tree_decl): New member, preserve_flag.
        * varasm.c (assemble_start_function): Mark decl preserved.
        (assemble_variable): Same.
        * darwin.c (darwin_mark_decl_preserved): New function.
        * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
        * darwin-protos.h (darwin_mark_decl_preserved): New decl.
        * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.

        testsuite:
        * gcc.dg/darwin-20040809-1.c: New test.

From-SVN: r86076
15 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/config/darwin-protos.h
gcc/config/darwin.c
gcc/config/darwin.h
gcc/doc/tm.texi
gcc/hooks.c
gcc/hooks.h
gcc/print-tree.c
gcc/target-def.h
gcc/target.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/darwin-20040812-1.c [new file with mode: 0644]
gcc/tree.h
gcc/varasm.c