AC_COMPILE_CHECK_SIZEOF

Jones Desougi jones@ingate.com
Sun Sep 5 15:45:00 GMT 2004


AC_COMPILE_CHECK_SIZEOF (in config/accross.m4) takes an optional argument
and uses it for two incompatible purposes. One is additional sizes to try
and the other is additional code sent to AC_TRY_COMPILE.
This affects mainline and the 3.4 branch. The gcc_AC_COMPILE_CHECK_SIZEOF
that was in 3.3.x used two optional arguments for this.
The optional argument does not appear to be used anywhere at this time.

This patch takes the approach of the old macro and applies to both
mainline and 3.4 branch:

2004-09-05  Jones Desougi  <jones@ingate.com>

	* accross.m4 (AC_COMPILE_CHECK_SIZEOF): Split self conflicting
	optional argument into two.


Index: config/accross.m4
===================================================================
RCS file: /cvsroot/gcc/gcc/config/accross.m4,v
retrieving revision 1.3
diff -u -r1.3 accross.m4
--- config/accross.m4	9 Mar 2004 01:16:10 -0000	1.3
+++ config/accross.m4	5 Sep 2004 14:42:49 -0000
@@ -7,7 +7,7 @@
 changequote([, ])dnl
 AC_MSG_CHECKING(size of $1)
 AC_CACHE_VAL(AC_CV_NAME,
-[for ac_size in 4 8 1 2 16 12 $2 ; do # List sizes in rough order of prevalence.
+[for ac_size in 4 8 1 2 16 12 $3 ; do # List sizes in rough order of prevalence.
   AC_TRY_COMPILE([#include "confdefs.h"
 #include <sys/types.h>
 $2



More information about the Gcc mailing list