Merge pull request #4626 from rhc54/topic/optnone
Add the __optnone__ attribute
Этот коммит содержится в:
Коммит
fc1acea533
@ -16,6 +16,7 @@ dnl Copyright (c) 2013 Mellanox Technologies, Inc.
|
|||||||
dnl All rights reserved.
|
dnl All rights reserved.
|
||||||
dnl Copyright (c) 2015 Research Organization for Information Science
|
dnl Copyright (c) 2015 Research Organization for Information Science
|
||||||
dnl and Technology (RIST). All rights reserved.
|
dnl and Technology (RIST). All rights reserved.
|
||||||
|
dnl Copyright (c) 2017 Intel, Inc. All rights reserved.
|
||||||
dnl $COPYRIGHT$
|
dnl $COPYRIGHT$
|
||||||
dnl
|
dnl
|
||||||
dnl Additional copyrights may follow
|
dnl Additional copyrights may follow
|
||||||
@ -221,6 +222,7 @@ AC_DEFUN([OPAL_CHECK_ATTRIBUTES], [
|
|||||||
opal_cv___attribute__warn_unused_result=0
|
opal_cv___attribute__warn_unused_result=0
|
||||||
opal_cv___attribute__weak_alias=0
|
opal_cv___attribute__weak_alias=0
|
||||||
opal_cv___attribute__destructor=0
|
opal_cv___attribute__destructor=0
|
||||||
|
opal_cv___attribute__optnone=0
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
|
||||||
@ -556,6 +558,15 @@ AC_DEFUN([OPAL_CHECK_ATTRIBUTES], [
|
|||||||
],
|
],
|
||||||
[],
|
[],
|
||||||
[])
|
[])
|
||||||
|
|
||||||
|
_OPAL_CHECK_SPECIFIC_ATTRIBUTE([optnone],
|
||||||
|
[
|
||||||
|
void foo(void) __attribute__ ((__optnone__));
|
||||||
|
void foo(void) { return ; }
|
||||||
|
],
|
||||||
|
[],
|
||||||
|
[])
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now that all the values are set, define them
|
# Now that all the values are set, define them
|
||||||
@ -608,4 +619,6 @@ AC_DEFUN([OPAL_CHECK_ATTRIBUTES], [
|
|||||||
[Whether your compiler has __attribute__ weak alias or not])
|
[Whether your compiler has __attribute__ weak alias or not])
|
||||||
AC_DEFINE_UNQUOTED(OPAL_HAVE_ATTRIBUTE_DESTRUCTOR, [$opal_cv___attribute__destructor],
|
AC_DEFINE_UNQUOTED(OPAL_HAVE_ATTRIBUTE_DESTRUCTOR, [$opal_cv___attribute__destructor],
|
||||||
[Whether your compiler has __attribute__ destructor or not])
|
[Whether your compiler has __attribute__ destructor or not])
|
||||||
|
AC_DEFINE_UNQUOTED(OPAL_HAVE_ATTRIBUTE_OPTNONE, [$opal_cv___attribute__optnone],
|
||||||
|
[Whether your compiler has __attribute__ optnone or not])
|
||||||
])
|
])
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2015-2017 Research Organization for Information Science
|
* Copyright (c) 2015-2017 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* Copyright (c) 2015 Intel, Inc. All rights reserved.
|
* Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -234,6 +234,12 @@
|
|||||||
# define __opal_attribute_destructor__
|
# define __opal_attribute_destructor__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if OPAL_HAVE_ATTRIBUTE_OPTNONE
|
||||||
|
# define __opal_attribute_optnone__ __attribute__((__optnone__))
|
||||||
|
#else
|
||||||
|
# define __opal_attribute_optnone__
|
||||||
|
#endif
|
||||||
|
|
||||||
# if OPAL_C_HAVE_VISIBILITY
|
# if OPAL_C_HAVE_VISIBILITY
|
||||||
# define OPAL_DECLSPEC __opal_attribute_visibility__("default")
|
# define OPAL_DECLSPEC __opal_attribute_visibility__("default")
|
||||||
# define OPAL_MODULE_DECLSPEC __opal_attribute_visibility__("default")
|
# define OPAL_MODULE_DECLSPEC __opal_attribute_visibility__("default")
|
||||||
|
@ -173,7 +173,7 @@ char MPIR_attach_fifo[MPIR_MAX_PATH_LENGTH] = {0};
|
|||||||
int MPIR_force_to_main = 0;
|
int MPIR_force_to_main = 0;
|
||||||
static void orte_debugger_init_before_spawn(orte_job_t *jdata);
|
static void orte_debugger_init_before_spawn(orte_job_t *jdata);
|
||||||
|
|
||||||
ORTE_DECLSPEC void* MPIR_Breakpoint(void);
|
ORTE_DECLSPEC void* MPIR_Breakpoint(void) __opal_attribute_optnone__;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Breakpoint function for parallel debuggers
|
* Breakpoint function for parallel debuggers
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user