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
ec6c615d
Commit
ec6c615d
authored
Dec 24, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Add -ax option.
From-SVN: r10848
parent
47288231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
8 deletions
+26
-8
gcc/toplev.c
+26
-8
No files found.
gcc/toplev.c
View file @
ec6c615d
...
...
@@ -2714,13 +2714,16 @@ rest_of_compilation (decl)
compile it by itself, defer decision till end of compilation.
finish_compilation will call rest_of_compilation again
for those functions that need to be output. Also defer those
functions that we are supposed to defer. */
if
(
DECL_DEFER_OUTPUT
(
decl
)
||
((
specd
||
DECL_INLINE
(
decl
))
&&
((
!
TREE_PUBLIC
(
decl
)
&&
!
TREE_ADDRESSABLE
(
decl
)
&&
!
flag_keep_inline_functions
)
||
DECL_EXTERNAL
(
decl
))))
functions that we are supposed to defer. We cannot defer
functions containing nested functions since the nested function
data is in our non-saved obstack. */
if
(
!
current_function_contains_functions
&&
(
DECL_DEFER_OUTPUT
(
decl
)
||
((
specd
||
DECL_INLINE
(
decl
))
&&
((
!
TREE_PUBLIC
(
decl
)
&&
!
TREE_ADDRESSABLE
(
decl
)
&&
!
flag_keep_inline_functions
)
||
DECL_EXTERNAL
(
decl
)))))
{
DECL_DEFER_OUTPUT
(
decl
)
=
1
;
...
...
@@ -3667,7 +3670,16 @@ main (argc, argv, envp)
#if !defined (BLOCK_PROFILER) || !defined (FUNCTION_BLOCK_PROFILER)
warning
(
"`-a' option (basic block profile) not supported"
);
#else
profile_block_flag
=
1
;
profile_block_flag
=
(
profile_block_flag
<
2
)
?
1
:
3
;
#endif
}
else
if
(
!
strcmp
(
str
,
"ax"
))
{
#if !defined (FUNCTION_BLOCK_PROFILER_EXIT) || !defined (BLOCK_PROFILER) || !defined (FUNCTION_BLOCK_PROFILER)
warning
(
"`-ax' option (jump profiling) not supported"
);
#else
profile_block_flag
=
(
!
profile_block_flag
||
profile_block_flag
==
2
)
?
2
:
3
;
#endif
}
else
if
(
str
[
0
]
==
'g'
)
...
...
@@ -3861,6 +3873,12 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
OVERRIDE_OPTIONS
;
#endif
if
(
profile_block_flag
==
3
)
{
warning
(
"`-ax' and `-a' are conflicting options. `-a' ignored."
);
profile_block_flag
=
2
;
}
/* Unrolling all loops implies that standard loop unrolling must also
be done. */
if
(
flag_unroll_all_loops
)
...
...
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