X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fcond.c;h=824ba776c9816c64cd092e799720a77519c3af07;hb=3b4dbbbf59aef4308bae6654bdc7968797504a3c;hp=d99c1e0f149608cfe5c1bd11a1a66079b0728eec;hpb=75c1920bb02f09534da55b98277a613b7cb430cc;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/cond.c b/gas/cond.c index d99c1e0f14..824ba776c9 100644 --- a/gas/cond.c +++ b/gas/cond.c @@ -29,7 +29,7 @@ struct obstack cond_obstack; struct file_line { - char *file; + const char *file; unsigned int line; }; @@ -317,8 +317,8 @@ s_elseif (int arg) } else { - as_where (¤t_cframe->else_file_line.file, - ¤t_cframe->else_file_line.line); + current_cframe->else_file_line.file + = as_where (¤t_cframe->else_file_line.line); current_cframe->dead_tree |= !current_cframe->ignoring; current_cframe->ignoring = current_cframe->dead_tree; @@ -423,8 +423,8 @@ s_else (int arg ATTRIBUTE_UNUSED) } else { - as_where (¤t_cframe->else_file_line.file, - ¤t_cframe->else_file_line.line); + current_cframe->else_file_line.file + = as_where (¤t_cframe->else_file_line.line); current_cframe->ignoring = current_cframe->dead_tree | !current_cframe->ignoring; @@ -527,8 +527,8 @@ static void initialize_cframe (struct conditional_frame *cframe) { memset (cframe, 0, sizeof (*cframe)); - as_where (&cframe->if_file_line.file, - &cframe->if_file_line.line); + cframe->if_file_line.file + = as_where (&cframe->if_file_line.line); cframe->previous_cframe = current_cframe; cframe->dead_tree = current_cframe != NULL && current_cframe->ignoring; cframe->macro_nest = macro_nest;