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
2ddc34ba
Commit
2ddc34ba
authored
Nov 27, 2008
by
Eric Botcazou
Committed by
Eric Botcazou
Nov 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/decl.c: Fix various nits.
From-SVN: r142247
parent
50e0f131
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/decl.c
+10
-8
No files found.
gcc/ada/ChangeLog
View file @
2ddc34ba
2008
-
11
-
27
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
decl
.
c
:
Fix
various
nits
.
2008
-
11
-
20
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
2008
-
11
-
20
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
utils
.
c
(
init_gigi_decls
):
Fix
type
mismatch
.
*
gcc
-
interface
/
utils
.
c
(
init_gigi_decls
):
Fix
type
mismatch
.
gcc/ada/gcc-interface/decl.c
View file @
2ddc34ba
...
@@ -488,8 +488,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
...
@@ -488,8 +488,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
break
;
break
;
}
}
/* If the enclosing record has explicit stored discriminants,
/* If the enclosing record has explicit stored discriminants,
then
then it is an untagged record.
If the Corresponding_Discriminant
it is an untagged record.
If the Corresponding_Discriminant
is not empty then this must be a renamed discriminant and its
is not empty then this must be a renamed discriminant and its
Original_Record_Component must point to the corresponding explicit
Original_Record_Component must point to the corresponding explicit
stored discriminant (i.e., we should have taken the first
stored discriminant (i.e., we should have taken the first
...
@@ -532,7 +532,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
...
@@ -532,7 +532,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
else
else
/* Here we have no GCC type and this is a reference rather than a
/* Here we have no GCC type and this is a reference rather than a
definition.
This should never happen. Most likely the cause is a
definition.
This should never happen. Most likely the cause is
reference before declaration in the gnat tree for gnat_entity. */
reference before declaration in the gnat tree for gnat_entity. */
gcc_unreachable
();
gcc_unreachable
();
}
}
...
@@ -1417,9 +1417,9 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
...
@@ -1417,9 +1417,9 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
gnu_type
=
make_unsigned_type
(
esize
);
gnu_type
=
make_unsigned_type
(
esize
);
TYPE_NAME
(
gnu_type
)
=
gnu_entity_id
;
TYPE_NAME
(
gnu_type
)
=
gnu_entity_id
;
/* Set
the TYPE_STRING_FLAG for Ada Character and
/* Set
TYPE_STRING_FLAG for Ada Character and Wide_Character types.
Wide_Character types. This is needed by the dwarf-2 debug writer to
This is needed by the DWARF-2 back-end to distinguish between
distinguish between
unsigned integer types and character types. */
unsigned integer types and character types. */
TYPE_STRING_FLAG
(
gnu_type
)
=
1
;
TYPE_STRING_FLAG
(
gnu_type
)
=
1
;
break
;
break
;
}
}
...
@@ -3604,7 +3604,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
...
@@ -3604,7 +3604,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
{
{
/* The runtime representation is the equivalent type. */
/* The runtime representation is the equivalent type. */
gnu_type
=
gnat_to_gnu_type
(
gnat_equiv_type
);
gnu_type
=
gnat_to_gnu_type
(
gnat_equiv_type
);
maybe_present
=
1
;
maybe_present
=
true
;
}
}
if
(
Is_Itype
(
Directly_Designated_Type
(
gnat_entity
))
if
(
Is_Itype
(
Directly_Designated_Type
(
gnat_entity
))
...
@@ -5406,7 +5406,7 @@ elaborate_expression (Node_Id gnat_expr, Entity_Id gnat_entity,
...
@@ -5406,7 +5406,7 @@ elaborate_expression (Node_Id gnat_expr, Entity_Id gnat_entity,
gnu_name
,
definition
,
need_debug
);
gnu_name
,
definition
,
need_debug
);
/* Save the expression in case we try to elaborate this entity again. Since
/* Save the expression in case we try to elaborate this entity again. Since
this is not a DECL, don't check it. Don't save if it's a discriminant.
*/
it's not a DECL, don't check it. Don't save if it's a discriminant.
*/
if
(
!
CONTAINS_PLACEHOLDER_P
(
gnu_expr
))
if
(
!
CONTAINS_PLACEHOLDER_P
(
gnu_expr
))
save_gnu_tree
(
gnat_expr
,
gnu_expr
,
true
);
save_gnu_tree
(
gnat_expr
,
gnu_expr
,
true
);
...
@@ -6012,7 +6012,9 @@ choices_to_gnu (tree operand, Node_Id choices)
...
@@ -6012,7 +6012,9 @@ choices_to_gnu (tree operand, Node_Id choices)
operand
,
high
));
operand
,
high
));
break
;
break
;
}
}
/* ... fall through ... */
/* ... fall through ... */
case
N_Character_Literal
:
case
N_Character_Literal
:
case
N_Integer_Literal
:
case
N_Integer_Literal
:
single
=
gnat_to_gnu
(
choice
);
single
=
gnat_to_gnu
(
choice
);
...
...
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