diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-11-21 19:01:30 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-11-21 19:01:30 +0000 |
commit | e7ff57304d439e391a8926c860a5eecbf9e0685e (patch) | |
tree | 089a8cfbe3f70b8166f6991c275b05b12908212b | |
parent | 6aad068a7f0602a3855780bf2a880dcb692c0657 (diff) | |
download | gcc-e7ff57304d439e391a8926c860a5eecbf9e0685e.zip gcc-e7ff57304d439e391a8926c860a5eecbf9e0685e.tar.gz gcc-e7ff57304d439e391a8926c860a5eecbf9e0685e.tar.bz2 |
* system.h (strerror): Poison.
From-SVN: r167010
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/system.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 346d193..00bf1c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-11-21 Joseph Myers <joseph@codesourcery.com> + + * system.h (strerror): Poison. + 2010-11-21 Richard Henderson <rth@redhat.com> * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode diff --git a/gcc/system.h b/gcc/system.h index 42332b3..a6b0197 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -684,6 +684,12 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; #pragma GCC poison malloc realloc #endif +/* The %m format should be used when GCC's main diagnostic functions + supporting %m are available, and xstrerror from libiberty + otherwise. */ +#undef strerror + #pragma GCC poison strerror + /* Old target macros that have moved to the target hooks structure. */ #pragma GCC poison ASM_OPEN_PAREN ASM_CLOSE_PAREN \ FUNCTION_PROLOGUE FUNCTION_EPILOGUE \ |