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
67efd80a
Commit
67efd80a
authored
Sep 17, 2009
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r151797
parent
3fc5d116
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
20 deletions
+25
-20
gcc/ada/prj-ext.ads
+2
-0
gcc/ada/prj-pars.adb
+6
-5
gcc/ada/prj-part.adb
+3
-1
gcc/ada/prj-proc.adb
+11
-11
gcc/ada/prj-tree.ads
+3
-3
No files found.
gcc/ada/prj-ext.ads
View file @
67efd80a
...
...
@@ -61,9 +61,11 @@ package Prj.Ext is
-------------------------
--
External
References
--
-------------------------
--
External
references
influence
the
way
a
project
tree
is
processed
(
in
--
particular
they
provide
the
values
for
the
typed
string
variables
that
--
are
then
used
in
case
constructions
).
--
External
references
are
project
-
tree
specific
,
so
that
when
multiple
--
trees
are
loaded
in
parallel
we
can
have
different
scenarios
(
or
even
--
load
the
same
tree
twice
and
see
different
views
of
it
).
...
...
gcc/ada/prj-pars.adb
View file @
67efd80a
...
...
@@ -48,13 +48,14 @@ package body Prj.Pars is
Reset_Tree
:
Boolean
:=
True
;
In_Node_Tree
:
Prj
.
Tree
.
Project_Node_Tree_Ref
:=
null
)
is
Project_Node
:
Project_Node_Id
:=
Empty_Node
;
The_Project
:
Project_Id
:=
No_Project
;
Success
:
Boolean
:=
True
;
Current_Dir
:
constant
String
:=
Get_Current_Dir
;
Project_Node_Tree
:
Prj
.
Tree
.
Project_Node_Tree_Ref
:=
In_Node_Tree
;
Project_Node
:
Project_Node_Id
:=
Empty_Node
;
The_Project
:
Project_Id
:=
No_Project
;
Success
:
Boolean
:=
True
;
Current_Dir
:
constant
String
:=
Get_Current_Dir
;
Project_Node_Tree
:
Prj
.
Tree
.
Project_Node_Tree_Ref
:=
In_Node_Tree
;
Automatically_Generated
:
Boolean
;
Config_File_Path
:
String_Access
;
begin
if
Project_Node_Tree
=
null
then
Project_Node_Tree
:=
new
Project_Node_Tree_Data
;
...
...
gcc/ada/prj-part.adb
View file @
67efd80a
...
...
@@ -1341,8 +1341,10 @@ package body Prj.Part is
-- Read the original casing of the project name
declare
Loc : Source_Ptr := Location_Of (Project, In_Tree);
Loc : Source_Ptr;
begin
Loc := Location_Of (Project, In_Tree);
for J in 1 .. Name_Len loop
Name_Buffer (J) := Sinput.Source (Loc);
Loc := Loc + 1;
...
...
gcc/ada/prj-proc.adb
View file @
67efd80a
...
...
@@ -1041,8 +1041,8 @@ package body Prj.Proc is
end
if
;
end
if
;
Value
:=
Prj
.
Ext
.
Value_Of
(
From_Project_Node_Tree
,
Name
,
Default
);
Value
:=
Prj
.
Ext
.
Value_Of
(
From_Project_Node_Tree
,
Name
,
Default
);
if
Value
=
No_Name
then
if
not
Quiet_Output
then
...
...
@@ -2256,9 +2256,8 @@ package body Prj.Proc is
Check (In_Tree, Project, Flags);
end if;
-- If main project is an extending all project, set the object
-- directory of all virtual extending projects to the object
-- directory of the main project.
-- If main project is an extending all project, set object directory of
-- all virtual extending projects to object directory of main project.
if Project /= No_Project
and then
...
...
@@ -2425,12 +2424,13 @@ package body Prj.Proc is
declare
Imported : Project_List;
Declaration_Node : Project_Node_Id := Empty_Node;
Name : constant Name_Id :=
Name_Of
(From_Project_Node, From_Project_Node_Tree);
Name_Node : constant Tree_Private_Part.Project_Name_And_Node :=
Tree_Private_Part.Projects_Htable.Get
(From_Project_Node_Tree.Projects_HT, Name);
Name : constant Name_Id :=
Name_Of (From_Project_Node, From_Project_Node_Tree);
Name_Node : constant Tree_Private_Part.Project_Name_And_Node :=
Tree_Private_Part.Projects_Htable.Get
(From_Project_Node_Tree.Projects_HT, Name);
begin
Project := Processed_Projects.Get (Name);
...
...
gcc/ada/prj-tree.ads
View file @
67efd80a
...
...
@@ -1000,8 +1000,8 @@ package Prj.Tree is
package
Tree_Private_Part
is
--
This
is
conceptually
in
the
private
part
--
However
,
for
efficiency
,
some
packages
are
accessing
it
directly
--
This
is
conceptually
in
the
private
part
.
However
,
for
efficiency
,
--
some
packages
are
accessing
it
directly
.
type
Project_Node_Record
is
record
...
...
@@ -1377,6 +1377,7 @@ package Prj.Tree is
Key
=>
Name_Id
,
Hash
=>
Hash
,
Equal
=>
"="
);
--
Comment
required
describing
what
this
table
is
used
for
???
type
Project_Node_Tree_Data
is
record
Project_Nodes
:
Tree_Private_Part
.
Project_Node_Table
.
Instance
;
...
...
@@ -1399,7 +1400,6 @@ package Prj.Tree is
-- particular when using different compilers with different default
-- search directories.
end record;
-- The data for a project node tree
procedure Free (Proj : in out Project_Node_Tree_Ref);
-- Free memory used by Prj
...
...
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