public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "falk at debian dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/32522] [4.3 Regression] Bootstrap failure on Alpha due to pointer-plus changes
Date: Thu, 05 Jul 2007 13:01:00 -0000	[thread overview]
Message-ID: <20070705130130.12583.qmail@sourceware.org> (raw)
In-Reply-To: <bug-32522-2744@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from falk at debian dot org  2007-07-05 13:01 -------
I tried this patch from Andrew Pinski:

Index: gcc/config/alpha/alpha.c
===================================================================
--- gcc/config/alpha/alpha.c    (revision 126053)
+++ gcc/config/alpha/alpha.c    (working copy)
@@ -6111,8 +6111,8 @@
                             valist, offset_field, NULL_TREE);

       t = make_tree (ptr_type_node, virtual_incoming_args_rtx);
-      t = build2 (PLUS_EXPR, ptr_type_node, t,
-                 build_int_cst (NULL_TREE, offset));
+      t = build2 (POINTER_PLUS_EXPR, ptr_type_node, t,
+                 size_int (offset));
       t = build2 (GIMPLE_MODIFY_STMT, TREE_TYPE (base_field), base_field, t);
       TREE_SIDE_EFFECTS (t) = 1;
       expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL);
@@ -6172,8 +6173,8 @@
     }

   /* Build the final address and force that value into a temporary.  */
-  addr = build2 (PLUS_EXPR, ptr_type, fold_convert (ptr_type, base),
-                fold_convert (ptr_type, addend));
+  addr = build2 (POINTER_PLUS_EXPR, ptr_type, fold_convert (ptr_type, base),
+                fold_convert (sizetype, addend));
   internal_post = NULL;
   gimplify_expr (&addr, pre_p, &internal_post, is_gimple_val, fb_rvalue);
   append_to_statement_list (internal_post, pre_p);

which allows bootstrap to continue, but it still fails:

checking for alphaev68-unknown-linux-gnu-gcc...
/src/gcc-2007.07.05/build/./gcc/xgcc -B/src/gcc-2007.07.05/build/./gcc/
-B/usr/local/alphaev68-unknown-linux-gnu/bin/
-B/usr/local/alphaev68-unknown-linux-gnu/lib/ -isystem
/usr/local/alphaev68-unknown-linux-gnu/include -isystem
/usr/local/alphaev68-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: cannot compute suffix
of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage2-target-libgcc] Error 1
make[2]: Leaving directory `/src/gcc-2007.07.05/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/src/gcc-2007.07.05/build'
make: *** [all] Error 2

libgcc/config.log says:

configure:2566: checking for suffix of object files
configure:2587: /src/gcc-2007.07.05/build/./gcc/xgcc
-B/src/gcc-2007.07.05/build/./gcc/
-B/usr/local/alphaev68-unknown-linux-gnu/bin/ -B/usr/loc
al/alphaev68-unknown-linux-gnu/lib/ -isystem
/usr/local/alphaev68-unknown-linux-gnu/include -isystem
/usr/local/alphaev68-unknown-linux-gnu/sys-
include -c -g -O2  conftest.c >&5
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: error: nonnull argument references non-pointer operand (argument
1, operand 1)
<built-in>:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
configure:2590: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2604: error: cannot compute suffix of object files: cannot compile


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32522


  parent reply	other threads:[~2007-07-05 13:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 15:46 [Bug bootstrap/32522] New: " falk at debian dot org
2007-06-27 22:57 ` [Bug target/32522] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-06-29 18:56 ` mmitchel at gcc dot gnu dot org
2007-07-05 13:01 ` falk at debian dot org [this message]
2007-07-05 18:48 ` pinskia at gcc dot gnu dot org
2007-07-12 21:01 ` pinskia at gcc dot gnu dot org
2007-07-16 16:41 ` ro at gcc dot gnu dot org
2007-07-16 17:30 ` belyshev at depni dot sinp dot msu dot ru
2007-07-17 11:28 ` ro at techfak dot uni-bielefeld dot de
2007-07-26 19:49 ` belyshev at depni dot sinp dot msu dot ru
2007-07-26 22:50 ` falk at debian dot org
2007-07-27  6:18 ` belyshev at depni dot sinp dot msu dot ru
2007-07-27  6:22 ` patchapp at dberlin dot org
2007-07-29  2:00 ` pinskia at gcc dot gnu dot org
2007-08-20  6:53 ` pinskia at gcc dot gnu dot org
2007-08-20  6:53 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070705130130.12583.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).