From d90e5b5b9f235cfcfc635d107e8d73cd2ce35f51 Mon Sep 17 00:00:00 2001 From: Kim Barrett Date: Thu, 4 Apr 2024 16:45:32 +0000 Subject: [PATCH] 8329546: Assume sized integral types are available Reviewed-by: iklam, jwaters --- .../share/utilities/globalDefinitions_gcc.hpp | 27 +++---------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp index 7ea877062d8..06bb22687d8 100644 --- a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp +++ b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,9 +32,11 @@ // declarations and a few frequently used utility functions. #include +#include #include #include #include +#include #include #include #include @@ -49,7 +51,6 @@ #include #if defined(LINUX) || defined(_ALLBSD_SOURCE) -#include #include #ifndef __OpenBSD__ #include @@ -79,28 +80,6 @@ #define NULL_WORD NULL #endif -#if !defined(LINUX) && !defined(_ALLBSD_SOURCE) -// Compiler-specific primitive types -typedef unsigned short uint16_t; -#ifndef _UINT32_T -#define _UINT32_T -typedef unsigned int uint32_t; -#endif // _UINT32_T - -#if !defined(_SYS_INT_TYPES_H) -#ifndef _UINT64_T -#define _UINT64_T -typedef unsigned long long uint64_t; -#endif // _UINT64_T -// %%%% how to access definition of intptr_t portably in 5.5 onward? -typedef int intptr_t; -typedef unsigned int uintptr_t; -// If this gets an error, figure out a symbol XXX that implies the -// prior definition of intptr_t, and add "&& !defined(XXX)" above. -#endif // _SYS_INT_TYPES_H - -#endif // !LINUX && !_ALLBSD_SOURCE - // checking for nanness #if defined(__APPLE__) inline int g_isnan(double f) { return isnan(f); }