diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-19 16:39:05 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-19 16:39:05 +0000 |
commit | 609088c0c23de391807f321d86ee285bbf97947d (patch) | |
tree | 1c9f4aca85a4f14ac86c03c1b3ffd419a81ac8ff /gcc/config/mips/iris6.h | |
parent | b0d711bfdd7790a4389315d05d4bc73bd2f6c66c (diff) | |
download | gcc-609088c0c23de391807f321d86ee285bbf97947d.tar.gz |
* config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
ISO C99 and C++.
* fixinc/inclhack.def (irix___restrict): Don't change __restrict
for C++ on IRIX 6.5.1[89].
* fixinc/tests/base/internal/sgimacros.h: New file.
* fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
* fixinc/tests/base/internal/wchar_core.h: New file.
* fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
socklen_t definition.
* fixinc/fixincl.x: Regenerate.
* fixinc/tests/base/sys/socket.h: New file.
Fixes PR libgcj/9652.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63123 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/iris6.h')
-rw-r--r-- | gcc/config/mips/iris6.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h index 6e37de58f9a..987a58c6b9d 100644 --- a/gcc/config/mips/iris6.h +++ b/gcc/config/mips/iris6.h @@ -125,6 +125,13 @@ Boston, MA 02111-1307, USA. */ if (!ISA_MIPS1 && !ISA_MIPS2) \ builtin_define ("_COMPILER_VERSION=601"); \ \ + /* IRIX 6.5.18 and above provide many ISO C99 \ + features protected by the __c99 macro. \ + libstdc++ v3 needs them as well. */ \ + if ((c_language == clk_c && flag_isoc99) \ + || c_language == clk_cplusplus) \ + builtin_define ("__c99"); \ + \ if (c_language == clk_cplusplus) \ { \ builtin_define ("__EXTENSIONS__"); \ |