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
ec83eb53
Commit
ec83eb53
authored
Aug 29, 2001
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Aug 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
From-SVN: r45274
parent
5965bbf8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
gcc/ChangeLog
+4
-0
gcc/genattrtab.c
+5
-13
No files found.
gcc/ChangeLog
View file @
ec83eb53
2001
-
08
-
29
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
genattrtab
.
c
(
attr_printf
)
:
Use
VA_OPEN
/
VA_FIXEDARG
/
VA_CLOSE
.
2001
-
08
-
29
Kazu
Hirata
<
kazu
@hxi
.
com
>
*
config
/
h8300
/
h8300
.
md
(
movsi_h8300hs
)
:
Make
it
64
-
bit
safe
.
...
...
gcc/genattrtab.c
View file @
ec83eb53
...
...
@@ -744,25 +744,17 @@ attr_rtx VPARAMS ((enum rtx_code code, ...))
char
*
attr_printf
VPARAMS
((
register
int
len
,
const
char
*
fmt
,
...))
{
#ifndef ANSI_PROTOTYPES
register
int
len
;
const
char
*
fmt
;
#endif
va_list
p
;
char
str
[
256
];
VA_START
(
p
,
fmt
);
VA_OPEN
(
p
,
fmt
);
VA_FIXEDARG
(
p
,
int
,
len
);
VA_FIXEDARG
(
p
,
const
char
*
,
fmt
);
#ifndef ANSI_PROTOTYPES
len
=
va_arg
(
p
,
int
);
fmt
=
va_arg
(
p
,
const
char
*
);
#endif
if
(
len
>
255
)
/* leave room for \0 */
if
(
len
>
(
sizeof
(
str
)
-
1
))
/* leave room for \0 */
abort
();
vsprintf
(
str
,
fmt
,
p
);
va_end
(
p
);
VA_CLOSE
(
p
);
return
attr_string
(
str
,
strlen
(
str
));
}
...
...
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