This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 06/01/2012 03:34 PM, Jakub Jelinek wrote:If nothing else comes to mind, you can always add a check_v3_target_glibc to libstdc++.exp and then a dg-require-glibc using it to dg-options.exp. Inside the former, just check that __GLIBC__ is defined, maybe with an appropriate value.The standard -D_FORTIFY_SOURCE failure is __chk_fail (), so IMNSHO if this is presented as _FORTIFY_SOURCE check, it should call that and not some other function. You'd need to use #if __USE_FORTIFY_LEVEL> 0 test instead (as __chk_fail is only provided by glibcs that on _FORTIFY_SOURCE definition sets __USE_FORTIFY_LEVEL), but it would be consistent with all other fortification failures (and, even -fstack-protector failures are similar).
__chk_fail it is, then. This means that the test case will be specific to GNU libc platforms. How can I mark it as such?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |