Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
99107e86
Commit
99107e86
authored
Sep 28, 1993
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mips_output_filename): Quote special characters in file names.
From-SVN: r5494
parent
f40176b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
gcc/config/mips/mips.c
+10
-5
No files found.
gcc/config/mips/mips.c
View file @
99107e86
...
...
@@ -3508,7 +3508,9 @@ mips_output_filename (stream, name)
first_time
=
FALSE
;
SET_FILE_NUMBER
();
current_function_file
=
name
;
fprintf
(
stream
,
"
\t
.file
\t
%d
\"
%s
\"\n
"
,
num_source_filenames
,
name
);
fprintf
(
stream
,
"
\t
.file
\t
%d "
,
num_source_filenames
);
output_quoted_string
(
stream
,
name
);
fprintf
(
stream
,
"
\n
"
);
if
(
!
TARGET_GAS
&&
write_symbols
==
DBX_DEBUG
)
fprintf
(
stream
,
"
\t
#@stabs
\n
"
);
}
...
...
@@ -3516,8 +3518,9 @@ mips_output_filename (stream, name)
else
if
(
!
TARGET_GAS
&&
write_symbols
==
DBX_DEBUG
)
{
ASM_GENERATE_INTERNAL_LABEL
(
ltext_label_name
,
"Ltext"
,
0
);
fprintf
(
stream
,
"%s
\"
%s
\"
,%d,0,0,%s
\n
"
,
ASM_STABS_OP
,
name
,
N_SOL
,
&
ltext_label_name
[
1
]);
fprintf
(
stream
,
"%s "
,
ASM_STABS_OP
);
output_quoted_string
(
stream
,
name
);
fprintf
(
stream
,
",%d,0,0,%s
\n
"
,
N_SOL
,
&
ltext_label_name
[
1
]);
}
else
if
(
name
!=
current_function_file
...
...
@@ -3532,15 +3535,17 @@ mips_output_filename (stream, name)
warning
(
"MIPS ECOFF format does not allow changing filenames within functions with #line"
);
}
fprintf
(
stream
,
"
\t
#.file
\t
%d
\"
%s
\"\n
"
,
num_source_filenames
,
name
);
fprintf
(
stream
,
"
\t
#.file
\t
%d
"
,
num_source_filenames
);
}
else
{
SET_FILE_NUMBER
();
current_function_file
=
name
;
fprintf
(
stream
,
"
\t
.file
\t
%d
\"
%s
\"\n
"
,
num_source_filenames
,
name
);
fprintf
(
stream
,
"
\t
.file
\t
%d
"
,
num_source_filenames
);
}
output_quoted_string
(
stream
,
name
);
fprintf
(
stream
,
"
\n
"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment