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
1d754240
Commit
1d754240
authored
Aug 14, 2004
by
Paul Brook
Committed by
Paul Brook
Aug 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* trans-decl.c (gfc_build_function_decl): Remove dead code.
From-SVN: r85996
parent
37de1373
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/trans-decl.c
+4
-8
No files found.
gcc/fortran/ChangeLog
View file @
1d754240
2004-08-14 Paul Brook <paul@codesourcery.com>
* trans-decl.c (gfc_build_function_decl): Remove dead code.
2004-08-14 Paul Brook <paul@codesourcery.com>
* trans-arry.c (gfc_trans_auto_array_allocation): Remove unused var.
2004-08-13 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
...
...
gcc/fortran/trans-decl.c
View file @
1d754240
...
...
@@ -976,6 +976,7 @@ gfc_build_function_decl (gfc_symbol * sym)
tree
length
;
symbol_attribute
attr
;
gfc_formal_arglist
*
f
;
tree
parm
;
assert
(
!
sym
->
backend_decl
);
assert
(
!
sym
->
attr
.
external
);
...
...
@@ -1049,13 +1050,12 @@ gfc_build_function_decl (gfc_symbol * sym)
DECL_CONTEXT
(
fndecl
)
=
current_function_decl
;
DECL_EXTERNAL
(
fndecl
)
=
0
;
/* This specifies if a function is globaly
addressa
ble, ie. it is
/* This specifies if a function is globaly
visi
ble, ie. it is
the opposite of declaring static in C. */
if
(
DECL_CONTEXT
(
fndecl
)
==
NULL_TREE
||
attr
.
external
)
if
(
DECL_CONTEXT
(
fndecl
)
==
NULL_TREE
)
TREE_PUBLIC
(
fndecl
)
=
1
;
/* TREE_STATIC means the function body is defined here. */
if
(
!
attr
.
external
)
TREE_STATIC
(
fndecl
)
=
1
;
/* Set attributes for PURE functions. A call to PURE function in the
...
...
@@ -1073,10 +1073,6 @@ gfc_build_function_decl (gfc_symbol * sym)
/* Layout the function declaration and put it in the binding level
of the current function. */
if
(
!
attr
.
external
)
{
tree
parm
;
pushdecl
(
fndecl
);
/* Build formal argument list. Make sure that their TREE_CONTEXT is
the new FUNCTION_DECL node. */
...
...
@@ -1212,7 +1208,7 @@ gfc_build_function_decl (gfc_symbol * sym)
/* Restore the old context. */
current_function_decl
=
DECL_CONTEXT
(
fndecl
);
}
sym
->
backend_decl
=
fndecl
;
}
...
...
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