glibc/iconv
Aurelien Jarno 0623b9e6a9 gconv.h: fix build with GCC 7
gconv.h is using a flex array to define the __gconv_info member in an
invalid way, causing GCC 7 to issue an error:

| In file included from ../include/gconv.h:1:0,
|                  from ../sysdeps/unix/sysv/linux/_G_config.h:32,
|                  from ../libio/libio.h:31,
|                  from ../include/libio.h:4,
|                  from ../libio/stdio.h:74,
|                  from ../include/stdio.h:5,
|                  from test-math-isinff.cc:22:
| ../iconv/gconv.h:142:50: error: flexible array member '__gconv_info::__data' not at end of 'struct _IO_codecvt'
| In file included from ../include/libio.h:4:0,
|                  from ../libio/stdio.h:74,
|                  from ../include/stdio.h:5,
|                  from test-math-isinff.cc:22:
| ../libio/libio.h:211:14: note: next member '_G_iconv_t _IO_codecvt::__cd_out' declared here
| ../libio/libio.h:187:8: note: in the definition of 'struct _IO_codecvt'
| In file included from ../include/gconv.h:1:0,
|                  from ../sysdeps/unix/sysv/linux/_G_config.h:32,
|                  from ../libio/libio.h:31,
|                  from ../include/libio.h:4,
|                  from ../libio/stdio.h:74,
|                  from ../include/stdio.h:5,
|                  from test-math-isinff.cc:22:
| ../iconv/gconv.h:142:50: error: flexible array member '__gconv_info::__data' not at end of 'struct _IO_wide_data'
| In file included from ../include/libio.h:4:0,
|                  from ../libio/stdio.h:74,
|                  from ../include/stdio.h:5,
|                  from test-math-isinff.cc:22:
| ../libio/libio.h:211:14: note: next member '_G_iconv_t _IO_codecvt::__cd_out' declared here
| ../libio/libio.h:215:8: note: in the definition of 'struct _IO_wide_data'

This is basically a revert to the code from 15 years ago. More details
are available in the GCC bug:
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78039

Changelog:
	* iconv/gconv.h (__gconv_info): Define __data element using a
	zero-length array.
2016-11-06 21:33:10 +01:00
..
dummy-repertoire.c
gconv_builtin.c
gconv_builtin.h Fix min/max needed for ascii to INTERNAL conversion 2016-03-07 17:47:50 +01:00
gconv_cache.c
gconv_charset.h
gconv_close.c
gconv_conf.c
gconv_db.c
gconv_dl.c Fix build failures with -DDEBUG. 2016-01-15 11:07:41 -07:00
gconv_int.h
gconv_open.c
gconv_simple.c Fix UTF-16 surrogate handling. [BZ #19727] 2016-05-25 17:18:06 +02:00
gconv_trans.c
gconv.c
gconv.h gconv.h: fix build with GCC 7 2016-11-06 21:33:10 +01:00
iconv_charmap.c
iconv_close.c
iconv_open.c
iconv_prog.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
iconv_prog.h
iconv.c
iconv.h
iconvconfig.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
iconvconfig.h
loop.c
Makefile Fix ucs4le_internal_loop in error case. [BZ #19726] 2016-05-25 17:18:06 +02:00
skeleton.c Fix build errors with -DNDEBUG. 2016-01-15 10:44:07 -07:00
strtab.c
tst-iconv1.c
tst-iconv2.c
tst-iconv3.c
tst-iconv4.c
tst-iconv5.c
tst-iconv6.c Fix ucs4le_internal_loop in error case. [BZ #19726] 2016-05-25 17:18:06 +02:00
Versions