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

[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 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

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

[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

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

2024-01-07 Thread Chung-Ju Wu
with 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

Re: [PATCH][wwwdocs] gcc-13: add arm star-mc1 cpu

2022-06-17 Thread Chung-Ju Wu via Gcc-patches
On 2022/06/16 23:23 UTC+8, Gerald Pfeifer wrote: On Thu, 16 Jun 2022, Chung-Ju Wu wrote: Recently we added arm star-mc1 cpu support to upstream: https://gcc.gnu.org/pipermail/gcc-patches/2022-June/596379.html It would be great if we can describe it on gcc-13 changes.html as well. Attached

[PATCH][wwwdocs] gcc-13: add arm star-mc1 cpu

2022-06-16 Thread Chung-Ju Wu via Gcc-patches
379e1b67b92becaf1dc152ba1b5eaf617eaf3972 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 16 Jun 2022 02:37:36 + Subject: [PATCH] gcc-13: Add arm star-mc1 cpu support --- htdocs/gcc-13/changes.html | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/gcc-13/changes.html b

Re: [PATCH 1/3][ARM] STAR-MC1 CPU Support - arm: Add star-mc1 core

2022-06-08 Thread Chung-Ju Wu via Gcc-patches
Hi Kyrylo, On 2022/06/06 22:10 UTC+8, Kyrylo Tkachov wrote: Successfully bootstrapped and tested on arm-none-eabi. Is it OK for trunk? This is okay (together with the documentation additions in 3/3) Thanks for the patch, Thanks for the approval. The patches 1/3 and 3/3 have been merged

Re: [PATCH 2/3][ARM] STAR-MC1 CPU Support - arm: Add individual star-mc1 cost tables and cost functions

2022-06-08 Thread Chung-Ju Wu via Gcc-patches
Hi Kyrylo, On 2022/06/06 22:18 UTC+8, Kyrylo Tkachov wrote: I'd rather not duplicate those structures and functions in the master branch, as they provide a maintenance burden to the community. If some tuning parameters need to be modified in the future for better performance we can create

[PATCH 3/3][ARM] STAR-MC1 CPU Support - docs: Add star-mc1 core

2022-05-26 Thread Chung-Ju Wu via Gcc-patches
Hi, This is the patch to add star-mc1 in the Arm -mtune and -mfix-cmse-cve-2021-35465 sections of gcc invoke.texi documentation. Is it OK for trunk? Regards, jasonwucjFrom b3bd24d842b6284f2b893caa658975d9d746be73 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 26 May 2022 05:15:13 +

[PATCH 2/3][ARM] STAR-MC1 CPU Support - arm: Add individual star-mc1 cost tables and cost functions

2022-05-26 Thread Chung-Ju Wu via Gcc-patches
. Is it OK for trunk? Regards, jasonwucjFrom e9081bb6d7fc1521036dbceec59ba2eae532c04c Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 26 May 2022 03:47:23 + Subject: [PATCH 2/3] arm: Add individual star-mc1 cost tables and cost functions Signed-off-by: Chung-Ju Wu gcc/ChangeLog

[PATCH 1/3][ARM] STAR-MC1 CPU Support - arm: Add star-mc1 core

2022-05-26 Thread Chung-Ju Wu via Gcc-patches
-2021-35465 Regards, jasonwucjFrom 3405d35f4a6a6abd7808e2c62ce2d1dbd2e2cb14 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Thu, 26 May 2022 02:58:16 + Subject: [PATCH 1/3] arm: Add star-mc1 core Signed-off-by: Chung-Ju Wu gcc/ChangeLog: * config/arm/arm-cpus.in: Add star-mc1 core

[committed] MAINTAINERS: Add myself to DCO section

2022-03-15 Thread Chung-Ju Wu via Gcc-patches
I would like to add myself to DCO section for some contributions. commit 088a51a0abb5497cac32055bf373fa6039b924f8 Author: Chung-Ju Wu Date: Wed, 16 Mar 2022 03:20:00 + MAINTAINERS: Add myself to DCO section ChangeLog: * MAINTAINERS: Add myself to DCO section

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

2018-04-27 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/ *

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

2018-04-27 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

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

2018-04-27 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, committed] Fix print operand for cctl register.

2018-04-27 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

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

2018-04-27 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

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

[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:

[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 <jasonw...@gmail.com> 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

[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 <jason...@easystack.cn> 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 +++--

[PATCH, nds32] Add nds32 vector modes.

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

[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 <jason...@easystack.cn> Date: Sat, 11 Nov 2017 10:30

[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 <jason...@easystack.cn> 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 --

[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 <jason...@easystack.cn> 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 g

[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/ *

[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.

Re: [PATCH] fix error spelling in nds32.c (PR 79928)

2017-03-07 Thread Chung-Ju Wu
Martin Sebor on 2017/3/8 08:09 wrote: The following one-line patch corrects the spelling of the error message in the nds32 back end pointed out by a translator. I'll go ahead and commit it as trivial unless there are objections in the next day or so. Martin 2017-03-07 Martin Sebor

[PATCH] nds32: Backport PR70668 solution from mainline

2017-01-10 Thread Chung-Ju Wu
dex: gcc/ChangeLog === --- gcc/ChangeLog (revision 244256) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,12 @@ +2017-01-10 Chung-Ju Wu <jasonw...@gmail.com> + + Backport from mainline + 2016-04-28 Segher Boessenkool <seg...@kernel.crashi

[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

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 jasonw...@gmail.com: 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

[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.

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

2015-01-19 Thread Chung-Ju Wu
gcc/ChangeLog 2015-01-16 Chung-Ju Wu jasonw...@gmail.com * 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 optimization

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 ger...@pfeifer.com: On Wednesday 2015-01-14 17:58, Chung-Ju Wu wrote: 2015-01-14 Chung-Ju Wu jasonw...@gmail.com * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp, -mforbid-fp-as-gp, and -mex9 options. Can you cover

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

2015-01-19 Thread Chung-Ju Wu
. This patch was committed last week before stage 4: https://gcc.gnu.org/r219710 gcc/ChangeLog 2015-01-16 Chung-Ju Wu jasonw...@gmail.com * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New. * config/nds32/nds32.md (pop25return): New. * config/nds32/nds32.c

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 ger...@pfeifer.com: On Wednesday 2015-01-14 17:56, Chung-Ju Wu wrote: 2015-01-14 Chung-Ju Wu jasonw...@gmail.com * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and remove -mgp-direct option. Although these changes

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

2015-01-19 Thread Chung-Ju Wu
/ChangeLog 2015-01-16 Chung-Ju Wu jasonw...@gmail.com * 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] 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 === ---

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 jasonw...@gmail.com: 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 accordingly

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 jasonw...@gmail.com: 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 as well

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

2015-01-14 Thread Chung-Ju Wu
. gcc/ChangeLog 2015-01-14 Chung-Ju Wu jasonw...@gmail.com * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and remove -mgp-direct option. Although these changes are target-specific part, I think it would be better for others to have review comments, if any, on its format

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

2015-01-14 Thread Chung-Ju Wu
. gcc/ChangeLog 2015-01-14 Chung-Ju Wu jasonw...@gmail.com * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp, -mforbid-fp-as-gp, and -mex9 options. Although these changes are target-specific part, I think it would be better for others to have review comments, if any

Re: [PATCH 0/6, nds32] Committed: Have -mcmodel option to support varied code model of programs.

2015-01-13 Thread Chung-Ju Wu
2015-01-14 6:22 GMT+08:00 Joseph Myers jos...@codesourcery.com: On Tue, 13 Jan 2015, Chung-Ju Wu wrote: To fix this issue, we are going to use -mcmodel=X options, which probably gives more flexibility to support varied code model on code generation. The -mgp-direct option now becomes

[PATCH, nds32] Committed: Remove some features that are not available yet in nds32 port of GNU binutils package.

2015-01-13 Thread Chung-Ju Wu
are not available yet in the current nds32 port of GNU binutils package. For consistency concern, I think it would be better to remove them from gcc trunk as well for now. Committed as Rev. 219576: https://gcc.gnu.org/r219576 gcc/ChangeLog 2015-01-14 Chung-Ju Wu jasonw...@gmail.com

[PATCH 3/6, nds32] Provide TARGET_CMODEL_[SMALL|MEDIUM|LARGE] to check which code model is specified.

2015-01-12 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 219511: https://gcc.gnu.org/r219511 gcc/ChangeLog * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro. (TARGET_CMODEL_MEDIUM): New macro. (TARGET_CMODEL_LARGE): New macro. * config/nds32/nds32.c (nds32_asm_file_start): Display

[PATCH 5/6, nds32] Implement TARGET_ENCODE_SECTION_INFO to store specific flag in symbol_ref rtx.

2015-01-12 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 219514: https://gcc.gnu.org/r219514 gcc/ChangeLog * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own target-specific symbol_ref flag. (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref resides in rodata

Re: [PATCH 1/6, nds32] Add -mcmodel= option to support different code model.

2015-01-12 Thread Chung-Ju Wu
2015-01-13 14:14 GMT+08:00 Chung-Ju Wu jasonw...@gmail.com: Hi, all, Committed as Rev. 219509: https://gcc.gnu.org/r219509 gcc/ChangeLog * config/nds32/nds32.opt (mcmodel): Add new option. * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type

[PATCH 1/6, nds32] Add -mcmodel= option to support different code model.

2015-01-12 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 219509: https://gcc.gnu.org/r219509 gcc/ChangeLog * config/nds32/nds32.opt (mcmodel): Add new option. * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type to describe code model. Best regards, jasonwucj

[PATCH 6/6, nds32] Consider -mcmodel=X in nds32_legitimate_address_p implementation.

2015-01-12 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 219515: https://gcc.gnu.org/r219515 gcc/ChangeLog * config/nds32/nds32.c (nds32_legitimate_address_p): Consider TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases. Best regards, jasonwucj

[PATCH 2/6, nds32] Remove -mgp-direct/-mno-gp-direct options.

2015-01-12 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 219510: https://gcc.gnu.org/r219510 gcc/ChangeLog * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_GP_DIRECT flag. * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as one of the multilib

[PATCH 4/6, nds32] Consider TARGET_CMODEL_LARGE for function call instructions.

2015-01-12 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 219512: https://gcc.gnu.org/r219512 gcc/ChangeLog * config/nds32/nds32.md (call): Use pseudo instruction bal which clobbers TA_REGNUM if large code model is specified. (call_register): Likewise. (call_immediate): Likewise.

[PATCH 0/6, nds32] Committed: Have -mcmodel option to support varied code model of programs.

2015-01-12 Thread Chung-Ju Wu
Hi, all, Currently, the nds32 port on trunk only supports 512K or 4G addressing space to access data by specifying -mgp-direct/-mno-gp-direct option. And the range of text section is always assumed to be within 16M addressing space. However, sometimes we may have large programs or sometimes we

Re: Minor comment tweak in config/nds32/nds32-peephole2.md

2015-01-05 Thread Chung-Ju Wu
2015-01-06 7:27 GMT+08:00 Eric Botcazou ebotca...@adacore.com: I think that we don't want new define_peephole's at this point. Applied on the mainline as obvious. 2015-01-05 Eric Botcazou ebotca...@adacore.com * config/nds32/nds32-peephole2.md: Do not mention define_peephole.

[PATCH] Fix PR64217

2014-12-15 Thread Chung-Ju Wu
. Index: gcc/ChangeLog === --- gcc/ChangeLog (revision 218773) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,9 @@ +2014-12-16 Chung-Ju Wu jasonw...@gmail.com + + PR target/64217 + * config/nds32/nds32.md

Re: [PATCH] Do not download packages for graphite loop optimizations by default when using ./contrib/download_prerequisites

2014-12-11 Thread Chung-Ju Wu
2014-12-10 21:37 GMT+08:00 Richard Biener richard.guent...@gmail.com: On Wed, Dec 10, 2014 at 6:16 AM, Chung-Ju Wu jasonw...@gmail.com wrote: Thanks for the suggestion. The followings are proposed patch to adjust comment: Index: contrib/ChangeLog

Re: [PATCH] Do not download packages for graphite loop optimizations by default when using ./contrib/download_prerequisites

2014-12-09 Thread Chung-Ju Wu
2014-12-09 21:16 GMT+08:00 Richard Biener richard.guent...@gmail.com: On Tue, Dec 9, 2014 at 6:36 AM, Chung-Ju Wu jasonw...@gmail.com wrote: Hi, all, In the discussion thread last year: https://gcc.gnu.org/ml/gcc-patches/2013-05/msg01334.html I extended the script ./contrib

Re: [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c

2014-12-09 Thread Chung-Ju Wu
2014-12-09 23:08 GMT+08:00 Ian Lance Taylor i...@google.com: On Mon, Oct 27, 2014 at 8:19 PM, Kito Cheng kito.ch...@gmail.com wrote: This patch update `Bit operations` section in libgcc.text, most bit operation function is take an unsigned integer instead of signed integer in libgcc/libgcc2.c

[PATCH] Do not download packages for graphite loop optimizations by default when using ./contrib/download_prerequisites

2014-12-08 Thread Chung-Ju Wu
/ChangeLog === --- contrib/ChangeLog (revision 218505) +++ contrib/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2014-12-09 Chung-Ju Wu jasonw...@gmail.com + + * download_prerequisites: Set GRAPHITE_LOOP_OPT=no by default. + 2014

[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 jasonw...@gmail.com * config/nds32/nds32.opt

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 jasonw...@gmail.com: Hi, all, [snip] gcc/ChangeLog 2014-11-21 Chung-Ju Wu jasonw...@gmail.com * config/nds32/nds32.opt (march): Add help message. Sorry for that I forgot to attach patch file in the previous mail. Best regards, jasonwucj

[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 jasonw...@gmail.com * config/nds32/nds32.c

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

2014-11-20 Thread Chung-Ju Wu
2014-11-21 Chung-Ju Wu jasonw...@gmail.com * 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

[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 jasonw...@gmail.com

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

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

[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-04 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214863: https://gcc.gnu.org/r214863 gcc/ChangeLog 2014-09-03 Chung-Ju Wu jasonw...@gmail.com * 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 14/18, nds32] Deal with nameless arguments in nds32_function_arg() and nds32_function_arg_advance().

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

[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-04 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214866: https://gcc.gnu.org/r214866 gcc/ChangeLog 2014-09-03 Chung-Ju Wu jasonw...@gmail.com * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp optimization detection. Best regards, jasonwucj 0015-PATCH-15-Since-we-are-going

[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-04 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214867: https://gcc.gnu.org/r214867 gcc/ChangeLog 2014-09-03 Chung-Ju Wu jasonw...@gmail.com * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push instructions for varargs implementation. (nds32_expand_epilogue): Emit stack

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

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

[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-04 Thread Chung-Ju Wu
Hi, all, Committed as Rev. 214869: https://gcc.gnu.org/r214869 gcc/ChangeLog 2014-09-03 Chung-Ju Wu jasonw...@gmail.com * 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

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

2014-09-04 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

[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 jasonw...@gmail.com * 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

[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 jasonw...@gmail.com * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ... (nds32_emit_stack_push_multiple): ... this. (nds32_gen_stack_pop_multiple

[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 jasonw...@gmail.com * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ... (nds32_emit_stack_v3push): ... this. (nds32_gen_stack_v3pop): Rename

[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 jasonw...@gmail.com * config/nds32/nds32-predicates.c (nds32_valid_stack_push_pop): Rename to ... (nds32_valid_stack_push_pop_p): ... this. * config/nds32

[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 jasonw...@gmail.com * config/nds32/nds32.h (machine_function): Add some fields for variadic arguments implementation. Best regards, jasonwucj 0005-PATCH-05-Preparation

[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 jasonw...@gmail.com * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function to check if FUNC is an interrupt service routine. * config/nds32/nds32

[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 jasonw...@gmail.com * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push): Check rtx for varargs implementation. (nds32_output_stack_pop): Likewise

[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 jasonw...@gmail.com * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use v3push/v3pop for variadic function. * config/nds32/nds32.md (prologue, epilogue

[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 jasonw...@gmail.com * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables. (nds32_expand_epilogue): Likewise. (nds32_expand_prologue_v3push

[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 jasonw...@gmail.com * config/nds32/nds32.c (nds32_function_arg): Define and rename some GPR-specific stuff. (nds32_function_arg_advance): Likewise

[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 jasonw...@gmail.com * config/nds32/nds32.c (nds32_setup_incoming_varargs): New implementation for TARGET_SETUP_INCOMING_VARARGS. (nds32_strict_argument_naming): Refine

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 vmaka...@redhat.com: 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 k...@0xlab.org * ira.c: Fix typo in comment. Thanks, Kito. Of course, the

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 jos...@codesourcery.com: 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

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 dmalc...@redhat.com: 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. ---

[PATCH, nds32] Committed: Have function name start in column one to follow GNU coding standards.

2014-07-18 Thread Chung-Ju Wu
(working copy) @@ -1,3 +1,11 @@ +2014-07-18 Chung-Ju Wu jasonw...@gmail.com + + * config/nds32/nds32.c (nds32_can_eliminate): Follow the + GNU coding standards. + (nds32_register_move_cost): Likewise. + (nds32_memory_move_cost): Likewise. + (nds32_address_cost): Likewise

[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 jasonw...@gmail.com: 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

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 jasonw...@gmail.com: 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 Sorry I

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 jasonw...@gmail.com: 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 forgot to attach

[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

[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

[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

[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

[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,

[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:

  1   2   3   >