comparison src/share/vm/utilities/globalDefinitions_gcc.hpp @ 5859:db9bb949e04c

Added tag jdk7u231-ga for changeset a8f5a2d0d6a0
author andrew
date Tue, 16 Jul 2019 23:18:28 +0100
parents 58c34ffeff58
children
comparison
equal deleted inserted replaced
12:2ee24fc36c67 13:49bc5ee9f3a4
1 /* 1 /*
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
279 // Portability macros 279 // Portability macros
280 #define PRAGMA_INTERFACE #pragma interface 280 #define PRAGMA_INTERFACE #pragma interface
281 #define PRAGMA_IMPLEMENTATION #pragma implementation 281 #define PRAGMA_IMPLEMENTATION #pragma implementation
282 #define VALUE_OBJ_CLASS_SPEC 282 #define VALUE_OBJ_CLASS_SPEC
283 283
284 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) || (__GNUC__ > 4)
285 // Tested to work with clang version 3.1 and better.
286 #define PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push")
287 #define PRAGMA_DIAG_POP _Pragma("GCC diagnostic pop")
288 #else
289 // Old versions of gcc don't do push/pop, also do not cope with this pragma within a function
290 // One method does so much varied printing that it is decorated with both internal and external
291 // versions of the macro-pragma to obtain better checking with newer compilers.
292 #define PRAGMA_DIAG_PUSH
293 #define PRAGMA_DIAG_POP
294 #endif
295
284 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 95) 296 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 95)
285 #define TEMPLATE_TABLE_BUG 297 #define TEMPLATE_TABLE_BUG
286 #endif 298 #endif
287 #if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 96) 299 #if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)
288 #define CONST_SDM_BUG 300 #define CONST_SDM_BUG