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
1ffae628
Commit
1ffae628
authored
May 20, 2004
by
Steven Bosscher
Committed by
Steven Bosscher
May 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-mudflap.c: Formatting fixes.
From-SVN: r82052
parent
965ccc5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
gcc/ChangeLog
+4
-0
gcc/tree-mudflap.c
+11
-8
No files found.
gcc/ChangeLog
View file @
1ffae628
2004-05-20 Steven Bosscher <stevenb@suse.de>
* tree-mudflap.c: Formatting fixes.
2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
* Makefile.in (GTFILES): Add $(srcdir)/reload.h.
* Makefile.in (GTFILES): Add $(srcdir)/reload.h.
...
...
gcc/tree-mudflap.c
View file @
1ffae628
...
@@ -740,13 +740,16 @@ mx_register_decls (tree decl, tree *stmt_list)
...
@@ -740,13 +740,16 @@ mx_register_decls (tree decl, tree *stmt_list)
while
(
decl
!=
NULL_TREE
)
while
(
decl
!=
NULL_TREE
)
{
{
/* Eligible decl? */
/* Eligible decl? */
if
((
TREE_CODE
(
decl
)
==
VAR_DECL
||
TREE_CODE
(
decl
)
==
PARM_DECL
)
&&
if
((
TREE_CODE
(
decl
)
==
VAR_DECL
||
TREE_CODE
(
decl
)
==
PARM_DECL
)
(
!
TREE_STATIC
(
decl
))
&&
/* auto variable */
/* It must be a non-external, automatic variable. */
(
!
DECL_EXTERNAL
(
decl
))
&&
/* not extern variable */
&&
!
DECL_EXTERNAL
(
decl
)
(
TREE_TYPE
(
decl
)
!=
error_mark_node
)
&&
/* not decl with error */
&&
!
TREE_STATIC
(
decl
)
(
COMPLETE_OR_VOID_TYPE_P
(
TREE_TYPE
(
decl
)))
&&
/* complete type */
/* The decl must have its address taken. */
(
!
mf_marked_p
(
decl
))
&&
/* not already processed */
&&
TREE_ADDRESSABLE
(
decl
)
(
TREE_ADDRESSABLE
(
decl
)))
/* has address taken */
/* The type of the variable must be complete. */
&&
COMPLETE_OR_VOID_TYPE_P
(
TREE_TYPE
(
decl
))
/* Don't process the same decl twice. */
&&
!
mf_marked_p
(
decl
))
{
{
tree
size
=
NULL_TREE
,
variable_name
;
tree
size
=
NULL_TREE
,
variable_name
;
tree
unregister_fncall
,
unregister_fncall_params
;
tree
unregister_fncall
,
unregister_fncall_params
;
...
@@ -860,7 +863,7 @@ mx_register_decls (tree decl, tree *stmt_list)
...
@@ -860,7 +863,7 @@ mx_register_decls (tree decl, tree *stmt_list)
/* Add the __mf_register call at the current appending point. */
/* Add the __mf_register call at the current appending point. */
if
(
tsi_end_p
(
initially_stmts
))
if
(
tsi_end_p
(
initially_stmts
))
internal_error
(
"mudflap ran off end of BIND_EXPR body"
);
internal_error
(
"mudflap ran off end of BIND_EXPR body"
);
tsi_link_before
(
&
initially_stmts
,
register_fncall
,
TSI_SAME_STMT
);
tsi_link_before
(
&
initially_stmts
,
register_fncall
,
TSI_SAME_STMT
);
/* Accumulate the FINALLY piece. */
/* Accumulate the FINALLY piece. */
append_to_statement_list
(
unregister_fncall
,
&
finally_stmts
);
append_to_statement_list
(
unregister_fncall
,
&
finally_stmts
);
...
...
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