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]

Re: PATCH to libcpp: Move to the intersection of C90 an C++


Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

| Hi,
| 
|   This patch moves libcpp to the intersection of C90 and C++.
| It survived testing on i686-pc-linux-gnu, sparc-sun-solaris2.7 and
| sparc-sun-solaris2.8
| 
| HAVE_DESIGNATED_INITIALIZERS cannot be true if __cplusplus.
| We don't want to #define to unsigned char if __cplusplus
                          ^

There is a missing "bool" here, sorry.   

| (that causes link failure when bulding the GNU C compiler with
| g++, as gcc/system.h do not #define bool in that case).
| 
| The definition of union _cpp_hashnode_value needs to be moved at the
| global scope, because a structure defines a scope in C++ (while they
| don't in C) 
| 
| OK to install when mainline is back?

Ping.

The patch brings us in line with our coding conventions, and ease
further works that focuse on gcc/.

Thanks,

-- Gaby


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