[PATCH] LoongArch: fix MUSL_DYNAMIC_LINKER

2023-04-19 Thread Peng Fan
The system based on musl has no '/lib64', so change it. https://wiki.musl-libc.org/guidelines-for-distributions.html, "Multilib/multi-arch" section of this introduces it. gcc/ * config/loongarch/gnu-user.h (MUSL_DYNAMIC_LINKER: Redefine.) Signed-off-by: Peng Fan Suggested-by:

[PATCH] LoongArch: fix MUSL_DYNAMIC_LINKER

2023-04-16 Thread Peng Fan
The system based on musl has no '/lib64', so change it. gcc/ * config/loongarch/gnu-user.h (MUSL_DYNAMIC_LINKER): Redefine. Signed-off-by: Peng Fan --- gcc/config/loongarch/gnu-user.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/config/loongarch/gnu

RE: Warning: unpredictable: identical transfer and status registers --`stxr w4,x5,[x4] using aarch64 poky gcc 8.3

2019-02-14 Thread Peng Fan
> -Original Message- > From: Michael Matz [mailto:m...@suse.de] > Sent: 2019年2月13日 22:45 > To: Peng Fan > Cc: gcc@gcc.gnu.org; james.greenha...@arm.com; n...@arm.com; > jailhouse-...@googlegroups.com; will.dea...@arm.com; Catalin Marinas > > Subject: RE

RE: Warning: unpredictable: identical transfer and status registers --`stxr w4,x5,[x4] using aarch64 poky gcc 8.3

2019-02-13 Thread Peng Fan
> -Original Message- > From: Andreas Schwab [mailto:sch...@suse.de] > Sent: 2019年2月13日 21:59 > To: Peng Fan > Cc: gcc@gcc.gnu.org; james.greenha...@arm.com; n...@arm.com; > jailhouse-...@googlegroups.com; will.dea...@arm.com; Catalin Marinas > > Subject: Re

RE: Warning: unpredictable: identical transfer and status registers --`stxr w4,x5,[x4] using aarch64 poky gcc 8.3

2019-02-13 Thread Peng Fan
Hi Michael, > -Original Message- > From: Michael Matz [mailto:m...@suse.de] > Sent: 2019年2月13日 22:28 > To: Peng Fan > Cc: gcc@gcc.gnu.org; james.greenha...@arm.com; n...@arm.com; > jailhouse-...@googlegroups.com; will.dea...@arm.com; Catalin Marinas > &

RE: Warning: unpredictable: identical transfer and status registers --`stxr w4,x5,[x4] using aarch64 poky gcc 8.3

2019-02-13 Thread Peng Fan
> -Original Message- > From: jailhouse-...@googlegroups.com > [mailto:jailhouse-...@googlegroups.com] On Behalf Of Segher Boessenkool > Sent: 2019年2月13日 17:11 > To: Peng Fan > Cc: gcc@gcc.gnu.org; james.greenha...@arm.com; n...@arm.com; > jailhouse-...@googl

Warning: unpredictable: identical transfer and status registers --`stxr w4,x5,[x4] using aarch64 poky gcc 8.3

2019-02-12 Thread Peng Fan
Hi, We met an issue when building a piece jailhouse hypervisor code, "stxr %w0, %3, %2\n\t" is compiled as "stxr w4,x5,[x4]" which triggers the warning "Warning: unpredictable: identical transfer and status registers" After folder the do while into asm code, it is compiled as "stxr w1, x4,

Re: GCC ARM: aligned access

2014-09-02 Thread Peng Fan
On 09/02/2014 09:25 PM, Julian Brown wrote: On Mon, 1 Sep 2014 09:14:31 +0800 Peng Fan van.free...@gmail.com wrote: On 09/01/2014 08:09 AM, Matt Thomas wrote: On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: I think this is totally expected. You were passed

GCC ARM: aligned access

2014-08-31 Thread Peng Fan
Hi, I am writing some code and found that system crashed. I found it was unaligned access which causes `data abort` exception. I write a piece of code and objdump it. I am not sure this is right or not. command: arm-poky-linux-gnueabi-gcc -marm -mno-thumb-interwork -mabi=aapcs-linux

Re: GCC ARM: aligned access

2014-08-31 Thread Peng Fan
On 09/01/2014 08:09 AM, Matt Thomas wrote: On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: Hi, I am writing some code and found that system crashed. I found it was unaligned access which causes `data abort` exception. I write a piece of code and objdump