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
eaf2e788
Commit
eaf2e788
authored
Sep 05, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(grokdeclarator): For PARM_DECLs, only call
c_build_type_variant is constp or volatilep is true. From-SVN: r5263
parent
7223feb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/c-decl.c
+7
-3
No files found.
gcc/c-decl.c
View file @
eaf2e788
...
...
@@ -4481,8 +4481,10 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if
(
TREE_CODE
(
type
)
==
ARRAY_TYPE
)
{
/* Transfer const-ness of array into that of type pointed to. */
type
=
build_pointer_type
(
c_build_type_variant
(
TREE_TYPE
(
type
),
constp
,
volatilep
));
type
=
TREE_TYPE
(
type
);
if
(
constp
||
volatilep
)
type
=
c_build_type_variant
(
type
,
constp
,
volatilep
);
type
=
build_pointer_type
(
type
);
volatilep
=
constp
=
0
;
size_varies
=
0
;
}
...
...
@@ -4490,7 +4492,9 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
{
if
(
pedantic
&&
(
constp
||
volatilep
))
pedwarn
(
"ANSI C forbids const or volatile function types"
);
type
=
build_pointer_type
(
c_build_type_variant
(
type
,
constp
,
volatilep
));
if
(
constp
||
volatilep
)
type
=
c_build_type_variant
(
type
,
constp
,
volatilep
);
type
=
build_pointer_type
(
type
);
volatilep
=
constp
=
0
;
}
...
...
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