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
b4d6689b
Commit
b4d6689b
authored
Jan 01, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ASM_FILE_START): Switch to text section at end.
Output declaration for .mcount when profiling. From-SVN: r3044
parent
b7a4467d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
gcc/config/rs6000/rs6000.h
+13
-6
No files found.
gcc/config/rs6000/rs6000.h
View file @
b4d6689b
...
@@ -35,7 +35,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -35,7 +35,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
Don't do this until the fixed IBM assembler is more generally available.
Don't do this until the fixed IBM assembler is more generally available.
When this becomes permanently defined, the ASM_OUTPUT_EXTERNAL,
When this becomes permanently defined, the ASM_OUTPUT_EXTERNAL,
ASM_OUTPUT_EXTERNAL_LIBCALL, and RS6000_OUTPUT_BASENAME macros will no
ASM_OUTPUT_EXTERNAL_LIBCALL, and RS6000_OUTPUT_BASENAME macros will no
longer be needed. */
longer be needed. Also, the extern declaration of mcount in ASM_FILE_START
will no longer be needed. */
/* #define ASM_SPEC "-u" */
/* #define ASM_SPEC "-u" */
...
@@ -1319,13 +1320,16 @@ extern int rs6000_trunc_used;
...
@@ -1319,13 +1320,16 @@ extern int rs6000_trunc_used;
/* Output at beginning of assembler file.
/* Output at beginning of assembler file.
On the RS/6000, we want to go into the TOC section so at least one
Initialize the section names for the RS/6000 at this point.
.toc will be emitted.
Also initialize the section names for the RS/6000 at this point.
We want to go into the TOC section so at least one .toc will be emitted.
Also, in order to output proper .bs/.es pairs, we need at least one static
Also, in order to output proper .bs/.es pairs, we need at least one static
[RW] section emitted. */
[RW] section emitted.
We then switch back to text to force the gcc2_compiled. label and the space
allocated after it (when profiling) into the text section.
Finally, declare mcount when profiling to make the assembler happy. */
#define ASM_FILE_START(FILE) \
#define ASM_FILE_START(FILE) \
{ \
{ \
...
@@ -1339,6 +1343,9 @@ extern int rs6000_trunc_used;
...
@@ -1339,6 +1343,9 @@ extern int rs6000_trunc_used;
toc_section (); \
toc_section (); \
if (write_symbols != NO_DEBUG) \
if (write_symbols != NO_DEBUG) \
private_data_section (); \
private_data_section (); \
text_section (); \
if (profile_flag) \
fprintf (FILE, "\t.extern .mcount\n"); \
}
}
/* Output at end of assembler file.
/* Output at end of assembler file.
...
...
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