src/hotspot/share/utilities/compilerWarnings.hpp
author mr
Tue, 29 Oct 2019 13:52:04 -0700
changeset 58850 f4290bf1cc21
parent 58682 9f5b92d5a1b2
permissions -rw-r--r--
8233137: runtime/ErrorHandling/VeryEarlyAssertTest.java fails after 8232080 Reviewed-by: stuefe, iignatyev, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
     2
 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     4
 *
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     7
 * published by the Free Software Foundation.
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     8
 *
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    13
 * accompanied this code).
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    14
 *
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    18
 *
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    21
 * questions.
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    22
 *
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    23
 */
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    24
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
    25
#ifndef SHARE_UTILITIES_COMPILERWARNINGS_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
    26
#define SHARE_UTILITIES_COMPILERWARNINGS_HPP
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    27
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    28
// Macros related to control of compiler warnings.
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    29
53645
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    30
#include "utilities/macros.hpp"
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    31
53645
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    32
#include COMPILER_HEADER(utilities/compilerWarnings)
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    33
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    34
// Defaults when not defined for the TARGET_COMPILER_xxx.
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    35
53645
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    36
#ifndef PRAGMA_DIAG_PUSH
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    37
#define PRAGMA_DIAG_PUSH
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    38
#endif
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    39
#ifndef PRAGMA_DIAG_POP
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    40
#define PRAGMA_DIAG_POP
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    41
#endif
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    42
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    43
#ifndef PRAGMA_DISABLE_GCC_WARNING
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    44
#define PRAGMA_DISABLE_GCC_WARNING(name)
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    45
#endif
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    46
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    47
#ifndef PRAGMA_DISABLE_MSVC_WARNING
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    48
#define PRAGMA_DISABLE_MSVC_WARNING(num)
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    49
#endif
2c6c0fabe6a2 8218164: Improve local control of compiler warnings
kbarrett
parents: 53244
diff changeset
    50
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    51
#ifndef ATTRIBUTE_PRINTF
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    52
#define ATTRIBUTE_PRINTF(fmt, vargs)
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    53
#endif
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    54
#ifndef ATTRIBUTE_SCANF
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    55
#define ATTRIBUTE_SCANF(fmt, vargs)
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    56
#endif
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    57
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    58
#ifndef PRAGMA_FORMAT_NONLITERAL_IGNORED
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    59
#define PRAGMA_FORMAT_NONLITERAL_IGNORED
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    60
#endif
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    61
#ifndef PRAGMA_FORMAT_IGNORED
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    62
#define PRAGMA_FORMAT_IGNORED
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    63
#endif
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
diff changeset
    64
58682
9f5b92d5a1b2 8232084: HotSpot build failed with GCC 9.2.1
ysuenaga
parents: 53645
diff changeset
    65
#ifndef PRAGMA_STRINGOP_TRUNCATION_IGNORED
9f5b92d5a1b2 8232084: HotSpot build failed with GCC 9.2.1
ysuenaga
parents: 53645
diff changeset
    66
#define PRAGMA_STRINGOP_TRUNCATION_IGNORED
9f5b92d5a1b2 8232084: HotSpot build failed with GCC 9.2.1
ysuenaga
parents: 53645
diff changeset
    67
#endif
9f5b92d5a1b2 8232084: HotSpot build failed with GCC 9.2.1
ysuenaga
parents: 53645
diff changeset
    68
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
    69
#endif // SHARE_UTILITIES_COMPILERWARNINGS_HPP