public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* AC_COMPILE_CHECK_SIZEOF
@ 2004-09-05 15:45 Jones Desougi
  2004-09-05 17:04 ` AC_COMPILE_CHECK_SIZEOF Zack Weinberg
  0 siblings, 1 reply; 11+ messages in thread
From: Jones Desougi @ 2004-09-05 15:45 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-09-13 20:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-05 15:45 AC_COMPILE_CHECK_SIZEOF Jones Desougi
2004-09-05 17:04 ` AC_COMPILE_CHECK_SIZEOF Zack Weinberg
2004-09-05 23:45   ` AC_COMPILE_CHECK_SIZEOF Jones Desougi
2004-09-06  0:44     ` AC_COMPILE_CHECK_SIZEOF Zack Weinberg
2004-09-06 14:36       ` AC_COMPILE_CHECK_SIZEOF Giovanni Bajo
2004-09-06 16:44         ` AC_COMPILE_CHECK_SIZEOF Zack Weinberg
2004-09-06 22:03       ` AC_COMPILE_CHECK_SIZEOF Jones Desougi
2004-09-07  4:56         ` AC_COMPILE_CHECK_SIZEOF Zack Weinberg
2004-09-13 13:18           ` AC_COMPILE_CHECK_SIZEOF Jones Desougi
2004-09-13 21:13             ` AC_COMPILE_CHECK_SIZEOF Zack Weinberg
2004-09-13 21:20               ` AC_COMPILE_CHECK_SIZEOF DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).