Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
dfc0d7b2
Commit
dfc0d7b2
authored
8 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
Added support for placing scoops in a zipr plugin. fix-call comments
Former-commit-id: 244996122db8afdc3d5c48d4b9f5a382986ba681
parent
bc8b7852
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libIRDB/test/fix_calls.cpp
+6
-2
6 additions, 2 deletions
libIRDB/test/fix_calls.cpp
with
6 additions
and
2 deletions
libIRDB/test/fix_calls.cpp
+
6
−
2
View file @
dfc0d7b2
...
...
@@ -765,15 +765,19 @@ void fix_all_calls(FileIR_t* firp, bool print_stats, bool fix_all)
if
(
is_call
(
insn
))
{
if
(
call_needs_fix
(
insn
)
)
if
(
call_needs_fix
(
insn
)
)
// fixing is necessary + unpinning not possible.
{
fixed_calls
++
;
fix_call
(
insn
,
firp
,
false
);
}
// we've been asked to fix all calls for funsies/cfi
// (and a bit about debugging fix-calls that's not important for anyone but jdh.
else
if
(
fix_all
||
(
getenv
(
"FIX_CALL_LIMIT"
)
&&
not_fixed_calls
>=
atoi
(
getenv
(
"FIX_CALL_LIMIT"
))))
{
// if we make it here, we know that it was not 100% necessary to fix the call
// but we've been asked to anyhow.
fixed_calls
++
;
fix_call
(
insn
,
firp
,
true
);
fix_call
(
insn
,
firp
,
true
/* true here indicates that the call can have an unpin reloc -- anh to add option in 3 minutes */
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment