From b47c42085628603e890a783b8d2a612d19f66396 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 20 Oct 2001 13:49:00 +0000 Subject: * ldgram.y (mri_script_command): Surround processing of INCLUDE with ldlex_script, ldlex_popstate. (ifile_p1): Likewise. * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the correct slot. (lex_push_file): Save current lineno to lineno_stack. Set lineno to 1. Don't BEGIN(SCRIPT). (lex_redirect): Similarly. * ldmain.c (main): Set yydebug non-zero if YYDEBUG. --- ld/ldmain.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ld/ldmain.c') diff --git a/ld/ldmain.c b/ld/ldmain.c index 578e34f..462e16a 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -196,6 +196,13 @@ main (argc, argv) xexit (1); } +#if YYDEBUG + { + extern int yydebug; + yydebug = 1; + } +#endif + /* Initialize the data about options. */ trace_files = trace_file_tries = version_printed = false; whole_archive = false; -- cgit v1.1