diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-13 23:31:56 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-13 23:31:56 +0000 |
| commit | a7ebcfd883bf9c0db334d31aafe7618ff72367b6 (patch) | |
| tree | 5b5bdc4e0d483212c9e4388bbb5cf2aa47107e24 | |
| parent | adbc048aef795716f2eb7cd9b87dad32d0993447 (diff) | |
| download | ppe42-gcc-a7ebcfd883bf9c0db334d31aafe7618ff72367b6.tar.gz ppe42-gcc-a7ebcfd883bf9c0db334d31aafe7618ff72367b6.zip | |
* varasm.c (unlikely_text_section): Use assemble_align instead of
ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
correct alignment argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80669 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/varasm.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc01a689367..1d250e78e46 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -7,6 +7,10 @@ (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise. * doc/invoke.texi: Update to match. + * varasm.c (unlikely_text_section): Use assemble_align instead of + ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately + correct alignment argument. + 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com> * reload1.c (emit_reload_insns): Set reg_has_output_reload to one diff --git a/gcc/varasm.c b/gcc/varasm.c index 780bba8a11a..c94d514e299 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -228,7 +228,6 @@ unlikely_text_section (void) { in_section = in_unlikely_executed_text; fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP); - ASM_OUTPUT_ALIGN (asm_out_file, 2); } if (!unlikely_section_label_printed) @@ -236,6 +235,10 @@ unlikely_text_section (void) fprintf (asm_out_file, "__%s_unlikely_section:\n", current_function_name ()); unlikely_section_label_printed = true; + + /* Make sure that we have approprate alignment for instructions + in this section. */ + assemble_align (FUNCTION_BOUNDARY); } } } |

