public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Can't bootstrap tree-ssa on powerpc-unknown-linux-gnu now for over a week.
@ 2004-03-06 19:15 Toon Moene
  2004-03-06 19:26 ` Andrew Pinski
  2004-03-06 19:52 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Toon Moene @ 2004-03-06 19:15 UTC (permalink / raw)
  To: gcc

Error message:

./xgcc -B./ -B/usr/snp/powerpc-unknown-linux-gnu/bin/ -isystem 
/usr/snp/powerpc-unknown-linux-gnu/include -isystem 
/usr/snp/powerpc-unknown-linux-gnu/sys-include 
-L/home/toon/compilers/tree-ssa/obj/gcc/../ld -O2 -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc/gcc 
-I../../gcc/gcc/. -I../../gcc/gcc/../include 
-I../../gcc/gcc/../libbanshee/libcompat -I../../gcc/gcc/../libbanshee 
-I../../gcc/gcc/../libbanshee/points-to   -g0 -finhibit-size-directive 
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss 
-fno-unit-at-a-time -msdata=none \
    -c ../../gcc/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFT_O \
   -o crtbeginT.o
../../gcc/gcc/crtstuff.c: In function `__do_global_dtors_aux':
../../gcc/gcc/crtstuff.c:256: error: Wrong sharing of tree nodes
p_13 = PHI <<<<filter object>>>(2), <<<filter object>>>(6)>;

<<<filter object>>>;

../../gcc/gcc/crtstuff.c:256: error: Wrong sharing of tree nodes
p_13 = PHI <<<<filter object>>>(2), <<<filter object>>>(6)>;

<<<filter object>>>;

../../gcc/gcc/crtstuff.c:256: internal compiler error: verify_stmts failed.
Please submit a full bug report,
with preprocessed source if appropriate.

at the end of stage 2.

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't bootstrap tree-ssa on powerpc-unknown-linux-gnu now for over a week.
  2004-03-06 19:15 Can't bootstrap tree-ssa on powerpc-unknown-linux-gnu now for over a week Toon Moene
@ 2004-03-06 19:26 ` Andrew Pinski
  2004-03-06 19:52 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Pinski @ 2004-03-06 19:26 UTC (permalink / raw)
  To: Toon Moene; +Cc: gcc, Andrew Pinski


On Mar 6, 2004, at 11:15, Toon Moene wrote:

> Error message:

We know about the problem. The problem is that a function is
sibcalled when it should have been.  RTH thinks he has a fix.

Thanks,
Andrew Pinski

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't bootstrap tree-ssa on powerpc-unknown-linux-gnu now for over a week.
  2004-03-06 19:15 Can't bootstrap tree-ssa on powerpc-unknown-linux-gnu now for over a week Toon Moene
  2004-03-06 19:26 ` Andrew Pinski
@ 2004-03-06 19:52 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2004-03-06 19:52 UTC (permalink / raw)
  To: Toon Moene; +Cc: gcc

[-- Attachment #1: Type: text/plain, Size: 22 bytes --]

Please try this.


r~

[-- Attachment #2: Type: message/rfc822, Size: 4324 bytes --]

From: Richard Henderson <rth@redhat.com>
To: Diego Novillo <dnovillo@redhat.com>, dje@watson.ibm.com
Cc: Richard Henderson <rth@redhat.com>
Subject: potential ppc-linux tailcall fix
Date: Fri, 5 Mar 2004 16:30:00 -0800
Message-ID: <20040306003000.GA30091@redhat.com>

Index: calls.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/calls.c,v
retrieving revision 1.229.2.46
diff -c -p -d -u -r1.229.2.46 calls.c
--- calls.c	2 Mar 2004 18:41:24 -0000	1.229.2.46
+++ calls.c	6 Mar 2004 00:24:55 -0000
@@ -134,7 +134,7 @@ static void initialize_argument_informat
 					     struct args_size *, int, tree,
 					     tree, CUMULATIVE_ARGS *, int,
 					     rtx *, int *, int *, int *,
-					     bool);
+					     bool *, bool);
 static void compute_argument_addresses (struct arg_data *, rtx, int);
 static rtx rtx_for_function_call (tree, tree);
 static void load_register_parameters (struct arg_data *, int, rtx *, int,
@@ -1030,6 +1030,9 @@ store_unaligned_arguments_into_pseudos (
    OLD_PENDING_ADJ, MUST_PREALLOCATE and FLAGS are pointers to integer
    flags which may may be modified by this routine. 
 
+   MAY_TAILCALL is cleared if we encounter an invisible pass-by-reference
+   that requires allocation of stack space.
+
    CALL_FROM_THUNK_P is true if this call is the jump from a thunk to
    the thunked-to function.  */
 
@@ -1043,7 +1046,7 @@ initialize_argument_information (int num
 				 int reg_parm_stack_space,
 				 rtx *old_stack_level, int *old_pending_adj,
 				 int *must_preallocate, int *ecf_flags,
-				 bool call_from_thunk_p)
+				 bool *may_tailcall, bool call_from_thunk_p)
 {
   /* 1 if scanning parms front to back, -1 if scanning back to front.  */
   int inc;
@@ -1156,6 +1159,7 @@ initialize_argument_information (int num
 					   build_pointer_type (type),
 					   args[i].tree_value);
 	      type = build_pointer_type (type);
+	      *may_tailcall = false;
 	    }
 	  else
 	    {
@@ -1195,6 +1199,7 @@ initialize_argument_information (int num
 					   build_pointer_type (type),
 					   make_tree (type, copy));
 	      type = build_pointer_type (type);
+	      *may_tailcall = false;
 	    }
 	}
 
@@ -2021,7 +2026,7 @@ expand_call (tree exp, rtx target, int i
   tree fndecl = 0;
   /* The type of the function being called.  */
   tree fntype;
-  int try_tail_call = CALL_EXPR_TAILCALL (exp);
+  bool try_tail_call = CALL_EXPR_TAILCALL (exp);
   int pass;
 
   /* Register in which non-BLKmode value will be returned,
@@ -2325,7 +2330,7 @@ expand_call (tree exp, rtx target, int i
 				   &args_so_far, reg_parm_stack_space,
 				   &old_stack_level, &old_pending_adj,
 				   &must_preallocate, &flags,
-				   CALL_FROM_THUNK_P (exp));
+				   &try_tail_call, CALL_FROM_THUNK_P (exp));
 
   if (args_size.var)
     {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-06 19:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-06 19:15 Can't bootstrap tree-ssa on powerpc-unknown-linux-gnu now for over a week Toon Moene
2004-03-06 19:26 ` Andrew Pinski
2004-03-06 19:52 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).