From: Ian Lance Taylor Date: Thu, 20 Feb 1997 19:12:05 +0000 (+0000) Subject: * config/obj-coff.c (obj_coff_ln [both versions]): Call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64c5df8d21f8c5feffea743c6fe582fb5f6d8c62;p=binutils-gdb.git * config/obj-coff.c (obj_coff_ln [both versions]): Call new_logical_line. PR 11725. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 1c2f3c0b30e..e29fd1f9d4a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Thu Feb 20 13:56:00 1997 Ian Lance Taylor + * config/obj-coff.c (obj_coff_ln [both versions]): Call + new_logical_line. + * config/tc-arm.c (fix_new_arm): Use make_expr_symbol to handle a complex expression. diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 7a2b6de093b..93ac0ad592c 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -410,6 +410,9 @@ obj_coff_ln (appline) add_lineno (frag_now, frag_now_fix (), l); } + if (appline) + new_logical_line ((char *) NULL, l - 1); + #ifndef NO_LISTING { extern int listing; @@ -473,6 +476,9 @@ obj_coff_def (what) symbol_name_length = strlen (symbol_name); symbol_name_copy = xmalloc (symbol_name_length + 1); strcpy (symbol_name_copy, symbol_name); +#ifdef tc_canonicalize_symbol_name + symbol_name_copy = tc_canonicalize_symbol_name (symbol_name_copy); +#endif /* Initialize the new symbol */ def_symbol_in_progress = symbol_make (symbol_name_copy); @@ -785,6 +791,10 @@ obj_coff_tag (ignore) symbol_name = input_line_pointer; name_end = get_symbol_end (); +#ifdef tc_canonicalize_symbol_name + symbol_name = tc_canonicalize_symbol_name (symbol_name); +#endif + /* Assume that the symbol referred to by .tag is always defined. This was a bad assumption. I've added find_or_make. xoxorich. */ SA_SET_SYM_TAGNDX (def_symbol_in_progress, @@ -838,6 +848,9 @@ obj_coff_val (ignore) char *symbol_name = input_line_pointer; char name_end = get_symbol_end (); +#ifdef tc_canonicalize_symbol_name + symbol_name = tc_canonicalize_symbol_name (symbol_name); +#endif if (!strcmp (symbol_name, ".")) { def_symbol_in_progress->sy_frag = frag_now; @@ -2028,6 +2041,10 @@ obj_coff_ln (appline) l = get_absolute_expression (); c_line_new (0, frag_now_fix (), l, frag_now); + + if (appline) + new_logical_line ((char *) NULL, l - 1); + #ifndef NO_LISTING { extern int listing; @@ -2089,6 +2106,9 @@ obj_coff_def (what) symbol_name_length = strlen (symbol_name); symbol_name_copy = xmalloc (symbol_name_length + 1); strcpy (symbol_name_copy, symbol_name); +#ifdef tc_canonicalize_symbol_name + symbol_name_copy = tc_canonicalize_symbol_name (symbol_name_copy); +#endif /* Initialize the new symbol */ #ifdef STRIP_UNDERSCORE @@ -2427,6 +2447,9 @@ obj_coff_tag (ignore) S_SET_NUMBER_AUXILIARY (def_symbol_in_progress, 1); symbol_name = input_line_pointer; name_end = get_symbol_end (); +#ifdef tc_canonicalize_symbol_name + symbol_name = tc_canonicalize_symbol_name (symbol_name); +#endif /* Assume that the symbol referred to by .tag is always defined. This was a bad assumption. I've added find_or_make. xoxorich. */ @@ -2481,6 +2504,10 @@ obj_coff_val (ignore) char *symbol_name = input_line_pointer; char name_end = get_symbol_end (); +#ifdef tc_canonicalize_symbol_name + symbol_name = tc_canonicalize_symbol_name (symbol_name); +#endif + if (!strcmp (symbol_name, ".")) { def_symbol_in_progress->sy_frag = frag_now;