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
2afd35b3
Commit
2afd35b3
authored
Mar 15, 2006
by
Tom Tromey
Committed by
Tom Tromey
Mar 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parse.y (analyze_clinit_body): Ignore empty statements.
From-SVN: r112092
parent
ff9d4590
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
gcc/java/ChangeLog
+4
-0
gcc/java/parse.y
+8
-2
No files found.
gcc/java/ChangeLog
View file @
2afd35b3
2006
-
03
-
15
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
parse
.
y
(
analyze_clinit_body
):
Ignore
empty
statements
.
2006
-
03
-
08
David
Daney
<
ddaney
@
avtrex
.
com
>
*
gcj
.
texi
:
Document
-
static
-
libgcj
option
.
...
...
gcc/java/parse.y
View file @
2afd35b3
/*
Source
code
parsing
and
tree
node
generation
for
the
GNU
compiler
for
the
Java
(
TM
)
language
.
Copyright
(
C
)
1997
,
1998
,
1999
,
2000
,
2001
,
2002
,
2003
,
2004
,
2005
Copyright
(
C
)
1997
,
1998
,
1999
,
2000
,
2001
,
2002
,
2003
,
2004
,
2005
,
2006
Free
Software
Foundation
,
Inc
.
Contributed
by
Alexandre
Petit
-
Bianco
(
apbianco
@
cygnus
.
com
)
...
...
@@ -8006,7 +8006,8 @@ maybe_generate_pre_expand_clinit (tree class_type)
}
/* Analyzes a method body and look for something that isn'
t
a
MODIFY_EXPR
with
a
constant
value
.
*/
MODIFY_EXPR
with
a
constant
value
.
Return
true
if
<
clinit
>
is
needed
,
false
otherwise
.
*/
static
int
analyze_clinit_body
(
tree
this_class
,
tree
bbody
)
...
...
@@ -8045,6 +8046,11 @@ analyze_clinit_body (tree this_class, tree bbody)
|| ! DECL_INITIAL (TREE_OPERAND (bbody, 0))
|| DECL_CONTEXT (TREE_OPERAND (bbody, 0)) != this_class);
case NOP_EXPR:
/* We might see an empty statement here, which is
ignorable. */
return ! IS_EMPTY_STMT (bbody);
default:
return 1;
}
...
...
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