-Subproject commit 68b6adebef05670a312fb92b05e7bd089d2ed43a
+Subproject commit 83d3c7ff38488105ab667b37671086c3d739c30c
index 1974c36..02ef9f2 100644
--- a/diffseq.h
+++ b/diffseq.h
-@@ -186,7 +186,7 @@ diag (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim,
+@@ -207,7 +207,7 @@ diag (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim,
for (c = 1;; ++c)
{
OFFSET d; /* Active diagonal. */
struct patternlist
{
struct patternlist *next;
- CHAR str[1];
+ CHAR str[FLEXIBLE_ARRAY_MEMBER];
} *list = NULL;
struct patternlist **lastp = &list;
size_t pattern_len = STRLEN (pattern);
{
struct patternlist *next;
+ int malloced;
- CHAR str[1];
+ CHAR str[FLEXIBLE_ARRAY_MEMBER];
} *list = NULL;
struct patternlist **lastp = &list;
size_t pattern_len = STRLEN (pattern);
***************
*** 1075,1085 ****
plensize = plen * sizeof (CHAR); \
- newpsize = offsetof (struct patternlist, str) + plensize; \
+ newpsize = FLEXSIZEOF (struct patternlist, str, plensize); \
if ((size_t) -1 / sizeof (CHAR) < plen \
! || newpsize < offsetof (struct patternlist, str) \
! || ALLOCA_LIMIT <= newpsize) \
lastp = &newp->next
--- 1081,1101 ----
plensize = plen * sizeof (CHAR); \
- newpsize = offsetof (struct patternlist, str) + plensize; \
+ newpsize = FLEXSIZEOF (struct patternlist, str, plensize); \
if ((size_t) -1 / sizeof (CHAR) < plen \
! || newpsize < offsetof (struct patternlist, str)) \
! goto failed; \
*** obstack.h.orig 2014-04-07 15:57:16.908837962 +0900
--- obstack.h 2014-04-07 15:58:22.208411479 +0900
***************
-*** 201,210 ****
+*** 221,230 ****
more memory. This can be set to a user defined function which
should either abort gracefully or use longjump - but shouldn't
return. The default action is to print a message and abort. */
-! extern void (*obstack_alloc_failed_handler) (void);
+! extern __attribute_noreturn__ void (*obstack_alloc_failed_handler) (void);
/* Exit value used when 'print_and_abort' is used. */
! extern int obstack_exit_failure;
/* Pointer to beginning of object being allocated or to be allocated next.
Note that this might not be the final address of the object
---- 201,210 ----
+--- 221,230 ----
more memory. This can be set to a user defined function which
should either abort gracefully or use longjump - but shouldn't
return. The default action is to print a message and abort. */
-! extern DLL_VARIABLE void (*obstack_alloc_failed_handler) (void);
+! extern DLL_VARIABLE __attribute_noreturn__ void (*obstack_alloc_failed_handler) (void);
/* Exit value used when 'print_and_abort' is used. */
! extern DLL_VARIABLE int obstack_exit_failure;
extensions
snippet/arg-nonnull
! alloca [test -n "$FNMATCH_H"]
+ flexmember [test -n "$FNMATCH_H"]
stdbool [test -n "$FNMATCH_H"]
wchar [test -n "$FNMATCH_H"]
- wctype-h [test -n "$FNMATCH_H"]
--- 11,17 ----
Depends-on:
extensions
snippet/arg-nonnull
! alloca-opt [test -n "$FNMATCH_H"]
+ flexmember [test -n "$FNMATCH_H"]
stdbool [test -n "$FNMATCH_H"]
wchar [test -n "$FNMATCH_H"]
- wctype-h [test -n "$FNMATCH_H"]