diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-11 15:48:14 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-11 15:48:14 +0000 |
commit | 7465a8fedbf566587913918be29fc5fc1179cd75 (patch) | |
tree | 19753f5474920d21f293504fc129ecc940941eac /gcc/ada/adaint.c | |
parent | df3bfef4976e316e98255ea179d308cf56d051c8 (diff) | |
download | gcc-7465a8fedbf566587913918be29fc5fc1179cd75.tar.gz |
2009-06-11 Ed Schonberg <schonberg@adacore.com>
* sem_attr.adb (Resolve_Attribute, case 'access): Add missing
accessibiliy check on access_to_subprogram in the context of an
anonymous access that is not an access parameter.
2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
* tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
2009-06-11 Quentin Ochem <ochem@adacore.com>
* sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
comments for message handled by GPS.
2009-06-11 Matthew Gingell <gingell@adacore.com>
* adaint.c: Use fopen64 instead of fopen on platforms where we know
it's supported.
2009-06-11 Pascal Obry <obry@adacore.com>
* g-cgi.ads: Fix comment typo.
* g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r-- | gcc/ada/adaint.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 1f5e1546796..dd36bac4cb6 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -775,8 +775,16 @@ __gnat_fopen (char *path, char *mode, int encoding ATTRIBUTE_UNUSED) #elif defined (VMS) return decc$fopen (path, mode); #else + +#if defined (__GLIBC__) || defined (sun) + /* GLIBC and Solaris provides fopen64, which allows IO on files + larger than 2GB on systems that support it. */ + return fopen64 (path, mode); +#else return fopen (path, mode); #endif + +#endif } FILE * |