This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ][z/OS] Use __builtin_zos_va_copy when _VARARG_EXT_ is not defined
Needs ReviewPublic

Authored by muiez on Sep 19 2022, 12:39 PM.

Details

Reviewers
SeanP
zibi
fanbo-meng
ldionne
Group Reviewers
Restricted Project
Summary

z/OS has two different definitions for for va_list. The two sets of builtins are needed to support this. Need to call __builtin_zos_va_copy() when _VARARG_EXT_ is not defined. The problem only happens with c++98 or c++03.

Diff Detail

Event Timeline

muiez created this revision.Sep 19 2022, 12:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2022, 12:39 PM
muiez requested review of this revision.Sep 19 2022, 12:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2022, 12:39 PM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript
ldionne added inline comments.Nov 21 2022, 1:41 PM
libcxx/include/__support/ibm/xlocale.h
110

Can't you enable that extension by default in C++03?