[PATCH] Darwin dead code strip support

Richard Henderson rth@redhat.com
Mon Aug 16 18:20:00 GMT 2004


On Sun, Aug 15, 2004 at 11:11:12AM -0700, Devang Patel wrote:
>         * 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.

Ok.


r~



More information about the Gcc-patches mailing list