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
610f66a3
Commit
610f66a3
authored
Nov 17, 2017
by
Henry Linjamäki
Committed by
Pekka Jääskeläinen
Nov 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIGFE] Fix sprintf format string type mismatch on 32b machines.
From-SVN: r254870
parent
34705fdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/brig/ChangeLog
+5
-0
gcc/brig/brigfrontend/brig-util.cc
+3
-2
No files found.
gcc/brig/ChangeLog
View file @
610f66a3
2017-11-17 Henry Linjamäki <henry.linjamaki@parmance.com>
* brigfrontend/brig-util.cc: Fix sprintf format string type mismatch
on 32b machines.
2017-11-16 Henry Linjamäki <henry.linjamaki@parmance.com>
Change internal representation of HSA registers. Instead
...
...
gcc/brig/brigfrontend/brig-util.cc
View file @
610f66a3
...
...
@@ -505,9 +505,10 @@ gccbrig_hsa_reg_id (const BrigOperandRegister ®)
}
std
::
string
gccbrig_hsa_reg_name_from_id
(
size_t
reg_
hash
)
gccbrig_hsa_reg_name_from_id
(
size_t
reg_
id
)
{
char
reg_name
[
32
];
long
unsigned
int
reg_hash
=
(
long
unsigned
int
)
reg_id
;
if
(
reg_hash
<
BRIG_2_TREE_HSAIL_C_REG_COUNT
)
{
sprintf
(
reg_name
,
"$c%lu"
,
reg_hash
);
...
...
@@ -556,7 +557,7 @@ gccbrig_print_reg_use_info (FILE *dump, const regs_use_index &info)
reg_use_it
end_it2
=
info
.
m_type_refs
.
end
();
for
(
reg_use_it
it2
=
begin_it2
;
it2
!=
end_it2
;
it2
++
)
{
fprintf
(
dump
,
"(%lu) "
,
it2
->
second
);
fprintf
(
dump
,
"(%lu) "
,
(
long
unsigned
int
)
it2
->
second
);
print_node_brief
(
dump
,
""
,
it2
->
first
,
0
);
fprintf
(
dump
,
"
\n
"
);
}
...
...
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