Bug 16066 - [3.4 regression] loop strength reduction bug
Summary: [3.4 regression] loop strength reduction bug
Status: RESOLVED DUPLICATE of bug 16052
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.4.1
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2004-06-18 20:16 UTC by Debian GCC Maintainers
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: i[34]86-linux
Target: i[34]86-linux
Build: i[34]86-linux
Known to work: 3.3.4
Known to fail: 2.95.4 3.0.4 3.2 3.4.1
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2004-06-18 20:16:50 UTC
[forwarded from http://bugs.debian.org/254659]

seen with 2.95, 3.0, 3,2, fixed in 3.3.4, seen in 3.4 20040613

the following code does not terminate when compiled with -O2 -march=i[34]86,
works ok with O2 -march=i[56]86,

#include <stdio.h>

inline void
h1(int *p) {

        printf("%p\n", p);
}

void
h(int* p, int i) {
        int j;

        for(j = 0; j < 16; j++) {
                h1(p + j);
        }
}

int
main(int argc, char **argv) {

	h((int *)0x7fffffc0, 0);
        exit(0);
}
Comment 1 Andrew Pinski 2004-06-18 20:26:37 UTC

*** This bug has been marked as a duplicate of 16052 ***