[PATCH] RX: Restrict displacement ranges in "Q" constraint

2025-01-29 Thread Yoshinori Sato
When using the "Q" constraint in the inline assembler, the displacement value could exceed the range specified by the instruction. To avoid this issue, a displacement range check is added to the "Q" constraint. Signed-off-by: Yoshinori Sato --- gcc/config/rx/constraint

[PATCH v2] PR target/89828 Inernal compiler error on -fno-omit-frame-pointer

2023-03-15 Thread Yoshinori Sato
What about this? It no longer occurs for me. gcc/config/rx/ * rx.cc (add_pop_cfi_notes): Release the frame pointer if it is used. (rx_expand_prologue): Redesigned stack pointer and frame pointer update process. Signed-off-by: Yoshinori Sato --- gcc/config/rx/rx.cc | 50

[PATCH] PR target/89828 Inernal compiler error on -fno-omit-frame-pointer

2023-01-05 Thread Yoshinori Sato
pointer if it is used. (rx_expand_prologue): Redesigned stack pointer and frame pointer update process. Signed-off-by: Yoshinori Sato --- gcc/config/rx/rx.cc | 50 +++-- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/gcc/config/rx

[PATCH] sh-linux fix target cpu

2022-01-12 Thread Yoshinori Sato
sh-linux not supported any SH1 and SH2a little-endian. Add exceptios it. gcc/ChangeLog: * config/sh/t-linux (MULTILIB_EXCEPTIONS): Add m1, mb/m1 and m2a. --- gcc/config/sh/t-linux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/sh/t-linux b/gcc/config/sh/

[PATCH] rx: Add define "PREFERRED_DEBUGGING_TYPE" to rx-*-linux.

2021-09-01 Thread Yoshinori Sato
Added missging PREFERRED_DEBUGGING_TYPE. gcc/ChangeLog * config/rx/linux.h (PREFERRED_DEBUGGING_TYPE): Added missing define. --- gcc/config/rx/linux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/rx/linux.h b/gcc/config/rx/linux.h index 9ee484af886..e9b51197a23

Re: [PATCH] RX: Add rx-*-linux target

2019-06-07 Thread Yoshinori Sato
On Thu, 06 Jun 2019 08:22:55 +0900, Jeff Law wrote: > > [1 ] > On 6/3/19 11:01 AM, Yoshinori Sato wrote: > > On Sun, 02 Jun 2019 22:12:37 +0900, > > Oleg Endo wrote: > >> > >> On Sun, 2019-06-02 at 20:26 +0900, Yoshinori Sato wrote: > >>> On Fr

Re: [PATCH] RX: Add rx-*-linux target

2019-06-03 Thread Yoshinori Sato
On Sun, 02 Jun 2019 22:12:37 +0900, Oleg Endo wrote: > > On Sun, 2019-06-02 at 20:26 +0900, Yoshinori Sato wrote: > > On Fri, 31 May 2019 09:16:18 +0900, > > Jeff Law wrote: > > > > > > On 5/29/19 12:27 PM, Jeff Law wrote: > > > > On 5/23/19 6

Re: [PATCH] RX: Add rx-*-linux target

2019-06-02 Thread Yoshinori Sato
On Fri, 31 May 2019 09:16:18 +0900, Jeff Law wrote: > > On 5/29/19 12:27 PM, Jeff Law wrote: > > On 5/23/19 6:05 AM, Yoshinori Sato wrote: > >> I ported linux kernel to Renesas RX. > >> > >> rx-*-elf target output a binary different from the standard

[PATCH] RX: Add rx-*-linux target

2019-05-23 Thread Yoshinori Sato
k(SAVE_ACC_REGISTER) +Specifies whether interrupt functions should save and restore the accumulator register. diff --git a/gcc/config/rx/linux.h b/gcc/config/rx/linux.h new file mode 100644 index 000..5466f41b8f5 --- /dev/null +++ b/gcc/config/rx/linux.h @@ -0,0 +1,231 @@ +/* GCC bac

Re: [PATCH] RX: Add rx-*-linux target

2019-05-01 Thread Yoshinori Sato
On Wed, 01 May 2019 00:37:56 +0900, Jeff Law wrote: > > On 4/30/19 7:55 AM, Yoshinori Sato wrote: > > On Tue, 30 Apr 2019 06:48:01 +0900, > > Jeff Law wrote: > >> > >> On 3/26/19 8:21 AM, Yoshinori Sato wrote: > >>> I ported linux kernel to Renesas

Re: [PATCH] RX: Add rx-*-linux target

2019-04-30 Thread Yoshinori Sato
On Tue, 30 Apr 2019 06:48:01 +0900, Jeff Law wrote: > > On 3/26/19 8:21 AM, Yoshinori Sato wrote: > > I ported linux kernel to Renesas RX. > > > > rx-*-elf target output a binary different from the standard ELF. > > It has the same format as the Renesas compiler.

[PATCH] RX: Add rx-*-linux target

2019-03-26 Thread Yoshinori Sato
I ported linux kernel to Renesas RX. rx-*-elf target output a binary different from the standard ELF. It has the same format as the Renesas compiler. But the linux kernel requires the standard ELF format. I want to define a rx-*-linux target so that I can generate a standard ELF binary. diff --g

Remove SH_DIV_CALL2

2016-04-30 Thread Yoshinori Sato
ine SUBTARGET_OVERRIDE_OPTIONS \ do \ -- Yoshinori Sato

Re: [PATCH][RX] v2 instructions support.

2015-12-23 Thread Yoshinori Sato
Ping. On Thu, 10 Dec 2015 23:11:33 +0900, Yoshinori Sato wrote: > > Add RX v2 enhancement instructions support. > > gcc/ChangeLog > 2015/12/10 Yoshinori Sato > > * config/rx/constraints.md: Add constraint "q". > * doc/md.texi: Likewise. >

[PATCH][RX] v2 instructions support.

2015-12-10 Thread Yoshinori Sato
Add RX v2 enhancement instructions support. gcc/ChangeLog 2015/12/10 Yoshinori Sato * config/rx/constraints.md: Add constraint "q". * doc/md.texi: Likewise. * config/rx/rx-opts.h(rx_cpu_types): Add type RXV2. * config/rx/rx.c(rx_print_operand): Add

Re: [PATCH] Add new target h8300-*-linux

2015-04-25 Thread Yoshinori Sato
Updated. Some cleanup. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a73cef67..b7dac9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2015-04-26 Yoshinori Sato + + * config.gcc: Add h8300-*-linux. + * config/h8300/linux.h: Likewise. + * config/h8300/t

Re: [PATCH] Add new target h8300-*-linux

2015-04-20 Thread Yoshinori Sato
At Mon, 20 Apr 2015 09:26:21 -0600, Jeff Law wrote: > > On 04/19/2015 10:51 PM, Yoshinori Sato wrote: > >>> + if (TARGET_H8300H && (TARGET_H8300S || TARGET_H8300SX)) > >>> +{ > >>> + target_flags ^= MASK_H8300H; > >>> +

Re: [PATCH] Add new target h8300-*-linux

2015-04-19 Thread Yoshinori Sato
At Fri, 17 Apr 2015 10:53:51 -0600, Jeff Law wrote: > > On 03/05/2015 09:50 AM, Yoshinori Sato wrote: > > Add h8300-*-linux target for h8300 linux kernel and userland. > > > > h8300-*-elf is some difference of standard elf. > > h8300-*-linux is compatible of stand

Re: [PATCH] Add new target h8300-*-linux

2015-04-04 Thread Yoshinori Sato
Ping At Fri, 06 Mar 2015 01:50:34 +0900, Yoshinori Sato wrote: > > Add h8300-*-linux target for h8300 linux kernel and userland. > > h8300-*-elf is some difference of standard elf. > h8300-*-linux is compatible of standard elf rules. > > Thanks. > > diff --git a/gc

[PATCH][RX] Add RXv2 instructions

2015-04-04 Thread Yoshinori Sato
/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,43 @@ +2015-0404 Yoshinori Sato + + * config/rx/rx.opt (rx_cpu_types): Add RXv2. + * config/rx/rx-opts.h (rx_cpu_types): Likewise. + * config/rx/t-rx: Add rxv2 option. + * config/rx/rx.c (rx_print_operand): Add RXv2 registers

Re: sh-*-linux build failure

2015-03-09 Thread Yoshinori Sato
> +DEFAULT_ENDIAN = $(word 1,$(TM_ENDIAN_CONFIG)) > +ifeq ($(DEFAULT_ENDIAN),ml) > +MULTILIB_EXCEPTIONS = m2a m2a/ml > +else > +MULTILIB_EXCEPTIONS = ml/m2a > +endif It works fine. Thanks. -- Yoshinori Sato

sh-*-linux build failure

2015-03-08 Thread Yoshinori Sato
SH2A. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce183a0..1fb2344 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-03-08 Yoshinori Sato + + * config/sh/t-linux: Add exception for SH2A. + 2015-03-05 Jan Hubicka PR ipa/65316 diff --git a/gcc/config/sh/t

[PATCH] Add new target h8300-*-linux

2015-03-05 Thread Yoshinori Sato
@@ +2015-03-06 Yoshinori Sato + + * config.gcc: Add h8300-*-linux + * config/h8300/h8300.c (h8300_option_override): + Exclusive -mh vs -ms/-msx + (h8300_file_start): Target priority -msx > -ms > -mh + * config/h8300/linux.h: New file. + * config/h8300/t

Re: [PATCH] Add new target h8300-*-linux

2015-02-02 Thread Yoshinori Sato
At Sun, 1 Feb 2015 00:39:08 +, Joseph Myers wrote: > > On Sat, 31 Jan 2015, Yoshinori Sato wrote: > > > + * config/h8300/linux.h: New file. > > + * config/h8300/t-linux: New file. > > These files don't appear to be included in the patch. I&#

Re: [PATCH] Add new target h8300-*-linux

2015-01-31 Thread Yoshinori Sato
Updated. copyright assignment process in progress. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e1e8bb..5fd857c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2015-01-31 Yoshinori Sato + + * config.gcc: Add target h8300-linux. + * config/h8300/linux.h: New

Re: [PATCH] Add new target h8300-*-linux

2015-01-22 Thread Yoshinori Sato
At Thu, 22 Jan 2015 23:17:12 +, Joseph Myers wrote: > > On Thu, 22 Jan 2015, Yoshinori Sato wrote: > > > +h8300-*-linux*) > > + tmake_file="${tmake_file} h8300/t-h8300 h8300/t-linux" > > + tm_file="h8300/linux.h dbxelf.h elfos.h linux.h&qu

Re: [PATCH] Add new target h8300-*-linux

2015-01-22 Thread Yoshinori Sato
At Thu, 22 Jan 2015 09:52:09 -0700, Jeff Law wrote: > > On 01/22/15 01:38, Yoshinori Sato wrote: > > Add h8300-*-linux target for h8300 linux kernel and userland. > > > > h8300-*-elf is some difference of standard elf. > > h8300-*-linux is compatible of standard el

[PATCH] Add new target h8300-*-linux

2015-01-22 Thread Yoshinori Sato
v/null +++ b/gcc/config/h8300/linux.h @@ -0,0 +1,784 @@ +/* Definitions of target machine for GNU compiler. + Renesas H8/300 (linux variant) + Copyright (C) 2015 + Free Software Foundation, Inc. + Contributed by Yoshinori Sato + +This file is part of GCC. + +GCC is free software; you can redistr

Re: __sdivsi3_i4i and __udivsi3_i4i called for sh2 variant.

2013-03-05 Thread Yoshinori Sato
> > Uses a lookup table for divisors in the range -128 .. +128, and > > The code that you have enabled in lib1funcs.S will utilize dynamic shift > instructions, which are not available on SH1 or SH2. Maybe your target > HW is SH2A which has dynamic shift instructions and you haven't noticed >

__sdivsi3_i4i and __udivsi3_i4i called for sh2 variant.

2013-03-03 Thread Yoshinori Sato
It function called to divide operator. But libgcc.a is not include it helper functions. This patch is included those functions. diff -ru gcc-4.7.2.org/gcc/config.gcc gcc-4.7.2/gcc/config.gcc --- gcc-4.7.2.org/gcc/config.gcc2012-09-12 18:03:54.0 +0900 +++ gcc-4.7.2/gcc/config.gcc

Re: [PATCH] PR/Target 47998

2011-03-17 Thread Yoshinori Sato
At Wed, 16 Mar 2011 10:22:20 -0600, Jeff Law wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 03/16/11 09:32, Yoshinori Sato wrote: > > Hi All, > > > > This problem optimize rule missing. > > gen_lowpart got invalid operand. > > &g

[PATCH] PR/Target 47998

2011-03-16 Thread Yoshinori Sato
Hi All, This problem optimize rule missing. gen_lowpart got invalid operand. I attached fix patch. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca9398c..9982644 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-03-16 Yoshinori Sato + + PR/target 47998