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
b3b51ded
Commit
b3b51ded
authored
Apr 12, 2005
by
Caroline Tice
Committed by
Caroline Tice
Apr 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary fix for partitioning problems; real fix coming soon.
From-SVN: r98051
parent
997de8ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
gcc/ChangeLog
+10
-0
gcc/passes.c
+1
-2
gcc/varasm.c
+12
-8
No files found.
gcc/ChangeLog
View file @
b3b51ded
2005-04-12 Caroline Tice <ctice@apple.com>
Temporary fix for partitioning problems.
* passes.c (rest_of_handle_final): Remove code that
frees unlikely_text_section_name,
* varasm.c (assemble_start_function): Test for partitioning
flag before writing out section labels.
(assemble_end_function): Test for partitioning flag before
writing out section labels.
2005-04-12 Steven Bosscher <stevenb@suse.de>
Stuart Hastings <stuart@apple.com>
Jan Hubicka <jh@suse.cz>
...
...
gcc/passes.c
View file @
b3b51ded
...
...
@@ -328,8 +328,7 @@ rest_of_handle_final (void)
timevar_push
(
TV_SYMOUT
);
(
*
debug_hooks
->
function_decl
)
(
current_function_decl
);
if
(
unlikely_text_section_name
)
free
(
unlikely_text_section_name
);
timevar_pop
(
TV_SYMOUT
);
ggc_collect
();
...
...
gcc/varasm.c
View file @
b3b51ded
...
...
@@ -1303,7 +1303,8 @@ assemble_start_function (tree decl, const char *fnname)
/* Switch to the correct text section for the start of the function. */
function_section
(
decl
);
if
(
!
hot_label_written
)
if
(
flag_reorder_blocks_and_partition
&&
!
hot_label_written
)
ASM_OUTPUT_LABEL
(
asm_out_file
,
hot_section_label
);
/* Tell assembler to move to target machine's alignment for functions. */
...
...
@@ -1377,13 +1378,16 @@ assemble_end_function (tree decl, const char *fnname)
}
/* Output labels for end of hot/cold text sections (to be used by
debug info.) */
save_text_section
=
in_section
;
unlikely_text_section
();
ASM_OUTPUT_LABEL
(
asm_out_file
,
cold_section_end_label
);
text_section
();
ASM_OUTPUT_LABEL
(
asm_out_file
,
hot_section_end_label
);
if
(
save_text_section
==
in_unlikely_executed_text
)
unlikely_text_section
();
if
(
flag_reorder_blocks_and_partition
)
{
save_text_section
=
in_section
;
unlikely_text_section
();
ASM_OUTPUT_LABEL
(
asm_out_file
,
cold_section_end_label
);
text_section
();
ASM_OUTPUT_LABEL
(
asm_out_file
,
hot_section_end_label
);
if
(
save_text_section
==
in_unlikely_executed_text
)
unlikely_text_section
();
}
}
/* Assemble code to leave SIZE bytes of zeros. */
...
...
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