* [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 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
* [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