public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/46909] [4.6 Regression] elf32-i386.c and elf64-x86-64.c in binutils are miscompiled Date: Sun, 12 Dec 2010 19:22:00 -0000 [thread overview] Message-ID: <bug-46909-4-C0Uucz5YbW@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-46909-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46909 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2010.12.12 19:22:15 Ever Confirmed|0 |1 Severity|normal |blocker --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-12 19:22:15 UTC --- [hjl@gnu-6 tmp]$ cat y.c extern void abort (); struct entry { unsigned char tls_type; } h; int __attribute__ ((__noinline__)) foo (struct entry *h) { int tls_type = h->tls_type; if (! ((tls_type) == 4 || ((tls_type) == (2 | 4))) || ((tls_type) == 2 || ((tls_type) == (2 | 4)))) return 1; return -1; } int main () { struct entry h; h.tls_type = 6; if (foo (&h) != 1) abort (); return 0; } [hjl@gnu-6 tmp]$ /usr/gcc-4.6/bin/gcc -O2 y.c [hjl@gnu-6 tmp]$ ./a.out Aborted [hjl@gnu-6 tmp]$ gcc -O2 y.c [hjl@gnu-6 tmp]$ ./a.out [hjl@gnu-6 tmp]$
next prev parent reply other threads:[~2010-12-12 19:22 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-12 16:28 [Bug middle-end/46909] New: " hjl.tools at gmail dot com 2010-12-12 17:44 ` [Bug middle-end/46909] " hjl.tools at gmail dot com 2010-12-12 18:12 ` hjl.tools at gmail dot com 2010-12-12 19:22 ` hjl.tools at gmail dot com [this message] 2010-12-12 19:27 ` hjl.tools at gmail dot com 2010-12-12 19:30 ` jakub at gcc dot gnu.org 2010-12-12 21:29 ` [Bug middle-end/46909] [4.6 Regression] Logical OR expressions " hjl.tools at gmail dot com 2010-12-13 13:02 ` jakub at gcc dot gnu.org 2010-12-13 14:22 ` [Bug tree-optimization/46909] " jakub at gcc dot gnu.org 2010-12-14 14:10 ` jakub at gcc dot gnu.org 2010-12-14 14:32 ` jakub at gcc dot gnu.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=bug-46909-4-C0Uucz5YbW@http.gcc.gnu.org/bugzilla/ \ --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).