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
ea8daa3b
Commit
ea8daa3b
authored
Oct 08, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(initdcl, notype_initdcl): Call push_momentary and pop_momentary here.
(init): Not here. From-SVN: r5679
parent
1417141f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
gcc/c-parse.in
+16
-13
No files found.
gcc/c-parse.in
View file @
ea8daa3b
...
@@ -1019,12 +1019,16 @@ maybeasm:
...
@@ -1019,12 +1019,16 @@ maybeasm:
initdcl
:
initdcl
:
declarator
maybeasm
maybe_attribute
'='
declarator
maybeasm
maybe_attribute
'='
{
$
<
ttype
>
$
=
start_decl
(
$
1
,
current_declspecs
,
1
);
{
$
<
ttype
>
$
=
start_decl
(
$
1
,
current_declspecs
,
1
);
start_init
(
$
<
ttype
>
$
,
$
2
,
global_bindings_p
());
}
start_init
(
$
<
ttype
>
$
,
$
2
,
global_bindings_p
());
/* Note that the call to clear_momentary
is in process_init_element. */
push_momentary
();
}
init
init
/* Note how the declaration of the variable is in effect while its init is parsed! */
/* Note how the declaration of the variable is in effect while its init is parsed! */
{
finish_init
();
{
finish_init
();
decl_attributes
(
$
<
ttype
>
5
,
$
3
);
decl_attributes
(
$
<
ttype
>
5
,
$
3
);
finish_decl
(
$
<
ttype
>
5
,
$
6
,
$
2
);
}
finish_decl
(
$
<
ttype
>
5
,
$
6
,
$
2
);
pop_momentary
();
}
|
declarator
maybeasm
maybe_attribute
|
declarator
maybeasm
maybe_attribute
{
tree
d
=
start_decl
(
$
1
,
current_declspecs
,
0
);
{
tree
d
=
start_decl
(
$
1
,
current_declspecs
,
0
);
decl_attributes
(
d
,
$
3
);
decl_attributes
(
d
,
$
3
);
...
@@ -1034,12 +1038,17 @@ initdcl:
...
@@ -1034,12 +1038,17 @@ initdcl:
notype_initdcl
:
notype_initdcl
:
notype_declarator
maybeasm
maybe_attribute
'='
notype_declarator
maybeasm
maybe_attribute
'='
{
$
<
ttype
>
$
=
start_decl
(
$
1
,
current_declspecs
,
1
);
{
$
<
ttype
>
$
=
start_decl
(
$
1
,
current_declspecs
,
1
);
start_init
(
$
<
ttype
>
$
,
$
2
,
global_bindings_p
());
}
start_init
(
$
<
ttype
>
$
,
$
2
,
global_bindings_p
());
/* Note that the call to clear_momentary
is in process_init_element. */
push_momentary
();
}
init
init
/* Note how the declaration of the variable is in effect while its init is parsed! */
/* Note how the declaration of the variable is in effect while its init is parsed! */
{
finish_init
();
{
finish_init
();
decl_attributes
(
$
<
ttype
>
5
,
$
3
);
decl_attributes
(
$
<
ttype
>
5
,
$
3
);
finish_decl
(
$
<
ttype
>
5
,
$
6
,
$
2
);
}
finish_decl
(
$
<
ttype
>
5
,
$
6
,
$
2
);
pop_momentary
();
}
|
notype_declarator
maybeasm
maybe_attribute
|
notype_declarator
maybeasm
maybe_attribute
{
tree
d
=
start_decl
(
$
1
,
current_declspecs
,
0
);
{
tree
d
=
start_decl
(
$
1
,
current_declspecs
,
0
);
decl_attributes
(
d
,
$
3
);
decl_attributes
(
d
,
$
3
);
...
@@ -1113,17 +1122,11 @@ attrib
...
@@ -1113,17 +1122,11 @@ attrib
init
:
init
:
expr_no_commas
expr_no_commas
|
'{'
|
'{'
{
really_start_incremental_init
(
NULL_TREE
);
{
really_start_incremental_init
(
NULL_TREE
);
}
/* Note that the call to clear_momentary
is in process_init_element. */
push_momentary
();
}
initlist_maybe_comma
'}'
initlist_maybe_comma
'}'
{
$$
=
pop_init_level
(
0
);
{
$$
=
pop_init_level
(
0
);
}
pop_momentary
();
}
|
error
|
error
{
$$
=
error_mark_node
;
{
$$
=
error_mark_node
;
}
pop_momentary
();
}
;
;
/* `initlist_maybe_comma' is the guts of an initializer in braces. */
/* `initlist_maybe_comma' is the guts of an initializer in braces. */
...
...
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