title: I ran into this error message: 'regparm' is not valid on this platform
body: <p>My Build and Host platforms are X86_64 with suse Linux. My target platform is arm-linux-gnueabi.
  I compile the source code with clang of version 3.6.0 . the compiler run  with -target = arm-linux-gnueabi
  I failed  with the information below</p>
  
  <pre><code>/usr/include/pthread.h:655:6: error: 'regparm' is not valid on this platform
       __cleanup_fct_attribute;
       ^~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/bits/pthreadtypes.h:222:50: note: expanded from macro '__cleanup_fct_attribute'
  # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
                                                   ^            ~
  </code></pre>
  
  <p>What is the issue?</p>