Hash :
92d7908f
Author :
Date :
2024-03-27T21:34:40
obstack: Work around ICE with Oracle cc 12.6 (regr. 2023-12-01). * lib/obstack.in.h (__PTR_ALIGN): Use SMALL_PTRDIFF_T, instead of testing sizeof (ptrdiff_t) < sizeof (void *) at compile time. * m4/obstack.m4 (gl_FUNC_OBSTACK): Set SMALL_PTRDIFF_T. * modules/obstack (Makefile.am): Substitute SMALL_PTRDIFF_T.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
Description:
Memory allocation, optimized for stack-like allocation patterns.
Files:
lib/obstack.in.h
lib/obstack.c
m4/obstack.m4
Depends-on:
gen-header
alignof [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
gettext-h [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
exitfail [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
stdint [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
stdlib [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
configure.ac:
gl_FUNC_OBSTACK
gl_CONDITIONAL_HEADER([obstack.h])
gl_CONDITIONAL([GL_COND_OBJ_OBSTACK],
[test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1])
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(OBSTACK_H)
# We need the following in order to create <obstack.h> when the system
# doesn't have one that works with any size object.
if GL_GENERATE_OBSTACK_H
obstack.h: obstack.in.h $(top_builddir)/config.status
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
$(gl_V_at)$(SED_HEADER_STDOUT) \
-e 's|@''REPLACE_OBSTACK''@|$(REPLACE_OBSTACK)|g' \
-e 's|@''SMALL_PTRDIFF_T''@|$(SMALL_PTRDIFF_T)|g' \
$(srcdir)/obstack.in.h > $@-t
$(AM_V_at)mv $@-t $@
else
obstack.h: $(top_builddir)/config.status
rm -f $@
endif
MOSTLYCLEANFILES += obstack.h obstack.h-t
if GL_COND_OBJ_OBSTACK
lib_SOURCES += obstack.c
endif
Include:
"obstack.h"
License:
LGPL
Maintainer:
all, glibc