aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-26 02:14:30 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-26 02:14:30 +0000
commitff33a8c1675bbeba659f1d3a833f09dfe5365598 (patch)
treef3b1b85dfa459b4db8070e9b1f7a63489baad87f /ld/ldgram.y
parentc20c1bdf992a90db69c4abb73594b2ff58154ef6 (diff)
downloadgdb-ff33a8c1675bbeba659f1d3a833f09dfe5365598.zip
gdb-ff33a8c1675bbeba659f1d3a833f09dfe5365598.tar.gz
gdb-ff33a8c1675bbeba659f1d3a833f09dfe5365598.tar.bz2
* ldgram.y: Include ldlex.h after %token decls, for byacc.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index e3504f1..fe248ca 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -37,7 +37,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "ldmisc.h"
#include "ldmain.h"
#include "mri.h"
-#include "ldlex.h"
#define YYDEBUG 1
@@ -114,6 +113,10 @@ static int error_index;
%token FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL
%token INPUT_SCRIPT INPUT_MRI_SCRIPT INPUT_DEFSYM
+%{
+/* For byacc, this has to come after INPUT_SCRIPT et al. are defined. */
+#include "ldlex.h"
+%}
%%
file: