This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Committed] Fix boostrap failure on IRIX (part 1)


The recent addition of the new source file "addresses.h" to the tree
causes bootstrap failures on some platforms due to #include ordering
issues.  The header addresses.h uses REGNO_MODE_OK_FOR_BASE_P which
on MIPS/IRIX (all mips?) calls mips_regno_mode_ok_for_base_p which
needs a prototype from config/mips/mips-protos.h.  This therefore
constrains "addresses.h" to be included after "tm_p.h".  In all
but one of the seven source files that include "addresses.h" this
is the case.  The odd one out is "caller-save.c".

The obvious fix below just reorders the #include "addresses.h"
comes last (after tm_p.h) thereby resolving one of the bootstrap
failures on mips-sgi-irix6.5.


Committed to mainline as revision 112863.



2006-04-11  Roger Sayle  <roger@eyesopen.com>

	* caller-save.c: #include "addresses.h" after #include "tm_p.h".


Index: caller-save.c
===================================================================
*** caller-save.c	(revision 112856)
--- caller-save.c	(working copy)
*************** Software Foundation, 51 Franklin Street,
*** 25,31 ****
  #include "tm.h"
  #include "rtl.h"
  #include "regs.h"
- #include "addresses.h"
  #include "insn-config.h"
  #include "flags.h"
  #include "hard-reg-set.h"
--- 25,30 ----
*************** Software Foundation, 51 Franklin Street,
*** 36,41 ****
--- 35,41 ----
  #include "expr.h"
  #include "toplev.h"
  #include "tm_p.h"
+ #include "addresses.h"

  #ifndef MAX_MOVE_MAX
  #define MAX_MOVE_MAX MOVE_MAX


Roger
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]