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
c408fb34
Commit
c408fb34
authored
May 02, 2016
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r235747
parent
a56886e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
gcc/ada/exp_ch6.adb
+6
-6
gcc/ada/s-memory.adb
+2
-0
No files found.
gcc/ada/exp_ch6.adb
View file @
c408fb34
...
@@ -3977,7 +3977,7 @@ package body Exp_Ch6 is
...
@@ -3977,7 +3977,7 @@ package body Exp_Ch6 is
begin
begin
Inst := Scope (Subp);
Inst := Scope (Subp);
-- Find enclosing instance
.
-- Find enclosing instance
while Present (Inst) and then Inst /= Standard_Standard loop
while Present (Inst) and then Inst /= Standard_Standard loop
exit when Is_Generic_Instance (Inst);
exit when Is_Generic_Instance (Inst);
...
@@ -4002,11 +4002,11 @@ package body Exp_Ch6 is
...
@@ -4002,11 +4002,11 @@ package body Exp_Ch6 is
null;
null;
else
else
-- The instantiation node follows the package
-- The instantiation node
usually
follows the package
-- declaration for the instance. If the generic
-- declaration for the instance. If the generic
unit
--
unit had aspect specifications, they have
--
has aspect specifications, they are transformed
--
been transformed into pragmas in the instance,
--
into pragmas in the instance, and the instance node
-- a
nd the instance node a
ppears after them.
-- appears after them.
Inst_Node := Next (Decl);
Inst_Node := Next (Decl);
...
...
gcc/ada/s-memory.adb
View file @
c408fb34
...
@@ -67,6 +67,7 @@ package body System.Memory is
...
@@ -67,6 +67,7 @@ package body System.Memory is
function
Alloc
(
Size
:
size_t
)
return
System
.
Address
is
function
Alloc
(
Size
:
size_t
)
return
System
.
Address
is
Result
:
System
.
Address
;
Result
:
System
.
Address
;
begin
begin
if
Parameters
.
No_Abort
then
if
Parameters
.
No_Abort
then
Result
:=
c_malloc
(
System
.
CRTL
.
size_t
(
Size
));
Result
:=
c_malloc
(
System
.
CRTL
.
size_t
(
Size
));
...
@@ -77,6 +78,7 @@ package body System.Memory is
...
@@ -77,6 +78,7 @@ package body System.Memory is
end
if
;
end
if
;
if
Result
=
System
.
Null_Address
then
if
Result
=
System
.
Null_Address
then
--
If
Size
=
0
,
we
can
't allocate 0 bytes, because then two different
--
If
Size
=
0
,
we
can
't allocate 0 bytes, because then two different
-- allocators, one of which has Size = 0, could return pointers that
-- allocators, one of which has Size = 0, could return pointers that
-- compare equal, which is wrong. (Nonnull pointers compare equal if
-- compare equal, which is wrong. (Nonnull pointers compare equal if
...
...
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