diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-10 08:43:38 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-10 08:43:38 +0000 |
commit | 5f7d4d97c9bff3252a06d77f61f16bfe3742f83a (patch) | |
tree | 1e5807e498bbed185aa86e1f8e341a631b04bddf /fixincludes/tests/base | |
parent | df2fb932d638d917d47dfd4b8e666aea6f450d4b (diff) | |
download | gcc-5f7d4d97c9bff3252a06d77f61f16bfe3742f83a.tar.gz |
2011-08-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Marc Glisse <marc.glisse@normalesup.org>
PR libstdc++-v3/1773
* inclhack.def (solaris_cxx_linkage, solaris_getc_strict_stdc)
(solaris_longjmp_noreturn, solaris_pow_int_overload)
(solaris_std___filbuf): New fixes.
* tests/base/iso/math_iso.h, tests/base/iso/setjmp_iso.h,
tests/base/iso/stdio_iso.h, tests/base/iso/stdlib_iso.h: New tests.
* tests/base/stdio.h [SOLARIS_STD___FILBUF_CHECK]: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177613 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/tests/base')
-rw-r--r-- | fixincludes/tests/base/iso/math_iso.h | 17 | ||||
-rw-r--r-- | fixincludes/tests/base/iso/setjmp_iso.h | 14 | ||||
-rw-r--r-- | fixincludes/tests/base/iso/stdio_iso.h | 14 | ||||
-rw-r--r-- | fixincludes/tests/base/iso/stdlib_iso.h | 16 | ||||
-rw-r--r-- | fixincludes/tests/base/stdio.h | 10 |
5 files changed, 71 insertions, 0 deletions
diff --git a/fixincludes/tests/base/iso/math_iso.h b/fixincludes/tests/base/iso/math_iso.h new file mode 100644 index 00000000000..6c08a94bb54 --- /dev/null +++ b/fixincludes/tests/base/iso/math_iso.h @@ -0,0 +1,17 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/math_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_POW_INT_OVERLOAD_CHECK ) +#ifndef __GXX_EXPERIMENTAL_CXX0X__ + inline long double pow(long double __X, int __Y) { return + __powl(__X, (long double) (__Y)); } +#endif +#endif /* SOLARIS_POW_INT_OVERLOAD_CHECK */ diff --git a/fixincludes/tests/base/iso/setjmp_iso.h b/fixincludes/tests/base/iso/setjmp_iso.h new file mode 100644 index 00000000000..4cf872007cf --- /dev/null +++ b/fixincludes/tests/base/iso/setjmp_iso.h @@ -0,0 +1,14 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/setjmp_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_LONGJMP_NORETURN_CHECK ) +extern void longjmp(jmp_buf, int) __attribute__ ((__noreturn__)); +#endif /* SOLARIS_LONGJMP_NORETURN_CHECK */ diff --git a/fixincludes/tests/base/iso/stdio_iso.h b/fixincludes/tests/base/iso/stdio_iso.h new file mode 100644 index 00000000000..d476752f092 --- /dev/null +++ b/fixincludes/tests/base/iso/stdio_iso.h @@ -0,0 +1,14 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/stdio_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_GETC_STRICT_STDC_CHECK ) +#if !defined(_REENTRANT) && !defined(_LP64) && (!defined(_STRICT_STDC) || (__cplusplus >= 199711L)) +#endif /* SOLARIS_GETC_STRICT_STDC_CHECK */ diff --git a/fixincludes/tests/base/iso/stdlib_iso.h b/fixincludes/tests/base/iso/stdlib_iso.h new file mode 100644 index 00000000000..3fb5b349559 --- /dev/null +++ b/fixincludes/tests/base/iso/stdlib_iso.h @@ -0,0 +1,16 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/stdlib_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_CXX_LINKAGE_CHECK ) +#if __cplusplus >= 199711L && !__GNUG__ +extern "C++" { + void *bsearch(const void *, const void *, size_t, size_t, +#endif /* SOLARIS_CXX_LINKAGE_CHECK */ diff --git a/fixincludes/tests/base/stdio.h b/fixincludes/tests/base/stdio.h index 5fda7bd34d1..975d0a52168 100644 --- a/fixincludes/tests/base/stdio.h +++ b/fixincludes/tests/base/stdio.h @@ -65,6 +65,16 @@ extern int rename(const char *_old, const char *_new); #endif /* RS6000_PARAM_CHECK */ +#if defined( SOLARIS_STD___FILBUF_CHECK ) +using std::perror; +#ifndef _LP64 +using std::__filbuf; +using std::__flsbuf; +#endif +#endif +#endif /* SOLARIS_STD___FILBUF_CHECK */ + + #if defined( STDIO_STDARG_H_CHECK ) #endif /* STDIO_STDARG_H_CHECK */ |