* config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and
authorSteve Chamberlain <sac@cygnus>
Wed, 19 Jan 1994 00:16:03 +0000 (00:16 +0000)
committerSteve Chamberlain <sac@cygnus>
Wed, 19 Jan 1994 00:16:03 +0000 (00:16 +0000)
C_FCN assume .val has been set to .

gas/config/obj-coffbfd.c

index 2e42c144f83c8d6a222196db968881654e000ca9..b648bb2d02e873699122dd81c5a6bdeaa4a4600e 100644 (file)
@@ -897,6 +897,7 @@ DEFUN (obj_coff_def, (what),
 
 unsigned int dim_index;
 
+
 static void
 obj_coff_endef (ignore)
      int ignore;
@@ -945,6 +946,9 @@ obj_coff_endef (ignore)
          SF_SET_PROCESS (last_line_symbol);
          function_lineoff = -1;
        }
+      /* Value is always set to . */
+      def_symbol_in_progress->sy_frag = frag_now;
+      S_SET_VALUE (def_symbol_in_progress, (valueT) frag_now_fix ());
       break;
 
 #ifdef C_AUTOARG
@@ -1474,7 +1478,7 @@ DEFUN_VOID (yank_symbols)
                                    (long) (S_GET_VALUE (symbolP) -
                                            S_GET_VALUE (last_functionP)));
                  SA_SET_SYM_ENDNDX (last_functionP, symbol_number);
-                 last_functionP = (symbolS *) 0;
+                last_functionP = (symbolS *) 0;
                }
            }
        }
@@ -2303,6 +2307,8 @@ obj_coff_lcomm (ignore)
   char *p;
 
   symbolS *symbolP;
+  s_lcomm(0);
+  return;
   name = input_line_pointer;
 
   c = get_symbol_end ();