[LLVMbugs] [Bug 24214] New: Clang crashes with the regparam function attribute when targeting AArch64
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jul 22 09:26:56 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: andrew at fubar.geek.nz
CC: dimitry at andric.com, emaste at freebsd.org,
llvmbugs at cs.uiuc.edu, rdivacky at freebsd.org,
renato.golin at linaro.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150722/69230609/attachment.html>
More information about the llvm-bugs
mailing list