-
Notifications
You must be signed in to change notification settings - Fork 885
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
opal: do not declare static inline ... (void) #3829
opal: do not declare static inline ... (void) #3829
Conversation
just declare inline subroutines with static inline ... () in order to make some compilers (xlc 12.1) happy Thanks Paul Hargrove for the report Refs. open-mpi#3816 Signed-off-by: Gilles Gouaillardet <[email protected]>
bot:mellanox:retest |
Hmm. I'm not a fan of this fix. Per #3816, I see that @PHHargrove confirms that it fixes the issue, but it's still... weird. Is XLC v12.1 an old version of the compiler? (I ask because I have no idea what the current version of XLC is) I ask this because I'm a bit hesitant to take valid C89 code and turn it into pre-ANSI C code just to workaround a potential compiler bug. If XLC 12.1 is a version we care about, is it possible to have some |
Yeah, this is odd. |
There is a semantical difference between the 2, and using void is the explicit way to state there are no arguments. The old notation, the one without the I went back to the original ticket #3816 and I noticed there is nothing to enforce C99 compliance. Should we use c99 instead of xlc ? |
Based on http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/, it would appear that XLC12 is not the most recent compiler, but perhaps IBM doesn't have a linear version history or something I'm missing. I'd rather not support the compiler suite than take this patch. |
FWIW: hypothetically,
I didn't check exactly what that test is doing -- it's assumedly checking for some level of C99edness. But it's clearly not checking for this specific feature (or at least, not checking for this feature in the way that |
Removing the 3.0.0 milestone, since we're going with the README approach for the release. I'll let @ggouaillardet decide whether to close the PR. |
In PR #4103 we removed support for XL compilers < 13.1. So do we need this PR any more? |
since we could not reach a consensus on that PR and the issue only occurs on a no more supported compiler, i will close this PR. anyone is free to re-open it if needed |
just declare inline subroutines with
static inline ... ()
in order to make some compilers (xlc 12.1) happy
Thanks Paul Hargrove for the report
Refs. #3816
Signed-off-by: Gilles Gouaillardet [email protected]