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
77d3109b
Commit
77d3109b
authored
Jan 10, 2003
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Jan 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* class.c, gjavah.c, parse.y, verify.c: Don't use PTR.
From-SVN: r61137
parent
17211ab5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
19 deletions
+23
-19
gcc/java/ChangeLog
+4
-0
gcc/java/class.c
+2
-2
gcc/java/gjavah.c
+5
-5
gcc/java/parse.y
+9
-9
gcc/java/verify.c
+3
-3
No files found.
gcc/java/ChangeLog
View file @
77d3109b
2003-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* class.c, gjavah.c, parse.y, verify.c: Don't use PTR.
2003-01-09 Geoffrey Keating <geoffk@apple.com>
2003-01-09 Geoffrey Keating <geoffk@apple.com>
Merge from pch-branch:
Merge from pch-branch:
...
...
gcc/java/class.c
View file @
77d3109b
...
@@ -2314,7 +2314,7 @@ java_treetreehash_new (ht, t)
...
@@ -2314,7 +2314,7 @@ java_treetreehash_new (ht, t)
htab_t
ht
;
htab_t
ht
;
tree
t
;
tree
t
;
{
{
PTR
*
e
;
void
*
*
e
;
struct
treetreehash_entry
*
tthe
;
struct
treetreehash_entry
*
tthe
;
hashval_t
hv
=
JAVA_TREEHASHHASH_H
(
t
);
hashval_t
hv
=
JAVA_TREEHASHHASH_H
(
t
);
...
@@ -2323,7 +2323,7 @@ java_treetreehash_new (ht, t)
...
@@ -2323,7 +2323,7 @@ java_treetreehash_new (ht, t)
{
{
tthe
=
(
*
ht
->
alloc_f
)
(
1
,
sizeof
(
*
tthe
));
tthe
=
(
*
ht
->
alloc_f
)
(
1
,
sizeof
(
*
tthe
));
tthe
->
key
=
t
;
tthe
->
key
=
t
;
*
e
=
(
PTR
)
tthe
;
*
e
=
tthe
;
}
}
else
else
tthe
=
(
struct
treetreehash_entry
*
)
*
e
;
tthe
=
(
struct
treetreehash_entry
*
)
*
e
;
...
...
gcc/java/gjavah.c
View file @
77d3109b
...
@@ -1128,8 +1128,8 @@ throwable_p (clname)
...
@@ -1128,8 +1128,8 @@ throwable_p (clname)
if
(
!
init_done
)
if
(
!
init_done
)
{
{
PTR
*
slot
;
void
*
*
slot
;
const
unsigned
char
*
str
;
unsigned
char
*
str
;
/* Self-initializing. The cost of this really doesn't matter.
/* Self-initializing. The cost of this really doesn't matter.
We also don't care about freeing these, either. */
We also don't care about freeing these, either. */
...
@@ -1141,11 +1141,11 @@ throwable_p (clname)
...
@@ -1141,11 +1141,11 @@ throwable_p (clname)
/* Make sure the root classes show up in the tables. */
/* Make sure the root classes show up in the tables. */
str
=
xstrdup
(
"java.lang.Throwable"
);
str
=
xstrdup
(
"java.lang.Throwable"
);
slot
=
htab_find_slot
(
throw_hash
,
str
,
INSERT
);
slot
=
htab_find_slot
(
throw_hash
,
str
,
INSERT
);
*
slot
=
(
PTR
)
str
;
*
slot
=
str
;
str
=
xstrdup
(
"java.lang.Object"
);
str
=
xstrdup
(
"java.lang.Object"
);
slot
=
htab_find_slot
(
non_throw_hash
,
str
,
INSERT
);
slot
=
htab_find_slot
(
non_throw_hash
,
str
,
INSERT
);
*
slot
=
(
PTR
)
str
;
*
slot
=
str
;
init_done
=
1
;
init_done
=
1
;
}
}
...
@@ -1167,7 +1167,7 @@ throwable_p (clname)
...
@@ -1167,7 +1167,7 @@ throwable_p (clname)
else
else
{
{
JCF
jcf
;
JCF
jcf
;
PTR
*
slot
;
void
*
*
slot
;
unsigned
char
*
super
,
*
tmp
;
unsigned
char
*
super
,
*
tmp
;
int
super_length
=
-
1
;
int
super_length
=
-
1
;
const
char
*
classfile_name
=
find_class
(
current
,
strlen
(
current
),
const
char
*
classfile_name
=
find_class
(
current
,
strlen
(
current
),
...
...
gcc/java/parse.y
View file @
77d3109b
...
@@ -326,8 +326,8 @@ static tree build_dot_class_method_invocation (tree);
...
@@ -326,8 +326,8 @@ static tree build_dot_class_method_invocation (tree);
static
void
create_new_parser_context
(
int
);
static
void
create_new_parser_context
(
int
);
static
tree
maybe_build_class_init_for_field
(
tree
,
tree
);
static
tree
maybe_build_class_init_for_field
(
tree
,
tree
);
static
int
attach_init_test_initialization_flags
(
PTR
*,
PTR
);
static
int
attach_init_test_initialization_flags
(
void
**,
void
*
);
static
int
emit_test_initialization
(
PTR
*,
PTR
);
static
int
emit_test_initialization
(
void
**,
void
*
);
static
char
*
string_convert_int_cst
(
tree
);
static
char
*
string_convert_int_cst
(
tree
);
...
@@ -2663,11 +2663,11 @@ create_new_parser_context (copy_from_previous)
...
@@ -2663,11 +2663,11 @@ create_new_parser_context (copy_from_previous)
new = (struct parser_ctxt *) ggc_alloc (sizeof (struct parser_ctxt));
new = (struct parser_ctxt *) ggc_alloc (sizeof (struct parser_ctxt));
if (copy_from_previous)
if (copy_from_previous)
{
{
memcpy (
(PTR)new, (PTR)
ctxp, sizeof (struct parser_ctxt));
memcpy (
new,
ctxp, sizeof (struct parser_ctxt));
new->saved_data_ctx = 1;
new->saved_data_ctx = 1;
}
}
else
else
memset (
(PTR)
new, 0, sizeof (struct parser_ctxt));
memset (new, 0, sizeof (struct parser_ctxt));
new->next = ctxp;
new->next = ctxp;
ctxp = new;
ctxp = new;
...
@@ -7035,7 +7035,7 @@ register_package (name)
...
@@ -7035,7 +7035,7 @@ register_package (name)
tree name;
tree name;
{
{
static htab_t pht;
static htab_t pht;
PTR
*e;
void *
*e;
if (pht == NULL)
if (pht == NULL)
pht = htab_create (50, htab_hash_pointer, htab_eq_pointer, NULL);
pht = htab_create (50, htab_hash_pointer, htab_eq_pointer, NULL);
...
@@ -16191,8 +16191,8 @@ init_src_parse ()
...
@@ -16191,8 +16191,8 @@ init_src_parse ()
static
int
static
int
attach_init_test_initialization_flags
(
entry
,
ptr
)
attach_init_test_initialization_flags
(
entry
,
ptr
)
PTR
*
entry
;
void
*
*
entry
;
PTR
ptr
;
void
*
ptr
;
{
{
tree
block
=
(
tree
)
ptr
;
tree
block
=
(
tree
)
ptr
;
struct
treetreehash_entry
*
ite
=
(
struct
treetreehash_entry
*)
*
entry
;
struct
treetreehash_entry
*
ite
=
(
struct
treetreehash_entry
*)
*
entry
;
...
@@ -16213,8 +16213,8 @@ attach_init_test_initialization_flags (entry, ptr)
...
@@ -16213,8 +16213,8 @@ attach_init_test_initialization_flags (entry, ptr)
static
int
static
int
emit_test_initialization
(
entry_p
,
info
)
emit_test_initialization
(
entry_p
,
info
)
PTR
*
entry_p
;
void
*
*
entry_p
;
PTR
info
;
void
*
info
;
{
{
tree
l
=
(
tree
)
info
;
tree
l
=
(
tree
)
info
;
tree
decl
,
init
;
tree
decl
,
init
;
...
...
gcc/java/verify.c
View file @
77d3109b
...
@@ -40,7 +40,7 @@ static void push_pending_label (tree);
...
@@ -40,7 +40,7 @@ static void push_pending_label (tree);
static
tree
merge_types
(
tree
,
tree
);
static
tree
merge_types
(
tree
,
tree
);
static
const
char
*
check_pending_block
(
tree
);
static
const
char
*
check_pending_block
(
tree
);
static
void
type_stack_dup
(
int
,
int
);
static
void
type_stack_dup
(
int
,
int
);
static
int
start_pc_cmp
(
const
PTR
,
const
PTR
);
static
int
start_pc_cmp
(
const
void
*
,
const
void
*
);
static
char
*
pop_argument_types
(
tree
);
static
char
*
pop_argument_types
(
tree
);
extern
int
stack_pointer
;
extern
int
stack_pointer
;
...
@@ -351,8 +351,8 @@ struct pc_index
...
@@ -351,8 +351,8 @@ struct pc_index
/* A helper that is used when sorting exception ranges. */
/* A helper that is used when sorting exception ranges. */
static
int
static
int
start_pc_cmp
(
xp
,
yp
)
start_pc_cmp
(
xp
,
yp
)
const
PTR
xp
;
const
void
*
xp
;
const
PTR
yp
;
const
void
*
yp
;
{
{
const
struct
pc_index
*
x
=
(
const
struct
pc_index
*
)
xp
;
const
struct
pc_index
*
x
=
(
const
struct
pc_index
*
)
xp
;
const
struct
pc_index
*
y
=
(
const
struct
pc_index
*
)
yp
;
const
struct
pc_index
*
y
=
(
const
struct
pc_index
*
)
yp
;
...
...
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