[Bug target/108495] [10/11/12/13 Regression] aarch64 ICE with __builtin_aarch64_rndr

dantipov at cloudlinux dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 25 08:40:28 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108495

--- Comment #5 from Dmitry Antipov <dantipov at cloudlinux dot com> ---
# cat t-rand.c 
#include <stdint.h>
#include <arm_acle.h>

int main(int argc, char *argv[]) {
  uint64_t v;
  __rndr(&v);
  return 0;
}

# gcc t-rand.c 
In file included from t-rand.c:2:
/usr/lib/gcc/aarch64-redhat-linux/12/include/arm_acle.h: In function ‘main’:
/usr/lib/gcc/aarch64-redhat-linux/12/include/arm_acle.h:313:1: error: inlining
failed in call to ‘always_inline’ ‘__rndr’: target specific option mismatch
  313 | __rndr (uint64_t *__res)
      | ^~~~~~
t-rand.c:6:3: note: called from here
    6 |   __rndr(&v);
      |   ^~~~~~~~~~

So, what target-specific option is wrong if none of them was specified?


More information about the Gcc-bugs mailing list