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
4401b31c
Commit
4401b31c
authored
Aug 25, 1992
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add %U to give last %u name.
From-SVN: r1942
parent
ab78d4a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gcc/gcc.c
+6
-2
No files found.
gcc/gcc.c
View file @
4401b31c
...
...
@@ -205,6 +205,7 @@ or with constant text in a single argument.
concatenation of constant strings on the end, as in `%g.s'.
%g also has the same effect of %d.
%u like %g, but make the temporary file name unique.
%U returns the last file name generated with %u.
%d marks the argument containing or following the %d as a
temporary file name, so that that file will be deleted if CC exits
successfully. Unlike %g, this contributes no text to the argument.
...
...
@@ -2494,16 +2495,19 @@ do_spec_1 (spec, inswitch, soft_matched_part)
case
'g'
:
case
'u'
:
case
'U'
:
if
(
save_temps_flag
)
obstack_grow
(
&
obstack
,
input_basename
,
basename_length
);
else
{
obstack_grow
(
&
obstack
,
temp_filename
,
temp_filename_length
);
if
(
c
==
'u'
)
if
(
c
==
'u'
||
c
==
'U'
)
{
static
int
unique
;
char
buff
[
9
];
sprintf
(
buff
,
"%d"
,
++
unique
);
if
(
c
==
'u'
)
unique
++
;
sprintf
(
buff
,
"%d"
,
unique
);
obstack_grow
(
&
obstack
,
buff
,
strlen
(
buff
));
}
delete_this_arg
=
1
;
...
...
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