Recently, working with a yacc grammar, I had the occasion to export YYDEBUG=1 to the environment. Running make then caused a spew of yydebug: messages to the console. These appear to emanate from ld(1).
To reproduce: $ export YYDEBUG=1 $ ld System info: $ ld --version: GNU ld version 2.15 Copyright 2002 Free Software Foundation, Inc. This program is free software; blah blah $ uname -a OpenBSD aemilia.chuck 5.0 GENERIC.MP#0 i386 Fix: Unknown. Somewhere a YFLAGS got the -t option set inadvertently, perhaps. Perhaps the culprit is in /usr/src/gnu/binutils/ld/ldgram.y, where this code exists: -------------------------------8<----------------------------- #include "mri.h" #include "ldctor.h" #include "ldlex.h" #ifndef YYDEBUG #define YYDEBUG 1 #endif static enum section_type sectype; -------------------------------8<----------------------------- When I last did a make build, YYDEBUG was unset in my environment. The little YYDEBUG stanza also occurs in the binutils-2.17 directory. Dave -- "If government had taken over the auto industry in 1920, today we'd all be driving Model-T cars -- and saying, 'If it weren't for the government, we'd have no cars at all.'" -- Harry Browne
