This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug plugins/44459] New: plugin interface depends on name mangling
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jun 2010 22:40:42 -0000
- Subject: [Bug plugins/44459] New: plugin interface depends on name mangling
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
There are a number of global variables that are commonly used for plugins.
By switching the GCC build language to C++, we introduce name mangling,
which means that we loose plugin dynamic link compatibility to previous
versions of gcc. Also, the interface becomes subject to change when mangling
changes, and will not be compatible if the build compiler uses a different
mangling scheme. Moreover, it forces to compile plugins with C++.
Global variables that are commonly used for plugins should have C linkage,
and this should be reflected in the plugin header files, so that the
implementation language of the compiler and the plugins becomes decoupled.
--
Summary: plugin interface depends on name mangling
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: plugins
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amylaar at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44459