This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Darwin dead code strip support



On Aug 12, 2004, at 8:52 PM, Richard Henderson wrote:


On Thu, Aug 12, 2004 at 06:29:01PM -0700, Devang Patel wrote:
* config/darwin.h (ASM_MARK_DECL_PRESERVED): New.

This should be a target hook, as in your first patch.

OK. How about this patch?


Thanks,
-
Devang


2004-08-13 Devang Patel <dpatel@apple.com>


        * 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.
        * targhooks.c (default_mark_decl_preserved): New function.
        * targhooks.h (default_mark_decl_preserved): New decl.
        * 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-20040812-1.c: New test


Attachment: 3739318.take4.diff
Description: Binary data




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]