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

Fix builtin __gdsa function call for Open XL #7419

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Deigue
Copy link
Contributor

@Deigue Deigue commented Jul 18, 2024

When building Open J9, Open XL throws an error building CallStack.cpp as extern builtins unsupported. This adds the appropriate alternative that works with Open XL and allows compilation.

When building Open J9, Open XL throws an error building
CallStack.cpp as extern builtins unsupported. This adds
the appropriate alternative that works with Open XL and
allows compilation.

Signed-off-by: Gaurav Chaudhari <[email protected]>
Copy link
Contributor

@r30shah r30shah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@r30shah
Copy link
Contributor

r30shah commented Jul 26, 2024

jenkins build zos

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is only one instance of ifdefs being commented at the end of this file. the suggested formatting in the coding standard should be followed: https://github.com/eclipse/omr/blob/3223d8d0d584575eafb5ec462250baae92cd6084/doc/CodingStandard.md#comment-conditional-compilation-directives-if-ifdef-ifndef-else-elif-endif

extern "builtin" void *__gdsa();
#endif // !defined(__open_xl__)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#endif // !defined(__open_xl__)
#endif /* !defined(__open_xl__) */


TR_MvsCallStackIterator::TR_MvsCallStackIterator ()
: TR_CallStackIterator()
{
#if defined(__open_xl__)
_parms.__tf_dsa_addr = (void*)__builtin_s390_gdsa();
#else
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#else
#else /* !defined(__open_xl__) */

_parms.__tf_dsa_addr = (void*)__gdsa();
#endif // defined(__open_xl__)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#endif // defined(__open_xl__)
#endif /* !defined(__open_xl__) */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants