This is the mail archive of the gcc@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]

Re: Gcc is broken on ia64


H. J. Lu wrote:
Gcc is broken by

http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00039.html

I got

/net/gnu/export/gnu/src/gcc/gcc/gcc/flow.c: In function
`init_propagate_block_info':
/net/gnu/export/gnu/src/gcc/gcc/gcc/flow.c:1852: void value not ignored
as it ought to be
make[1]: *** [flow.o] Error 1

That piece of code is protected by HAVE_conditional_execution.

drat. I attach the obvious patch, but it is completely untested. I won't have time to do that until tomorrow.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>

	* flow.c (init_propagate_block_info): Use bitmap_empty_p on result
	of bitmap_xor.

Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.603
diff -c -3 -p -r1.603 flow.c
*** flow.c	2 Nov 2004 09:56:12 -0000	1.603
--- flow.c	2 Nov 2004 19:19:34 -0000
*************** init_propagate_block_info (basic_block b
*** 1848,1856 ****
  	}
  
        /* Compute which register lead different lives in the successors.  */
!       if (bitmap_xor (diff, bb_true->global_live_at_start,
! 		      bb_false->global_live_at_start))
! 	{
  	  /* Extract the condition from the branch.  */
  	  rtx set_src = SET_SRC (pc_set (BB_END (bb)));
  	  rtx cond_true = XEXP (set_src, 0);
--- 1848,1858 ----
  	}
  
        /* Compute which register lead different lives in the successors.  */
!       bitmap_xor (diff, bb_true->global_live_at_start,
! 		  bb_false->global_live_at_start);
!       
!       if (!bitmap_empty_p (bitmap_xor))
! 	  {
  	  /* Extract the condition from the branch.  */
  	  rtx set_src = SET_SRC (pc_set (BB_END (bb)));
  	  rtx cond_true = XEXP (set_src, 0);

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