public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "iains at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug objc/44140] ObjC lto/whopr fails
Date: Sat, 10 Jul 2010 00:23:00 -0000	[thread overview]
Message-ID: <20100710002257.30015.qmail@sourceware.org> (raw)
In-Reply-To: <bug-44140-682@http.gcc.gnu.org/bugzilla/>



------- Comment #17 from iains at gcc dot gnu dot org  2010-07-10 00:22 -------
Subject: Bug 44140

Author: iains
Date: Sat Jul 10 00:22:35 2010
New Revision: 162030

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162030
Log:

make ObjC do LTO.

gcc/
        PR objc/44140
        * config/darwin.c (output_objc_section_asm_op): Save and restore
        section when outputting ObjC section list.

testsuite/

        PR objc/44140
        * objc.dg/lto/trivial-1_0.m: New.
        * objc.dg/lto/lto.exp: New.
        * obj-c++.dg/lto/trivial-1_0.mm: New.
        * obj-c++.dg/lto/lto.exp: New.
        * objc.dg/symtab-1.m: Adjust sizes.
        * objc.dg/image-info.m: Do not run for gnu-runtime.

gcc/objc/

        PR objc/44140
        * objc-act.c: build_objc_string_decl() remove declaration.
        (finish_var_decl): Remove forcing of var output and marking
        as "Used". 
        (init_def_list): Use integer_zero_node. 
        (init_objc_symtab): Use integer_zero_node, make the short
        integer type specific on relevant nodes.
        (generate_objc_symtab_decl): Remove call to 
        forward_declare_categories().  Use null_pointer_node where
        appropriate.  
        (build_module_descriptor): Comment and mark this item as 
        DECL_PRESERVE_P. 
        (generate_static_references): Use gcc_unreachable instead of
        abort (). 
        (diagnose_missing_method): New.
        (build_next_selector_translation_table): New.
        (build_gnu_selector_translation_table): New.
        (add_objc_string): Merge code from build_objc_string_decl...
        ... and delete build_objc_string_decl().
        (generate_dispatch_table): Make integer types explicit.
        (generate_category): Pass implent and arrange for the data
        to be extracted within the routine.  Do not start new vars, 
        but finish the ones collcted during parsing.
        (generate_shared_structures): Likewise.
        (finish_objc):  Reorder code so that we finish variables before
        referencing them.  Save the global data before calling meta-data
        creation routines, and pass the current reference to the two 
        main routines.  Only call generate_objc_image_info () for the 
        NeXT runtime.
        (generate_classref_translation_entry): Comment on and make this
        item DECL_PRESERVE_P.
        (handle_class_ref): Use varpool interfaces, comment on and make
        this item DECL_PRESERVE_P.
        (handle_impent): Likewise.
        (generate_objc_image_info): Only generate when the content is 
        non-zero.  Make integer types explict.


Added:
    trunk/gcc/testsuite/obj-c++.dg/lto/
    trunk/gcc/testsuite/obj-c++.dg/lto/lto.exp
    trunk/gcc/testsuite/obj-c++.dg/lto/trivial-1_0.mm
    trunk/gcc/testsuite/objc.dg/lto/
    trunk/gcc/testsuite/objc.dg/lto/lto.exp
    trunk/gcc/testsuite/objc.dg/lto/trivial-1_0.m
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/darwin.c
    trunk/gcc/objc/ChangeLog
    trunk/gcc/objc/objc-act.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/objc.dg/image-info.m
    trunk/gcc/testsuite/objc.dg/symtab-1.m


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44140


  parent reply	other threads:[~2010-07-10  0:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14 14:40 [Bug lto/44140] New: objc.dg/torture/tls/thr-init-3.m failure hjl dot tools at gmail dot com
2010-05-14 15:25 ` [Bug objc/44140] " rguenth at gcc dot gnu dot org
2010-05-18 19:39 ` ro at gcc dot gnu dot org
2010-05-18 19:42 ` ro at gcc dot gnu dot org
2010-05-18 20:04 ` iains at gcc dot gnu dot org
2010-05-24 19:22 ` iains at gcc dot gnu dot org
2010-05-25  9:11 ` iains at gcc dot gnu dot org
2010-05-25  9:22 ` [Bug objc/44140] ObjC lto/whopr fails iains at gcc dot gnu dot org
2010-05-27 16:28 ` iains at gcc dot gnu dot org
2010-05-27 23:34 ` iains at gcc dot gnu dot org
2010-05-30  0:56 ` iains at gcc dot gnu dot org
2010-05-30  0:57 ` iains at gcc dot gnu dot org
2010-05-30  1:01 ` iains at gcc dot gnu dot org
2010-05-30 12:25 ` iains at gcc dot gnu dot org
2010-05-30 13:42 ` iains at gcc dot gnu dot org
2010-05-30 14:51 ` iains at gcc dot gnu dot org
2010-05-30 14:58 ` hjl dot tools at gmail dot com
2010-07-10  0:23 ` iains at gcc dot gnu dot org [this message]
2010-07-13 11:01 ` iains at gcc dot gnu dot org
2010-07-27 12:03 ` iains at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100710002257.30015.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).