[Bug target/82641] Unable to enable crc32 for a certain function with target attribute on ARM (aarch32)
tnfchris at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 31 10:24:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82641
Tamar Christina <tnfchris at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |tnfchris at gcc dot gnu.org
--- Comment #5 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
My patch adds support for
```
#pragma GCC push_options
#pragma GCC target("arch=armv8-a+crc")
__attribute__((target("arch=armv8-a+crc"))) uint32_t crc32cw(uint32_t crc,
uint32_t val)
```
and just
```
#pragma GCC push_options
#pragma GCC target("+crc")
__attribute__((target("+crc"))) uint32_t crc32cw(uint32_t crc, uint32_t val)
```
if the compiler was invoked with `-march=armv8-a`.
However it currently doesn't allow
```
#pragma GCC push_options
#pragma GCC target("armv8-a+crc")
__attribute__((target("armv8-a+crc"))) uint32_t crc32cw(uint32_t crc, uint32_t
val)
```
as it doesn't know if you wanted to change the `fpu` or `arch` here.
Should I support this case as well?
More information about the Gcc-bugs
mailing list