comparison src/share/vm/utilities/macros.hpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents d8041d695d19
children 89152779163c
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, 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.
274 #else 274 #else
275 #define LINUX_ONLY(code) 275 #define LINUX_ONLY(code)
276 #define NOT_LINUX(code) code 276 #define NOT_LINUX(code) code
277 #endif 277 #endif
278 278
279 #ifdef AIX
280 #define AIX_ONLY(code) code
281 #define NOT_AIX(code)
282 #else
283 #define AIX_ONLY(code)
284 #define NOT_AIX(code) code
285 #endif
286
287 #ifdef SOLARIS 279 #ifdef SOLARIS
288 #define SOLARIS_ONLY(code) code 280 #define SOLARIS_ONLY(code) code
289 #define NOT_SOLARIS(code) 281 #define NOT_SOLARIS(code)
290 #else 282 #else
291 #define SOLARIS_ONLY(code) 283 #define SOLARIS_ONLY(code)
348 #else 340 #else
349 #define IA32_ONLY(code) 341 #define IA32_ONLY(code)
350 #define NOT_IA32(code) code 342 #define NOT_IA32(code) code
351 #endif 343 #endif
352 344
353 // This is a REALLY BIG HACK, but on AIX <sys/systemcfg.h> unconditionally defines IA64. 345 #ifdef IA64
354 // At least on AIX 7.1 this is a real problem because 'systemcfg.h' is indirectly included
355 // by 'pthread.h' and other common system headers.
356
357 #if defined(IA64) && !defined(AIX)
358 #define IA64_ONLY(code) code 346 #define IA64_ONLY(code) code
359 #define NOT_IA64(code) 347 #define NOT_IA64(code)
360 #else 348 #else
361 #define IA64_ONLY(code) 349 #define IA64_ONLY(code)
362 #define NOT_IA64(code) code 350 #define NOT_IA64(code) code
376 #else 364 #else
377 #define SPARC_ONLY(code) 365 #define SPARC_ONLY(code)
378 #define NOT_SPARC(code) code 366 #define NOT_SPARC(code) code
379 #endif 367 #endif
380 368
381 #if defined(PPC32) || defined(PPC64) 369 #ifdef PPC
382 #ifndef PPC
383 #define PPC
384 #endif
385 #define PPC_ONLY(code) code 370 #define PPC_ONLY(code) code
386 #define NOT_PPC(code) 371 #define NOT_PPC(code)
387 #else 372 #else
388 #undef PPC
389 #define PPC_ONLY(code) 373 #define PPC_ONLY(code)
390 #define NOT_PPC(code) code 374 #define NOT_PPC(code) code
391 #endif
392
393 #ifdef PPC32
394 #define PPC32_ONLY(code) code
395 #define NOT_PPC32(code)
396 #else
397 #define PPC32_ONLY(code)
398 #define NOT_PPC32(code) code
399 #endif
400
401 #ifdef PPC64
402 #define PPC64_ONLY(code) code
403 #define NOT_PPC64(code)
404 #else
405 #define PPC64_ONLY(code)
406 #define NOT_PPC64(code) code
407 #endif 375 #endif
408 376
409 #ifdef E500V2 377 #ifdef E500V2
410 #define E500V2_ONLY(code) code 378 #define E500V2_ONLY(code) code
411 #define NOT_E500V2(code) 379 #define NOT_E500V2(code)