https://bugs.kde.org/show_bug.cgi?id=430429

            Bug ID: 430429
           Summary: valgrind.h doesn't compile on s390x with clang
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: a...@scylladb.com
  Target Milestone: ---

SUMMARY

Given a file test.c with the content

---8<--begin content---8<----
#include <valgrind/valgrind.h>
---8<---end content----8<----

It fails to compile on s390x:

 clang -o test.o test.c
In file included from test.c:1:
/usr/include/valgrind/valgrind.h:6768:47: error: unsupported inline asm: input
with type 'int' matching output with type 'volatile unsigned long'
   _qzz_res = VALGRIND_DO_CLIENT_REQUEST_EXPR(0,
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/valgrind/valgrind.h:879:49: note: expanded from macro
'VALGRIND_DO_CLIENT_REQUEST_EXPR'
                    : "a" (&_zzq_args[0]), "0" (_zzq_default)    \
                                                ^~~~~~~~~~~~
/usr/include/valgrind/valgrind.h:6807:47: error: unsupported inline asm: input
with type 'int' matching output with type 'volatile unsigned long'
   _qzz_res = VALGRIND_DO_CLIENT_REQUEST_EXPR(0,
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/valgrind/valgrind.h:879:49: note: expanded from macro
'VALGRIND_DO_CLIENT_REQUEST_EXPR'
                    : "a" (&_zzq_args[0]), "0" (_zzq_default)    \
                                                ^~~~~~~~~~~~
2 errors generated.



STEPS TO REPRODUCE
1. Create a file with the provided content
2. Compile it on s390x with clang


OBSERVED RESULT


Errors

EXPECTED RESULT

No errors


SOFTWARE/OS VERSIONS
Linux, Fedora 33, valgrind-3.16.1-8.fc33.s390x, clang-11.0.0-2.fc33.s390x

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to