diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-01-20 16:21:18 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-01-20 16:21:18 +0100 |
commit | 1e5692049375a185fcdc66703665fbc5fc5d5aaf (patch) | |
tree | 939b2cc5bdbad992680347fe439897a1abb53309 /gcc/ada/sysdep.c | |
parent | 0969e96dcb682892a69c2ef26135dbfd79da5d1b (diff) | |
download | gcc-1e5692049375a185fcdc66703665fbc5fc5d5aaf.zip gcc-1e5692049375a185fcdc66703665fbc5fc5d5aaf.tar.gz gcc-1e5692049375a185fcdc66703665fbc5fc5d5aaf.tar.bz2 |
[multiple changes]
2014-01-20 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi: Document that Loop_Variant is included in
Statement_Assertions.
* sem_prag.adb (Check_Kind): Add Loop_Variant to
Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
to Statement_Assertions.
2014-01-20 Doug Rupp <rupp@adacore.com>
* sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
for errno ENOENT from RTP on NFS mounted file system.
From-SVN: r206821
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r-- | gcc/ada/sysdep.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index 58c51c0..9f42707 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2012, Free Software Foundation, Inc. * + * Copyright (C) 1992-2013, 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- * @@ -42,6 +42,12 @@ #endif #include "selectLib.h" #include "vxWorks.h" +#if defined (__RTP__) +# include "version.h" +# if (_WRS_VXWORKS_MAJOR == 6) +# include "vwModNum.h" +# endif /* _WRS_VXWORKS_MAJOR == 6 */ +#endif /* __RTP__ */ #endif #ifdef __ANDROID__ @@ -920,11 +926,16 @@ __gnat_is_file_not_found_error (int errno_val) { #if ! defined (__RTP__) && (! defined (VTHREADS) || defined (__VXWORKSMILS__)) case S_nfsLib_NFSERR_NOENT: #endif +#if defined (__RTP__) && (_WRS_VXWORKS_MAJOR == 6) + /* An RTP can return an NFS file not found, and the NFS bits must + first be masked off to check the errno. */ + case M_nfsStat | ENOENT: +#endif #endif return 1; default: - return 0; + return 0; } } |