public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/29198] [4.0/4.1/4.2 Regression] Incorrect reference to __thread array with -fPIC -O2 on x86 Date: Sun, 24 Sep 2006 05:34:00 -0000 [thread overview] Message-ID: <20060924053404.19877.qmail@sourceware.org> (raw) In-Reply-To: <bug-29198-1313@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-24 05:34 ------- Here is a testcase which shows this is a latent bug: extern int f2 (int, int, int, int); struct s { char b[4]; }; __thread struct s a[2]; void f1 (int a1, int a2) { int i, j; for (i = 0; i < 4; i++) { int tot = 0; for (j = 0; j < 4; j++) tot += f2 (a1, a2, i, j); *(&a[0].b[0] + i) = tot; } } ------ But since the orginal testcase worked in 3.4.0, this should be still marked as a regression, IV-OPTs is causing the latent bug to show up. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29198
next prev parent reply other threads:[~2006-09-24 5:34 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-09-24 5:21 [Bug target/29198] New: " ian at airs dot com 2006-09-24 5:29 ` [Bug target/29198] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org 2006-09-24 5:31 ` pinskia at gcc dot gnu dot org 2006-09-24 5:34 ` pinskia at gcc dot gnu dot org [this message] 2006-09-29 11:30 ` jakub at gcc dot gnu dot org 2006-10-01 22:59 ` mmitchel at gcc dot gnu dot org 2006-10-06 7:25 ` jakub at gcc dot gnu dot org 2006-10-06 7:36 ` jakub at gcc dot gnu dot org 2006-10-06 7:41 ` [Bug target/29198] [4.0 " jakub at gcc dot gnu dot org 2007-02-03 20:22 ` gdr at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20060924053404.19877.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).