--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-19
02:36 ---
Subject: Bug 21085
CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED] 2005-04-19 02:36:04
Modified files:
gcc: ChangeLog fold-const.c
gcc/t
--- Additional Comments From ja2morri at csclub dot uwaterloo dot ca
2005-04-18 22:02 ---
Subject: Re: [4.0/4.1 Regression] Virtual memory exhausted with g++
Ahh, I posted the patch before starting the regtesting. I only checked to
make sure it worked on the testcase. I'll commit t
--- Additional Comments From roger at eyesopen dot com 2005-04-18 20:47
---
Wow, that was fast. I'd just started bootstrap and regression test on an
*identical* patch, and pulled up the PR to assign it to myself. You win!
I'll preapprove yours, together with the testcase from the PR, i
--- Additional Comments From phython at gcc dot gnu dot org 2005-04-18
20:15 ---
Created an attachment (id=8678)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8678&action=view)
Don't alter overflowed constants
sign_bit_p returns false for overflowed constants, this is bad for thi
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18
19:38 ---
Most likely caused by:
2004-07-05 Roger Sayle <[EMAIL PROTECTED]>
* fold-const.c (fold) : Optimize unsigned modulus
by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18
19:25 ---
(In reply to comment #2)
> Reduced testcase:
Even though there is an overflow which the C front-end says the code was in an
if (0) block so it should
not matter about that as it is only undefined then but
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18
19:24 ---
Reduced testcase:
int main( int argc, char * argv[ ] )
{
int maxstringlen = 1;
int limit = 0, maxblock = 0, maxblockrem = 0;
maxblockrem = (maxstringlen) % (2147483647 + 1);
}
--
What
--
What|Removed |Added
Known to fail||4.0.0 4.1.0
Known to work||3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18
19:18 ---
On the mainline we don't get virtual memory exhausted but that is because there
has been a patch or
two to fix the memory usage but instead we get stack overflow:
#1207 0x002fc6e0 in fold_binary (code=TRUN