[PATCH][RFC] Add #pragma message ... to gcc/g++
H.J. Lu
hjl.tools@gmail.com
Sun Jul 20 17:44:00 GMT 2008
Hi,
While we are on it, we got a quest to have
__attribute__((deprecated(.text string.)))
MS provides
__declspec(deprecated(.text string.))
while GCC doesn't support (.text string.).
H.J.
On Fri, Jul 18, 2008 at 7:18 AM, Simon Baldwin <simonb@google.com> wrote:
> This patch adds '#pragma message ...' to gcc. This pragma is currently
> present in both ICC and MSVC, but not gcc, and the feature is occasionally
> requested by gcc users.
>
> This #pragma message implementation matches those of the other compilers as
> closely as possible, for best compatibility. In particular, the new message
> pragma is not prefixed with "GCC".
>
> Tested and confirmed with gcc and g++ build, bootstrap, and testsuite.
>
> Okay for trunk? Or, let the debate commence...
>
More information about the Gcc-patches
mailing list