Skip to content

Commit 7615492

Browse files
committed
Requested changes from eclipse-omr#7447
and eclipse-omr#7480 Signed-off-by: midronij <[email protected]>
1 parent a593021 commit 7615492

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

compiler/p/codegen/PPCTableOfConstants.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,12 @@ int32_t TR_PPCTableOfConstants::lookUp(TR::SymbolReference *symRef, TR::CodeGene
494494
}
495495

496496
TR::StaticSymbol *sym = symRef->getSymbol()->castToStaticSymbol();
497-
intptr_t addr = (intptr_t)sym->getStaticAddress();
498-
int32_t nlen, tindex;
499-
int8_t local_buffer[1024];
500-
int8_t *name = local_buffer;
501-
bool isAddr = false;
502-
intptr_t myTag=0;
497+
intptr_t addr = (intptr_t)sym->getStaticAddress();
498+
int32_t nlen, tindex;
499+
int8_t local_buffer[1024];
500+
int8_t *name = local_buffer;
501+
bool isAddr = false;
502+
intptr_t myTag = 0;
503503

504504
if (!symRef->isUnresolved() || symRef->getCPIndex()<0 || sym->isAddressOfClassObject() || sym->isConstObjectRef() || sym->isConst())
505505
{

compiler/runtime/Runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
TR_RuntimeHelperTable runtimeHelpers;
2525

26-
#if (defined(__IBMCPP__) || defined(__IBMC__) || defined(__open_xl__) && !defined(MVS)) && !defined(LINUXPPC64)
26+
#if (defined(__IBMCPP__) || defined(__IBMC__) && !defined(__MVS__) || defined(__open_xl__)) && !defined(LINUXPPC64)
2727
#if defined(AIXPPC)
2828
#define JIT_HELPER(x) extern "C" void *x
2929
#else

port/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ if(OMR_OS_WINDOWS)
278278
endif()
279279

280280
if(OMR_OS_AIX)
281+
if(CMAKE_C_COMPILER_IS_OPENXL)
282+
list(APPEND OMR_C_WARNINGS_AS_ERROR_FLAG -Wno-implicit-function-declaration)
283+
target_compile_options(omrport_obj PUBLIC -Wno-implicit-function-declaration)
284+
endif()
281285
#ifdef I5_VERSION
282286
#ifeq (1,$(OMR_ENV_DATA64))
283287
#vpath % $(PORT_SRCDIR)iseries64

port/unix/omrsignal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ omrsig_protect(struct OMRPortLibrary *portLibrary, omrsig_protected_fn fn, void
406406
*/
407407
OMRCurrentSignal *currentSignal = omrthread_tls_get(thisThread, tlsKeyCurrentSignal);
408408

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

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

0 commit comments

Comments
 (0)