aboutsummaryrefslogtreecommitdiff
path: root/gcc/treelang
diff options
context:
space:
mode:
authorJames A. Morrison <phython@gcc.gnu.org>2005-02-01 15:18:30 +0000
committerJames A. Morrison <phython@gcc.gnu.org>2005-02-01 15:18:30 +0000
commit9646f1480d742ea9bc1fc0f91e69a385429319af (patch)
tree3ba9f7d83468e3f766a4a3e211063184dd9a774f /gcc/treelang
parent22f51792e37b88d526f03ea866ed1856e5a93546 (diff)
downloadgcc-9646f1480d742ea9bc1fc0f91e69a385429319af.zip
gcc-9646f1480d742ea9bc1fc0f91e69a385429319af.tar.gz
gcc-9646f1480d742ea9bc1fc0f91e69a385429319af.tar.bz2
(lex.l): Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
2005-02-01 James A. Morrison <phython@gcc.gnu.org> * (lex.l): Undef LINEMAP_POSITION_FOR_COLUMN before defining it. From-SVN: r94544
Diffstat (limited to 'gcc/treelang')
-rw-r--r--gcc/treelang/ChangeLog4
-rw-r--r--gcc/treelang/lex.l5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog
index 33d633f..ff0d19c 100644
--- a/gcc/treelang/ChangeLog
+++ b/gcc/treelang/ChangeLog
@@ -1,5 +1,9 @@
2005-02-01 James A. Morrison <phython@gcc.gnu.org>
+ * (lex.l): Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
+
+2005-02-01 James A. Morrison <phython@gcc.gnu.org>
+
* parse.y: Reformat comments.
* treetree.c: Likewise.
* treetree.h: Likewise.
diff --git a/gcc/treelang/lex.l b/gcc/treelang/lex.l
index 71268ff..188c480 100644
--- a/gcc/treelang/lex.l
+++ b/gcc/treelang/lex.l
@@ -4,8 +4,8 @@
---------------------------------------------------------------------
- Copyright (C) 1986, 87, 89, 92-96, 1997, 1999, 2000, 2001, 2002, 2003, 2004
- Free Software Foundation, Inc.
+ Copyright (C) 1986, 87, 89, 92-96, 1997, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -61,6 +61,7 @@ static void dump_lex_value (int lexret);
#define NOT_RETURN(a) {update_yylval (a); if (option_lexer_trace)\
{fprintf (stderr, "\nlexer swallowing"); dump_lex_value (a);}}
#ifndef USE_MAPPED_LOCATION
+#undef LINEMAP_POSITION_FOR_COLUMN
#define LINEMAP_POSITION_FOR_COLUMN(INPUT, LINETABLE, COL)
#endif
%}