diff options
author | Hartmut Penner <hpenner@de.ibm.com> | 2002-11-27 07:18:20 +0000 |
---|---|---|
committer | Hartmut Penner <hpenner@gcc.gnu.org> | 2002-11-27 07:18:20 +0000 |
commit | 0f942cae3b5b39f7d9c5f693b45604c481beee47 (patch) | |
tree | b8fb79bf64a6fc82d8909e9c2146771c67ecbfc2 | |
parent | d5c4db173884bbf20c3cefcaa8ee191ae628fa1b (diff) | |
download | gcc-0f942cae3b5b39f7d9c5f693b45604c481beee47.zip gcc-0f942cae3b5b39f7d9c5f693b45604c481beee47.tar.gz gcc-0f942cae3b5b39f7d9c5f693b45604c481beee47.tar.bz2 |
s390.c (390_output_constant_pool): Set alignment before label in 64 bit mode, behind otherwise.
* config/s390/s390.c (390_output_constant_pool): Set alignment
before label in 64 bit mode, behind otherwise.
From-SVN: r59561
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 17 |
2 files changed, 18 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b14a24e..5764f89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-11-26 Hartmut Penner <hpenner@de.ibm.com> + + * config/s390/s390.c (390_output_constant_pool): Set alignment + before label in 64 bit mode, behind otherwise. + 2002-11-26 Richard Henderson <rth@redhat.com> * c-common.c (handle_visibility_attribute): Accept "default". diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 3332d0f..3f6ec45 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -4061,11 +4061,20 @@ s390_output_constant_pool (start_label, end_label) rtx start_label; rtx end_label; { - if (TARGET_64BIT) - readonly_data_section (); - ASM_OUTPUT_ALIGN (asm_out_file, TARGET_64BIT ? 3 : 2); + if (TARGET_64BIT) + { + readonly_data_section (); + ASM_OUTPUT_ALIGN (asm_out_file, 3); + ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "L", + CODE_LABEL_NUMBER (start_label)); + } + else + { + ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "L", + CODE_LABEL_NUMBER (start_label)); + ASM_OUTPUT_ALIGN (asm_out_file, 2); + } - ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "L", CODE_LABEL_NUMBER (start_label)); s390_pool_count = 0; output_constant_pool (current_function_name, current_function_decl); s390_pool_count = -1; |