summaryrefslogtreecommitdiff
path: root/gcc/ada/adaint.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-02-20 11:38:17 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-02-20 11:38:17 +0000
commitdba38d2f5320034f16791d5c96f7f88e49a079a4 (patch)
treef949f270940fedf57d0de3d633bad5211ddc494e /gcc/ada/adaint.c
parent8968f6ff5a09e550ae3d225c8019453ecb1fc088 (diff)
downloadgcc-dba38d2f5320034f16791d5c96f7f88e49a079a4.tar.gz
2015-02-20 Yannick Moy <moy@adacore.com>
* sem_prag.ads: Minor typo in comment. 2015-02-20 Pascal Obry <obry@adacore.com> * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode. 2015-02-20 Vincent Celier <celier@adacore.com> * makeutl.adb (Get_Directories.Add_Dir): Add a directory only if it exists. 2015-02-20 Robert Dewar <dewar@adacore.com> * sem_eval.ads: Minor reformatting. 2015-02-20 Eric Botcazou <ebotcazou@adacore.com> * freeze.adb (Size_Known): Do not set the packed size for independent type or component. (Freeze_Array_Type): Check for Independent[_Components] with packing or explicit component size clause. * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation of independence pragmas only for non-GCC back-ends. * sem_ch13.adb (Initialize): Likewise for the initialization. * sem_prag.adb (Record_Independence_Check): New procedure to record an independence check in the table. (Analyze_Pragma): Use it throughout instead of doing it manually. * gcc-interface/decl.c (gnat_to_gnu_field): Add support for independent type or component. 2015-02-20 Thomas Quinot <quinot@adacore.com> * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of struct direct and readdir. This is required for NFS filesystems mounted from servers that use 64-bit cookies. 2015-02-20 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram Build_Subprogram_Renaming, to create renaming of subprogram instance in the the declaration of the wrapper package rather than in its body, so that it is available for analysis of aspects propagated from generic to instantiation. (Check_Mismatch): An actual for a formal package that is an incomplete type matches a formal type that is incomplete. (Instantiate_Package_Body): Move code that builds subprogram renaming to Analyze_Subprogram_Instantiation. (Instantiate_Type): The generated subtype is a limited view if the actual is a limited view. (Load_Parent_Of_Generic): Retrieve instance declaration from its new position within wrapper package. 2015-02-20 Arnaud Charlet <charlet@adacore.com> * s-parame-vxworks.adb, s-os_lib.ads: Update comments. 2015-02-20 Robert Dewar <dewar@adacore.com> * s-osinte-vxworks.ads (To_Timespec): Add comment about the issue of negative arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220850 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r--gcc/ada/adaint.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index ab74ce08a45..d9bccfe2fc1 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2014, Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2015, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -297,7 +297,8 @@ int max_path_len = GNAT_MAX_PATH_LEN;
int __gnat_use_acl = 1;
/* The following macro HAVE_READDIR_R should be defined if the
- system provides the routine readdir_r. */
+ system provides the routine readdir_r.
+ ... but we never define it anywhere??? */
#undef HAVE_READDIR_R
#define MAYBE_TO_PTR32(argv) argv
@@ -1223,6 +1224,13 @@ DIR* __gnat_opendir (char *name)
/* Read the next entry in a directory. The returned string points somewhere
in the buffer. */
+#if defined (sun) && defined (__SVR4)
+/* For Solaris, be sure to use the 64-bit version, otherwise NFS reads may
+ fail with EOVERFLOW if the server uses 64-bit cookies. */
+#define dirent dirent64
+#define readdir readdir64
+#endif
+
char *
__gnat_readdir (DIR *dirp, char *buffer, int *len)
{