X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-tic54x.c;h=3ed7933b56055e0c4bc4e5e43f805bc4c98fba59;hb=3b4dbbbf59aef4308bae6654bdc7968797504a3c;hp=1ff204be283c9f90546ba2eb0053ad2b18df5f0d;hpb=75c1920bb02f09534da55b98277a613b7cb430cc;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c index 1ff204be28..3ed7933b56 100644 --- a/gas/config/tc-tic54x.c +++ b/gas/config/tc-tic54x.c @@ -1876,10 +1876,10 @@ tic54x_set_default_include (int dot) if (!dot) { - char *curfile; + const char *curfile; unsigned lineno; - as_where (&curfile, &lineno); + curfile = as_where (&lineno); dir = strcpy (xmalloc (strlen (curfile) + 1), curfile); tmp = strrchr (dir, '/'); } @@ -5002,9 +5002,8 @@ tic54x_adjust_symtab (void) if (symbol_rootP == NULL || S_GET_STORAGE_CLASS (symbol_rootP) != C_FILE) { - char *filename; unsigned lineno; - as_where (&filename, &lineno); + const char * filename = as_where (&lineno); c_dot_file_symbol (filename, 0); } }