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
d58fb3be
Commit
d58fb3be
authored
Aug 14, 2007
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Output_Non_Modifed_In_Out_Warnings, Warn_On_Unassigned_Out_Parameter):
New functions. From-SVN: r127472
parent
434632ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
gcc/ada/sem_warn.ads
+15
-0
No files found.
gcc/ada/sem_warn.ads
View file @
d58fb3be
...
@@ -105,6 +105,13 @@ package Sem_Warn is
...
@@ -105,6 +105,13 @@ package Sem_Warn is
-- Output Routines --
-- Output Routines --
---------------------
---------------------
procedure Output_Non_Modifed_In_Out_Warnings;
-- Warnings about IN OUT parameters that could be IN are collected till
-- the end of the compilation process (see body of this routine for a
-- discussion of why this is done). This procedure outputs the warnings.
-- Note: this should be called before Output_Unreferenced_Messages, since
-- if we have an IN OUT warning, that'
s
the
one
we
want
to
see
!
procedure
Output_Obsolescent_Entity_Warnings
(
N
:
Node_Id
;
E
:
Entity_Id
);
procedure
Output_Obsolescent_Entity_Warnings
(
N
:
Node_Id
;
E
:
Entity_Id
);
--
N
is
a
reference
to
obsolescent
entity
E
,
for
which
appropriate
warning
--
N
is
a
reference
to
obsolescent
entity
E
,
for
which
appropriate
warning
--
messages
are
to
be
generated
(
caller
has
already
checked
that
warnings
--
messages
are
to
be
generated
(
caller
has
already
checked
that
warnings
...
@@ -160,6 +167,14 @@ package Sem_Warn is
...
@@ -160,6 +167,14 @@ package Sem_Warn is
-- a warning is generated that the subscripting operation is possibly
-- a warning is generated that the subscripting operation is possibly
-- incorrectly assuming a lower bound of 1.
-- incorrectly assuming a lower bound of 1.
procedure Warn_On_Unassigned_Out_Parameter
(Return_Node : Node_Id;
Scope_Id : Entity_Id);
-- Called when processing a return statement given by Return_Node. Scope_Id
-- is the Entity_Id for the procedure in which the return statement lives.
-- A check is made for the case of a procedure with out parameters that
-- have not yet been assigned, and appropriate warnings are given.
procedure Warn_On_Useless_Assignment
procedure Warn_On_Useless_Assignment
(Ent : Entity_Id;
(Ent : Entity_Id;
Loc : Source_Ptr := No_Location);
Loc : Source_Ptr := No_Location);
...
...
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