Skip to content

Commit

Permalink
Requested changes from eclipse-omr#7447
Browse files Browse the repository at this point in the history
and eclipse-omr#7480

Signed-off-by: midronij <[email protected]>
  • Loading branch information
midronij committed Nov 28, 2024
1 parent a593021 commit 7615492
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions compiler/p/codegen/PPCTableOfConstants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ int32_t TR_PPCTableOfConstants::lookUp(TR::SymbolReference *symRef, TR::CodeGene
}

TR::StaticSymbol *sym = symRef->getSymbol()->castToStaticSymbol();
intptr_t addr = (intptr_t)sym->getStaticAddress();
int32_t nlen, tindex;
int8_t local_buffer[1024];
int8_t *name = local_buffer;
bool isAddr = false;
intptr_t myTag=0;
intptr_t addr = (intptr_t)sym->getStaticAddress();
int32_t nlen, tindex;
int8_t local_buffer[1024];
int8_t *name = local_buffer;
bool isAddr = false;
intptr_t myTag = 0;

if (!symRef->isUnresolved() || symRef->getCPIndex()<0 || sym->isAddressOfClassObject() || sym->isConstObjectRef() || sym->isConst())
{
Expand Down
2 changes: 1 addition & 1 deletion compiler/runtime/Runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

TR_RuntimeHelperTable runtimeHelpers;

#if (defined(__IBMCPP__) || defined(__IBMC__) || defined(__open_xl__) && !defined(MVS)) && !defined(LINUXPPC64)
#if (defined(__IBMCPP__) || defined(__IBMC__) && !defined(__MVS__) || defined(__open_xl__)) && !defined(LINUXPPC64)
#if defined(AIXPPC)
#define JIT_HELPER(x) extern "C" void *x
#else
Expand Down
4 changes: 4 additions & 0 deletions port/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ if(OMR_OS_WINDOWS)
endif()

if(OMR_OS_AIX)
if(CMAKE_C_COMPILER_IS_OPENXL)
list(APPEND OMR_C_WARNINGS_AS_ERROR_FLAG -Wno-implicit-function-declaration)
target_compile_options(omrport_obj PUBLIC -Wno-implicit-function-declaration)
endif()
#ifdef I5_VERSION
#ifeq (1,$(OMR_ENV_DATA64))
#vpath % $(PORT_SRCDIR)iseries64
Expand Down
2 changes: 0 additions & 2 deletions port/unix/omrsignal.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ omrsig_protect(struct OMRPortLibrary *portLibrary, omrsig_protected_fn fn, void
*/
OMRCurrentSignal *currentSignal = omrthread_tls_get(thisThread, tlsKeyCurrentSignal);

#if !defined(__open_xl__)
/* setjmp/longjmp does not clear the mask setup by the OS when it delivers the signal. User sigsetjmp/siglongjmp(buf, 1) instead */
if (0 != sigsetjmp(thisRecord.returnBuf, 1)) {
/* the handler had long jumped back here -- reset the signal handler stack and currentSignal and return */
Expand All @@ -416,7 +415,6 @@ omrsig_protect(struct OMRPortLibrary *portLibrary, omrsig_protected_fn fn, void
Trc_PRT_signal_omrsignal_sig_protect_Exit_long_jumped_back_to_omrsig_protect(fn, fn_arg, handler, handler_arg, flags);
return OMRPORT_SIG_EXCEPTION_OCCURRED;
}
#endif
}

if (0 != omrthread_tls_set(thisThread, tlsKey, &thisRecord)) {
Expand Down

0 comments on commit 7615492

Please sign in to comment.