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][LTO] Check-picking patch


On Tue, Sep 23, 2008 at 13:52, Doug Kwan (關振紱) <dougkwan@google.com> wrote:
> Do people care about bootstrapping gcc using a C++ compiler? intptr_t
> is not in C++98.

I consulted on IRC and it can be a problem on older systems that don't
define it.  We have other uses of intptr_t in the branch.  Ian
suggested a patch for gcc/configure.ac.  Ian is this OK?  I used
'long' instead of 'int'.


Thanks.  Diego.


        * configure.ac: Add type check for intptr_t.

Index: configure.ac
===================================================================
--- configure.ac        (revision 140600)
+++ configure.ac        (working copy)
@@ -310,6 +310,7 @@ AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(long)
 AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
 AC_CHECK_TYPES([__int64], [AC_CHECK_SIZEOF(__int64)])
+AC_CHECK_TYPE(intptr_t, long)

 # ---------------------
 # Warnings and checking


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