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
1daa5dd8
Commit
1daa5dd8
authored
Oct 12, 1994
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast pointer arguments to bzero and bcopy to char *.
From-SVN: r8262
parent
1c69865d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
14 deletions
+16
-14
gcc/cp/call.c
+3
-3
gcc/cp/class.c
+5
-5
gcc/cp/pt.c
+3
-3
gcc/cp/search.c
+1
-1
gcc/cp/spew.c
+4
-2
No files found.
gcc/cp/call.c
View file @
1daa5dd8
...
@@ -718,7 +718,7 @@ compute_conversion_costs (function, tta_in, cp, arglen)
...
@@ -718,7 +718,7 @@ compute_conversion_costs (function, tta_in, cp, arglen)
cp
->
h
.
code
=
0
;
cp
->
h
.
code
=
0
;
cp
->
h
.
distance
=
0
;
cp
->
h
.
distance
=
0
;
cp
->
h
.
int_penalty
=
0
;
cp
->
h
.
int_penalty
=
0
;
bzero
(
cp
->
harshness
,
bzero
(
(
char
*
)
cp
->
harshness
,
(
cp
->
h_len
+
1
)
*
sizeof
(
struct
harshness_code
));
(
cp
->
h_len
+
1
)
*
sizeof
(
struct
harshness_code
));
while
(
ttf
&&
tta
)
while
(
ttf
&&
tta
)
...
@@ -2059,7 +2059,7 @@ build_method_call (instance, name, parms, basetype_path, flags)
...
@@ -2059,7 +2059,7 @@ build_method_call (instance, name, parms, basetype_path, flags)
candidates
candidates
=
(
struct
candidate
*
)
alloca
((
ever_seen
+
1
)
=
(
struct
candidate
*
)
alloca
((
ever_seen
+
1
)
*
sizeof
(
struct
candidate
));
*
sizeof
(
struct
candidate
));
bzero
(
candidates
,
(
ever_seen
+
1
)
*
sizeof
(
struct
candidate
));
bzero
(
(
char
*
)
candidates
,
(
ever_seen
+
1
)
*
sizeof
(
struct
candidate
));
cp
=
candidates
;
cp
=
candidates
;
len
=
list_length
(
parms
);
len
=
list_length
(
parms
);
ever_seen
=
0
;
ever_seen
=
0
;
...
@@ -2775,7 +2775,7 @@ build_overload_call_real (fnname, parms, flags, final_cp, buildxxx)
...
@@ -2775,7 +2775,7 @@ build_overload_call_real (fnname, parms, flags, final_cp, buildxxx)
{
{
candidates
candidates
=
(
struct
candidate
*
)
alloca
((
length
+
1
)
*
sizeof
(
struct
candidate
));
=
(
struct
candidate
*
)
alloca
((
length
+
1
)
*
sizeof
(
struct
candidate
));
bzero
(
candidates
,
(
length
+
1
)
*
sizeof
(
struct
candidate
));
bzero
(
(
char
*
)
candidates
,
(
length
+
1
)
*
sizeof
(
struct
candidate
));
}
}
cp
=
candidates
;
cp
=
candidates
;
...
...
gcc/cp/class.c
View file @
1daa5dd8
...
@@ -942,7 +942,7 @@ add_method (type, fields, method)
...
@@ -942,7 +942,7 @@ add_method (type, fields, method)
*
sizeof
(
char
*
)
*
sizeof
(
char
*
)
+
len
*
sizeof
(
tree
));
+
len
*
sizeof
(
tree
));
tmp_vec
=
(
tree
)
obstack_base
(
ob
);
tmp_vec
=
(
tree
)
obstack_base
(
ob
);
bcopy
(
method_vec
,
tmp_vec
,
bcopy
(
(
char
*
)
method_vec
,
(
char
*
)
tmp_vec
,
(
sizeof
(
struct
tree_common
)
(
sizeof
(
struct
tree_common
)
+
tree_code_length
[(
int
)
TREE_VEC
]
*
sizeof
(
char
*
)
+
tree_code_length
[(
int
)
TREE_VEC
]
*
sizeof
(
char
*
)
+
(
len
-
1
)
*
sizeof
(
tree
)));
+
(
len
-
1
)
*
sizeof
(
tree
)));
...
@@ -1338,7 +1338,7 @@ finish_base_struct (t, b, t_binfo)
...
@@ -1338,7 +1338,7 @@ finish_base_struct (t, b, t_binfo)
tree
binfos
=
BINFO_BASETYPES
(
t_binfo
);
tree
binfos
=
BINFO_BASETYPES
(
t_binfo
);
int
i
,
n_baseclasses
=
binfos
?
TREE_VEC_LENGTH
(
binfos
)
:
0
;
int
i
,
n_baseclasses
=
binfos
?
TREE_VEC_LENGTH
(
binfos
)
:
0
;
int
first_vfn_base_index
=
-
1
;
int
first_vfn_base_index
=
-
1
;
bzero
(
b
,
sizeof
(
struct
base_info
));
bzero
(
(
char
*
)
b
,
sizeof
(
struct
base_info
));
for
(
i
=
0
;
i
<
n_baseclasses
;
i
++
)
for
(
i
=
0
;
i
<
n_baseclasses
;
i
++
)
{
{
...
@@ -1680,8 +1680,8 @@ finish_struct_bits (t, max_has_virtual)
...
@@ -1680,8 +1680,8 @@ finish_struct_bits (t, max_has_virtual)
tree
*
tmp
;
tree
*
tmp
;
int
i
;
int
i
;
bzero
(
first_conversions
,
sizeof
(
first_conversions
));
bzero
(
(
char
*
)
first_conversions
,
sizeof
(
first_conversions
));
bzero
(
last_conversions
,
sizeof
(
last_conversions
));
bzero
(
(
char
*
)
last_conversions
,
sizeof
(
last_conversions
));
for
(
tmp
=
&
TREE_VEC_ELT
(
method_vec
,
1
);
for
(
tmp
=
&
TREE_VEC_ELT
(
method_vec
,
1
);
tmp
!=
TREE_VEC_END
(
method_vec
);
tmp
+=
1
)
tmp
!=
TREE_VEC_END
(
method_vec
);
tmp
+=
1
)
{
{
...
@@ -2057,7 +2057,7 @@ duplicate_tag_error (t)
...
@@ -2057,7 +2057,7 @@ duplicate_tag_error (t)
int
interface_only
=
CLASSTYPE_INTERFACE_ONLY
(
t
);
int
interface_only
=
CLASSTYPE_INTERFACE_ONLY
(
t
);
int
interface_unknown
=
CLASSTYPE_INTERFACE_UNKNOWN
(
t
);
int
interface_unknown
=
CLASSTYPE_INTERFACE_UNKNOWN
(
t
);
bzero
(
TYPE_LANG_SPECIFIC
(
t
),
sizeof
(
struct
lang_type
));
bzero
(
(
char
*
)
TYPE_LANG_SPECIFIC
(
t
),
sizeof
(
struct
lang_type
));
BINFO_BASETYPES
(
binfo
)
=
NULL_TREE
;
BINFO_BASETYPES
(
binfo
)
=
NULL_TREE
;
CLASSTYPE_AS_LIST
(
t
)
=
as_list
;
CLASSTYPE_AS_LIST
(
t
)
=
as_list
;
...
...
gcc/cp/pt.c
View file @
1daa5dd8
...
@@ -1481,7 +1481,7 @@ tsubst (t, args, nargs, in_decl)
...
@@ -1481,7 +1481,7 @@ tsubst (t, args, nargs, in_decl)
{
{
int
len
=
TREE_VEC_LENGTH
(
t
),
need_new
=
0
,
i
;
int
len
=
TREE_VEC_LENGTH
(
t
),
need_new
=
0
,
i
;
tree
*
elts
=
(
tree
*
)
alloca
(
len
*
sizeof
(
tree
));
tree
*
elts
=
(
tree
*
)
alloca
(
len
*
sizeof
(
tree
));
bzero
(
elts
,
len
*
sizeof
(
tree
));
bzero
(
(
char
*
)
elts
,
len
*
sizeof
(
tree
));
for
(
i
=
0
;
i
<
len
;
i
++
)
for
(
i
=
0
;
i
<
len
;
i
++
)
{
{
...
@@ -1930,7 +1930,7 @@ reinit_parse_for_template (yychar, d1, d2)
...
@@ -1930,7 +1930,7 @@ reinit_parse_for_template (yychar, d1, d2)
if
(
!
template_info
)
if
(
!
template_info
)
{
{
template_info
=
(
struct
template_info
*
)
permalloc
(
sizeof
(
struct
template_info
));
template_info
=
(
struct
template_info
*
)
permalloc
(
sizeof
(
struct
template_info
));
bzero
(
template_info
,
sizeof
(
struct
template_info
));
bzero
(
(
char
*
)
template_info
,
sizeof
(
struct
template_info
));
DECL_TEMPLATE_INFO
(
d2
)
=
template_info
;
DECL_TEMPLATE_INFO
(
d2
)
=
template_info
;
}
}
template_info
->
filename
=
input_filename
;
template_info
->
filename
=
input_filename
;
...
@@ -1980,7 +1980,7 @@ type_unification (tparms, targs, parms, args, nsubsts, subr)
...
@@ -1980,7 +1980,7 @@ type_unification (tparms, targs, parms, args, nsubsts, subr)
my_friendly_assert
(
ntparms
>
0
,
292
);
my_friendly_assert
(
ntparms
>
0
,
292
);
if
(
!
subr
)
if
(
!
subr
)
bzero
(
targs
,
sizeof
(
tree
)
*
ntparms
);
bzero
(
(
char
*
)
targs
,
sizeof
(
tree
)
*
ntparms
);
while
(
parms
while
(
parms
&&
parms
!=
void_list_node
&&
parms
!=
void_list_node
...
...
gcc/cp/search.c
View file @
1daa5dd8
...
@@ -236,7 +236,7 @@ my_new_memoized_entry (chain)
...
@@ -236,7 +236,7 @@ my_new_memoized_entry (chain)
struct
memoized_entry
*
p
=
struct
memoized_entry
*
p
=
(
struct
memoized_entry
*
)
obstack_alloc
(
&
type_obstack_entries
,
(
struct
memoized_entry
*
)
obstack_alloc
(
&
type_obstack_entries
,
sizeof
(
struct
memoized_entry
));
sizeof
(
struct
memoized_entry
));
bzero
(
p
,
sizeof
(
struct
memoized_entry
));
bzero
(
(
char
*
)
p
,
sizeof
(
struct
memoized_entry
));
MEMOIZED_CHAIN
(
p
)
=
chain
;
MEMOIZED_CHAIN
(
p
)
=
chain
;
MEMOIZED_UID
(
p
)
=
++
my_memoized_entry_counter
;
MEMOIZED_UID
(
p
)
=
++
my_memoized_entry_counter
;
return
p
;
return
p
;
...
...
gcc/cp/spew.c
View file @
1daa5dd8
...
@@ -202,8 +202,10 @@ shift_tokens (n)
...
@@ -202,8 +202,10 @@ shift_tokens (n)
*
sizeof
(
struct
token
));
*
sizeof
(
struct
token
));
/* This move does not rely on the system being able to handle
/* This move does not rely on the system being able to handle
overlapping moves. */
overlapping moves. */
bcopy
(
nth_token
(
0
),
tmp
,
old_token_count
*
sizeof
(
struct
token
));
bcopy
((
char
*
)
nth_token
(
0
),
tmp
,
bcopy
(
tmp
,
nth_token
(
n
),
old_token_count
*
sizeof
(
struct
token
));
old_token_count
*
sizeof
(
struct
token
));
bcopy
(
tmp
,
(
char
*
)
nth_token
(
n
),
old_token_count
*
sizeof
(
struct
token
));
}
}
first_token
=
0
;
first_token
=
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