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
48dd3a7c
Commit
48dd3a7c
authored
Apr 28, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(pop_init_level, output_init_element): Pass require_constant_* to
digest_init. From-SVN: r9534
parent
7ac18cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
gcc/c-typeck.c
+12
-5
No files found.
gcc/c-typeck.c
View file @
48dd3a7c
...
@@ -5436,7 +5436,8 @@ pop_init_level (implicit)
...
@@ -5436,7 +5436,8 @@ pop_init_level (implicit)
&&
constructor_incremental
)
&&
constructor_incremental
)
{
{
constructor
=
digest_init
(
constructor_type
,
constructor
,
constructor
=
digest_init
(
constructor_type
,
constructor
,
0
,
0
);
require_constant_value
,
require_constant_elements
);
/* If initializing an array of unknown size,
/* If initializing an array of unknown size,
determine the size now. */
determine the size now. */
...
@@ -5771,7 +5772,8 @@ output_init_element (value, type, field, pending)
...
@@ -5771,7 +5772,8 @@ output_init_element (value, type, field, pending)
constructor_index, which is modified in place. */
constructor_index, which is modified in place. */
constructor_pending_elts
constructor_pending_elts
=
tree_cons
(
copy_node
(
field
),
=
tree_cons
(
copy_node
(
field
),
digest_init
(
type
,
value
,
0
,
0
),
digest_init
(
type
,
value
,
require_constant_value
,
require_constant_elements
),
constructor_pending_elts
);
constructor_pending_elts
);
}
}
else
if
(
TREE_CODE
(
constructor_type
)
==
RECORD_TYPE
else
if
(
TREE_CODE
(
constructor_type
)
==
RECORD_TYPE
...
@@ -5783,7 +5785,8 @@ output_init_element (value, type, field, pending)
...
@@ -5783,7 +5785,8 @@ output_init_element (value, type, field, pending)
if
(
!
duplicate
)
if
(
!
duplicate
)
constructor_pending_elts
constructor_pending_elts
=
tree_cons
(
field
,
=
tree_cons
(
field
,
digest_init
(
type
,
value
,
0
,
0
),
digest_init
(
type
,
value
,
require_constant_value
,
require_constant_elements
),
constructor_pending_elts
);
constructor_pending_elts
);
}
}
else
else
...
@@ -5798,7 +5801,9 @@ output_init_element (value, type, field, pending)
...
@@ -5798,7 +5801,9 @@ output_init_element (value, type, field, pending)
if
(
field
&&
TREE_CODE
(
field
)
==
INTEGER_CST
)
if
(
field
&&
TREE_CODE
(
field
)
==
INTEGER_CST
)
field
=
copy_node
(
field
);
field
=
copy_node
(
field
);
constructor_elements
constructor_elements
=
tree_cons
(
field
,
digest_init
(
type
,
value
,
0
,
0
),
=
tree_cons
(
field
,
digest_init
(
type
,
value
,
require_constant_value
,
require_constant_elements
),
constructor_elements
);
constructor_elements
);
}
}
else
else
...
@@ -5819,7 +5824,9 @@ output_init_element (value, type, field, pending)
...
@@ -5819,7 +5824,9 @@ output_init_element (value, type, field, pending)
assemble_zeros
(
next
-
here
);
assemble_zeros
(
next
-
here
);
}
}
}
}
output_constant
(
digest_init
(
type
,
value
,
0
,
0
),
output_constant
(
digest_init
(
type
,
value
,
require_constant_value
,
require_constant_elements
),
int_size_in_bytes
(
type
));
int_size_in_bytes
(
type
));
/* For a record or union,
/* For a record or union,
...
...
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