public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/40439]  New: Bootstrap broken on FreeBSD in tree.c
@ 2009-06-14 17:17 kargl at gcc dot gnu dot org
  2009-06-14 17:58 ` [Bug bootstrap/40439] [4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-06-14 17:17 UTC (permalink / raw)
  To: gcc-bugs

/usr/home/kargl/gcc/obj4x/./prev-gcc/xgcc
-B/usr/home/kargl/gcc/obj4x/./prev-gcc/
-B/usr/home/kargl/work/i386-unknown-freebsd8.0/bin/
-B/usr/home/kargl/work/i386-unknown-freebsd8.0/bin/
-B/usr/home/kargl/work/i386-unknown-freebsd8.0/lib/ -isystem
/usr/home/kargl/work/i386-unknown-freebsd8.0/include -isystem
/usr/home/kargl/work/i386-unknown-freebsd8.0/sys-include    -c  -g -O2
-fomit-frame-pointer -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc4x/gcc -I../../gcc4x/gcc/. -I../../gcc4x/gcc/../include -I./../intl
-I../../gcc4x/gcc/../libcpp/include -I/usr/local/include 
-I../../gcc4x/gcc/../libdecnumber -I../../gcc4x/gcc/../libdecnumber/dpd
-I../libdecnumber    ../../gcc4x/gcc/tree.c -o tree.o
cc1: warnings being treated as errors
../../gcc4x/gcc/tree.c: In function 'widest_int_cst_value':
../../gcc4x/gcc/tree.c:8502:10: error: left shift count >= width of type
gmake[3]: *** [tree.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm cpp.pod fsf-funding.pod gfdl.pod gcc.pod gfortran.pod gcov.pod
gmake[3]: Leaving directory `/usr/home/kargl/gcc/obj4x/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory `/usr/home/kargl/gcc/obj4x'
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory `/usr/home/kargl/gcc/obj4x'
gmake: *** [bootstrap] Error 2


-- 
           Summary: Bootstrap broken on FreeBSD in tree.c
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kargl at gcc dot gnu dot org
  GCC host triplet: i386-unknown-freebsd8.0


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


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

* [Bug bootstrap/40439] [4.5 Regression] Bootstrap broken on FreeBSD in tree.c
  2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
@ 2009-06-14 17:58 ` rguenth at gcc dot gnu dot org
  2009-06-14 18:02 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-14 17:58 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krebbel at gcc dot gnu dot
                   |                            |org
            Summary|Bootstrap broken on FreeBSD |[4.5 Regression] Bootstrap
                   |in tree.c                   |broken on FreeBSD in tree.c
   Target Milestone|---                         |4.5.0


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


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

* [Bug bootstrap/40439] [4.5 Regression] Bootstrap broken on FreeBSD in tree.c
  2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
  2009-06-14 17:58 ` [Bug bootstrap/40439] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-06-14 18:02 ` rguenth at gcc dot gnu dot org
  2009-06-14 18:04 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-14 18:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-06-14 18:02 -------
Sth like

Index: gcc/tree.c
===================================================================
--- gcc/tree.c  (revision 148472)
+++ gcc/tree.c  (working copy)
@@ -8499,7 +8499,8 @@ widest_int_cst_value (const_tree x)

 #if HOST_BITS_PER_WIDEST_INT > HOST_BITS_PER_WIDE_INT
   gcc_assert (HOST_BITS_PER_WIDEST_INT >= 2 * HOST_BITS_PER_WIDE_INT);
-  val |= TREE_INT_CST_HIGH (x) << HOST_BITS_PER_WIDE_INT;
+  val |= (((unsigned HOST_WIDEST_INT)TREE_INT_CST_HIGH (x))
+         << HOST_BITS_PER_WIDE_INT);
 #else
   /* Make sure the sign-extended value will fit in a HOST_WIDE_INT.  */
   gcc_assert (TREE_INT_CST_HIGH (x) == 0

should fix this.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |bootstrap
   GCC host triplet|                            |i386-unknown-freebsd8.0
 GCC target triplet|i?86-*-*                    |
           Keywords|build                       |


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


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

* [Bug bootstrap/40439] [4.5 Regression] Bootstrap broken on FreeBSD in tree.c
  2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
  2009-06-14 17:58 ` [Bug bootstrap/40439] [4.5 Regression] " rguenth at gcc dot gnu dot org
  2009-06-14 18:02 ` rguenth at gcc dot gnu dot org
@ 2009-06-14 18:04 ` steven at gcc dot gnu dot org
  2009-06-14 18:07 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-06-14 18:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from steven at gcc dot gnu dot org  2009-06-14 18:04 -------
For reference:
Broken by http://gcc.gnu.org/viewcvs?view=rev&revision=148471


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-14 18:04:33
               date|                            |


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


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

* [Bug bootstrap/40439] [4.5 Regression] Bootstrap broken on FreeBSD in tree.c
  2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-06-14 18:04 ` steven at gcc dot gnu dot org
@ 2009-06-14 18:07 ` pinskia at gcc dot gnu dot org
  2009-06-14 22:09 ` sgk at troutmask dot apl dot washington dot edu
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-14 18:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-06-14 18:07 -------
This only happens when host wide int is not 64bits (which it should be).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|i386-unknown-freebsd8.0     |
 GCC target triplet|                            |hwi == 32bits
           Keywords|                            |build


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


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

* [Bug bootstrap/40439] [4.5 Regression] Bootstrap broken on FreeBSD in tree.c
  2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-06-14 18:07 ` pinskia at gcc dot gnu dot org
@ 2009-06-14 22:09 ` sgk at troutmask dot apl dot washington dot edu
  2009-06-15 10:06 ` [Bug middle-end/40439] " rguenth at gcc dot gnu dot org
  2009-06-15 10:06 ` [Bug bootstrap/40439] " rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2009-06-14 22:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sgk at troutmask dot apl dot washington dot edu  2009-06-14 22:09 -------
Subject: Re:  [4.5 Regression] Bootstrap broken on FreeBSD in tree.c

On Sun, Jun 14, 2009 at 06:02:26PM -0000, rguenth at gcc dot gnu dot org wrote:
> 
> 
> ------- Comment #1 from rguenth at gcc dot gnu dot org  2009-06-14 18:02 -------
> Sth like
> 
> Index: gcc/tree.c
> ===================================================================
> --- gcc/tree.c  (revision 148472)
> +++ gcc/tree.c  (working copy)
> @@ -8499,7 +8499,8 @@ widest_int_cst_value (const_tree x)
> 
>  #if HOST_BITS_PER_WIDEST_INT > HOST_BITS_PER_WIDE_INT
>    gcc_assert (HOST_BITS_PER_WIDEST_INT >= 2 * HOST_BITS_PER_WIDE_INT);
> -  val |= TREE_INT_CST_HIGH (x) << HOST_BITS_PER_WIDE_INT;
> +  val |= (((unsigned HOST_WIDEST_INT)TREE_INT_CST_HIGH (x))
> +         << HOST_BITS_PER_WIDE_INT);
>  #else
>    /* Make sure the sign-extended value will fit in a HOST_WIDE_INT.  */
>    gcc_assert (TREE_INT_CST_HIGH (x) == 0
> 
> should fix this.
> 

The above patch fixes bootstrap.


-- 


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


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

* [Bug bootstrap/40439] [4.5 Regression] Bootstrap broken on FreeBSD in tree.c
  2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-06-15 10:06 ` [Bug middle-end/40439] " rguenth at gcc dot gnu dot org
@ 2009-06-15 10:06 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-15 10:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-06-15 10:05 -------
Subject: Bug 40439

Author: rguenth
Date: Mon Jun 15 10:05:29 2009
New Revision: 148486

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148486
Log:
2009-06-15  Richard Guenther  <rguenther@suse.de>

        PR middle-end/40439
        * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

* [Bug middle-end/40439] [4.5 Regression] Bootstrap broken on FreeBSD in tree.c
  2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-06-14 22:09 ` sgk at troutmask dot apl dot washington dot edu
@ 2009-06-15 10:06 ` rguenth at gcc dot gnu dot org
  2009-06-15 10:06 ` [Bug bootstrap/40439] " rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-15 10:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-06-15 10:05 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|bootstrap                   |middle-end
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-06-15 10:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-14 17:17 [Bug bootstrap/40439] New: Bootstrap broken on FreeBSD in tree.c kargl at gcc dot gnu dot org
2009-06-14 17:58 ` [Bug bootstrap/40439] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-06-14 18:02 ` rguenth at gcc dot gnu dot org
2009-06-14 18:04 ` steven at gcc dot gnu dot org
2009-06-14 18:07 ` pinskia at gcc dot gnu dot org
2009-06-14 22:09 ` sgk at troutmask dot apl dot washington dot edu
2009-06-15 10:06 ` [Bug middle-end/40439] " rguenth at gcc dot gnu dot org
2009-06-15 10:06 ` [Bug bootstrap/40439] " rguenth at gcc dot gnu dot org

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).