(end_final): Store full path name in .d file not just the filename.
From-SVN: r7745
This commit is contained in:
parent
78221d63e7
commit
67e23d2f5c
10
gcc/final.c
10
gcc/final.c
@ -378,9 +378,13 @@ end_final (filename)
|
||||
compatibility. */
|
||||
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LPBX", 1);
|
||||
{
|
||||
int len = strlen (filename);
|
||||
char *data_file = (char *) alloca (len + 3);
|
||||
strcpy (data_file, filename);
|
||||
char *cwd = getpwd ();
|
||||
int len = strlen (filename) + strlen (cwd) + 1;
|
||||
char *data_file = (char *) alloca (len + 4);
|
||||
|
||||
strcpy (data_file, cwd);
|
||||
strcat (data_file, "/");
|
||||
strcat (data_file, filename);
|
||||
strip_off_ending (data_file, len);
|
||||
strcat (data_file, ".d");
|
||||
assemble_string (data_file, strlen (data_file) + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user