[Bug c/36892] Support __attribute__((deprecated(text string)))

2009-12-30 Thread hjl dot tools at gmail dot com


--- Comment #8 from hjl dot tools at gmail dot com  2009-12-31 05:55 ---
*** Bug 30063 has been marked as a duplicate of this bug. ***


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

 CC||bero at arklinux dot org


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



[Bug c/36892] Support __attribute__((deprecated(text string)))

2009-05-08 Thread hjl at gcc dot gnu dot org


--- Comment #6 from hjl at gcc dot gnu dot org  2009-05-08 18:45 ---
Subject: Bug 36892

Author: hjl
Date: Fri May  8 18:44:50 2009
New Revision: 147293

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147293
Log:
gcc/

2009-05-08  H.J. Lu  hongjiu...@intel.com
Andrew Morrow  a...@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-05-08  H.J. Lu  hongjiu...@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-05-08  H.J. Lu  hongjiu...@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.

Added:
trunk/gcc/testsuite/g++.dg/warn/deprecated-6.C
trunk/gcc/testsuite/gcc.dg/deprecated-4.c
trunk/gcc/testsuite/gcc.dg/deprecated-5.c
trunk/gcc/testsuite/gcc.dg/deprecated-6.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-decl.c
trunk/gcc/c-typeck.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/doc/extend.texi
trunk/gcc/testsuite/ChangeLog
trunk/gcc/toplev.c
trunk/gcc/toplev.h


-- 


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



[Bug c/36892] Support __attribute__((deprecated(text string)))

2009-05-08 Thread hjl dot tools at gmail dot com


--- Comment #7 from hjl dot tools at gmail dot com  2009-05-08 21:07 ---
Fixed.


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.5.0


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



[Bug c/36892] Support __attribute__((deprecated(text string)))

2009-05-05 Thread hjl dot tools at gmail dot com


--- Comment #5 from hjl dot tools at gmail dot com  2009-05-06 00:30 ---
The updated patch is at

http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00208.html


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

URL|http://gcc.gnu.org/ml/gcc-  |http://gcc.gnu.org/ml/gcc-
   |patches/2009-   |patches/2009-
   |04/msg00087.html|05/msg00208.html


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



[Bug c/36892] Support __attribute__((deprecated(text string)))

2009-04-16 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|4.5.0   |---


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



[Bug c/36892] Support __attribute__((deprecated(text string)))

2009-04-01 Thread hjl dot tools at gmail dot com


--- Comment #4 from hjl dot tools at gmail dot com  2009-04-01 16:46 ---
The updated patch is at

http://gcc.gnu.org/ml/gcc-patches/2009-04/msg00087.html


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

URL|http://gcc.gnu.org/ml/gcc-  |http://gcc.gnu.org/ml/gcc-
   |patches/2009-   |patches/2009-
   |02/msg00251.html|04/msg00087.html


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



[Bug c/36892] Support __attribute__((deprecated(text string)))

2009-03-28 Thread hjl dot tools at gmail dot com


--- Comment #3 from hjl dot tools at gmail dot com  2009-03-28 15:23 ---
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00251.html


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

 CC||iant at google dot com
URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2009-
   ||02/msg00251.html
   Target Milestone|--- |4.5.0


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



[Bug c/36892] Support __attribute__((deprecated(text string)))

2008-11-14 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2008-11-15 00:40 ---
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-11-15 00:40:43
   date||


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