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
d5b79362
Commit
d5b79362
authored
Nov 17, 1997
by
Tom Tromey
Committed by
Jim Wilson
Nov 17, 1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
From Tom Tromey
* cccp.c (deps_output): Properly quote file names for make. From-SVN: r16555
parent
de1ea87a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
gcc/ChangeLog
+4
-0
gcc/cccp.c
+25
-5
No files found.
gcc/ChangeLog
View file @
d5b79362
Mon Nov 17 15:35:38 1997 Tom Tromey <tromey@cygnus.com>
* cccp.c (deps_output): Properly quote file names for make.
Mon Nov 17 13:21:40 1997 Jeffrey A Law (law@cygnus.com)
* t-h8300 (MULTILIB_EXCEPTIONS): Define.
...
...
gcc/cccp.c
View file @
d5b79362
...
...
@@ -9950,6 +9950,8 @@ deps_output (string, spacer)
int
spacer
;
{
int
size
=
strlen
(
string
);
int
i
;
char
*
p
;
if
(
size
==
0
)
return
;
...
...
@@ -9966,17 +9968,35 @@ deps_output (string, spacer)
spacer
=
0
;
}
if
(
deps_size
+
size
+
8
>
deps_allocated_size
)
{
deps_allocated_size
=
(
deps_size
+
size
+
50
)
*
2
;
if
(
deps_size
+
2
*
size
+
8
>
deps_allocated_size
)
{
deps_allocated_size
=
(
deps_size
+
2
*
size
+
50
)
*
2
;
deps_buffer
=
xrealloc
(
deps_buffer
,
deps_allocated_size
);
}
if
(
spacer
==
' '
)
{
deps_buffer
[
deps_size
++
]
=
' '
;
deps_column
++
;
}
bcopy
(
string
,
&
deps_buffer
[
deps_size
],
size
);
deps_size
+=
size
;
deps_column
+=
size
;
for
(
i
=
0
;
i
<
size
;
++
i
)
{
if
(
string
[
i
]
==
'$'
)
{
deps_buffer
[
deps_size
++
]
=
'$'
;
deps_column
++
;
}
else
{
p
=
strchr
(
"~[]*?()
\\
"
,
string
[
i
]);
if
(
p
!=
NULL
)
{
deps_buffer
[
deps_size
++
]
=
'\\'
;
deps_column
++
;
}
}
deps_buffer
[
deps_size
++
]
=
string
[
i
];
deps_column
++
;
}
if
(
spacer
==
':'
)
{
deps_buffer
[
deps_size
++
]
=
':'
;
deps_column
++
;
...
...
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