diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-20 15:21:18 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-20 15:21:18 +0000 |
commit | 0f39b5484a4eee397bbc2a2b6763df8e8b8af237 (patch) | |
tree | 939b2cc5bdbad992680347fe439897a1abb53309 /gcc/ada/sysdep.c | |
parent | 22b579bb66bab532c915d2205fdde9049d282bdf (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206821 138bc75d-0d04-0410-961f-82ee72b054a4
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 58c51c01ff7..9f427077c6d 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; } } |