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
1d60e59e
Commit
1d60e59e
authored
Feb 06, 2006
by
Richard Sandiford
Committed by
Richard Sandiford
Feb 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* reorg.c (dbr_schedule): Use dump_file instead of file.
From-SVN: r110671
parent
5d48891e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
16 deletions
+20
-16
gcc/ChangeLog
+4
-0
gcc/reorg.c
+16
-16
gcc/testsuite/gcc.dg/20051206-1.c
+0
-0
No files found.
gcc/ChangeLog
View file @
1d60e59e
2006-02-06 Richard Sandiford <richard@codesourcery.com>
* reorg.c (dbr_schedule): Use dump_file instead of file.
2006-02-06 Steve Ellcey <sje@cup.hp.com>
PR target/25917
...
...
gcc/reorg.c
View file @
1d60e59e
...
...
@@ -3638,7 +3638,7 @@ dbr_schedule (rtx first)
/* It is not clear why the line below is needed, but it does seem to be. */
unfilled_firstobj
=
obstack_alloc
(
&
unfilled_slots_obstack
,
0
);
if
(
file
)
if
(
dump_
file
)
{
int
i
,
j
,
need_comma
;
int
total_delay_slots
[
MAX_DELAY_HISTOGRAM
+
1
];
...
...
@@ -3648,25 +3648,25 @@ dbr_schedule (rtx first)
reorg_pass_number
<
MAX_REORG_PASSES
;
reorg_pass_number
++
)
{
fprintf
(
file
,
";; Reorg pass #%d:
\n
"
,
reorg_pass_number
+
1
);
fprintf
(
dump_
file
,
";; Reorg pass #%d:
\n
"
,
reorg_pass_number
+
1
);
for
(
i
=
0
;
i
<
NUM_REORG_FUNCTIONS
;
i
++
)
{
need_comma
=
0
;
fprintf
(
file
,
";; Reorg function #%d
\n
"
,
i
);
fprintf
(
dump_
file
,
";; Reorg function #%d
\n
"
,
i
);
fprintf
(
file
,
";; %d insns needing delay slots
\n
;; "
,
fprintf
(
dump_
file
,
";; %d insns needing delay slots
\n
;; "
,
num_insns_needing_delays
[
i
][
reorg_pass_number
]);
for
(
j
=
0
;
j
<
MAX_DELAY_HISTOGRAM
+
1
;
j
++
)
if
(
num_filled_delays
[
i
][
j
][
reorg_pass_number
])
{
if
(
need_comma
)
fprintf
(
file
,
", "
);
fprintf
(
dump_
file
,
", "
);
need_comma
=
1
;
fprintf
(
file
,
"%d got %d delays"
,
fprintf
(
dump_
file
,
"%d got %d delays"
,
num_filled_delays
[
i
][
j
][
reorg_pass_number
],
j
);
}
fprintf
(
file
,
"
\n
"
);
fprintf
(
dump_
file
,
"
\n
"
);
}
}
memset
(
total_delay_slots
,
0
,
sizeof
total_delay_slots
);
...
...
@@ -3692,35 +3692,35 @@ dbr_schedule (rtx first)
total_delay_slots
[
0
]
++
;
}
}
fprintf
(
file
,
";; Reorg totals: "
);
fprintf
(
dump_
file
,
";; Reorg totals: "
);
need_comma
=
0
;
for
(
j
=
0
;
j
<
MAX_DELAY_HISTOGRAM
+
1
;
j
++
)
{
if
(
total_delay_slots
[
j
])
{
if
(
need_comma
)
fprintf
(
file
,
", "
);
fprintf
(
dump_
file
,
", "
);
need_comma
=
1
;
fprintf
(
file
,
"%d got %d delays"
,
total_delay_slots
[
j
],
j
);
fprintf
(
dump_
file
,
"%d got %d delays"
,
total_delay_slots
[
j
],
j
);
}
}
fprintf
(
file
,
"
\n
"
);
fprintf
(
dump_
file
,
"
\n
"
);
#if defined (ANNUL_IFTRUE_SLOTS) || defined (ANNUL_IFFALSE_SLOTS)
fprintf
(
file
,
";; Reorg annuls: "
);
fprintf
(
dump_
file
,
";; Reorg annuls: "
);
need_comma
=
0
;
for
(
j
=
0
;
j
<
MAX_DELAY_HISTOGRAM
+
1
;
j
++
)
{
if
(
total_annul_slots
[
j
])
{
if
(
need_comma
)
fprintf
(
file
,
", "
);
fprintf
(
dump_
file
,
", "
);
need_comma
=
1
;
fprintf
(
file
,
"%d got %d delays"
,
total_annul_slots
[
j
],
j
);
fprintf
(
dump_
file
,
"%d got %d delays"
,
total_annul_slots
[
j
],
j
);
}
}
fprintf
(
file
,
"
\n
"
);
fprintf
(
dump_
file
,
"
\n
"
);
#endif
fprintf
(
file
,
"
\n
"
);
fprintf
(
dump_
file
,
"
\n
"
);
}
/* For all JUMP insns, fill in branch prediction notes, so that during
...
...
gcc/testsuite/gcc.dg/20051206-1.c
0 → 100644
View file @
1d60e59e
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