[PATCH][LTO] Check-picking patch

Diego Novillo dnovillo@google.com
Tue Sep 23 19:11:00 GMT 2008


On Tue, Sep 23, 2008 at 13:52, Doug Kwan ($Bop?6y~(B) <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



More information about the Gcc-patches mailing list