GCC and Clang diverged in how attribute is supported. GCC gives a compile-time error if there is an attribute in the function-definition and needs to be in the forward declaration. Clang does not like attribute in the forward declaration and requires it in the function-definition. This is the only benchmark in the test suite not compiling with GCC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rOLDT svn-test-suite
- Build Status
Buildable 82578 Build 111672: arc lint + arc unit
Event Timeline
Comment Actions
Thanks for the patch. Apparently both gcc and clang are fine if the attribute is placed before the definition: https://godbolt.org/z/5aTrcb, so we could do without the ifdefs.
(Though gcc does not know about the attribute, but that's also the case with the current version)