This patch improves a comment and also adds the location tokenno to
possibly exported idents as they are encountered.
gcc/m2/ChangeLog:
* gm2-compiler/M2Comp.mod (Pass0CheckMod): Tidy up comment.
* gm2-compiler/P1Build.bnf (PossiblyExportIdent): Replace
PushTF with PushTFtok.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
IF NOT IsDefinitionForC (sym)
THEN
(* The implementation module is only useful if -fgen-module-list= is
- used (to gather all dependencies) although we do not insist upon finding the
- implementation module. *)
+ used (to gather all dependencies). Note that we do not insist
+ upon finding the implementation module. *)
LibName := NIL ;
IF FindSourceModFile (SymName, FileName, LibName)
THEN
nothing: CARDINAL ;
BEGIN
AddNameToScope(makekey(currentstring)) ;
- PushTF(makekey(currentstring), identtok) ;
+ PushTFtok(makekey(currentstring), identtok, GetTokenNo()) ;
CheckExplicitExported ;
IF NOT IsAutoPushOn()
THEN