diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-11-21 14:23:52 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-11-21 14:23:52 +0100 |
commit | d2d4b3556d4f8b7c32de809f023ac876cd8cae82 (patch) | |
tree | 9b0dcdac8dae1e481bd247ca6ee57115b2baef80 /gcc/ada/sysdep.c | |
parent | 08ef33f5eb7a65662d296670845600ed57fb6015 (diff) | |
download | gcc-d2d4b3556d4f8b7c32de809f023ac876cd8cae82.zip gcc-d2d4b3556d4f8b7c32de809f023ac876cd8cae82.tar.gz gcc-d2d4b3556d4f8b7c32de809f023ac876cd8cae82.tar.bz2 |
[multiple changes]
2011-11-21 Tristan Gingold <gingold@adacore.com>
* env.c: Remove unused declaration.
2011-11-21 Pascal Obry <obry@adacore.com>
* s-os_lib.ads: Minor style fix.
2011-11-21 Pascal Obry <obry@adacore.com>
* adaint.c (__gnat_dup2): When fd are stdout, stdin or stderr and
identical, do nothing on Windows XP.
2011-11-21 Yannick Moy <moy@adacore.com>
* sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
Use Full_Expander_Active instead of Expander_Active to control
the forced evaluation of expressions for the sake of generating
checks.
2011-11-21 Thomas Quinot <quinot@adacore.com>
* init.c: On FreeBSD, stack checking failures may raise SIGBUS.
2011-11-21 Tristan Gingold <gingold@adacore.com>
* sysdep.c (mode_read_text, mode_write_text, mode_append_text,
mode_read_binary, mode_write_binary, mode_append_binary,
mode_read_text_plus, mode_write_text_plus, mode_append_text_plus,
mode_read_binary_plus, mode_write_binary_plus,
mode_append_binary_plus): Remove unused declarations.
2011-11-21 Yannick Moy <moy@adacore.com>
* gnat_rm.texi: Minor rewording.
2011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
* exp_imgv.adb (Expand_Width_Attribute): Emit
an error message rather than a warning when pragma Discard_Names
prevents the computation of 'Width. Do not emit an error through
the use of RE_Null.
2011-11-21 Javier Miranda <miranda@adacore.com>
* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add
implicit type conversion when the type of the allocator is an
interface. Done to force generation of displacement of the "this"
pointer when required.
2011-11-21 Ed Schonberg <schonberg@adacore.com>
* sinfo.ads, sinfo.adb: Corresponding_Spec applies to expression
functions, and is set when the expression is a completion of a
previous declaration.
* sem_ch6.adb (Analyze_Expression_Function): To determine properly
whether an expression function completes a previous declaration,
use Find_Corresponding_Spec, as when analyzing a subprogram body.
2011-11-21 Steve Baird <baird@adacore.com>
* sem_util.adb (Deepest_Type_Access_Level): Improve comment.
(Type_Access_Level): Improve comment.
From-SVN: r181575
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r-- | gcc/ada/sysdep.c | 73 |
1 files changed, 1 insertions, 72 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index 4d383fd..a4456f5 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -80,54 +80,6 @@ extern struct tm *localtime_r(const time_t *, struct tm *); #endif /* - mode_read_text - open text file for reading - rt for DOS and Windows NT, r for Unix - - mode_write_text - truncate to zero length or create text file for writing - wt for DOS and Windows NT, w for Unix - - mode_append_text - append; open or create text file for writing at end-of-file - at for DOS and Windows NT, a for Unix - - mode_read_binary - open binary file for reading - rb for DOS and Windows NT, r for Unix - - mode_write_binary - truncate to zero length or create binary file for writing - wb for DOS and Windows NT, w for Unix - - mode_append_binary - append; open or create binary file for writing at end-of-file - ab for DOS and Windows NT, a for Unix - - mode_read_text_plus - open text file for update (reading and writing) - r+t for DOS and Windows NT, r+ for Unix - - mode_write_text_plus - truncate to zero length or create text file for update - w+t for DOS and Windows NT, w+ for Unix - - mode_append_text_plus - append; open or create text file for update, writing at end-of-file - a+t for DOS and Windows NT, a+ for Unix - - mode_read_binary_plus - open binary file for update (reading and writing) - r+b for DOS and Windows NT, r+ for Unix - - mode_write_binary_plus - truncate to zero length or create binary file for update - w+b for DOS and Windows NT, w+ for Unix - - mode_append_binary_plus - append; open or create binary file for update, writing at end-of-file - a+b for DOS and Windows NT, a+ for Unix - Notes: (1) Opening a file with read mode fails if the file does not exist or @@ -169,18 +121,7 @@ extern struct tm *localtime_r(const time_t *, struct tm *); */ #if defined(WINNT) -static const char *mode_read_text = "rt"; -static const char *mode_write_text = "wt"; -static const char *mode_append_text = "at"; -static const char *mode_read_binary = "rb"; -static const char *mode_write_binary = "wb"; -static const char *mode_append_binary = "ab"; -static const char *mode_read_text_plus = "r+t"; -static const char *mode_write_text_plus = "w+t"; -static const char *mode_append_text_plus = "a+t"; -static const char *mode_read_binary_plus = "r+b"; -static const char *mode_write_binary_plus = "w+b"; -static const char *mode_append_binary_plus = "a+b"; + const char __gnat_text_translation_required = 1; void @@ -261,18 +202,6 @@ __gnat_get_stack_bounds (void **base, void **limit) #else -static const char *mode_read_text = "r"; -static const char *mode_write_text = "w"; -static const char *mode_append_text = "a"; -static const char *mode_read_binary = "r"; -static const char *mode_write_binary = "w"; -static const char *mode_append_binary = "a"; -static const char *mode_read_text_plus = "r+"; -static const char *mode_write_text_plus = "w+"; -static const char *mode_append_text_plus = "a+"; -static const char *mode_read_binary_plus = "r+"; -static const char *mode_write_binary_plus = "w+"; -static const char *mode_append_binary_plus = "a+"; const char __gnat_text_translation_required = 0; /* These functions do nothing in non-DOS systems. */ |