Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
b4701534
Commit
b4701534
authored
Sep 01, 2016
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make GCC 5.4 happy with those type casting
GCC 5.4 will report those type castings are not legal.
parent
ea8890e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/analysis/function_analysis.cpp
src/analysis/function_analysis.cpp
+1
-1
src/codegen/irgen/hooks.cpp
src/codegen/irgen/hooks.cpp
+1
-1
src/runtime/rewrite_args.h
src/runtime/rewrite_args.h
+1
-1
No files found.
src/analysis/function_analysis.cpp
View file @
b4701534
...
@@ -260,7 +260,7 @@ private:
...
@@ -260,7 +260,7 @@ private:
assert
(
name
->
vreg
==
-
1
);
assert
(
name
->
vreg
==
-
1
);
// skip
// skip
}
else
{
}
else
{
RELEASE_ASSERT
(
0
,
"%d"
,
name
->
lookup_type
);
RELEASE_ASSERT
(
0
,
"%d"
,
static_cast
<
int
>
(
name
->
lookup_type
)
);
}
}
break
;
break
;
}
}
...
...
src/codegen/irgen/hooks.cpp
View file @
b4701534
...
@@ -351,7 +351,7 @@ CompiledFunction* compileFunction(FunctionMetadata* f, FunctionSpecialization* s
...
@@ -351,7 +351,7 @@ CompiledFunction* compileFunction(FunctionMetadata* f, FunctionSpecialization* s
break
;
break
;
}
}
default:
default:
RELEASE_ASSERT
(
0
,
"%d"
,
effort
);
RELEASE_ASSERT
(
0
,
"%d"
,
static_cast
<
int
>
(
effort
)
);
}
}
// free the bjit code if this is not a OSR compilation
// free the bjit code if this is not a OSR compilation
...
...
src/runtime/rewrite_args.h
View file @
b4701534
...
@@ -140,7 +140,7 @@ public:
...
@@ -140,7 +140,7 @@ public:
void
assertReturnConvention
(
ReturnConvention
required_convention
)
{
void
assertReturnConvention
(
ReturnConvention
required_convention
)
{
assert
(
isSuccessful
());
assert
(
isSuccessful
());
ASSERT
(
this
->
out_return_convention
==
required_convention
,
"user asked for convention %d but got %d"
,
ASSERT
(
this
->
out_return_convention
==
required_convention
,
"user asked for convention %d but got %d"
,
required_convention
,
this
->
out_return_convention
);
static_cast
<
int
>
(
required_convention
),
static_cast
<
int
>
((
this
->
out_return_convention
))
);
#ifndef NDEBUG
#ifndef NDEBUG
return_convention_checked
=
true
;
return_convention_checked
=
true
;
#endif
#endif
...
...
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