aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf_post.h
diff options
context:
space:
mode:
authorPaul Eggert2013-10-03 00:06:52 -0700
committerPaul Eggert2013-10-03 00:06:52 -0700
commit0a858ebfc57a072ae8ab65f509d8a4901a2ec073 (patch)
treedd81bcdf11f3d3efa32ffe00f7cdc90d3c1144d9 /src/conf_post.h
parentb52f569dcfc5c2e1b764c89d27ea8699a44228e6 (diff)
downloademacs-0a858ebfc57a072ae8ab65f509d8a4901a2ec073.tar.gz
emacs-0a858ebfc57a072ae8ab65f509d8a4901a2ec073.zip
Merge from gnulib.
* src/conf_post.h (__has_builtin, assume): Remove; gnulib now does these. * src/lisp.h: Include <verify.h>, for 'assume'. This also incorpoprates: 2013-10-02 verify: new macro 'assume' 2013-09-26 dup2, dup3: work around another cygwin crasher 2013-09-26 getdtablesize: work around cygwin issue
Diffstat (limited to 'src/conf_post.h')
-rw-r--r--src/conf_post.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/conf_post.h b/src/conf_post.h
index 0786bdfeb33..786105864f2 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -248,23 +248,6 @@ extern void _DebPrint (const char *fmt, ...);
248# define FLEXIBLE_ARRAY_MEMBER 1 248# define FLEXIBLE_ARRAY_MEMBER 1
249#endif 249#endif
250 250
251#ifndef __has_builtin
252# define __has_builtin(x) 0
253#endif
254
255/* Tell the compiler (and lint) that COND will always hold, and that
256 it should optimize (or check) accordingly. */
257#if (__has_builtin (__builtin_unreachable) \
258 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) || __GNUC__ > 4)
259# define assume(cond) ((cond) ? (void) 0 : __builtin_unreachable ())
260#elif defined _MSC_VER
261# define assume(cond) __assume (cond)
262#elif defined lint
263# define assume(cond) ((cond) ? (void) 0 : abort ())
264#else
265# define assume(cond) ((void) (0 && (cond)))
266#endif
267
268/* Use this to suppress gcc's `...may be used before initialized' warnings. */ 251/* Use this to suppress gcc's `...may be used before initialized' warnings. */
269#ifdef lint 252#ifdef lint
270/* Use CODE only if lint checking is in effect. */ 253/* Use CODE only if lint checking is in effect. */