From: Chung-Ju Wu Date: Wed, 3 Sep 2014 08:40:40 +0000 (+0000) Subject: [NDS32] Preparation in nds32.h of using registers to save varargs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd1536a7267a0a8abf90aecae8379a1d871cda99;p=gcc.git [NDS32] Preparation in nds32.h of using registers to save varargs. -- The varargs area may also need padding bytes so that we can ensure that argument pointer is 8-byte alignment. * config/nds32/nds32.h (machine_function): Add some fields for variadic arguments implementation. From-SVN: r214854 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f67e58db5d6..f9c795dbdc2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-03 Chung-Ju Wu + + * config/nds32/nds32.h (machine_function): Add some fields for variadic + arguments implementation. + 2014-09-03 Chung-Ju Wu * config/nds32/nds32-predicates.c diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index 22593fe4bbb..d0b8142be9b 100644 --- a/gcc/config/nds32/nds32.h +++ b/gcc/config/nds32/nds32.h @@ -203,18 +203,19 @@ struct GTY(()) machine_function /* The padding bytes in callee-saved area may be required. */ int callee_saved_area_padding_bytes; - /* The first required register that should be saved on stack - for va_args (one named argument + nameless arguments). */ - int va_args_first_regno; - /* The last required register that should be saved on stack - for va_args (one named argument + nameless arguments). */ - int va_args_last_regno; - /* The first required callee-saved register. */ int callee_saved_regs_first_regno; /* The last required callee-saved register. */ int callee_saved_regs_last_regno; + /* The padding bytes in varargs area may be required. */ + int va_args_area_padding_bytes; + + /* The first required register that should be saved on stack for va_args. */ + int va_args_first_regno; + /* The last required register that should be saved on stack for va_args. */ + int va_args_last_regno; + /* Indicate that whether this function needs prologue/epilogue code generation. */ int naked_p;