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
e3bc2fa7
Commit
e3bc2fa7
authored
16 years ago
by
Jakub Jelinek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert unintended commit.
From-SVN: r141128
parent
cb6064f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
22 deletions
+5
-22
gcc/tree-switch-conversion.c
+5
-22
No files found.
gcc/tree-switch-conversion.c
View file @
e3bc2fa7
...
...
@@ -296,29 +296,12 @@ check_final_bb (void)
{
basic_block
bb
=
gimple_phi_arg_edge
(
phi
,
i
)
->
src
;
if
(
bb
==
info
.
switch_bb
||
(
single_pred_p
(
bb
)
&&
single_pred
(
bb
)
==
info
.
switch_bb
))
if
((
bb
==
info
.
switch_bb
||
(
single_pred_p
(
bb
)
&&
single_pred
(
bb
)
==
info
.
switch_bb
))
&&
!
is_gimple_ip_invariant
(
gimple_phi_arg_def
(
phi
,
i
)))
{
tree
reloc
,
val
;
val
=
gimple_phi_arg_def
(
phi
,
i
);
if
(
!
is_gimple_ip_invariant
(
val
))
{
info
.
reason
=
" Non-invariant value from a case
\n
"
;
return
false
;
/* Non-invariant argument. */
}
reloc
=
initializer_constant_valid_p
(
val
,
TREE_TYPE
(
val
));
if
((
flag_pic
&&
reloc
!=
null_pointer_node
)
||
(
!
flag_pic
&&
reloc
==
NULL_TREE
))
{
if
(
reloc
)
info
.
reason
=
" Value from a case would need runtime relocations
\n
"
;
else
info
.
reason
=
" Value from a case is not a valid initializer
\n
"
;
return
false
;
}
info
.
reason
=
" Non-invariant value from a case
\n
"
;
return
false
;
/* Non-invariant argument. */
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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