Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bac865a2
Commit
bac865a2
authored
Apr 25, 2017
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code clenups.
From-SVN: r247193
parent
321c24f7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
11 deletions
+21
-11
gcc/ada/bindgen.adb
+1
-1
gcc/ada/gnatchop.adb
+2
-2
gcc/ada/s-dimmks.ads
+6
-1
gcc/ada/s-wchcnv.adb
+1
-1
gcc/ada/sinput.adb
+3
-1
gcc/ada/sinput.ads
+2
-2
gcc/ada/styleg.adb
+6
-3
No files found.
gcc/ada/bindgen.adb
View file @
bac865a2
...
...
@@ -2717,7 +2717,7 @@ package body Bindgen is
-- every file, then we could use the encoding of the initial specified
-- file, but this information is passed only for potential main
-- programs. We could fix this sometime, but it is a very minor point
-- (wide character default encoding for [Wide_[Wide_]Text_IO when there
-- (wide character default encoding for [Wide_[Wide_]
]
Text_IO when there
-- is no main program).
elsif No_Main_Subprogram then
...
...
gcc/ada/gnatchop.adb
View file @
bac865a2
...
...
@@ -6,7 +6,7 @@
--
--
--
B
o
d
y
--
--
--
--
Copyright
(
C
)
1998
-
201
4
,
Free
Software
Foundation
,
Inc
.
--
--
Copyright
(
C
)
1998
-
201
6
,
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
-
--
...
...
@@ -1424,7 +1424,7 @@ procedure Gnatchop is
--
Test
for
presence
of
BOM
Read_BOM
(
Buffer
.
all
,
BOM_Length
,
BOM
,
False
);
Read_BOM
(
Buffer
.
all
,
BOM_Length
,
BOM
,
XML_Support
=>
False
);
BOM_Present
:=
BOM
/=
Unknown
;
--
Only
chop
those
units
that
come
from
this
file
...
...
gcc/ada/s-dimmks.ads
View file @
bac865a2
...
...
@@ -6,7 +6,7 @@
--
--
--
S
p
e
c
--
--
--
--
Copyright
(
C
)
2011
-
201
3
,
Free
Software
Foundation
,
Inc
.
--
--
Copyright
(
C
)
2011
-
201
6
,
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
-
--
...
...
@@ -186,6 +186,11 @@ package System.Dim.Mks is
Ampere => -1,
others => 0);
-- Note the type punning below. The Symbol is a single "ohm" character
-- encoded in UTF-8 (ce a9 in hexadecimal), but this file is not compiled
-- with -gnatW8, so we'
re
treating
the
string
literal
as
a
two
-
character
--
String
.
subtype
Electric_Resistance
is
Mks_Type
with
Dimension
=>
(
Symbol
=>
"Ω"
,
...
...
gcc/ada/s-wchcnv.adb
View file @
bac865a2
...
...
@@ -406,7 +406,7 @@ package body System.WCh_Cnv is
when WCEM_Brackets =>
-- Values in the range 0-255 are directly output. Note that there
-- is
some issue with [ (16#5B#]
since this will cause confusion
-- is
an issue with [ (16#5B#)
since this will cause confusion
-- if the resulting string is interpreted using brackets encoding.
-- One possibility would be to always output [ as ["5B"] but in
...
...
gcc/ada/sinput.adb
View file @
bac865a2
...
...
@@ -272,11 +272,13 @@ package body Sinput is
Tst (J) := C;
end loop;
Read_BOM (Tst, Len, BOM, False);
Read_BOM (Tst, Len, BOM,
XML_Support =>
False);
case BOM is
when UTF8_All =>
Scan_Ptr := Scan_Ptr + Source_Ptr (Len);
First_Non_Blank_Location := Scan_Ptr;
Current_Line_Start := Scan_Ptr;
Wide_Character_Encoding_Method := WCEM_UTF8;
Upper_Half_Encoding := True;
...
...
gcc/ada/sinput.ads
View file @
bac865a2
...
...
@@ -560,8 +560,8 @@ package Sinput is
--
the
start
of
the
current
source
.
If
the
current
source
starts
with
a
--
recognized
BOM
,
then
some
flags
such
as
Wide_Character_Encoding_Method
--
are
set
accordingly
,
and
the
Scan_Ptr
on
return
points
past
this
BOM
.
--
An
error
message
is
output
and
Unrecoverable_Error
raised
if
a
non
-
--
recognized
BOM
is
detected
.
The
call
has
no
effect
if
no
BOM
is
found
.
--
An
error
message
is
output
and
Unrecoverable_Error
raised
if
a
n
--
un
recognized
BOM
is
detected
.
The
call
has
no
effect
if
no
BOM
is
found
.
function
Get_Column_Number
(
P
:
Source_Ptr
)
return
Column_Number
;
--
The
ones
-
origin
column
number
of
the
specified
Source_Ptr
value
is
...
...
gcc/ada/styleg.adb
View file @
bac865a2
...
...
@@ -6,7 +6,7 @@
--
--
--
B
o
d
y
--
--
--
--
Copyright
(
C
)
1992
-
201
5
,
Free
Software
Foundation
,
Inc
.
--
--
Copyright
(
C
)
1992
-
201
6
,
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
-
--
...
...
@@ -492,10 +492,13 @@ package body Styleg is
--
Start
of
processing
for
Check_Comment
begin
--
Can
never
have
a
non
-
blank
character
preceding
the
first
minus
--
Can
never
have
a
non
-
blank
character
preceding
the
first
minus
.
--
The
"+ 3"
is
to
leave
room
for
a
possible
byte
order
mark
(
BOM
);
--
we
want
to
avoid
a
warning
for
a
comment
at
the
start
of
the
--
file
just
after
the
BOM
.
if
Style_Check_Comments
then
if
Scan_Ptr
>
Source_First
(
Current_Source_File
)
if
Scan_Ptr
>
Source_First
(
Current_Source_File
)
+
3
and
then
Source
(
Scan_Ptr
-
1
)
>
' '
then
Error_Msg_S
--
CODEFIX
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment