Skip to content

No support for modes KF/KC cause failures to compile math.h with -mfloat128 on PPC #45413

@nemanjai

Description

@nemanjai
Bugzilla Link 46068
Version 10.0
OS All
Blocks #44654
CC @zygoloid,@tstellar
Fixed by commit(s) f9e94eb 9021ce9

Extended Description

The following test case does not compile with clang (and also causes failures to configure projects when -mfloat128 is in the FLAGS):

#include <math.h>
__CFLOAT128 testkf(__CFLOAT128 a, __CFLOAT128 b) {
return a + b;
}

$ clang -I /opt/at12.0/include -S -mfloat128 -mcpu=power9 noKC.c -O
In file included from noKC.c:1:
In file included from /opt/at12.0/include/math.h:43:
/opt/at12.0/include/bits/floatn.h:82:52: error: unknown machine mode 'KC'
typedef _Complex float __cfloat128 attribute ((mode (KC)));
^
1 error generated.

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