* system.h (loc_t): Poison.
authorDavid Edelsohn <dje.gcc@gmail.com>
Mon, 5 Nov 2012 00:20:21 +0000 (00:20 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 5 Nov 2012 00:20:21 +0000 (19:20 -0500)
From-SVN: r193150

gcc/ChangeLog
gcc/system.h

index cf532f2..09f1ddf 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-05  David Edelsohn  <dje.gcc@gmail.com>
+
+       * system.h (loc_t): Poison.
+
 2012-11-05  Marc Glisse  <marc.glisse@inria.fr>
 
        * fold-const.c (fold_unary_loc): Disable conversion optimization
index ed36bae..5d8e520 100644 (file)
@@ -774,6 +774,11 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
 #undef strerror
  #pragma GCC poison strerror
 
+/* loc_t is defined on some systems and too inviting for some
+   programmers to avoid.  */
+#undef loc_t
+ #pragma GCC poison loc_t
+
 /* Old target macros that have moved to the target hooks structure.  */
  #pragma GCC poison ASM_OPEN_PAREN ASM_CLOSE_PAREN                     \
        FUNCTION_PROLOGUE FUNCTION_EPILOGUE                             \