This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2 V2] gas/as.c: print input and output filenames when error


>>> On 09.08.18 at 12:21, <liezhi.yang@windriver.com> wrote:
> --- a/gas/as.c
> +++ b/gas/as.c
> @@ -1259,8 +1259,10 @@ main (int argc, char ** argv)
>  	      if (sib.st_ino == sob.st_ino && sib.st_ino != 0)
>  		{
>  		  /* Don't let as_fatal remove the output file!  */
> +		  saved_out_file_name = xstrdup (out_file_name);

Actually - why xstrdup()? And why to a global variable?

Jan



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]