This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/42843] --enable-build-with-cxx plugin tests fail
- From: "iains at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2010 07:20:32 -0000
- Subject: [Bug testsuite/42843] --enable-build-with-cxx plugin tests fail
- References: <bug-42843-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from iains at gcc dot gnu dot org 2010-07-17 07:20 -------
(In reply to comment #16)
> Created an attachment (id=21188)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21188&action=view) [edit]
> proposed patch
>
> This patch should restore the use of the previous stage compiler for plugins.
This is working fine in respect of putting the bootstrap compiler in and,
when --enable-build-with-cxx is given, the g++ plugins work on powerpc-darwin9.
When --enable-build-with-cxx is not given, several of them fail
(attribute_plugin-test-1, pragma_plugin-test-1, dumb-plugin-test-1).
This is because the compiler is ${objdir}/xgcc and the plugin names end ".c"
therefore they are built as standard "c".
If it is intended that plugins for g++ should be build-able as straight 'c',
then there is an issue the plugin examples.
otherwise, we need to arrange the the plugins get built by g++ when they are
intended to be used within it.
(this is not as simple as changing their filenames to end .C, since the
includes are defined in lib/plugin-support.exp and they don't include any
consideration of the possibility that c++ headers might be needed).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42843