https://llvm.org/bugs/show_bug.cgi?id=24214

            Bug ID: 24214
           Summary: Clang crashes with the regparam function attribute
                    when targeting AArch64
           Product: clang
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

Created attachment 14626
  --> https://llvm.org/bugs/attachment.cgi?id=14626&action=edit
Example showing the assert

The AArch64TargetInfo class sets RegParmMax to 8, however in
include/clang/Basic/TargetInfo.h there is an assert that RegParmMax < 7.

The attached file shows the issue when built with:
clang -cc1 -triple aarch64-unknown-freebsd11.0 regparam_test.c

Building this with clang 3.6 from FreeBSD and clang 3.8 I get the following:

Assertion failed: (RegParmMax < 7 && "RegParmMax value is larger than AST can
handle"), function getRegParmMax, file
/home/andrew/freebsd/repo/llvm/tools/clang/include/clang/Basic/TargetInfo.h,
line 824.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to