public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow
@ 2005-06-08 12:32 pinskia at gcc dot gnu dot org
2005-06-08 12:32 ` [Bug ada/21959] " pinskia at gcc dot gnu dot org
` (20 more replies)
0 siblings, 21 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-08 12:32 UTC (permalink / raw)
To: gcc-bugs
See <http://gcc.gnu.org/ml/gcc/2005-06/msg00059.html> for the full description.
--
Summary: [4.1 Regression] Ada depeends on signed overflow
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: wrong-code, build
Severity: normal
Priority: P2
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depeends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
@ 2005-06-08 12:32 ` pinskia at gcc dot gnu dot org
2005-06-09 11:59 ` [Bug ada/21959] [4.1 Regression] Ada depends " pluto at agmk dot net
` (19 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-08 12:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-08 12:32 -------
Confirmed based on the whole thread.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |schwab at suse dot de
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-08 12:32:26
date| |
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
2005-06-08 12:32 ` [Bug ada/21959] " pinskia at gcc dot gnu dot org
@ 2005-06-09 11:59 ` pluto at agmk dot net
2005-06-10 16:57 ` schwab at suse dot de
` (18 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pluto at agmk dot net @ 2005-06-09 11:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pluto at agmk dot net 2005-06-09 11:59 -------
hmm, I can't test the 4.1 bootstrap with -fwrapv due to xgcc error.
make -C obj-amd64-pld-linux \
bootstrap \
GCJFLAGS="%{rpmcflags}" \
BOOT_ADAFLAGS="%{rpmcflags} -fwrapv" \
GNATLIBCFLAGS="-O1 -fwrapv" \
BOOT_CFLAGS="%{rpmcflags}" \
STAGE1_CFLAGS="%{rpmcflags} -O0" \
LDFLAGS_FOR_TARGET="%{rpmldflags}"
(...)
stage1/xgcc -Bstage1/ -B/usr/amd64-pld-linux/bin/ -c -O1 -fwrapv
-I- -I. -Iada -I../../gcc/ada ../../gcc/ada/ada.ads -o ada/ada.o
ada.ads:16:01: language defined units may not be recompiled
make[2]: *** [ada/ada.o] Error 1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
2005-06-08 12:32 ` [Bug ada/21959] " pinskia at gcc dot gnu dot org
2005-06-09 11:59 ` [Bug ada/21959] [4.1 Regression] Ada depends " pluto at agmk dot net
@ 2005-06-10 16:57 ` schwab at suse dot de
2005-06-10 17:00 ` schwab at suse dot de
` (17 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: schwab at suse dot de @ 2005-06-10 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schwab at suse dot de 2005-06-10 16:57 -------
> hmm, I can't test the 4.1 bootstrap with -fwrapv due to xgcc error. Try this to enable -fwrapv by default: --- misc.c 01 Jun 2005 10:00:47 +0200 1.102 +++ misc.c 08 Jun 2005 14:58:25 +0200 @@ -339,6 +339,8 @@ gnat_init_options (unsigned int argc, co /* Uninitialized really means uninitialized in Ada. */ flag_zero_initialized_in_bss = 0; + flag_wrapv = 1; + return CL_Ada; }
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-06-10 16:57 ` schwab at suse dot de
@ 2005-06-10 17:00 ` schwab at suse dot de
2005-06-10 18:52 ` pinskia at gcc dot gnu dot org
` (16 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: schwab at suse dot de @ 2005-06-10 17:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schwab at suse dot de 2005-06-10 16:59 -------
> hmm, I can't test the 4.1 bootstrap with -fwrapv due to xgcc error.
Try this to enable -fwrapv by default:
--- misc.c 01 Jun 2005 10:00:47 +0200 1.102
+++ misc.c 08 Jun 2005 14:58:25 +0200
@@ -339,6 +339,8 @@ gnat_init_options (unsigned int argc, co
/* Uninitialized really means uninitialized in Ada. */
flag_zero_initialized_in_bss = 0;
+ flag_wrapv = 1;
+
return CL_Ada;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-06-10 17:00 ` schwab at suse dot de
@ 2005-06-10 18:52 ` pinskia at gcc dot gnu dot org
2005-06-10 21:24 ` pluto at agmk dot net
` (15 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-10 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-10 18:52 -------
(In reply to comment #4)
as the thread said this is only a workaround.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-06-10 18:52 ` pinskia at gcc dot gnu dot org
@ 2005-06-10 21:24 ` pluto at agmk dot net
2005-06-10 21:26 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pluto at agmk dot net @ 2005-06-10 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pluto at agmk dot net 2005-06-10 21:23 -------
with this workaround stage3 fails :/
(...)
../../xgcc -B../../ -c -g -O2 -fPIC -W -Wall -gnatpg a-ncelfu.ads -o
a-ncelfu.o
a-ngcefu.adb: In function 'Ada.Numerics.Complex_Elementary_Functions.Sqrt':
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1921_90 = ada__numerics__complex_types__compose_from_cartesian (D.1920_89,
0.0);
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1928_86 = ada__numerics__complex_types__compose_from_cartesian (0.0,
D.1927_85);
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1931_78 = ada__numerics__complex_types__compose_from_cartesian
(r_xD.1914_73, r_xD.1914_73);
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1933_76 = ada__numerics__complex_types__compose_from_cartesian
(r_xD.1914_73, D.1932_75);
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1948_55 = ada__numerics__complex_types__compose_from_cartesian (r_xD.1914_2,
r_yD.1915_4);
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1950_21 = ada__numerics__complex_types__Odivide__3 (xD.370_6, 4.0e+0);
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1953_25 = ada__numerics__complex_types__compose_from_cartesian (D.1952_24,
D.1951_22);
a-ngcefu.adb:578: error: Statement marked for throw in middle of block.
D.1948_45 = ada__numerics__complex_types__compose_from_cartesian
(r_xD.1914_34, r_yD.1915_5);
+===========================GNAT BUG DETECTED==============================+
| 4.1.0 20050610 (experimental) (i686-pld-linux-gnu) verify_stmts failed. |
| Error detected at a-ncelfu.ads:23:1 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
+==========================================================================+
(...)
raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:381
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-06-10 21:24 ` pluto at agmk dot net
@ 2005-06-10 21:26 ` pinskia at gcc dot gnu dot org
2005-06-17 19:56 ` ebotcazou at gcc dot gnu dot org
` (13 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-10 21:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-10 21:26 -------
(In reply to comment #6)
> with this workaround stage3 fails :/
Yes that is PR 21994 and then we are blocked by 21923.
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |21923, 21994
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-06-10 21:26 ` pinskia at gcc dot gnu dot org
@ 2005-06-17 19:56 ` ebotcazou at gcc dot gnu dot org
2005-06-17 20:02 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-06-17 19:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-06-17 19:56 -------
Well, it seems to me that the culprit is fold, no?
else if (!in_gimple_form
&& TREE_INT_CST_HIGH (arg1) == signed_max_hi
&& TREE_INT_CST_LOW (arg1) == signed_max_lo
&& TYPE_UNSIGNED (TREE_TYPE (arg1))
/* signed_type does not work on pointer types. */
&& INTEGRAL_TYPE_P (TREE_TYPE (arg1)))
{
/* The following case also applies to X < signed_max+1
and X >= signed_max+1 because previous transformations. */
if (code == LE_EXPR || code == GT_EXPR)
{
tree st0, st1;
st0 = lang_hooks.types.signed_type (TREE_TYPE (arg0));
st1 = lang_hooks.types.signed_type (TREE_TYPE (arg1));
return fold
(build2 (code == LE_EXPR ? GE_EXPR: LT_EXPR,
type, fold_convert (st0, arg0),
fold_convert (st1, integer_zero_node)));
}
}
(gdb) p debug_tree(arg0)
<var_decl 0x556e1d80 J4b
type <integer_type 0x556d9144 character sizes-gimplified public visited
unsigned QI
size <integer_cst 0x556a61f8 constant invariant visited 8>
unit size <integer_cst 0x556a6210 constant invariant visited 1>
user align 8 symtab 0 alias set -1 precision 8 min <integer_cst
0x556d71e0 0> max <integer_cst 0x556d71f8 255> RM size <integer_cst 0x556a61f8 8>
pointer_to_this <pointer_type 0x556d93cc access_character>>
unsigned ignored QI file ../../asets.adb line 3 size <integer_cst 0x556a61f8
8> unit size <integer_cst 0x556a6210 1>
align 8 context <function_decl 0x556e0144 asets___elabb> initial
<integer_cst 0x556d71e0 0>>
$13 = void
(gdb) p debug_tree(arg1)
<integer_cst 0x556e3030 type <integer_type 0x556d9144 character> constant
invariant 127>
$14 = void
(gdb) p code
$15 = LE_EXPR
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-06-17 19:56 ` ebotcazou at gcc dot gnu dot org
@ 2005-06-17 20:02 ` pinskia at gcc dot gnu dot org
2005-06-17 20:24 ` ebotcazou at gcc dot gnu dot org
` (11 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-17 20:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-17 20:02 -------
(In reply to comment #8)
> Well, it seems to me that the culprit is fold, no?
No because Ada front-end is creating:
signed_char <= 127 which is always true, removing this from fold would not change the problem as it
will still be optimized away.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug ada/21959] [4.1 Regression] Ada depends on signed overflow
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-06-17 20:02 ` pinskia at gcc dot gnu dot org
@ 2005-06-17 20:24 ` ebotcazou at gcc dot gnu dot org
2005-06-17 20:37 ` [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-06-17 20:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-06-17 20:23 -------
> No because Ada front-end is creating:
> signed_char <= 127 which is always true, removing this from fold would not
> change the problem as it will still be optimized away.
Where do you see signed_char? The type 0x556d9144 is unsigned.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (9 preceding siblings ...)
2005-06-17 20:24 ` ebotcazou at gcc dot gnu dot org
@ 2005-06-17 20:37 ` pinskia at gcc dot gnu dot org
2005-06-17 20:54 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-17 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-17 20:37 -------
(In reply to comment #10)
> > No because Ada front-end is creating:
> > signed_char <= 127 which is always true, removing this from fold would not
> > change the problem as it will still be optimized away.
>
> Where do you see signed_char? The type 0x556d9144 is unsigned.
Woops, I must have read something wrong.
This is still a bug in the VRP.
C Testcase:
unsigned char c[0xFF];
void f(void)
{
unsigned char i;
c[128] = 128;
i = 0;
while (1)
{
if (((signed char) i) < 0) break;
c[i] = ' ';
i++;
}
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dnovillo at gcc dot gnu dot
| |org
Component|ada |tree-optimization
Summary|[4.1 Regression] Ada depends|[4.1 Regression] vrp
|on signed overflow |miscompiles Ada front-end,
| |drops loop exit test in
| |well-defined wrap-around
| |circumstances
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (10 preceding siblings ...)
2005-06-17 20:37 ` [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances pinskia at gcc dot gnu dot org
@ 2005-06-17 20:54 ` pinskia at gcc dot gnu dot org
2005-06-21 19:49 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-17 20:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-17 20:54 -------
Why does ivcanon/tree-ssa-loop-niter gets this correct (at 128) but VRP cannot.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (11 preceding siblings ...)
2005-06-17 20:54 ` pinskia at gcc dot gnu dot org
@ 2005-06-21 19:49 ` pinskia at gcc dot gnu dot org
2005-06-21 21:06 ` laurent at guerby dot net
` (7 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-21 19:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-21 19:49 -------
Still wrong:
i_2: VARYING
i.0_6: [0, +INF] EQUIVALENCES: { } (0 elements)
# i_2 = PHI <0(0), i_9(2)>;
<L0>:;
i.0_6 = (signed char) i_2;
if (i.0_6 < 0) goto <L2>; else goto <L1>;
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-06-08 12:32:26 |2005-06-21 19:49:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (12 preceding siblings ...)
2005-06-21 19:49 ` pinskia at gcc dot gnu dot org
@ 2005-06-21 21:06 ` laurent at guerby dot net
2005-06-27 5:02 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: laurent at guerby dot net @ 2005-06-21 21:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From laurent at guerby dot net 2005-06-21 21:06 -------
Still an infinite loop on bootstrap as of LAST_UPDATED Tue Jun 21 20:10:50 UTC 2005
stage2/xgcc -Bstage2/
-B/home/guerby/work/gcc/install/install-20050621T221553/x86_64-unknown-linux-gnu/bin/
-c -g -O2 -gnatpg -gnata -I- -I. -Iada
-I/home/guerby/work/gcc/version-head/gcc/ada
/home/guerby/work/gcc/version-head/gcc/ada/ada.ads -o ada/ada.o
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (13 preceding siblings ...)
2005-06-21 21:06 ` laurent at guerby dot net
@ 2005-06-27 5:02 ` pinskia at gcc dot gnu dot org
2005-06-27 11:42 ` dnovillo at gcc dot gnu dot org
` (5 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-27 5:02 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (14 preceding siblings ...)
2005-06-27 5:02 ` pinskia at gcc dot gnu dot org
@ 2005-06-27 11:42 ` dnovillo at gcc dot gnu dot org
2005-06-27 17:05 ` dnovillo at gcc dot gnu dot org
` (4 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2005-06-27 11:42 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dnovillo at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (15 preceding siblings ...)
2005-06-27 11:42 ` dnovillo at gcc dot gnu dot org
@ 2005-06-27 17:05 ` dnovillo at gcc dot gnu dot org
2005-06-27 19:41 ` dnovillo at gcc dot gnu dot org
` (3 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2005-06-27 17:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dnovillo at gcc dot gnu dot org 2005-06-27 17:05 -------
(In reply to comment #12)
> Why does ivcanon/tree-ssa-loop-niter gets this correct (at 128) but VRP cannot.
>
Wrong. scev fails to tell us that this variable may wrap around.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (16 preceding siblings ...)
2005-06-27 17:05 ` dnovillo at gcc dot gnu dot org
@ 2005-06-27 19:41 ` dnovillo at gcc dot gnu dot org
2005-06-28 0:52 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2005-06-27 19:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dnovillo at gcc dot gnu dot org 2005-06-27 19:41 -------
Testing patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (17 preceding siblings ...)
2005-06-27 19:41 ` dnovillo at gcc dot gnu dot org
@ 2005-06-28 0:52 ` cvs-commit at gcc dot gnu dot org
2005-06-28 1:14 ` dnovillo at gcc dot gnu dot org
2005-06-28 18:04 ` pinskia at gcc dot gnu dot org
20 siblings, 0 replies; 22+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-28 0:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-28 00:52 -------
Subject: Bug 21959
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: dnovillo@gcc.gnu.org 2005-06-28 00:52:35
Modified files:
gcc : ChangeLog tree-ssa-loop-niter.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg/tree-ssa: pr21959.c
Log message:
PR 21959
* tree-ssa-loop-niter.c (scev_probably_wraps_p): Handle type
casts between unsigned and signed types with different size
or precision.
testsuite/ChangeLog
PR 21959
* gcc.dg/tree-ssa/pr21959.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9246&r2=2.9247
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-loop-niter.c.diff?cvsroot=gcc&r1=2.31&r2=2.32
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5692&r2=1.5693
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr21959.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (18 preceding siblings ...)
2005-06-28 0:52 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-28 1:14 ` dnovillo at gcc dot gnu dot org
2005-06-28 18:04 ` pinskia at gcc dot gnu dot org
20 siblings, 0 replies; 22+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2005-06-28 1:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dnovillo at gcc dot gnu dot org 2005-06-28 01:14 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
` (19 preceding siblings ...)
2005-06-28 1:14 ` dnovillo at gcc dot gnu dot org
@ 2005-06-28 18:04 ` pinskia at gcc dot gnu dot org
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-28 18:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-28 18:03 -------
*** Bug 22221 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |smcconne at seakr dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2005-06-28 18:04 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-08 12:32 [Bug ada/21959] New: [4.1 Regression] Ada depeends on signed overflow pinskia at gcc dot gnu dot org
2005-06-08 12:32 ` [Bug ada/21959] " pinskia at gcc dot gnu dot org
2005-06-09 11:59 ` [Bug ada/21959] [4.1 Regression] Ada depends " pluto at agmk dot net
2005-06-10 16:57 ` schwab at suse dot de
2005-06-10 17:00 ` schwab at suse dot de
2005-06-10 18:52 ` pinskia at gcc dot gnu dot org
2005-06-10 21:24 ` pluto at agmk dot net
2005-06-10 21:26 ` pinskia at gcc dot gnu dot org
2005-06-17 19:56 ` ebotcazou at gcc dot gnu dot org
2005-06-17 20:02 ` pinskia at gcc dot gnu dot org
2005-06-17 20:24 ` ebotcazou at gcc dot gnu dot org
2005-06-17 20:37 ` [Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances pinskia at gcc dot gnu dot org
2005-06-17 20:54 ` pinskia at gcc dot gnu dot org
2005-06-21 19:49 ` pinskia at gcc dot gnu dot org
2005-06-21 21:06 ` laurent at guerby dot net
2005-06-27 5:02 ` pinskia at gcc dot gnu dot org
2005-06-27 11:42 ` dnovillo at gcc dot gnu dot org
2005-06-27 17:05 ` dnovillo at gcc dot gnu dot org
2005-06-27 19:41 ` dnovillo at gcc dot gnu dot org
2005-06-28 0:52 ` cvs-commit at gcc dot gnu dot org
2005-06-28 1:14 ` dnovillo at gcc dot gnu dot org
2005-06-28 18:04 ` pinskia 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).