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

trunk merged into MELT branch after C++ conversion


Hello All,

I just successfully merged the trunk (future GCC 4.8) svn rev 190745 
into the MELT (www.gcc-melt.org) branch (svn rev 190778). 
In particular, this meant merging the C++ conversion into the MELT branch.

That merge was a bit painful, because of the C -> C++ conversion.
Most of the pain was build procedure related.

The PPL related code has been entirely removed from MELT.

I discovered a strange property of C++ regarding symbols. If you just code

   // file foo1.cc
   extern "C" { 
     const int twosymb=2;
   };

the resulting foo1.o does not define a twosymb symbol (I expected that it does).
You have to code

   // file foo2.cc
   extern "C" {
     extern const int twosymb;
     const int twosymb=2;
   };
   
to get a symbol "twosymb" in foo2.o

I expect the next release of MELT plugin to be compatible with GCC 4.7, 
also hopefully perhaps still with GCC 4.6, and with the trunk (i.e. 4.8).

Regards.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


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