re PR target/68741 (FAIL: tr1/8_c_compatibility/cstdio/functions.cc (test for excess errors))

PR target/68741
	* inclhack.def (hpux_vsscanf): New fix.
	* fixincl.x: Regenerated.
	* tests/base/stdio.h [HPUX_VSSCANF_CHECK]: New test.

From-SVN: r233047
This commit is contained in:
John David Anglin 2016-02-01 20:22:43 +00:00
parent 822a8753b2
commit e15c905782
3 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2016-02-01 John David Anglin <danglin@gcc.gnu.org>
PR target/68741
* inclhack.def (hpux_vsscanf): New fix.
* fixincl.x: Regenerated.
* tests/base/stdio.h [HPUX_VSSCANF_CHECK]: New test.
2015-12-04 Release Manager 2015-12-04 Release Manager
* GCC 5.3.0 released. * GCC 5.3.0 released.

View File

@ -2272,6 +2272,20 @@ fix = {
' __va__list);'; ' __va__list);';
}; };
/*
* Fix missing const in hpux vsscanf declaration
*/
fix = {
hackname = hpux_vsscanf;
mach = "*-*-hpux*";
files = stdio.h;
select = '(extern int vsscanf\()char';
c_fix = format;
c_fix_arg = "%1const char";
test_text = 'extern int vsscanf(char *, const char *, __va_list);';
};
/* /*
* get rid of bogus inline definitions in HP-UX 8.0 * get rid of bogus inline definitions in HP-UX 8.0
*/ */

View File

@ -59,6 +59,11 @@ extern int vsnprintf(char *, _hpux_size_t, const char *, __gnuc_va_list);
#endif /* HPUX11_VSNPRINTF_CHECK */ #endif /* HPUX11_VSNPRINTF_CHECK */
#if defined( HPUX_VSSCANF_CHECK )
extern int vsscanf(const char *, const char *, __gnuc_va_list);
#endif /* HPUX_VSSCANF_CHECK */
#if defined( IRIX_STDIO_DUMMY_VA_LIST_CHECK ) #if defined( IRIX_STDIO_DUMMY_VA_LIST_CHECK )
extern int printf( const char *, __gnuc_va_list ); extern int printf( const char *, __gnuc_va_list );
#endif /* IRIX_STDIO_DUMMY_VA_LIST_CHECK */ #endif /* IRIX_STDIO_DUMMY_VA_LIST_CHECK */