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
3702225c
Commit
3702225c
authored
May 02, 2016
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r235711
parent
f96fd197
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
gcc/ada/exp_ch5.adb
+4
-4
gcc/ada/sem_attr.adb
+0
-1
gcc/ada/sem_ch13.adb
+2
-2
gcc/ada/sem_ch4.adb
+12
-9
No files found.
gcc/ada/exp_ch5.adb
View file @
3702225c
...
...
@@ -2251,14 +2251,14 @@ package body Exp_Ch5 is
Prefix
=>
Unchecked_Convert_To
(
RTE
(
RE_Tag_Ptr
),
Make_Attribute_Reference
(
Loc
,
Prefix
=>
Duplicate_Subexpr
(
Lhs
),
Prefix
=>
Duplicate_Subexpr
(
Lhs
),
Attribute_Name
=>
Name_Address
)));
Rhs_Tag
:=
Make_Explicit_Dereference
(
Loc
,
Prefix
=>
Unchecked_Convert_To
(
RTE
(
RE_Tag_Ptr
),
Make_Attribute_Reference
(
Loc
,
Prefix
=>
Duplicate_Subexpr
(
Rhs
),
Prefix
=>
Duplicate_Subexpr
(
Rhs
),
Attribute_Name
=>
Name_Address
)));
end
if
;
...
...
@@ -2266,9 +2266,9 @@ package body Exp_Ch5 is
Make_Raise_Constraint_Error
(
Loc
,
Condition
=>
Make_Op_Ne
(
Loc
,
Left_Opnd
=>
Lhs_Tag
,
Left_Opnd
=>
Lhs_Tag
,
Right_Opnd
=>
Rhs_Tag
),
Reason
=>
CE_Tag_Check_Failed
));
Reason
=>
CE_Tag_Check_Failed
));
end
;
end
if
;
...
...
gcc/ada/sem_attr.adb
View file @
3702225c
...
...
@@ -4980,7 +4980,6 @@ package body Sem_Attr is
--
type
may
lead
to
spurious
errors
if
context
is
a
case
.
if
not
GNATprove_Mode
then
if
not
Is_Discrete_Type
(
Pref_Typ
)
then
Pref_Typ
:=
Base_Type
(
Pref_Typ
);
end
if
;
...
...
gcc/ada/sem_ch13.adb
View file @
3702225c
...
...
@@ -4322,8 +4322,8 @@ package body Sem_Ch13 is
----------------------------
function
Valid_Default_Iterator
(
Subp
:
Entity_Id
)
return
Boolean
is
Formal
:
Entity_Id
;
Root_T
:
constant
Entity_Id
:=
Root_Type
(
Etype
(
Etype
(
Subp
)));
Formal
:
Entity_Id
;
begin
if
not
Check_Primitive_Function
(
Subp
)
then
...
...
@@ -4422,7 +4422,7 @@ package body Sem_Ch13 is
Set_Is_Overloaded
(
Expr
,
False
);
else
Error_Msg_N
(
"
N
o interpretation is a valid default iterator!"
,
Expr
);
(
"
n
o interpretation is a valid default iterator!"
,
Expr
);
end
if
;
end
;
end
if
;
...
...
gcc/ada/sem_ch4.adb
View file @
3702225c
...
...
@@ -597,13 +597,15 @@ package body Sem_Ch4 is
if Is_Tagged_Type (Type_Id)
and then Has_Discriminants (Type_Id)
and then not Is_Constrained (Type_Id)
and then Present
(Discriminant_Default_Value (First_Discriminant (Type_Id)))
and then
Present
(Discriminant_Default_Value
(First_Discriminant (Type_Id)))
then
declare
Constr : constant List_Id := New_List;
Loc : constant Source_Ptr := Sloc (E);
Discr : Entity_Id := First_Discriminant (Type_Id);
Constr : constant List_Id := New_List;
begin
if Present (Discriminant_Default_Value (Discr)) then
...
...
@@ -612,11 +614,12 @@ package body Sem_Ch4 is
Next_Discriminant (Discr);
end loop;
Rewrite (E, Make_Subtype_Indication (Loc,
Subtype_Mark => New_Occurrence_Of (Type_Id, Loc),
Constraint =>
Make_Index_Or_Discriminant_Constraint (Loc,
Constr)));
Rewrite (E,
Make_Subtype_Indication (Loc,
Subtype_Mark => New_Occurrence_Of (Type_Id, Loc),
Constraint =>
Make_Index_Or_Discriminant_Constraint (Loc,
Constraints => Constr)));
end if;
end;
end if;
...
...
@@ -638,7 +641,7 @@ package body Sem_Ch4 is
Error_Msg_N ("constraint not allowed here", E);
if Nkind (Constraint (E)) =
N_Index_Or_Discriminant_Constraint
N_Index_Or_Discriminant_Constraint
then
Error_Msg_N -- CODEFIX
("\if qualified expression was meant, " &
...
...
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