Mercurial > hg > CbC > CbC_gcc
comparison libiberty/aclocal.m4 @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
170 otherwise it will be automatically deduced at run-time. | 170 otherwise it will be automatically deduced at run-time. |
171 STACK_DIRECTION > 0 => grows toward higher addresses | 171 STACK_DIRECTION > 0 => grows toward higher addresses |
172 STACK_DIRECTION < 0 => grows toward lower addresses | 172 STACK_DIRECTION < 0 => grows toward lower addresses |
173 STACK_DIRECTION = 0 => direction of growth unknown]) | 173 STACK_DIRECTION = 0 => direction of growth unknown]) |
174 ]) | 174 ]) |
175 | |
176 # AC_LANG_FUNC_LINK_TRY(C)(FUNCTION) | |
177 # ---------------------------------- | |
178 # Don't include <ctype.h> because on OSF/1 3.0 it includes | |
179 # <sys/types.h> which includes <sys/select.h> which contains a | |
180 # prototype for select. Similarly for bzero. | |
181 # | |
182 # This test used to merely assign f=$1 in main(), but that was | |
183 # optimized away by HP unbundled cc A.05.36 for ia64 under +O3, | |
184 # presumably on the basis that there's no need to do that store if the | |
185 # program is about to exit. Conversely, the AIX linker optimizes an | |
186 # unused external declaration that initializes f=$1. So this test | |
187 # program has both an external initialization of f, and a use of f in | |
188 # main that affects the exit status. | |
189 # | |
190 m4_define([AC_LANG_FUNC_LINK_TRY(C)], | |
191 [AC_LANG_PROGRAM( | |
192 [/* System header to define __stub macros and hopefully few prototypes, | |
193 which can conflict with char $1 (); below. | |
194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
195 <limits.h> exists even on freestanding compilers. Under hpux, | |
196 including <limits.h> includes <sys/time.h> and causes problems | |
197 checking for functions defined therein. */ | |
198 #if defined (__STDC__) && !defined (_HPUX_SOURCE) | |
199 # include <limits.h> | |
200 #else | |
201 # include <assert.h> | |
202 #endif | |
203 /* Override any gcc2 internal prototype to avoid an error. */ | |
204 #ifdef __cplusplus | |
205 extern "C" | |
206 { | |
207 #endif | |
208 /* We use char because int might match the return type of a gcc2 | |
209 builtin and then its argument prototype would still apply. */ | |
210 char $1 (); | |
211 /* The GNU C library defines this for functions which it implements | |
212 to always fail with ENOSYS. Some functions are actually named | |
213 something starting with __ and the normal name is an alias. */ | |
214 #if defined (__stub_$1) || defined (__stub___$1) | |
215 choke me | |
216 #else | |
217 char (*f) () = $1; | |
218 #endif | |
219 #ifdef __cplusplus | |
220 } | |
221 #endif | |
222 ], [return f != $1;])]) | |
223 |