[PATCH][wwwdoc] gcc-14: Add arm cortex-m52 cpu support

2024-01-09 Thread Chung-Ju Wu
2513e83f07490451eb4be593454afa1f513b6153 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 7 Dec 2023 13:33:43 +0800 Subject: [PATCH] gcc-14: Add arm cortex-m52 cpu support --- htdocs/gcc-14/changes.html | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/gcc-14/changes.html b

Re: [PATCH][wwwdoc] gcc-14: Add arm cortex-m52 cpu support

2024-01-10 Thread Chung-Ju Wu
On 2024/01/10 22:52 UTC+8, Gerald Pfeifer wrote: On Wed, 10 Jan 2024, Kyrylo Tkachov wrote: Hi Gerald, The Arm Cortex-M52 CPU has been added to the upstream: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642230.html I would like to document this on the gcc-14 changes.html page. I c

[PATCH 1/2] arm: Add cortex-m52 core

2024-01-07 Thread Chung-Ju Wu
MVE and PACBTI enabled in GCC. Bootstrapped and tested on arm-none-eabi. Is it OK for trunk? Regards, jasonwucjFrom d0856b516c5d270a852f3edd9df5dadccde5b94e Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Wed, 6 Dec 2023 15:49:58 +0800 Subject: [PATCH 1/2] arm: Add support for Arm Cortex-M52

[PATCH 2/2] arm: Add cortex-m52 doc

2024-01-07 Thread Chung-Ju Wu
Hi, This is the patch to add cortex-m52 in the Arm-related options sections of the gcc invoke.texi documentation. Is it OK for trunk? Regards, jasonwucjFrom b7ce3d499d4bf087ec54a5f834876c9108d46c3d Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 7 Dec 2023 11:26:25 +0800 Subject: [PATCH

Re: [PATCH 1/2] arm: Add cortex-m52 core

2024-01-08 Thread Chung-Ju Wu
On 2024/01/08 22:31 UTC+8, Kyrylo Tkachov wrote: Hi jasonwucj, -Original Message- From: Chung-Ju Wu Sent: Monday, January 8, 2024 6:16 AM To: gcc-patches ; Kyrylo Tkachov ; Richard Earnshaw Cc: jason...@anshingtek.com.tw Subject: [PATCH 1/2] arm: Add cortex-m52 core Hi, Recently

Re: [PATCH 2/2] arm: Add cortex-m52 doc

2024-01-08 Thread Chung-Ju Wu
On 2024/01/08 22:32 UTC+8, Kyrylo Tkachov wrote: -Original Message- From: Chung-Ju Wu Sent: Monday, January 8, 2024 6:17 AM To: gcc-patches ; Kyrylo Tkachov ; Richard Earnshaw Cc: jason...@anshingtek.com.tw Subject: [PATCH 2/2] arm: Add cortex-m52 doc Hi, This is the patch to

[PING^2] [PATCH 0/6] Contributing new target port: Andes 'nds32'.

2013-08-25 Thread Chung-Ju Wu
Hi, GCC global reviewers, The nds32 port initial patch is still awaiting for any global reviewer's approval. Since there is no further comment in these days, is it OK for trunk? Thanks in advance. :) Best regards, jasonwucj 2013/8/13 Chung-Ju Wu : > Hi, GCC Global Maintainers, >

Re: [PATCH 1/6] Andes nds32: configure settings for nds32 target.

2013-09-08 Thread Chung-Ju Wu
On 7/24/13 11:46 PM, Chung-Ju Wu wrote: > On 7/10/13 6:56 AM, Joseph S. Myers wrote: >> On Mon, 8 Jul 2013, Chung-Ju Wu wrote: > > Thanks for the review comments. > A revised patch is provided and here is a summary: > > 1. Handle -march option within the compiler pro

Re: [PATCH 3/6] Andes nds32: libgcc of nds32 porting.

2013-09-08 Thread Chung-Ju Wu
On 7/31/13 7:07 PM, Chung-Ju Wu wrote: > On 7/25/13 12:41 AM, Chung-Ju Wu wrote: > > According to Joseph's comment in this discussion thread: > http://gcc.gnu.org/ml/gcc-patches/2013-07/msg01372.html > > Using LGPLv2.1+ with exception seems appropriate for sfp-machi

Re: [PATCH 4/6] Andes nds32: testsuite modifications for nds32 target.

2013-09-08 Thread Chung-Ju Wu
On 7/25/13 12:23 AM, Chung-Ju Wu wrote: > > A revised patch is provided and here is a summary: > > 1. The extend identifiers testcases are supposed to be tested. > 2. Add preliminary nds32-specific testcases. > > It has been a while since last v2 patch. So I cre

Re: [PATCH 5/6] Andes nds32: documentation for nds32 target.

2013-09-08 Thread Chung-Ju Wu
On 7/25/13 12:25 AM, Chung-Ju Wu wrote: > On 7/12/13 1:35 AM, Chung-Ju Wu wrote: >> >> Fixed accordingly. >> >> Thanks for the review comments. A revised patch is provided >> and the issues you mentioned are fixed: >>a. Describe nds32 built-in f

Re: [PATCH 6/6] Andes nds32: wwwdoc for nds32 target.

2013-09-08 Thread Chung-Ju Wu
On 7/8/13 7:05 PM, Chung-Ju Wu wrote: > Hi, > > This patch consists of webpage changes for describing a new 'nds32' > target port and related information. > > The following is a brief overview of changes: > > htdocs/ > 2013-07-08

[PING^3] [PATCH 0/6] Contributing new target port: Andes 'nds32'.

2013-09-08 Thread Chung-Ju Wu
e and Andes Technology Corporation really appreciate it. :) Best regards, jasonwucj On 8/25/13 11:28 PM, Chung-Ju Wu wrote: > 2013/8/13 Chung-Ju Wu : >> Hi, GCC Global Maintainers, >> >> The Andes nds32 port has been accepted by GCC SC [1] >> and the initial patch

Re: [PATCH 6/6] Andes nds32: wwwdoc for nds32 target.

2013-09-12 Thread Chung-Ju Wu
2013/9/10 Gerald Pfeifer : > On Mon, 9 Sep 2013, Chung-Ju Wu wrote: >> Is it OK to apply on the cvs wwwdoc trunk? :) > > I would perhaps say: > > "A new nds32 port supports the 32-bit architecture from Andes > Technology Corporation" > > or similar. >

Re: Ping^6: contribute Synopsys Designware ARC port

2013-10-01 Thread Chung-Ju Wu
2013/10/1 Diego Novillo : > On Sat, Sep 28, 2013 at 9:54 AM, Joern Rennecke > wrote: >> The main part of the port (everything but the testsuite) is still waiting >> for review: > > I have been reviewing these patches (I've gone through 2), and so far > I find nothing surprising in them. I should

Re: [PATCH 2/6] Andes nds32: machine description of nds32 porting (2).

2013-10-06 Thread Chung-Ju Wu
2013/10/6 Richard Sandiford : > Chung-Ju Wu writes: >> On 10/2/13 1:31 AM, Richard Sandiford wrote: >>> Chung-Ju Wu writes: >>>> + /* Use $r15, if the value is NOT in the range of Is20, >>>> + we must output "sethi + ori" directly

Re: [PATCH 2/6] Andes nds32: machine description of nds32 porting (2).

2013-10-06 Thread Chung-Ju Wu
2013/10/6 Chung-Lin Tang : > On 2013/10/6 下午 06:33, Richard Sandiford wrote: >> Chung-Lin Tang writes: >>> On 2013/10/6 05:57 PM, Richard Sandiford wrote: Another way to handle this would be to have the movsi expander split large constant moves. When can_create_pseudo_p (), the intermed

[PATCH v4, nds32] Andes nds32 port, machine description 3/3

2013-10-25 Thread Chung-Ju Wu
Hi, all, This is v4 patch for Andes nds32 port on machine description part 3, which includes other rtl patterns and settings. gcc/ 2013-10-25 Chung-Ju Wu Shiva Chen * config/nds32/constants.md: New file. * config/nds32/constraints.md: New file. * config

RFA: Andes nds32 port v4 patch

2013-10-25 Thread Chung-Ju Wu
Hi, GCC global reviewers, I would like to thank Joseph Myers's preliminary review and Richard Sandiford's help for further technical review in these three months: http://gcc.gnu.org/ml/gcc-patches/2013-07/msg01138.html http://gcc.gnu.org/ml/gcc-patches/2013-10/msg01180.html Their comments cle

[PATCH v4, nds32] Andes nds32 port, libgcc part

2013-10-29 Thread Chung-Ju Wu
+33,6 @@ !! !!== - .file "crtzero.S" - !!-- !! Jump to start up code !!-- libgcc/ 2013-10-29 Chung-Ju Wu Shiva Chen

[PATCH v4, nds32] Andes nds32 port, documentation part

2013-10-29 Thread Chung-Ju Wu
y, the valid @var{library} is @samp{newlib} or @samp{mculib}. This option is only supported for the NDS32 target. @item --with-build-time-tools=@var{dir} gcc/ 2013-10-29 Chung-Ju Wu Shiva Chen * doc/invoke.texi (NDS32 options): Document nds32 specific options.

Re: RFA: Andes nds32 port v4 patch

2013-10-29 Thread Chung-Ju Wu
2013/10/29 Joseph S. Myers : > Since Richard looked at the machine description part of the port, I looked > at the other pieces. I'm happy with those pieces with the following minor > changes: > > http://gcc.gnu.org/ml/gcc-patches/2013-09/msg00520.html (libgcc): remove > the .file directive from c

[PATCH] New port committed: Andes nds32.

2013-10-31 Thread Chung-Ju Wu
Hi, all, Thanks for all who gave me suggestions, review comments, and approval to this new nds32 port for GCC trunk. The Andes nds32 port now is committed into trunk as Rev.204269: http://gcc.gnu.org/r204269 We also add items on wwwdoc for nds32 port contribution: htdocs/backends.html -- Re

[PATCH, nds32] Committed: Adjust MULT performance cost.

2013-11-28 Thread Chung-Ju Wu
=== --- gcc/ChangeLog (revision 205477) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2013-11-28 Chung-Ju Wu + + * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is + not optimized for size. + 2013-11-28 Jakub Jelinek * cfgexpand.c (struct

Re: [PATCH, testsuite] Fix some testcases for nds32 target and provide new nds32 target specific tests

2013-11-28 Thread Chung-Ju Wu
Hi, Mike, There is a pending testsuite patch for nds32 target: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01584.html Is it OK for trunk? :) Best regards, jasonwucj 2013/11/14 Chung-Ju Wu : > > I would like to modify some testcases for nds32 target. > Also I have some nds

Re: [PATCH, testsuite] Fix some testcases for nds32 target and provide new nds32 target specific tests

2013-12-02 Thread Chung-Ju Wu
On 11/30/13, 9:07 AM, Mike Stump wrote: > On Nov 28, 2013, at 2:03 AM, Chung-Ju Wu wrote: >> There is a pending testsuite patch for nds32 target: >>http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01584.html >> >> Is it OK for trunk? :) > > Ok, but ple

Re: [PATCH, testsuite] Fix some testcases for nds32 target and provide new nds32 target specific tests

2013-12-03 Thread Chung-Ju Wu
2013/12/3 Mike Stump : > On Dec 2, 2013, at 5:02 AM, Chung-Ju Wu wrote: >> Perhaps I should have used the following description, which seems much >> better: >> >> +/* { dg-skip-if "Variadic funcs have all args on stack. Normal funcs have

Re: [PATCH, nds32] Missing target_cpu_default in TARGET_DEFAULT_TARGET_FLAGS.

2013-12-12 Thread Chung-Ju Wu
2013/12/11 Monk Chiang : > Hi, > > Recently I used --target=nds32be-elf to configure nds32 gcc, > it seems that the big endian is not set as default. > [...] > > The following is the patch to fix this issue. Tested on nds32be-elf. > > OK to apply? > > Index: common/config/nds32/nds32-common.c > ==

Re: [PATCH, nds32] Missing target_cpu_default in TARGET_DEFAULT_TARGET_FLAGS.

2013-12-19 Thread Chung-Ju Wu
2013/12/17 Monk Chiang : > > I add comment to describe why I adding TARGET_CPU_DEFAULT, > and fix typo in ChangeLog fle. > > Thank you for your suggestion. > > Index: ChangeLog > === > --- ChangeLog (revision 206039) > +++ ChangeLog

[PATCH, nds32] Committed: Fix inaccurate alignment checking when passing BLKmode argument.

2013-12-20 Thread Chung-Ju Wu
>reg_offset, - mode, - type)); + unsigned int regno; + + regno = NDS32_AVAILABLE_REGNUM_FOR_ARG (cum->reg_offset, mode, type); + return gen_rtx_REG (mode, regno);

Re: [Patch] PR55189 enable -Wreturn-type by default

2013-12-26 Thread Chung-Ju Wu
2013/12/21 Sylvestre Ledru : > Hello > > Following this thread http://gcc.gnu.org/ml/gcc/2013-11/msg00260.html > and this bug, > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55189 > > I would like to propose the two following patches: > > I am activating -Wreturn-type by defaut and add the option -W

[PATCH, nds32] Add -mext-perf, -mext-perf2, and -mext-string options.

2017-11-17 Thread Chung-Ju Wu
rom 2347e6efe69c32388cec09af310ebb02573ca749 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 9 Nov 2017 20:28:40 +0800 Subject: [PATCH 1/7] Add new -mext-perf, -mext-perf2, and -mext-string options. --- gcc/common/config/nds32/nds32-common.c | 12 gcc/config/nds32/constraints

[PATCH, nds32] Remove the useless constant UNSPEC_VOLATILE_FUNC_RETURN.

2017-11-17 Thread Chung-Ju Wu
rom 3bc69293a88b0614789be8f49d2ef2c28a8a99fe Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 9 Nov 2017 22:58:40 +0800 Subject: [PATCH 3/7] The FUNC_RETURN is useless in the current implementation. --- gcc/config/nds32/constants.md | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/config/nds32/constants.m

[PATCH, nds332] Provide more constraints for future use.

2017-11-17 Thread Chung-Ju Wu
, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Define R5_REG, R8_REG, and FRAME_POINTER_REG to support constraints usage. Best regards, jasonwucj >From a3a77c515c52201de592ec641affc28f7020414f Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Sat, 11 Nov 2017 10:30:28 +0800 Subject: [PATCH

[PATCH, nds32] Add nds32 vector modes.

2017-11-17 Thread Chung-Ju Wu
attributes. Best regards, jasonwucj >From 61acc7f622e563d6b46e45b26ba1f03dcb61dcb5 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Sun, 12 Nov 2017 16:18:39 +0800 Subject: [PATCH 5/7] Add nds32 vector modes. --- gcc/config/nds32/iterators.md| 17 - gcc/config/nds32/nds32-modes.

[PATCH, nds32] Reserve more register numbers for new registers in the future.

2017-11-17 Thread Chung-Ju Wu
rom 1eaf9ddc17a3728294f6802a6d6cb4e8b4222c20 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Sun, 12 Nov 2017 19:55:11 +0800 Subject: [PATCH 6/7] Reserve more register numbers for new registers in the future. --- gcc/config/nds32/nds32.h | 157 +++ 1 file changed,

[PATCH, doc] NDS32: Add -mext-perf -mext-perf2 and -mext-string in the documentation

2018-01-15 Thread Chung-Ju Wu
Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Fri, 10 Nov 2017 11:42:00 +0800 Subject: [PATCH] Add new nds32 options "-mext-perf", "-mext-perf2", and "-mext-string" in the documentation. --- gcc/doc/invoke.texi | 24 +--- 1 file changed, 21 in

[PATCH, wwwdocs] Update GCC 8 release notes for NDS32 port

2018-01-23 Thread Chung-Ju Wu
Hi, Gerald, In previous patch we add new options for NDS32 port: https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01397.html So I think I need to update GCC 8 release notes as well. Index: htdocs/gcc-8/changes.html === RCS file: /c

Re: [PATCH, wwwdocs] Update GCC 8 release notes for NDS32 port

2018-01-25 Thread Chung-Ju Wu
Gerald Pfeifer on 2018/1/23 22:39 wrote: On Tue, 23 Jan 2018, Chung-Ju Wu wrote: +New command-line options -mext-perf -mext-perf2 -mext-string Can you write this as "...-mext-perf, -mext-perf2, and -mext-string..." please? Approved with that change. Thank you for

[NDS32, committed] Add missing newline character into ASM_APP_ON macro.

2018-04-26 Thread Chung-Ju Wu
Hi, all, For nds32 inline assembly code output, a newline character was missing. The following commit is to fix the issue. Committed as Rev.259642: https://gcc.gnu.org/r259642 gcc/ * config/nds32/nds32.h (ASM_APP_ON): Add missing newline character. Best regards, jasonwucj

[NDS32, committed] Fix print operand for cctl register.

2018-04-26 Thread Chung-Ju Wu
Hi, all, There was an error in nds32_print_operand() to output cctl register. It would be better to set value earlier. The following commit is to fix such issue. Committed as Rev.259643: https://gcc.gnu.org/r259643 gcc/ * config/nds32/nds32.c (nds32_print_operand): Set op_value earlier

[NDS32, committed] Fix incorrect settings in sfp-machine.h and t-nds32-newlib for hard fp.

2018-04-26 Thread Chung-Ju Wu
Hi, all, For nds32 NDS32_ABI_2FP_PLUS abi design, some settings and compilation options are required to be adjusted so that we can build correct libgcc.a library. Committed as Rev.259645: https://gcc.gnu.org/r259645 libgcc/ * config/nds32/sfp-machine.h: Fix settings for NDS32_ABI_2FP_PL

[NDS32, committed] Split movdi/df if reigster number is illegal.

2018-04-26 Thread Chung-Ju Wu
Hi, all, We have to split move_di/df pattern when hard register is odd so that the wrong assembly code can be avoided. Committed as Rev.259646: https://gcc.gnu.org/r259646 gcc/ * config/nds32/nds32-doubleword.md: New define_split pattern for illegal register number. Best regar

[NDS32, committed] Fix bug in bit-instruction checking functions.

2018-04-26 Thread Chung-Ju Wu
Hi, all, In the implementation of nds32_can_use_bclr_p(), nds32_can_use_bset_p(), and nds32_can_use_btgl_p(), we better use HOST_WIDE_INT type and GET_MODE_MASK() so that the mask would be good for the bit-operation checking. Committed as Rev.259647: https://gcc.gnu.org/r259647 gcc/ *

Re: [PATCH] Fix comment typo in ira.c

2014-08-23 Thread Chung-Ju Wu
2014-08-19 22:04 GMT+08:00 Vladimir Makarov : > On 08/18/2014 10:51 AM, Kito Cheng wrote: >> Hi Vladimir: >> >> Here is a tiny typo in comment, allono -> allocno. >> >> ChangLog >> 2014-08-18 Kito Cheng >> >> * ira.c: Fix typo in comment. > Thanks, Kito. Of course, the patch is ok. You

Re: [PATCH] Remove CALLER_SAVE_PROFITABLE since nobody use it now

2014-08-23 Thread Chung-Ju Wu
2014-08-22 1:45 GMT+08:00 Joseph S. Myers : > On Thu, 21 Aug 2014, Richard Earnshaw wrote: > >> On 19/08/14 15:24, Kito Cheng wrote: >> > Hi Richard: >> >> Hmm, I'm not sure about this. It might not be used at present, but on: >> >> AArch64, with more call-clobbered registers than call-saved regis

Re: [PATCH 142/236] config/nds32: Use rtx_insn

2014-08-23 Thread Chung-Ju Wu
2014-08-07 1:22 GMT+08:00 David Malcolm : > gcc/ > * config/nds32/nds32-protos.h (nds32_adjust_insn_length): > Strengthen first param from rtx to rtx_insn *. > * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for > param "insn". > --- > gcc/config/nds32/n

[PATCH 01/18, nds32] Define PIC_OFFSET_TABLE_REGNUM to $gp register.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214849: https://gcc.gnu.org/r214849 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define. Best regards, jasonwucj 0001-PATCH-01-Define-PIC_OFFSET_TABLE_REGNUM-to-gp-regist.patch Description: Binary data

[PATCH 02/18, nds32] Refine the implementation and consider CFA restore information for stack push/pop multiple.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214851: https://gcc.gnu.org/r214851 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ... (nds32_emit_stack_push_multiple): ... this. (nds32_gen_stack_pop_multiple): Rename to

[PATCH 03/18, nds32] Refine the implementation and consider CFA restore information for stack v3push/v3pop.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214852: https://gcc.gnu.org/r214852 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ... (nds32_emit_stack_v3push): ... this. (nds32_gen_stack_v3pop): Rename to

[PATCH 04/18, nds32] In nds32_valid_stack_push_pop_p(), we look into OP rtx to see if we indeed save $fp/$gp/$lp registers.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214853: https://gcc.gnu.org/r214853 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32-predicates.c (nds32_valid_stack_push_pop): Rename to ... (nds32_valid_stack_push_pop_p): ... this. * config/nds32/nds32-protos.h

[PATCH 05/18, nds32] Preparation in nds32.h of using registers to save varargs.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214854: https://gcc.gnu.org/r214854 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.h (machine_function): Add some fields for variadic arguments implementation. Best regards, jasonwucj 0005-PATCH-05-Preparation-in-nds32.h-of-using

[PATCH 06/18, nds32] Add a function to indentify if FUNC is a interrupt service routine.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214855: https://gcc.gnu.org/r214855 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function to check if FUNC is an interrupt service routine. * config/nds32/nds32-protos.h

[PATCH 07/18, nds32] Consider varargs situation when creating stack operation assembly code.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214856: https://gcc.gnu.org/r214856 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push): Check rtx for varargs implementation. (nds32_output_stack_pop): Likewise. * config/nds32/nds32

[PATCH 08/18, nds32] We need to make sure it is NOT a variadic function so that some v3push/v3pop preparation can be applied.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214857: https://gcc.gnu.org/r214857 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use v3push/v3pop for variadic function. * config/nds32/nds32.md (prologue, epilogue): Likewise. Best

[PATCH 09/18, nds32] Remove unused variables.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214858: https://gcc.gnu.org/r214858 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables. (nds32_expand_epilogue): Likewise. (nds32_expand_prologue_v3push): Likewise

[PATCH 10/18, nds32] Define and rename some GPR-specific stuff.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214859: https://gcc.gnu.org/r214859 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_function_arg): Define and rename some GPR-specific stuff. (nds32_function_arg_advance): Likewise. (nds32_init_cumulative_args

[PATCH 11/18, nds32] Implement TARGET_SETUP_INCOMING_VARARGS target hook.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214861: https://gcc.gnu.org/r214861 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_setup_incoming_varargs): New implementation for TARGET_SETUP_INCOMING_VARARGS. (nds32_strict_argument_naming): Refine comment

[PATCH 12/18, nds32] Prepare necessary varargs information in compute_stack_frame().

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214862: https://gcc.gnu.org/r214862 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary varargs information. Best regards, jasonwucj 0012-PATCH-12-Prepare-necessary-varargs-information-in

[PATCH 13/18, nds32] Since argument pointer must be 8-byte alignment, our first parameter may require 4-byte offset if pushed varargs is not 8-byte aligned.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214863: https://gcc.gnu.org/r214863 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location according to the value of crtl->args.pretend_args_size. Best regards, jasonwucj 0013-PATCH-13-Si

[PATCH 14/18, nds32] Deal with nameless arguments in nds32_function_arg() and nds32_function_arg_advance().

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214865: https://gcc.gnu.org/r214865 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_function_arg): Deal with nameless arguments. (nds32_function_arg_advance): Deal with nameless arguments. * config/nds32/nds32.h

[PATCH 15/18, nds32] Since we are going to provide new heuristic for fp-as-gp optimization, we better not to set cfun->machine->fp_as_gp_p at prologue expanding.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214866: https://gcc.gnu.org/r214866 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp optimization detection. Best regards, jasonwucj 0015-PATCH-15-Since-we-are-going-to-provide-new

[PATCH 16/18, nds32] Emit stack push instructions for varargs at prologue stage and emit stack adjustment instructions for varargs at epilogue stage.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214867: https://gcc.gnu.org/r214867 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push instructions for varargs implementation. (nds32_expand_epilogue): Emit stack adjustment instructions

[PATCH 17/18, nds32] Provide TARGET_ARG_PARTIAL_BYTES so that we can have structure argument partially in registers and stack.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214868: https://gcc.gnu.org/r214868 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation for TARGET_ARG_PARTIAL_BYTES. Best regards, jasonwucj 0017-PATCH-17-Provide-TARGET_ARG_PARTIAL_BYTES

[PATCH 18/18, nds32] No need to take padding into consideration in Andes ABI2 because we can pass arguments in registers for variadic function.

2014-09-03 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214869: https://gcc.gnu.org/r214869 gcc/ChangeLog 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation for TARGET_MUST_PASS_IN_STACK. Best regards, jasonwucj 0018-PATCH-18-No-need-to-take-padding-into

[PATCH 00/18, nds32] Committed: Fix incompatible ABI implementation for variadic function.

2014-09-03 Thread Chung-Ju Wu
Hi, all, The variadic function ABI implmentation of current nds32 port on trunk is incompatible to the past Andes toolchains. Fixing it requires many changes on the different files. I split these changes into several patches so that we can precisely describe the purpose of each implementation in

[PATCH, testsuite] Fix some testcases for nds32 target and provide new nds32 target specific tests

2013-11-14 Thread Chung-Ju Wu
target. Also I have some nds32 target specific tests which is suggested by Joseph earlier: http://gcc.gnu.org/ml/gcc-patches/2013-07/msg00396.html The patch is attached and a ChangeLog is as below: gcc/testsuite/ 2013-11-14 Chung-Ju Wu * g++.dg/other/PR23205.C: Skip for nds32

Re: wide-int, nds32

2013-11-24 Thread Chung-Ju Wu
2013/11/24 Mike Stump : > Richi has asked the we break the wide-int patch so that the individual port > and front end maintainers can review their parts without have to go through > the entire patch.This patch covers the nds32 port. > > Ok? > OK. The changes are straightforward on using wid

Re: [PATCH] Don't call init_caller_save if LRA enabled

2014-06-08 Thread Chung-Ju Wu
2014-06-06 21:37 GMT+08:00 Vladimir Makarov : > On 2014-06-04, 12:31 PM, Kito Cheng wrote: >> >> LRA generate caller-save register store/restore during split register, >> not generate by caller-save.c:save_call_clobbered_regs, so initialize >> this module by init_caller_save is meaningless if LRA e

[PATCH 01/09, nds32] Committed: Add several new files for preparation of providing modules that are going to be separated from nds32.c source.

2014-07-04 Thread Chung-Ju Wu
Hi, This patch is the preparation for subsquent patches of modules implementation. In addition to create several empty source files, we also need to modify config.gcc and provide t-nds32 makefile fragment. Committed as Rev.212280. https://gcc.gnu.org/r212280 Best regards, jasonwucj

[PATCH 02/09, nds32] Committed: Move ISR impelentation to nds32-isr.c module.

2014-07-04 Thread Chung-Ju Wu
Hi, There are many helper functions implemented in nds32.c to deal with interrupt service routine code generation. We move all of them into nds32-isr.c module. Committed as Rev.212281. https://gcc.gnu.org/r212281 Best regards, jasonwucj

[PATCH 03/09, nds32] Committed: Move builtin functions implementation to nds32-intrinsic.c module.

2014-07-04 Thread Chung-Ju Wu
Hi, For supporting target specific builtin functions, we use an individual nds32-intrinsic.c module to implement essential and helpler functions. Committed as Rev.212282. https://gcc.gnu.org/r212282 Best regards, jasonwucj

Re: [PATCH 01/09, nds32] Committed: Add several new files for preparation of providing modules that are going to be separated from nds32.c source.

2014-07-04 Thread Chung-Ju Wu
2014-07-04 18:47 GMT+08:00 Chung-Ju Wu : > Hi, > > This patch is the preparation for subsquent patches of modules > implementation. In addition to create several empty source files, > we also need to modify config.gcc and provide t-nds32 makefile fragment. > > Committed as

Re: [PATCH 02/09, nds32] Committed: Move ISR impelentation to nds32-isr.c module.

2014-07-04 Thread Chung-Ju Wu
2014-07-04 18:48 GMT+08:00 Chung-Ju Wu : > Hi, > > There are many helper functions implemented in nds32.c to > deal with interrupt service routine code generation. > We move all of them into nds32-isr.c module. > > Committed as Rev.212281. > https://gcc.gnu.org/r212

Re: [PATCH 03/09, nds32] Committed: Move builtin functions implementation to nds32-intrinsic.c module.

2014-07-04 Thread Chung-Ju Wu
2014-07-04 18:50 GMT+08:00 Chung-Ju Wu : > Hi, > > For supporting target specific builtin functions, > we use an individual nds32-intrinsic.c module to implement > essential and helpler functions. > > Committed as Rev.212282. > https://gcc.gnu.org/r212282 > Sorry I fo

[PATCH 04/09, nds32] Committed: Move some helper functions of predicates and constraints to nds32-predicates.c module.

2014-07-04 Thread Chung-Ju Wu
Hi, Many external functions are used in predicates and constraints checking. We move all of them into nds32-predicates.c module so that we can easily maintain those implementation in the future. Committed as Rev.212283. https://gcc.gnu.org/r212283 Best regards, jasonwucj 0004-PATCH-04-Move-

[PATCH 05/09, nds32] Committed: Move cost calculation to nds32-cost.c module.

2014-07-04 Thread Chung-Ju Wu
Hi, We provide a nds32-cost.c module to maintain some cost implementation required by target hooks and macros. Currently we only migrate nds32_rtx_costs() and nds32_address_cost() into the module. Committed as Rev.212284. https://gcc.gnu.org/r212284 Best regards, jasonwucj 0005-PATCH-05-Mo

[PATCH 06/09, nds32] Committed: Preparation of nds32-pipelines-auxiliary.c module for future implementation.

2014-07-04 Thread Chung-Ju Wu
Hi, The module is prepared for future implementation of pipeline models. In this patch we only add a few comment to describe its purpose. Committed as Rev.212285. https://gcc.gnu.org/r212285 Best regards, jasonwucj 0006-PATCH-06-Preparation-of-nds32-pipelines-auxiliary.c-.patch Description:

[PATCH 08/09, nds32] Committed: Move memory related implementation to nds32-memory-manipulation.c module.

2014-07-04 Thread Chung-Ju Wu
Hi, The multiple load/store instructions are provided by nds32 target and some memory access behaviors are able to utilize such instuctions. We use nds32-memory-manipulation.c module to hold those memory related implementation. Committed as Rev.212287. https://gcc.gnu.org/r212287 Best regards

[PATCH 09/09, nds32] Committed: Move fp-as-gp optimization to nds32-fp-as-gp.c module.

2014-07-04 Thread Chung-Ju Wu
Hi, There is a target specific optimization, called fp-as-gp optimization, in the nds32 port. We are planning to make it as an individual pass. By now we just move related implementation into nds32-fp-as-gp.c module. Committed as Rev.212288. https://gcc.gnu.org/r212288 Best regards, jasonwuc

[PATCH 00/09, nds32] Provide individual modules as assistance to nds32.c implementation.

2014-07-04 Thread Chung-Ju Wu
Hi, all, In the nds32 port, we are expecting the implementation in nds32.c is going to gradually grow up. For the sake of future maintenance, we decide to provide individual modules and then migrate some implementation from nds32.c into the modules. The following is a series of patches: https:

[PATCH, nds32] Committed: Complete -march= option design.

2014-11-20 Thread Chung-Ju Wu
Hi, all, When the help option --target-help is issued, the available items for -march=X are supposed to be displayed automatically. We need to complete -march= option design to perform such mechanism. gcc/ChangeLog 2014-11-21 Chung-Ju Wu * config/nds32/nds32.opt (march): Add help

Re: [PATCH, nds32] Committed: Complete -march= option design.

2014-11-20 Thread Chung-Ju Wu
2014-11-21 14:33 GMT+08:00 Chung-Ju Wu : > Hi, all, [snip] > > gcc/ChangeLog > > 2014-11-21 Chung-Ju Wu > > * config/nds32/nds32.opt (march): Add help message. > Sorry for that I forgot to attach patch file in the previous mail. Best regards, jasonwucj 00

[PATCH, nds32] Committed: Add missing RTX_FRAME_RELATED_P to set fp_adjust_insn rtx.

2014-11-20 Thread Chung-Ju Wu
Hi, all, There is a wrong CFI info when frame pointer is needed. The root cause is that we forgot to set fp_adjust_insn as RTX_FRAME_RELATED_P rtx. Fix this issue with following patch. gcc/ChangeLog 2014-11-21 Chung-Ju Wu * config/nds32/nds32.c (nds32_expand_prologue): Set

[PATCH, nds32] Committed: Fix CFI info for variadic function arguments.

2014-11-20 Thread Chung-Ju Wu
2014-11-21 Chung-Ju Wu * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new vaarg_p argument and create correct CFI info. (nds32_expand_prologue): Pass true or false to nds32_emit_stack_push_multiple function. Committed as Rev. 217903: https

[PATCH, nds32] Committed: Look into LO_SUM's operand to determine whether it is a valid address.

2014-11-20 Thread Chung-Ju Wu
Hi, all, In the nds32_legitimate_address_p function, we should look into LO_SUM's operand so that we can precisely identify if it is a valid address. This can help to avoid extra move instruction and improve code generation. gcc/ChangeLog 2014-11-21 Chung-Ju Wu * config/nds32/

Re: [PATCH, wwwdoc] Describe the changes of NDS32 port in GCC-5.0.

2015-02-24 Thread Chung-Ju Wu
2015-02-15 10:33 GMT+08:00 Chung-Ju Wu : > Hi, all, > > There are some major changes on NDS32 port in GCC-5.0: > https://gcc.gnu.org/ml/gcc-patches/2014-09/msg00316.html > https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00992.html > https://gcc.gnu.org/ml/gcc-patches/201

[PATCH, nds32] Committed: Rename some variables to explicitly represent general purpose register

2015-03-14 Thread Chung-Ju Wu
Hi, all, This patch is just to rename some variables so that one can easily tell that those variables are used to describe general purpose registers. No functionality changes. Committed as Rev.221306: https://gcc.gnu.org/r221306 Best regards, jasonwucj diff --git a/gcc/config/nds32/nds32-md

[PATCH] Minor date fix in ChangeLog files.

2015-01-15 Thread Chung-Ju Wu
Hi, all, I just happened to notice that there are some incorrect date in ChangeLog files. I guess this can be considered as obvious fix. Committed it as Rev.219704: https://gcc.gnu.org/r219704 Index: gcc/ChangeLog === --- gcc/Chang

Re: [PATCH, doc] NDS32: Describe -mcmodel= option instead of -mgp-direct in the documentation.

2015-01-15 Thread Chung-Ju Wu
2015-01-14 17:56 GMT+08:00 Chung-Ju Wu : > Hi, all, > > In this patch of nds32 port: > https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00799.html > > Since we have a new option -mcmodel= as substitution for -mgp-direct, > we need to update documentation about such change acc

Re: [PATCH, doc] NDS32: Remove -mforce-fp-as-gp, -mforbid-fp-as-gp, and -mex9 options from documentation.

2015-01-15 Thread Chung-Ju Wu
2015-01-14 17:58 GMT+08:00 Chung-Ju Wu : > Hi, all, > > In this patch of nds32 port: > https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00969.html > > Since we remove the implementation of -mforce-fp-as-gp, -mforbid-fp-as-gp, > and -mex9 options, we need to update documentation

PATCH, nds32] Committed: Fix wrong data flow when building nds32 target with --enable-checking=yes.

2015-01-19 Thread Chung-Ju Wu
there is a return behavior after pop25 instruction. This patch was committed last week before stage 4: https://gcc.gnu.org/r219710 gcc/ChangeLog 2015-01-16 Chung-Ju Wu * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New. * config/nds32/nds32.md

[PATCH, nds32] Committed: Have shrink-wrapping optimization to be performed on nds32 target.

2015-01-19 Thread Chung-Ju Wu
9711 gcc/ChangeLog 2015-01-16 Chung-Ju Wu * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New. * config/nds32/nds32.md (unspec_volatile_func_return): Remove. (return_internal): New. (return): Define this named pattern. (simple_return): Define

[PATCH, nds32] Committed: Have sibling calls optmization to be performed on nds32 target.

2015-01-19 Thread Chung-Ju Wu
https://gcc.gnu.org/r219712 gcc/ChangeLog 2015-01-16 Chung-Ju Wu * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change prototype. (nds32_expand_epilogue_v3pop): Likewise. * config/nds32/nds32.md (sibcall): Define this for sibling call

Re: [PATCH, doc] NDS32: Describe -mcmodel= option instead of -mgp-direct in the documentation.

2015-01-19 Thread Chung-Ju Wu
2015-01-18 16:36 GMT+08:00 Gerald Pfeifer : > On Wednesday 2015-01-14 17:56, Chung-Ju Wu wrote: >> 2015-01-14 Chung-Ju Wu >> >> * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and >> remove -mgp-direct option. >> >> Although th

Re: [PATCH, doc] NDS32: Remove -mforce-fp-as-gp, -mforbid-fp-as-gp, and -mex9 options from documentation.

2015-01-19 Thread Chung-Ju Wu
2015-01-18 16:38 GMT+08:00 Gerald Pfeifer : > On Wednesday 2015-01-14 17:58, Chung-Ju Wu wrote: >> 2015-01-14 Chung-Ju Wu >> >> * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp, >> -mforbid-fp-as-gp, and -mex9 options. > > Can you cov

[PATCH, wwwdoc] Describe the changes of NDS32 port in GCC-5.0.

2015-02-14 Thread Chung-Ju Wu
Hi, all, There are some major changes on NDS32 port in GCC-5.0: https://gcc.gnu.org/ml/gcc-patches/2014-09/msg00316.html https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00992.html https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00993.html This patch is to describe them in changes.html. Althou

[PATCH] nds32: Backport PR70668 solution from mainline

2017-01-10 Thread Chung-Ju Wu
ision 244256) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,12 @@ +2017-01-10 Chung-Ju Wu + + Backport from mainline + 2016-04-28 Segher Boessenkool + + PR target/70668 + * config/nds32/nds32.md (casesi): Don't access the operands array + out of bounds. +

[PATCH, nds32] Refine formatting and comments.

2017-09-17 Thread Chung-Ju Wu
Hi, all, I noticed that some 8-spaces should be replaced with tab character. Here is a patch to refine formatting and comments in nds32 port. No functionality changes. Committed as Rev.252874: http://gcc.gnu.org/r252874 gcc/ * config/nds32/nds32.c: Refine formatting and comments.

[PATCH, nds32] Add OPT_fsched_pressure and OPT_fomit_frame_pointer in optimization table.

2017-09-17 Thread Chung-Ju Wu
Hi, all, In the nds32 port, most of time we prefer reducing code size. So we modify the nds32_option_optimization_table[] to apply -fsched-pressure and -fomit-frame-pointer for specific optimization level. Committed as Rev.252876: https://gcc.gnu.org/r252876 gcc/ * common/config/nds32/n

  1   2   3   >