Mercurial > hg > CbC > CbC_gcc
diff gcc/config/sparc/driver-sparc.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/config/sparc/driver-sparc.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/config/sparc/driver-sparc.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,5 +1,5 @@ /* Subroutines for the gcc driver. - Copyright (C) 2011-2018 Free Software Foundation, Inc. + Copyright (C) 2011-2020 Free Software Foundation, Inc. This file is part of GCC. @@ -134,19 +134,8 @@ && ksp->ks_type == KSTAT_TYPE_NAMED) brand = (kstat_named_t *) kstat_data_lookup (ksp, CONST_CAST2 (char *, const char *, "brand")); - /* "brand" was only introduced in Solaris 10. */ - if (brand == NULL) - brand = (kstat_named_t *) - kstat_data_lookup (ksp, CONST_CAST2 (char *, const char *, - "implementation")); - /* KSTAT_DATA_STRING was introduced in Solaris 9. */ -#ifdef KSTAT_DATA_STRING if (brand != NULL && brand->data_type == KSTAT_DATA_STRING) buf = KSTAT_NAMED_STR_PTR (brand); -#else - if (brand != NULL && brand->data_type == KSTAT_DATA_CHAR) - buf = brand->value.c; -#endif } kstat_close (kc);