Skip to content

Commit

Permalink
use medium code model on PPC
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Feb 28, 2018
1 parent fad170c commit 45dd7d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,13 @@ void jl_dump_native(const char *bc_fname, const char *unopt_bc_fname, const char
#else
Optional<Reloc::Model>(),
#endif
#if defined(_CPU_PPC_) || defined(_CPU_PPC64_)
// On PPC the small model is limited to 16bit offsets
CodeModel::Medium,
#else
// Use small model so that we can use signed 32bits offset in the function and GV tables
CodeModel::Small,
#endif
CodeGenOpt::Aggressive // -O3 TODO: respect command -O0 flag?
));

Expand Down

0 comments on commit 45dd7d6

Please sign in to comment.