public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36892] New: Support __attribute__((deprecated(.text string.)))
@ 2008-07-21 19:04 hjl dot tools at gmail dot com
2008-09-15 18:42 ` [Bug c/36892] Support __attribute__((deprecated("text string"))) hjl dot tools at gmail dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-07-21 19:04 UTC (permalink / raw)
To: gcc-bugs
MS provides
__declspec(deprecated("text string"))
while GCC doesn't support "text string". It will be nice
to support
__attribute__((deprecated("text string")))
--
Summary: Support __attribute__((deprecated(.text string.)))
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36892
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
@ 2008-09-15 18:42 ` hjl dot tools at gmail dot com
2008-11-15 0:42 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-09-15 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hjl dot tools at gmail dot com 2008-09-15 18:40 -------
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2008-09/msg01095.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36892
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
2008-09-15 18:42 ` [Bug c/36892] Support __attribute__((deprecated("text string"))) hjl dot tools at gmail dot com
@ 2008-11-15 0:42 ` pinskia at gcc dot gnu dot org
2009-03-28 15:23 ` hjl dot tools at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-15 0:42 UTC (permalink / raw)
To: gcc-bugs
------- 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|0000-00-00 00:00:00 |2008-11-15 00:40:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36892
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
2008-09-15 18:42 ` [Bug c/36892] Support __attribute__((deprecated("text string"))) hjl dot tools at gmail dot com
2008-11-15 0:42 ` pinskia at gcc dot gnu dot org
@ 2009-03-28 15:23 ` hjl dot tools at gmail dot com
2009-04-01 16:46 ` hjl dot tools at gmail dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-28 15:23 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2009-03-28 15:23 ` hjl dot tools at gmail dot com
@ 2009-04-01 16:46 ` hjl dot tools at gmail dot com
2009-04-16 19:07 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-04-01 16:46 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2009-04-01 16:46 ` hjl dot tools at gmail dot com
@ 2009-04-16 19:07 ` pinskia at gcc dot gnu dot org
2009-05-06 0:30 ` hjl dot tools at gmail dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-16 19:07 UTC (permalink / raw)
To: gcc-bugs
--
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2009-04-16 19:07 ` pinskia at gcc dot gnu dot org
@ 2009-05-06 0:30 ` hjl dot tools at gmail dot com
2009-05-08 18:45 ` hjl at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-06 0:30 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
` (5 preceding siblings ...)
2009-05-06 0:30 ` hjl dot tools at gmail dot com
@ 2009-05-08 18:45 ` hjl at gcc dot gnu dot org
2009-05-08 21:07 ` hjl dot tools at gmail dot com
2009-12-31 5:55 ` hjl dot tools at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-05-08 18:45 UTC (permalink / raw)
To: gcc-bugs
------- 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=gcc&view=rev&rev=147293
Log:
gcc/
2009-05-08 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-05-08 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-05-08 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.
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
` (6 preceding siblings ...)
2009-05-08 18:45 ` hjl at gcc dot gnu dot org
@ 2009-05-08 21:07 ` hjl dot tools at gmail dot com
2009-12-31 5:55 ` hjl dot tools at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-08 21:07 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/36892] Support __attribute__((deprecated("text string")))
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
` (7 preceding siblings ...)
2009-05-08 21:07 ` hjl dot tools at gmail dot com
@ 2009-12-31 5:55 ` hjl dot tools at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-12-31 5:55 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-12-31 5:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-21 19:04 [Bug c/36892] New: Support __attribute__((deprecated(.text string.))) hjl dot tools at gmail dot com
2008-09-15 18:42 ` [Bug c/36892] Support __attribute__((deprecated("text string"))) hjl dot tools at gmail dot com
2008-11-15 0:42 ` pinskia at gcc dot gnu dot org
2009-03-28 15:23 ` hjl dot tools at gmail dot com
2009-04-01 16:46 ` hjl dot tools at gmail dot com
2009-04-16 19:07 ` pinskia at gcc dot gnu dot org
2009-05-06 0:30 ` hjl dot tools at gmail dot com
2009-05-08 18:45 ` hjl at gcc dot gnu dot org
2009-05-08 21:07 ` hjl dot tools at gmail dot com
2009-12-31 5:55 ` hjl dot tools at gmail dot com
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).