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
1e25c5a9
Commit
1e25c5a9
authored
May 04, 2018
by
Pekka Jääskeläinen
Committed by
Pekka Jääskeläinen
May 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIGFE] skip multiple forward declarations of the same function
From-SVN: r259950
parent
60a3d46c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
gcc/brig/ChangeLog
+5
-0
gcc/brig/brigfrontend/brig-function-handler.cc
+4
-0
No files found.
gcc/brig/ChangeLog
View file @
1e25c5a9
2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
* brig/brigfrontend/brig-function-handler.cc: Skip multiple forward
declarations of the same function.
2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
* brig/brig-lang.c: Do not allow optimizations based on known C
builtins.
...
...
gcc/brig/brigfrontend/brig-function-handler.cc
View file @
1e25c5a9
...
...
@@ -80,6 +80,10 @@ brig_directive_function_handler::operator () (const BrigBase *base)
if
(
m_parent
.
m_analyzing
)
return
bytes_consumed
;
/* There can be multiple forward declarations of the same function.
Skip all but the first one. */
if
(
!
is_definition
&&
m_parent
.
function_decl
(
func_name
)
!=
NULL_TREE
)
return
bytes_consumed
;
tree
fndecl
;
tree
ret_value
=
NULL_TREE
;
...
...
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