public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/61545] New: Miscompilation in libcap-ng
@ 2014-06-18  5:08 rth at gcc dot gnu.org
  2014-06-18  5:11 ` [Bug target/61545] " rth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rth at gcc dot gnu.org @ 2014-06-18  5:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61545

            Bug ID: 61545
           Summary: Miscompilation in libcap-ng
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rth at gcc dot gnu.org

Created attachment 32959
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32959&action=edit
test case

As seen in Fedora rawhide (4.9):

0x000003ffb1371ea4 <+100>: cmp w6, #0x1
0x000003ffb1371ea8 <+104>: adrp x0, 0x3ffb1385000
0x000003ffb1371eac <+108>: ldr x7, [x0,#352]
0x000003ffb1371eb0 <+112>: add x0, x0, #0x160
0x000003ffb1371eb4 <+116>: blr x7
0x000003ffb1371eb8 <+120>: mov w4, w5
0x000003ffb1371ebc <+124>: add x0, x3, x0
0x000003ffb1371ec0 <+128>: b.eq 0x3ffb1372088 <capng_update+584>

but I don't see anything preventing this on HEAD.
Patch to follow.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/61545] Miscompilation in libcap-ng
  2014-06-18  5:08 [Bug target/61545] New: Miscompilation in libcap-ng rth at gcc dot gnu.org
@ 2014-06-18  5:11 ` rth at gcc dot gnu.org
  2014-06-18 14:28 ` rth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu.org @ 2014-06-18  5:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61545

--- Comment #1 from Richard Henderson <rth at gcc dot gnu.org> ---
Created attachment 32960
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32960&action=edit
proposed patch

We need to clobber the flags across the tlsdesc call.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/61545] Miscompilation in libcap-ng
  2014-06-18  5:08 [Bug target/61545] New: Miscompilation in libcap-ng rth at gcc dot gnu.org
  2014-06-18  5:11 ` [Bug target/61545] " rth at gcc dot gnu.org
@ 2014-06-18 14:28 ` rth at gcc dot gnu.org
  2014-06-18 14:37 ` rth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu.org @ 2014-06-18 14:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61545

--- Comment #2 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Wed Jun 18 14:27:55 2014
New Revision: 211785

URL: https://gcc.gnu.org/viewcvs?rev=211785&root=gcc&view=rev
Log:
PR target/61545

* config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.md


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/61545] Miscompilation in libcap-ng
  2014-06-18  5:08 [Bug target/61545] New: Miscompilation in libcap-ng rth at gcc dot gnu.org
  2014-06-18  5:11 ` [Bug target/61545] " rth at gcc dot gnu.org
  2014-06-18 14:28 ` rth at gcc dot gnu.org
@ 2014-06-18 14:37 ` rth at gcc dot gnu.org
  2014-06-18 14:39 ` rth at gcc dot gnu.org
  2014-06-20  5:09 ` rth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu.org @ 2014-06-18 14:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61545

--- Comment #3 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Wed Jun 18 14:37:04 2014
New Revision: 211786

URL: https://gcc.gnu.org/viewcvs?rev=211786&root=gcc&view=rev
Log:
PR target/61545

* config/aarch64/aarch64.md (tlsdesc_small): Clobber CC_REGNUM.

Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/aarch64/aarch64.md


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/61545] Miscompilation in libcap-ng
  2014-06-18  5:08 [Bug target/61545] New: Miscompilation in libcap-ng rth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-06-18 14:37 ` rth at gcc dot gnu.org
@ 2014-06-18 14:39 ` rth at gcc dot gnu.org
  2014-06-20  5:09 ` rth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu.org @ 2014-06-18 14:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61545

--- Comment #4 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Wed Jun 18 14:38:56 2014
New Revision: 211787

URL: https://gcc.gnu.org/viewcvs?rev=211787&root=gcc&view=rev
Log:
PR target/61545

* config/aarch64/aarch64.md (tlsdesc_small): Clobber CC_REGNUM.

Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/aarch64/aarch64.md


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/61545] Miscompilation in libcap-ng
  2014-06-18  5:08 [Bug target/61545] New: Miscompilation in libcap-ng rth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-06-18 14:39 ` rth at gcc dot gnu.org
@ 2014-06-20  5:09 ` rth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu.org @ 2014-06-20  5:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61545

Richard Henderson <rth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.8.4

--- Comment #5 from Richard Henderson <rth at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-20  5:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18  5:08 [Bug target/61545] New: Miscompilation in libcap-ng rth at gcc dot gnu.org
2014-06-18  5:11 ` [Bug target/61545] " rth at gcc dot gnu.org
2014-06-18 14:28 ` rth at gcc dot gnu.org
2014-06-18 14:37 ` rth at gcc dot gnu.org
2014-06-18 14:39 ` rth at gcc dot gnu.org
2014-06-20  5:09 ` rth at gcc dot gnu.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).