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
1619aa6f
Commit
1619aa6f
authored
Aug 18, 2004
by
Paul Brook
Committed by
Paul Brook
Aug 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* trans-types.c (gfc_sym_type): Use pointer types for optional args.
From-SVN: r86182
parent
03904fb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/trans-types.c
+8
-1
No files found.
gcc/fortran/ChangeLog
View file @
1619aa6f
2004-08-18 Paul Brook <paul@codesourcery.com>
* trans-types.c (gfc_sym_type): Use pointer types for optional args.
2004-08-18 Victor Leikehman <lei@il.ibm.com>
PR fortran/13278
...
...
gcc/fortran/trans-types.c
View file @
1619aa6f
...
...
@@ -972,7 +972,14 @@ gfc_sym_type (gfc_symbol * sym)
See f95_get_function_decl. For dummy function parameters return the
function type. */
if
(
byref
)
type
=
build_reference_type
(
type
);
{
/* We must use pointer types for potentially absent variables. The
optimizers assume a reference type argument is never NULL. */
if
(
sym
->
attr
.
optional
||
sym
->
ns
->
proc_name
->
attr
.
entry_master
)
type
=
build_pointer_type
(
type
);
else
type
=
build_reference_type
(
type
);
}
return
(
type
);
}
...
...
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