Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require C11 #12660

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Require C11 #12660

wants to merge 7 commits into from

Commits on Oct 9, 2024

  1. Require C11

    Error out if the compiler does not support C11.
    
    Also removes support for `__thread` since we now rely on C11 `_Thread_local`.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    7d4bb04 View commit details
    Browse the repository at this point in the history
  2. Replace typeof() with size_t in loop header

    All uses of the `PREPARE_REQUESTS_WITH_NO_FREE` macro map to size_t.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    ca65d28 View commit details
    Browse the repository at this point in the history
  3. Add feature test macro _POSIX_C_SOURCE to enable fileno()

    Flex prior to 2.6.6 uses fileno() but does not define the needed
    feature test macros.
    See westes/flex#263 for details.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    288868e View commit details
    Browse the repository at this point in the history
  4. Add feature test macro to enable pthread_mutexattr_settype()

    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    1015ddf View commit details
    Browse the repository at this point in the history
  5. Enable nanosleep with _POSIX_C_SOURCE

    Move calls to nanosleep out of headers and add the feature test macro
    _POSIX_C_SOURCE to enable its use. This should not cause
    any significant overheads.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    039cb58 View commit details
    Browse the repository at this point in the history
  6. Reduce_local test: Add feature test macros

    Needed for strsep(), posix_memalign(), and getopt().
    
    Also fix the min/max macros. There is no need to cache the variables
    as these macros are used without producing side-effects.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    fe06e48 View commit details
    Browse the repository at this point in the history
  7. Include ompi_config.h in reduce_local.c

    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    b21fc7a View commit details
    Browse the repository at this point in the history