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
b044e9d5
Commit
b044e9d5
authored
Mar 27, 2001
by
Neil Booth
Committed by
Neil Booth
Mar 27, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cppmacro.c (stringify_arg): Null terminate strings.
From-SVN: r40880
parent
0b29309a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/ChangeLog
+4
-0
gcc/cppmacro.c
+4
-2
No files found.
gcc/ChangeLog
View file @
b044e9d5
2001-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
* cppmacro.c (stringify_arg): Null terminate strings.
2001-03-27 Zack Weinberg <zackw@stanford.edu>
* config.gcc (m68hc11-*-*, m68hc12-*-*): Convert to new tm.h
...
...
gcc/cppmacro.c
View file @
b044e9d5
...
...
@@ -296,7 +296,7 @@ stringify_arg (pfile, arg)
if
(
escape_it
)
/* Worst case is each char is octal. */
len
*=
4
;
len
++
;
/* Room for initial space
. */
len
+=
2
;
/* Room for initial space and final NUL
. */
dest
=
&
start
[
total_len
];
if
(
dest
+
len
>
POOL_LIMIT
(
pool
))
...
...
@@ -334,7 +334,9 @@ stringify_arg (pfile, arg)
total_len
--
;
}
POOL_COMMIT
(
pool
,
total_len
);
/* Null terminate, and commit the memory. */
start
[
total_len
]
=
'\0'
;
POOL_COMMIT
(
pool
,
total_len
+
1
);
arg
->
stringified
=
xnew
(
cpp_token
);
arg
->
stringified
->
flags
=
0
;
...
...
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