* config/tc-dvp.h (md_end): Define.
authorDoug Evans <dje@google.com>
Thu, 10 Dec 1998 01:19:52 +0000 (01:19 +0000)
committerDoug Evans <dje@google.com>
Thu, 10 Dec 1998 01:19:52 +0000 (01:19 +0000)
* config/tc-dvp.c (dvp_end): New function.
Bring over from sky-980617-branch.

gas/ChangeLog
gas/config/tc-dvp.c

index 25e3d53b175fa6210e2f33943d577a34ca2511f1..4e1570688a45439f96f6a2d32217b6274070be53 100644 (file)
@@ -1,3 +1,12 @@
+start-sanitize-sky
+Wed Dec  9 17:06:48 1998  Doug Evans  <devans@canuck.cygnus.com>
+
+       Tue Oct 13 14:06:18 1998  Doug Evans  <devans@canuck.cygnus.com>
+
+       * config/tc-dvp.h (md_end): Define.
+       * config/tc-dvp.c (dvp_end): New function.
+
+end-sanitize-sky
 start-sanitize-r5900
 Wed Dec  9 12:29:23 1998  Jeffrey A Law  (law@cygnus.com)
 
index 68f0d902f13bfdb8871348ee14ec5b637fde2645..7df6d663d40cf7c17c08d6fcd0a968abe66fdae8 100644 (file)
@@ -1532,6 +1532,20 @@ dvp_after_pass_hook ()
 #endif
 }
 
+/* Called after parsing all files via md_end.  */
+
+void
+dvp_end ()
+{
+  /* Check for missing .EndMpg, etc.  */
+  if (CUR_ASM_STATE == ASM_MPG)
+    as_bad ("missing `.endmpg'");
+  else if (CUR_ASM_STATE == ASM_DIRECT)
+    as_bad ("missing `.enddirect'");
+  else if (CUR_ASM_STATE == ASM_UNPACK)
+    as_bad ("missing `.endunpack'");
+}
+
 /* Called via tc_frob_label when a label is defined.  */
 
 void