[Bug c/43666] Add optional message to the deprecated attribute

2010-04-06 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2010-04-06 20:53 --- With GCC 4.5, it is: pr43666.c: In function ‘main’: pr43666.c:8:3: warning: ‘foo’ is deprecated (declared at pr43666.c:3): Use bar() instead So this is new in GCC 4.5 but not documented in changes.html. I will

[Bug c/43666] Add optional message to the deprecated attribute

2010-04-06 Thread ebassi at gmail dot com
--- Comment #2 from ebassi at gmail dot com 2010-04-06 14:36 --- sweet, thanks. just FYI, I tested it using: $ cat test-deprecated.c #include int foo (void) __attribute__((deprecated("Use bar() instead"))); int bar (void); int main (int argc, char *argv[]) { printf (

[Bug c/43666] Add optional message to the deprecated attribute

2010-04-06 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2010-04-06 14:16 --- This is already implemented in GCC 4.5 (which will be out soon) and perhaps in earlier versions (I cannot find this in any changes.html page up to 4.2). -- manu at gcc dot gnu dot org changed: What|R