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

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

[PATCH COMMIT]Handle REG addressing mode in output_move_neon explicitly

2014-09-03 Thread Bin Cheng
Hi, This patch is posted/approved before at https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00311.html It's one prerequisite patch for memset inlining patch on ARM. Unfortunately, it was reverted along with it because the whole patch set revealed a latent bug causing glibc build failure and I didn't

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

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

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

Re: [PATCH] Add -fno-instrument-function

2014-09-03 Thread Andi Kleen
> No, not a new "fake" option either but just initialize > DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT properly when > not doing -pg or -mfentry (that is, set it to 1). The only way would be to handle it in build_decl itself. There seem to be a bazillion callers all over the tree that all do their cust

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

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

[PATCH ARM]memset inlining patch for arm

2014-09-03 Thread Bin Cheng
Hi, This patch is posted/approved before at https://gcc.gnu.org/ml/gcc-patches/2014-07/msg01398.html Unfortunately, it was reverted because a latent bug revealed causing glibc build failure and I didn't have enough time to fix back at that time. Now with the potential bug resolved by https://gcc.gn

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

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

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

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

[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

<    1   2