This is the mail archive of the gcc-bugs@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]

[Bug testsuite/42843] --enable-build-with-cxx plugin tests fail



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]