Re: [PATCH, aarch64] Fix target/70120

2016-03-25 Thread Jeff Law
On 03/21/2016 11:44 AM, Richard Henderson wrote: On 03/21/2016 06:40 AM, Jiong Wang wrote: On 17/03/16 19:17, Richard Henderson wrote: PR target/70120 * varasm.c (for_each_section): New. * varasm.h (for_each_section): Declare. * config/aarch64/aarch64.c

Re: [PATCH, aarch64] Fix target/70120

2016-03-21 Thread Jiong Wang
Richard Henderson writes: > On 03/21/2016 06:40 AM, Jiong Wang wrote: >> On 17/03/16 19:17, Richard Henderson wrote: >>> PR target/70120 >>> * varasm.c (for_each_section): New. >>> * varasm.h (for_each_section): Declare. >>> * config/aarch64/aarch64.c (aarch64_align_code_section):

Re: [PATCH, aarch64] Fix target/70120

2016-03-21 Thread Richard Henderson
On 03/21/2016 06:40 AM, Jiong Wang wrote: On 17/03/16 19:17, Richard Henderson wrote: PR target/70120 * varasm.c (for_each_section): New. * varasm.h (for_each_section): Declare. * config/aarch64/aarch64.c (aarch64_align_code_section): New. (aarch64_asm_file_end): New.

Re: [PATCH, aarch64] Fix target/70120

2016-03-21 Thread Jiong Wang
On 17/03/16 19:17, Richard Henderson wrote: PR target/70120 * varasm.c (for_each_section): New. * varasm.h (for_each_section): Declare. * config/aarch64/aarch64.c (aarch64_align_code_section): New. (aarch64_asm_file_end): New. (TARGET_ASM_FILE_END):

Re: [PATCH, aarch64] Fix target/70120

2016-03-21 Thread Bernd Schmidt
On 03/17/2016 08:17 PM, Richard Henderson wrote: With -g, and a code section that ends unaligned, the assembler complains of "unaligned opcodes detected". Except there are no such unaligned opcodes, nor dwarf2 code ranges covering the end of the section, which arguably makes this an assembler

[PATCH, aarch64] Fix target/70120

2016-03-19 Thread Richard Henderson
With -g, and a code section that ends unaligned, the assembler complains of "unaligned opcodes detected". Except there are no such unaligned opcodes, nor dwarf2 code ranges covering the end of the section, which arguably makes this an assembler bug. However, it's reasonably easy to work around