aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2015-11-12 12:02:17 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2015-11-12 12:02:17 +0100
commit1db50ba605b3ced3677fb72e07839cae38b05f82 (patch)
tree2fb38f9156565df6f2dbe4a52cdc3fa357ead14d /gcc
parentc31b57af9064a673ef4958a35a709735754e0afe (diff)
downloadgcc-1db50ba605b3ced3677fb72e07839cae38b05f82.zip
gcc-1db50ba605b3ced3677fb72e07839cae38b05f82.tar.gz
gcc-1db50ba605b3ced3677fb72e07839cae38b05f82.tar.bz2
Code clean ups.
From-SVN: r230230
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/g-io-put.adb6
-rw-r--r--gcc/ada/s-os_lib.adb8
2 files changed, 6 insertions, 8 deletions
diff --git a/gcc/ada/g-io-put.adb b/gcc/ada/g-io-put.adb
index 7c38bfd..08ebdbc 100644
--- a/gcc/ada/g-io-put.adb
+++ b/gcc/ada/g-io-put.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1995-2010, AdaCore --
+-- Copyright (C) 1995-2015, AdaCore --
-- --
-- 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- --
@@ -33,8 +33,8 @@
separate (GNAT.IO)
procedure Put (C : Character) is
- procedure Putchar (C : Character);
+ procedure Putchar (C : Integer);
pragma Import (C, Putchar, "putchar");
begin
- Putchar (C);
+ Putchar (Character'Pos (C));
end Put;
diff --git a/gcc/ada/s-os_lib.adb b/gcc/ada/s-os_lib.adb
index 849ae7e..295ef4b 100644
--- a/gcc/ada/s-os_lib.adb
+++ b/gcc/ada/s-os_lib.adb
@@ -198,8 +198,8 @@ package body System.OS_Lib is
-- then removing the extra backslashes from the argument.
Backslash_Is_Sep : constant Boolean := Directory_Separator = '\';
- -- Whether '\' is a directory separator (as on Windows), or a
- -- way to quote special characters.
+ -- Whether '\' is a directory separator (as on Windows), or a way to
+ -- quote special characters.
begin
Idx := Arg_String'First;
@@ -250,9 +250,7 @@ package body System.OS_Lib is
-- Following character is backquoted
- elsif not Backslash_Is_Sep
- and then Arg_String (Idx) = '\'
- then
+ elsif not Backslash_Is_Sep and then Arg_String (Idx) = '\' then
Backqd := True;
else