Summary:
luajit requires CC to be passed on the command line, not via the Make
environment in order to override the Makefile. Pass it explicitly, and for GCC
targets (powerpc, mips, sparc64) explicitly use ports GCC.
Reviewed By: mat
Differential Revision: https://reviews.freebsd.org/D13804
When luajit writes a ELF object file (using the -b option), it sets the
size of the .strtab section one byte too short. In function
bcsave_elfobj(), the offset of the .rodata section after .strtab is
already calculated correctly, but the size of .strtab itself is one byte
too small. Even though there is a zero byte after the last string in
the table, the short size causes lld (the LLVM linker) to show an error
message similar to:
ld: error: obj/bytecode.o: string table non-null terminated
Fix it by increasing the size of the .strtab section by one byte. This
change has also been accepted upstream, but there is no new stable
release yet.
Approved by: portmgr (antoine)
PR: 223688
Reimplement ONLY_FOR_ARCHS such that we know that this port requires newer
compiler features (which aren't very clear from the port itself). Probably
need to validate this on powerpc as we have clang available and gcc ports.
PR: 197132
on non-clang architechtures. In addition, if there is no lang/gcc available
for the architecuture, we can't build it via that method either.
Rework archtecture disable to use ONLY_FOR_ARCHS and give a clearer reason
why this is being disabled on powrepc/mips/sparc64.
PR: 197132
Reviewed by: osa@freebsd.org (maintainer)
<ChangeLog>
Add PS4 port.
Add support for multilib distro builds.
Fix OSX build.
Fix MinGW build.
Fix Xbox 360 build.
Improve ULOAD forwarding for open upvalues.
Fix GC steps threshold handling when called by JIT-compiled code.
Fix argument checks for math.deg() and math.rad().
Fix jit.flush(func|true).
Respect jit.off(func) when returning to a function, too.
Fix compilation of string.byte(s, nil, n).
Fix line number for relocated bytecode after closure fixup.
Fix frame traversal for backtraces.
Fix ABC elimination.
Fix handling of redundant PHIs.
Fix snapshot restore for exit to function header.
Fix type punning alias analysis for constified pointers.
Fix call unroll checks in the presence of metamethod frames.
Fix initial maxslot for down-recursive traces.
Prevent BASE register coalescing if parent uses IR_RETF.
Don't purge modified function from stack slots in BC_RET.
Fix recording of BC_VARG.
Don't access dangling reference to reallocated IR.
Fix frame depth display for bytecode dump in -jdump.
ARM: Fix register allocation when rematerializing FPRs.
x64: Fix store to upvalue for lightuserdata values.
FFI: Add missing GC steps for callback argument conversions.
FFI: Properly unload loaded DLLs.
FFI: Fix argument checks for ffi.string().
FFI/x64: Fix passing of vector arguments to calls.
FFI: Rehash finalizer table after GC cycle, if needed.
FFI: Fix cts->L for cdata unsinking in snapshot restore.
</ChangeLog>
COMMENT typos and surrounding whitespace fixes. A few Makefiles where not
included as they contain Latin-1 characters that break the Phabricator
workflow. Categories J-L.
CR: D305
Approved by: portmgr (swills)