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 PA bootstrap failure


I've committed the following patch to mainline to fix the bootstrap
failure on hppa2.0w-hp-hpux11.00.  On targets that don't define
CANNOT_CHANGE_MODE_CLASS, both arguments to inherit_piecemeal_p are
unused and hence trip -Werror during stage2.  Committed as obvious.

This patch was tested with a full bootstrap on hppa2.0w-hp-hpux11.00
and by a C-only bootstrap on i686-pc-linux-gnu (just to be safe).


2004-05-05  Roger Sayle  <roger@eyesopen.com>

	* reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.


Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.434
diff -c -3 -p -r1.434 reload1.c
*** reload1.c	4 May 2004 17:57:30 -0000	1.434
--- reload1.c	6 May 2004 02:50:41 -0000
*************** do_output_reload (struct insn_chain *cha
*** 6964,6970 ****
     the same number of registers to store the reload value.  */

  static bool
! inherit_piecemeal_p (int r, int regno)
  {
  #ifdef CANNOT_CHANGE_MODE_CLASS
    return (!REG_CANNOT_CHANGE_MODE_P (reload_spill_index[r],
--- 6964,6970 ----
     the same number of registers to store the reload value.  */

  static bool
! inherit_piecemeal_p (int r ATTRIBUTE_UNUSED, int regno ATTRIBUTE_UNUSED)
  {
  #ifdef CANNOT_CHANGE_MODE_CLASS
    return (!REG_CANNOT_CHANGE_MODE_P (reload_spill_index[r],


Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833


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