2002-02-21 Aldy Hernandez <aldyh@redhat.com>
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Feb 2002 00:09:04 +0000 (00:09 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Feb 2002 00:09:04 +0000 (00:09 +0000)
commitaf87ad830272721880f74898c75cc639a081fcec
tree81ecf94407355c68f26f5bc1ca604c5ff588e9da
parenta4194ff76cc5b73c5f6513b9422ddc59ccd31535
2002-02-21  Aldy Hernandez  <aldyh@redhat.com>

        * gcc.dg/attr-alwaysinline.c: New.

        * c-common.c (c_common_post_options): Set inline trees by
        default.

        * doc/extend.texi (Function Attributes): Document always_inline
        attribute.
        Update documentation about inlining when not optimizing.

        * cp/decl.c (duplicate_decls): Merge always_inline attribute.

        * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
        unless DECL_ALWAYS_INLINE.

        * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
        unless DECL_ALWAYS_INLINE.
        (c_disregard_inline_limits): Disregard if always_inline set.

        * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
        Disregard if always_inline set.
        (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
        unless DECL_ALWAYS_INLINE.

        * attribs.c (handle_always_inline_attribute): New.
        (c_common_attribute_table): Add always_inline.

        * config/rs6000/altivec.h: Add prototypes for builtins
        requiring the always_inline attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49947 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/attribs.c
gcc/c-common.c
gcc/c-objc-common.c
gcc/config/rs6000/altivec.h
gcc/cp/decl.c
gcc/cp/tree.c
gcc/doc/extend.texi
gcc/langhooks.c
gcc/testsuite/gcc.dg/attr-alwaysinline.c [new file with mode: 0644]