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
68252e27
Commit
68252e27
authored
May 05, 2002
by
Kazu Hirata
Committed by
Kazu Hirata
May 05, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cse.c: Fix formatting.
* cse.c: Fix formatting. * emit-rtl.c: Likewise. From-SVN: r53191
parent
b7c13625
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
gcc/ChangeLog
+5
-0
gcc/cse.c
+10
-8
gcc/emit-rtl.c
+5
-4
No files found.
gcc/ChangeLog
View file @
68252e27
2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
* cse.c: Fix formatting.
* emit-rtl.c: Likewise.
2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (initiate_states): Add additional guard to
* genautomata.c (initiate_states): Add additional guard to
...
...
gcc/cse.c
View file @
68252e27
...
@@ -742,7 +742,7 @@ approx_reg_cost (x)
...
@@ -742,7 +742,7 @@ approx_reg_cost (x)
int
hardregs
=
0
;
int
hardregs
=
0
;
INIT_REG_SET
(
&
set
);
INIT_REG_SET
(
&
set
);
for_each_rtx
(
&
x
,
approx_reg_cost_1
,
(
void
*
)
&
set
);
for_each_rtx
(
&
x
,
approx_reg_cost_1
,
(
void
*
)
&
set
);
EXECUTE_IF_SET_IN_REG_SET
EXECUTE_IF_SET_IN_REG_SET
(
&
set
,
0
,
i
,
(
&
set
,
0
,
i
,
...
@@ -1990,7 +1990,7 @@ remove_invalid_refs (regno)
...
@@ -1990,7 +1990,7 @@ remove_invalid_refs (regno)
{
{
next
=
p
->
next_same_hash
;
next
=
p
->
next_same_hash
;
if
(
GET_CODE
(
p
->
exp
)
!=
REG
if
(
GET_CODE
(
p
->
exp
)
!=
REG
&&
refers_to_regno_p
(
regno
,
regno
+
1
,
p
->
exp
,
(
rtx
*
)
0
))
&&
refers_to_regno_p
(
regno
,
regno
+
1
,
p
->
exp
,
(
rtx
*
)
0
))
remove_from_table
(
p
,
i
);
remove_from_table
(
p
,
i
);
}
}
}
}
...
@@ -2020,7 +2020,7 @@ remove_invalid_subreg_refs (regno, offset, mode)
...
@@ -2020,7 +2020,7 @@ remove_invalid_subreg_refs (regno, offset, mode)
||
(((
SUBREG_BYTE
(
exp
)
||
(((
SUBREG_BYTE
(
exp
)
+
(
GET_MODE_SIZE
(
GET_MODE
(
exp
))
-
1
))
>=
offset
)
+
(
GET_MODE_SIZE
(
GET_MODE
(
exp
))
-
1
))
>=
offset
)
&&
SUBREG_BYTE
(
exp
)
<=
end
))
&&
SUBREG_BYTE
(
exp
)
<=
end
))
&&
refers_to_regno_p
(
regno
,
regno
+
1
,
p
->
exp
,
(
rtx
*
)
0
))
&&
refers_to_regno_p
(
regno
,
regno
+
1
,
p
->
exp
,
(
rtx
*
)
0
))
remove_from_table
(
p
,
i
);
remove_from_table
(
p
,
i
);
}
}
}
}
...
@@ -2212,7 +2212,7 @@ canon_hash_string (ps)
...
@@ -2212,7 +2212,7 @@ canon_hash_string (ps)
const
char
*
ps
;
const
char
*
ps
;
{
{
unsigned
hash
=
0
;
unsigned
hash
=
0
;
const
unsigned
char
*
p
=
(
const
unsigned
char
*
)
ps
;
const
unsigned
char
*
p
=
(
const
unsigned
char
*
)
ps
;
if
(
p
)
if
(
p
)
while
(
*
p
)
while
(
*
p
)
...
@@ -2375,7 +2375,7 @@ canon_hash (x, mode)
...
@@ -2375,7 +2375,7 @@ canon_hash (x, mode)
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
MEM
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
MEM
&&
!
MEM_VOLATILE_P
(
XEXP
(
x
,
0
)))
&&
!
MEM_VOLATILE_P
(
XEXP
(
x
,
0
)))
{
{
hash
+=
(
unsigned
)
USE
;
hash
+=
(
unsigned
)
USE
;
x
=
XEXP
(
x
,
0
);
x
=
XEXP
(
x
,
0
);
if
(
!
RTX_UNCHANGING_P
(
x
)
||
FIXED_BASE_PLUS_P
(
XEXP
(
x
,
0
)))
if
(
!
RTX_UNCHANGING_P
(
x
)
||
FIXED_BASE_PLUS_P
(
XEXP
(
x
,
0
)))
...
@@ -3270,7 +3270,8 @@ find_comparison_args (code, parg1, parg2, pmode1, pmode2)
...
@@ -3270,7 +3270,8 @@ find_comparison_args (code, parg1, parg2, pmode1, pmode2)
enum
rtx_code
reversed
=
reversed_comparison_code
(
x
,
NULL_RTX
);
enum
rtx_code
reversed
=
reversed_comparison_code
(
x
,
NULL_RTX
);
if
(
reversed
==
UNKNOWN
)
if
(
reversed
==
UNKNOWN
)
break
;
break
;
else
code
=
reversed
;
else
code
=
reversed
;
}
}
else
if
(
GET_RTX_CLASS
(
GET_CODE
(
x
))
==
'<'
)
else
if
(
GET_RTX_CLASS
(
GET_CODE
(
x
))
==
'<'
)
code
=
GET_CODE
(
x
);
code
=
GET_CODE
(
x
);
...
@@ -7367,7 +7368,7 @@ cse_basic_block (from, to, next_branch, around_loop)
...
@@ -7367,7 +7368,7 @@ cse_basic_block (from, to, next_branch, around_loop)
we can cse into the loop. Don't do this if we changed the jump
we can cse into the loop. Don't do this if we changed the jump
structure of a loop unless we aren't going to be following jumps. */
structure of a loop unless we aren't going to be following jumps. */
insn
=
prev_nonnote_insn
(
to
);
insn
=
prev_nonnote_insn
(
to
);
if
((
cse_jumps_altered
==
0
if
((
cse_jumps_altered
==
0
||
(
flag_cse_follow_jumps
==
0
&&
flag_cse_skip_blocks
==
0
))
||
(
flag_cse_follow_jumps
==
0
&&
flag_cse_skip_blocks
==
0
))
&&
around_loop
&&
to
!=
0
&&
around_loop
&&
to
!=
0
...
@@ -7674,7 +7675,8 @@ delete_trivially_dead_insns (insns, nreg)
...
@@ -7674,7 +7675,8 @@ delete_trivially_dead_insns (insns, nreg)
dead_libcall
=
0
;
dead_libcall
=
0
;
}
}
}
}
}
while
(
ndead
!=
nlastdead
);
}
while
(
ndead
!=
nlastdead
);
if
(
rtl_dump_file
&&
ndead
)
if
(
rtl_dump_file
&&
ndead
)
fprintf
(
rtl_dump_file
,
"Deleted %i trivially dead insns; %i iterations
\n
"
,
fprintf
(
rtl_dump_file
,
"Deleted %i trivially dead insns; %i iterations
\n
"
,
...
...
gcc/emit-rtl.c
View file @
68252e27
...
@@ -1151,6 +1151,7 @@ gen_highpart_mode (outermode, innermode, exp)
...
@@ -1151,6 +1151,7 @@ gen_highpart_mode (outermode, innermode, exp)
return
simplify_gen_subreg
(
outermode
,
exp
,
innermode
,
return
simplify_gen_subreg
(
outermode
,
exp
,
innermode
,
subreg_highpart_offset
(
outermode
,
innermode
));
subreg_highpart_offset
(
outermode
,
innermode
));
}
}
/* Return offset in bytes to get OUTERMODE low part
/* Return offset in bytes to get OUTERMODE low part
of the value in mode INNERMODE stored in memory in target format. */
of the value in mode INNERMODE stored in memory in target format. */
...
@@ -2916,7 +2917,7 @@ prev_cc0_setter (insn)
...
@@ -2916,7 +2917,7 @@ prev_cc0_setter (insn)
/* Increment the label uses for all labels present in rtx. */
/* Increment the label uses for all labels present in rtx. */
static
void
static
void
mark_label_nuses
(
x
)
mark_label_nuses
(
x
)
rtx
x
;
rtx
x
;
{
{
enum
rtx_code
code
;
enum
rtx_code
code
;
...
@@ -3027,7 +3028,7 @@ try_split (pat, trial, last)
...
@@ -3027,7 +3028,7 @@ try_split (pat, trial, last)
=
CALL_INSN_FUNCTION_USAGE
(
trial
);
=
CALL_INSN_FUNCTION_USAGE
(
trial
);
/* Copy notes, particularly those related to the CFG. */
/* Copy notes, particularly those related to the CFG. */
for
(
note
=
REG_NOTES
(
trial
);
note
;
note
=
XEXP
(
note
,
1
))
for
(
note
=
REG_NOTES
(
trial
);
note
;
note
=
XEXP
(
note
,
1
))
{
{
switch
(
REG_NOTE_KIND
(
note
))
switch
(
REG_NOTE_KIND
(
note
))
{
{
...
@@ -3614,7 +3615,7 @@ remove_unnecessary_notes ()
...
@@ -3614,7 +3615,7 @@ remove_unnecessary_notes ()
then there is no PC range in the generated code that will
then there is no PC range in the generated code that will
actually be in this block, so there's no point in
actually be in this block, so there's no point in
remembering the existence of the block. */
remembering the existence of the block. */
for
(
tmp
=
PREV_INSN
(
insn
);
tmp
;
tmp
=
PREV_INSN
(
tmp
))
for
(
tmp
=
PREV_INSN
(
insn
);
tmp
;
tmp
=
PREV_INSN
(
tmp
))
{
{
/* This block contains a real instruction. Note that we
/* This block contains a real instruction. Note that we
don't include labels; if the only thing in the block
don't include labels; if the only thing in the block
...
@@ -4431,7 +4432,7 @@ end_full_sequence (first, last)
...
@@ -4431,7 +4432,7 @@ end_full_sequence (first, last)
{
{
*
first
=
first_insn
;
*
first
=
first_insn
;
*
last
=
last_insn
;
*
last
=
last_insn
;
end_sequence
();
end_sequence
();
}
}
/* Return 1 if currently emitting into a sequence. */
/* Return 1 if currently emitting into a sequence. */
...
...
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