Skip to content

Clang crashes with the regparam function attribute when targeting AArch64 #24588

@llvmbot

Description

@llvmbot
Bugzilla Link 24214
Resolution FIXED
Resolved on Jul 28, 2015 09:32
Version trunk
OS FreeBSD
Attachments Example showing the assert
Reporter LLVM Bugzilla Contributor
CC @DimitryAndric,@emaste,@kbeyls,@rengolin

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions