This is the mail archive of the gcc-bugs@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]

[Bug c++/11530] [3.4 regression] [unit-at-a-time] inline static function not emitted with -O3


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From janis187 at us dot ibm dot com  2003-07-24 19:36 -------
The regression in PR 11530 was introduced or exposed by this patch
(perhaps obvious, but this confirms that it wasn't caused a later
change):

--- gcc/gcc/ChangeLog ---

Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>

        * cgraphunit.c (cgraph_finalize_function): Set finalized.
        (cgraph_finalize_function): Do not examine inlinablility.
        (cgraph_finalize_compilation_unit): Do it here.
        * cgraph.h (cgraph_local_info): Add finalized field.

--- gcc/gcc/cp/ChangeLog ---

Wed Jul  2 00:36:48 CEST 2003  Jan Hubicka  <jh@suse.cz>

        * decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
        (finish-file): Do not process function with DECL_DEFER_OUTPUT clear;
        clear DECL_DEFER_OUTPUT once function is processed; avoid flags
        massaging.

        * cp-tree.h (DECL_NEEDED_P): Support unit-at-a-time
        (expand_or_defer_fn): Declare.
        (lower_function): Declare.
        * decl.c (start_cleanup_fn): Use expand_or_defer_fn.
        * decl2.c: Include cgraph.h and varpool.h
        (maybe_emit_vtables):  Make explicit instantations as needed.
        (mark_member_pointers, lower_function): New functions.
        (finish_file): Do unit-at-a-time.
        * method.c (synthesize_method): Use expand_or_defer_fn.
        * optimize.c (maybe_clone_body): Use expand_or_defer_fn.
        * parser.c (cp_parser_function_definition_after_decl): Use
        expand_or_defer_fn.
        * pt.c (instantiate_decl): Likewise.
        * semantics.c: Include cgraph.h
        (expand_or_defer_fn): Break out from ...
        (expand_body): ... here; deal with unit-at-a-time.
        * cp-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
        LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Define.

The regression hunt used the submitter's test case on i686-pc-linux-gnu
compiled with -O3.


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