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] |
The problem reported in PR42348 revealed several underlying problems:
1/ that target supports are non-functional for ObjC/C++ when the runtime flags are used (e.g. -fgnu-runtime).
This is because those flags cause a warning from cc1 or cc1plus.
This patch resolves this by changing the file suffix to .m or .mm when the tool under test is ObjC or ObjC++ respectively.
2/ there is no support for detection of whether a target can support OBJC2 or NeXT runtime.,
The patch adds support for detection of __OBJC2__ and next_runtime which are needed if we are to tidy up the number of failing ObjC/C++ tests.
3/ The tests for the gnu-runtime library usage are failing in testsuite/lib/objc.exp and obj-c++.exp.
[they only detect if -fgnu-runtime is placed in the dg-options, rather than also checking the multilib options].
the patch modifies gcc/testsuite/lib/objc.exp and gcc/testsuite/lib/ obj-c++.exp to detect the runtime in force after all the options are processed.
with these patches a more controlled skip-if can be applied [example in the PR]
(which should enable a lot of cleaning up of spurious fails for darwin9/10).
updated with proper change-log and checked whitespace in exps. Iain
Attachment:
objc-target-supports-update-pr42348.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |