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]

PING: [PATCH] PR c/36892: Support __attribute__((deprecated("text string")))


On Wed, Apr 1, 2009 at 9:44 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sat, Mar 28, 2009 at 7:27 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Thu, Feb 5, 2009 at 11:20 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>> Hi Andrew,
>>>
>>> I incorporated your document changes. Can you take a look?
>>>
>>> Thanks.
>>>
>>>
>>> H.J.
>>> ---
>>> gcc/
>>>
>>> 2009-02-05 ?H.J. Lu ?<hongjiu.lu@intel.com>
>>> ? ? ? ? ? ?Andrew Morrow ?<acm@google.com>
>>>
>>> ? ? ? ?* c-common.c (c_common_attribute_table): Permit deprecated
>>> ? ? ? ?attribute to take an optional argument.
>>> ? ? ? ?(handle_deprecated_attribute): If the optional argument to
>>> ? ? ? ?__attribute__((deprecated)) is not a string ignore the attribute
>>> ? ? ? ?and emit a warning.
>>>
>>> ? ? ? ?* c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
>>> ? ? ? ?* c-typeck.c (build_component_ref): Likewise.
>>> ? ? ? ?(build_external_ref): Likewise.
>>>
>>> ? ? ? ?* toplev.c (warn_deprecated_use): Add an attribute argument.
>>> ? ? ? ?Emit the message associated with __attribute__((deprecated)).
>>>
>>> ? ? ? ?* toplev.h (warn_deprecated_use): Updated.
>>>
>>> ? ? ? ?* doc/extend.texi: Document new optional parameter to
>>> ? ? ? ?__attribute__((deprecated))
>>>
>>> gcc/cp
>>>
>>> 2009-02-05 ?H.J. Lu ?<hongjiu.lu@intel.com>
>>>
>>> ? ? ? ?* call.c (build_call_a): Updated warn_deprecated_use call.
>>> ? ? ? ?(build_over_call): Likewise.
>>> ? ? ? ?* decl.c (grokdeclarator): Likewise.
>>> ? ? ? ?(grokparms): Likewise.
>>> ? ? ? ?* semantics.c (finish_id_expression): Likewise.
>>> ? ? ? ?* typeck.c (build_class_member_access_expr): Likewise.
>>> ? ? ? ?(finish_class_member_access_expr): Likewise.
>>>
>>> gcc/testsuite/
>>>
>>> 2009-02-05 ?H.J. Lu ?<hongjiu.lu@intel.com>
>>>
>>> ? ? ? ?* g++.dg/warn/deprecated-6.C: New.
>>> ? ? ? ?* gcc.dg/deprecated-4.c: Likewise.
>>> ? ? ? ?* gcc.dg/deprecated-5.c: Likewise.
>>> ? ? ? ?* gcc.dg/deprecated-6.c: Likewise.
>>>
>>
>
> Here is the updated patch. ?Tested on Linux/ia32 and Linux/Intel64.
> OK for trunk?
>
> Thanks.
>
>
> --
> H.J.
> ---
> gcc/
>
> 2009-04-01 ?H.J. Lu ?<hongjiu.lu@intel.com>
> ? ? ? ? ? ?Andrew Morrow ?<acm@google.com>
>
> ? ? ? ?PR c/36892
> ? ? ? ?* c-common.c (c_common_attribute_table): Permit deprecated
> ? ? ? ?attribute to take an optional argument.
> ? ? ? ?(handle_deprecated_attribute): If the optional argument to
> ? ? ? ?__attribute__((deprecated)) is not a string ignore the attribute
> ? ? ? ?and emit a warning.
>
> ? ? ? ?* c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
> ? ? ? ?* c-typeck.c (build_component_ref): Likewise.
> ? ? ? ?(build_external_ref): Likewise.
>
> ? ? ? ?* toplev.c (warn_deprecated_use): Add an attribute argument.
> ? ? ? ?Emit the message associated with __attribute__((deprecated)).
>
> ? ? ? ?* toplev.h (warn_deprecated_use): Updated.
>
> ? ? ? ?* doc/extend.texi: Document new optional parameter to
> ? ? ? ?__attribute__((deprecated))
>
> gcc/cp/
>
> 2009-04-01 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? ? ?PR c/36892
> ? ? ? ?* call.c (build_call_a): Updated warn_deprecated_use call.
> ? ? ? ?(build_over_call): Likewise.
> ? ? ? ?* decl.c (grokdeclarator): Likewise.
> ? ? ? ?(grokparms): Likewise.
> ? ? ? ?* semantics.c (finish_id_expression): Likewise.
> ? ? ? ?* typeck.c (build_class_member_access_expr): Likewise.
> ? ? ? ?(finish_class_member_access_expr): Likewise.
>
> gcc/testsuite/
>
> 2009-04-01 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? ? ?PR c/36892
> ? ? ? ?* g++.dg/warn/deprecated-6.C: New.
> ? ? ? ?* gcc.dg/deprecated-4.c: Likewise.
> ? ? ? ?* gcc.dg/deprecated-5.c: Likewise.
> ? ? ? ?* gcc.dg/deprecated-6.c: Likewise.
>

PING.

-- 
H.J.


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