993-arm_insn-opinit-RTX_CODE-fixup.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. gcc/ChangeLog
  2. 2007-11-27 Bernhard Fischer <>
  3. * config/arm/arm-protos.h (arm_vector_mode_supported_p,
  4. arm_hard_regno_mode_ok, const_ok_for_arm): Do not hide non-rtx related
  5. function prototypes in RTX_CODE.
  6. * genopinit.c: Include tm_p.h.
  7. Index: gcc-4.3.0/gcc/config/arm/arm-protos.h
  8. ===================================================================
  9. --- gcc-4.3.0/gcc/config/arm/arm-protos.h (revision 130463)
  10. +++ gcc-4.3.0/gcc/config/arm/arm-protos.h (working copy)
  11. @@ -40,15 +40,14 @@
  12. unsigned int);
  13. extern unsigned int arm_dbx_register_number (unsigned int);
  14. extern void arm_output_fn_unwind (FILE *, bool);
  15. -
  16. #ifdef TREE_CODE
  17. extern int arm_return_in_memory (const_tree);
  18. #endif
  19. -#ifdef RTX_CODE
  20. extern bool arm_vector_mode_supported_p (enum machine_mode);
  21. extern int arm_hard_regno_mode_ok (unsigned int, enum machine_mode);
  22. extern int const_ok_for_arm (HOST_WIDE_INT);
  23. +#ifdef RTX_CODE
  24. extern int arm_split_constant (RTX_CODE, enum machine_mode, rtx,
  25. HOST_WIDE_INT, rtx, rtx, int);
  26. extern RTX_CODE arm_canonicalize_comparison (RTX_CODE, enum machine_mode,
  27. Index: gcc-4.3.0/gcc/genopinit.c
  28. ===================================================================
  29. --- gcc-4.3.0/gcc/genopinit.c (revision 130463)
  30. +++ gcc-4.3.0/gcc/genopinit.c (working copy)
  31. @@ -486,6 +486,7 @@
  32. printf ("#include \"expr.h\"\n");
  33. printf ("#include \"optabs.h\"\n");
  34. printf ("#include \"reload.h\"\n\n");
  35. + printf ("#include \"tm_p.h\"\n\n");
  36. printf ("void\ninit_all_optabs (void)\n{\n");