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
7394c8cc
Commit
7394c8cc
authored
Aug 02, 2011
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r177105
parent
277c9abe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
gcc/ada/sem_ch6.adb
+3
-6
gcc/ada/sem_ch8.adb
+3
-4
No files found.
gcc/ada/sem_ch6.adb
View file @
7394c8cc
...
...
@@ -1392,7 +1392,6 @@ package body Sem_Ch6 is
if Result_Definition (N) /= Error then
if Nkind (Result_Definition (N)) = N_Access_Definition then
Check_Formal_Restriction
("access result is not allowed", Result_Definition (N));
...
...
@@ -1861,15 +1860,14 @@ package body Sem_Ch6 is
--
Special
checks
in
formal
mode
if
Nkind
(
Body_Spec
)
=
N_Function_Specification
then
--
In
formal
mode
,
the
last
statement
of
a
function
should
be
a
--
return
statement
.
--
In
formal
mode
,
last
statement
of
a
function
should
be
a
return
declare
Stat
:
constant
Node_Id
:=
Last_Source_Statement
(
HSS
);
begin
if
Present
(
Stat
)
and
then
not
Nkind_In
(
Stat
,
N_Simple_Return_Statement
,
and
then
not
Nkind_In
(
Stat
,
N_Simple_Return_Statement
,
N_Extended_Return_Statement
)
then
Check_Formal_Restriction
...
...
@@ -8769,7 +8767,6 @@ package body Sem_Ch6 is
Default
:=
Expression
(
Param_Spec
);
if
Present
(
Default
)
then
Check_Formal_Restriction
(
"default expression is not allowed"
,
Default
);
...
...
gcc/ada/sem_ch8.adb
View file @
7394c8cc
...
...
@@ -2553,10 +2553,9 @@ package body Sem_Ch8 is
Set_Hidden_By_Use_Clause (N, No_Elist);
-- Use clause is not allowed in a spec of a predefined package
-- declaration except that packages whose file name starts a-n are OK
-- (these are children of Ada.Numerics, and such packages are never
-- loaded by Rtsfind).
-- Use clause not allowed in a spec of a predefined package declaration
-- except that packages whose file name starts a-n are OK (these are
-- children of Ada.Numerics, which are never loaded by Rtsfind).
if Is_Predefined_File_Name (Unit_File_Name (Current_Sem_Unit))
and then Name_Buffer (1 .. 3) /= "a-n"
...
...
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