diff options
author | Anthony Green <green@moxielogic.com> | 2009-06-30 18:59:41 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2009-06-30 18:59:41 +0000 |
commit | 9fb374d6a82046979cd304794aabb82ae914ad72 (patch) | |
tree | 5c68ae5b514a12df03e4b8ebf60df38f8486c4bd /gcc | |
parent | b30bfd402f5109ae54ceb113a9492b8ec3737e0f (diff) | |
download | gcc-9fb374d6a82046979cd304794aabb82ae914ad72.zip gcc-9fb374d6a82046979cd304794aabb82ae914ad72.tar.gz gcc-9fb374d6a82046979cd304794aabb82ae914ad72.tar.bz2 |
Enable building with g++.
From-SVN: r149114
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/config/moxie/moxie-protos.h | 7 | ||||
-rw-r--r-- | gcc/config/moxie/moxie.c | 4 | ||||
-rw-r--r-- | gcc/config/moxie/moxie.h | 6 |
4 files changed, 21 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d55f4b8..5bd94cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2009-06-30 Anthony Green <green@moxielogic.com> + + Clean up moxie port for --enable-build-with-cxx. + * config/moxie/moxie.c (moxie_function_value): First two + parameters are const_tree, not tree. + * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS. + (REG_CLASS_NAMES): Ditto. + (REGNO_REG_CLASS): Ditto. + * config/moxie/moxie-protos.h (moxie_override_options): Declare. + (moxie_function_value): Fix constyness of arguments. + 2009-06-30 Eric Botcazou <ebotcazou@adacore.com> * cgraphunit.c (cgraph_finalize_compilation_unit): Call diff --git a/gcc/config/moxie/moxie-protos.h b/gcc/config/moxie/moxie-protos.h index d475aac..17bb4fc 100644 --- a/gcc/config/moxie/moxie-protos.h +++ b/gcc/config/moxie/moxie-protos.h @@ -17,12 +17,15 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +extern void moxie_override_options (void); extern void moxie_expand_prologue (void); extern void moxie_expand_epilogue (void); extern int moxie_initial_elimination_offset (int, int); -extern rtx moxie_function_value (tree, tree, bool ATTRIBUTE_UNUSED); +extern rtx moxie_function_value (const_tree, const_tree, + bool ATTRIBUTE_UNUSED); extern void moxie_print_operand (FILE *, rtx, int); extern void moxie_print_operand_address (FILE *, rtx); #ifdef RTX_CODE -extern rtx moxie_function_arg (CUMULATIVE_ARGS, enum machine_mode, tree, int); +extern rtx moxie_function_arg (CUMULATIVE_ARGS, + enum machine_mode, tree, int); #endif /* RTX_CODE */ diff --git a/gcc/config/moxie/moxie.c b/gcc/config/moxie/moxie.c index 3991cee..0ed8ad1 100644 --- a/gcc/config/moxie/moxie.c +++ b/gcc/config/moxie/moxie.c @@ -72,8 +72,8 @@ moxie_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED) We always return values in register $r0 for moxie. */ rtx -moxie_function_value (tree valtype, - tree fntype_or_decl ATTRIBUTE_UNUSED, +moxie_function_value (const_tree valtype, + const_tree fntype_or_decl ATTRIBUTE_UNUSED, bool outgoing ATTRIBUTE_UNUSED) { return gen_rtx_REG (TYPE_MODE (valtype), MOXIE_R0); diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h index 01cf9d2..bf3d7e3 100644 --- a/gcc/config/moxie/moxie.h +++ b/gcc/config/moxie/moxie.h @@ -127,7 +127,7 @@ enum reg_class NO_REGS, GENERAL_REGS, SPECIAL_REGS, - CC_REG, + CC_REGS, ALL_REGS, LIM_REG_CLASSES }; @@ -156,7 +156,7 @@ enum reg_class "NO_REGS", \ "GENERAL_REGS", \ "SPECIAL_REGS", \ - "CC_REG", \ + "CC_REGS", \ "ALL_REGS" } #define FIXED_REGISTERS { 1, 1, 0, 0, \ @@ -183,7 +183,7 @@ enum reg_class /* A C expression whose value is a register class containing hard register REGNO. */ #define REGNO_REG_CLASS(R) ((R < MOXIE_PC) ? GENERAL_REGS : \ - (R == MOXIE_CC ? CC_REG : SPECIAL_REGS)) + (R == MOXIE_CC ? CC_REGS : SPECIAL_REGS)) /* A C expression for the number of consecutive hard registers, starting at register number REGNO, required to hold a value of mode |