Skip to content

Commit 4e114ca

Browse files
committed
Fix C4068
``` warning C4068: unknown pragma ```
1 parent 60a6a92 commit 4e114ca

10 files changed

+20
-3
lines changed

runtime/compiler/codegen/CodeGenGC.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
//On zOS XLC linker can't handle files with same name at link time
2425
//This workaround with pragma is needed. What this does is essentially
2526
//give a different name to the codesection (csect) for this file. So it
@@ -28,6 +29,7 @@
2829
#pragma csect(CODE,"TRJ9CGGCBase#C")
2930
#pragma csect(STATIC,"TRJ9CGGCBase#S")
3031
#pragma csect(TEST,"TRJ9CGGCBase#T")
32+
#endif
3133

3234
#include "codegen/J9CodeGenerator.hpp" // IWYU pragma: keep
3335

runtime/compiler/codegen/CodeGenRA.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
//On zOS XLC linker can't handle files with same name at link time
2425
//This workaround with pragma is needed. What this does is essentially
2526
//give a different name to the codesection (csect) for this file. So it
@@ -28,6 +29,7 @@
2829
#pragma csect(CODE,"TRJ9CGRABase#C")
2930
#pragma csect(STATIC,"TRJ9CGRABase#S")
3031
#pragma csect(TEST,"TRJ9CGRABase#T")
32+
#endif
3133

3234
#include "codegen/J9CodeGenerator.hpp"
3335

runtime/compiler/codegen/J9CodeGenPhase.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
//On zOS XLC linker can't handle files with same name at link time
2425
//This workaround with pragma is needed. What this does is essentially
2526
//give a different name to the codesection (csect) for this file. So it
@@ -28,7 +29,7 @@
2829
#pragma csect(CODE,"TRJ9CGPhase#C")
2930
#pragma csect(STATIC,"TRJ9CGPhase#S")
3031
#pragma csect(TEST,"TRJ9CGPhase#T")
31-
32+
#endif
3233

3334
#include "codegen/CodeGenPhase.hpp"
3435
#include "codegen/CodeGenerator.hpp"

runtime/compiler/codegen/J9CodeGenerator.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
#pragma csect(CODE,"TRJ9CGBase#C")
2425
#pragma csect(STATIC,"TRJ9CGBase#S")
2526
#pragma csect(TEST,"TRJ9CGBase#T")
27+
#endif
2628

2729
#include <algorithm>
2830
#include "codegen/AheadOfTimeCompile.hpp"

runtime/compiler/codegen/J9GCStackAtlas.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
#pragma csect(CODE,"TRJ9GCStackAtlas#C")
2425
#pragma csect(STATIC,"TRJ9GCStackAtlas#S")
2526
#pragma csect(TEST,"TRJ9GCStackAtlas#T")
26-
27+
#endif
2728

2829
#include "codegen/GCStackAtlas.hpp"
2930
#include "codegen/GCStackMap.hpp"

runtime/compiler/codegen/J9Instruction.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
//On zOS XLC linker can't handle files with same name at link time
2425
//This workaround with pragma is needed. What this does is essentially
2526
//give a different name to the codesection (csect) for this file. So it
2627
//doesn't conflict with another file with same name.
2728
#pragma csect(CODE,"TRJ9InstBase#C")
2829
#pragma csect(STATIC,"TRJ9InstBase#S")
2930
#pragma csect(TEST,"TRJ9InstBase#T")
30-
31+
#endif
3132

3233
#include "codegen/Instruction.hpp"
3334
#include "codegen/CodeGenerator.hpp"

runtime/compiler/compile/J9Compilation.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
#pragma csect(CODE,"TRJ9CompBase#C")
2425
#pragma csect(STATIC,"TRJ9CompBase#S")
2526
#pragma csect(TEST,"TRJ9CompBase#T")
27+
#endif
2628

2729
#include "compile/J9Compilation.hpp"
2830

runtime/compiler/env/J9CPU.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
#pragma csect(CODE,"J9J9CPU#C")
2425
#pragma csect(STATIC,"J9J9CPU#S")
2526
#pragma csect(TEST,"J9J9CPU#T")
27+
#endif
2628

2729
#include "env/CPU.hpp"
2830
#include "env/VMJ9.h"

runtime/compiler/env/J9ObjectModel.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
//On zOS XLC linker can't handle files with same name at link time
2425
//This workaround with pragma is needed. What this does is essentially
2526
//give a different name to the codesection (csect) for this file. So it
2627
//doesn't conflict with another file with same name.
2728
#pragma csect(CODE,"J9ObjectModel#C")
2829
#pragma csect(STATIC,"J9ObjectModel#S")
2930
#pragma csect(TEST,"J9ObjectModel#T")
31+
#endif
3032

3133
#include <algorithm>
3234
#include <limits.h>

runtime/compiler/optimizer/J9Optimizer.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
2121
*******************************************************************************/
2222

23+
#if defined(J9ZOS390)
2324
//On zOS XLC linker can't handle files with same name at link time
2425
//This workaround with pragma is needed. What this does is essentially
2526
//give a different name to the codesection (csect) for this file. So it
2627
//doesn't conflict with another file with same name.
2728
#pragma csect(CODE,"J9Optimizer#C")
2829
#pragma csect(STATIC,"J9Optimizer#S")
2930
#pragma csect(TEST,"J9Optimizer#T")
31+
#endif
3032

3133
#include "optimizer/Optimizer.hpp"
3234

0 commit comments

Comments
 (0)