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]

Re: PATCH: PR c/36892: Support __attribute__((deprecated("text string")))


On Thu, May 7, 2009 at 10:04 PM, Andrew Pinski <pinskia@gmail.com> wrote:
>> + ?p->member1(1); ? ? ? ? ? ? ? ? ? ? ? /* { xxdg-warning "'member1' is deprecated" "" } */
>> + ?(*p).member1(2); ? ? ? ? ? ? ? ? ? ? /* { xxdg-warning "'member1' is deprecated" "" } */
>> + ?p->member2(1); ? ? ? ? ? ? ? ? ? ? ? /* { xxdg-warning "'member2' is deprecated" "" } */
>> + ?(*p).member2(2); ? ? ? ? ? ? ? ? ? ? /* { xxdg-warning "'member2' is deprecated" "" } */
>> + ?p->member3(p);
>> + ?(*p).member3(p);
>> + ?return f1(); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /* { xxdg-warning "'f1' is deprecated" "" } */
>
> Don't you mean to xfail these and not just disable them?
>

I copied it from deprecated.c, which is protected by __cplusplus
for some reason. I can remove the whole

#ifdef __cplusplus
#endif

block.


-- 
H.J.


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