public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/48668] New: [4.6/4.7 regression] COMDAT Group signature not emitted in group
@ 2011-04-18 17:00 ro at gcc dot gnu.org
  2011-04-18 17:03 ` [Bug middle-end/48668] " ro at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ro at gcc dot gnu.org @ 2011-04-18 17:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48668

           Summary: [4.6/4.7 regression] COMDAT Group signature not
                    emitted in group
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ro@gcc.gnu.org
                CC: hubicka@gcc.gnu.org
              Host: i386-pc-solaris2.11
            Target: i386-pc-solaris2.11
             Build: i386-pc-solaris2.11


I'm currently putting the finishing touches to the COMDAT-with-as patch

  [build, c++, lto] Support COMDAT group with Sun as (PR target/40483)
  http://gcc.gnu.org/ml/gcc-patches/2010-05/msg01365.html
  http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00600.html

When I retested the patch on mainline, I found that there's a single
regression:

FAIL: g++.dg/opt/thunk2.C (test for excess errors)
WARNING: g++.dg/opt/thunk2.C compilation failed to produce executable

Excess errors:
Assembler: thunk2.C
    "/var/tmp//ccLuaW10.s", line 219 : Group Id symbol defined outside of group

This error didn't happen when I originally developed the patch based on GCC
4.5.
Sun as is right, though: the signature symbol _ZN1U3fooEi (U::foo(int)) is
defined inside a group with signature  _ZThn4_N1U3fooEi (non-virtual thunk to
U::foo(int)).  The same happens with gas, which seems to be far more lazy
accepting stuff like this.

A reghunt revealed that this regression was introduced by this patch:

2010-09-29  Jan Hubicka  <jh@suse.cz>

       * cgraphunit.c (assemble_function): Output thunks and aliases before
       the function itself.

http://gcc.gnu.org/ml/gcc-patches/2010-10/msg00354.html

I don't think that the submission contains enough justification for this, and
the result seems to be plain wrong.

I'm attaching the assembler output (with gas since the affected patch isn't
yet integrated) without and with the patch.

It seems like the easiest fix would be to just revert the patch.


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

end of thread, other threads:[~2013-04-12 16:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-18 17:00 [Bug middle-end/48668] New: [4.6/4.7 regression] COMDAT Group signature not emitted in group ro at gcc dot gnu.org
2011-04-18 17:03 ` [Bug middle-end/48668] " ro at gcc dot gnu.org
2011-04-19  9:44 ` rguenth at gcc dot gnu.org
2011-05-05 15:35 ` hubicka at gcc dot gnu.org
2011-06-12 13:11 ` rguenth at gcc dot gnu.org
2011-06-27 15:28 ` jakub at gcc dot gnu.org
2011-10-16  9:03 ` hubicka at gcc dot gnu.org
2011-10-26 17:35 ` jakub at gcc dot gnu.org
2011-10-27  9:40 ` rguenth at gcc dot gnu.org
2012-01-05 17:19 ` [Bug middle-end/48668] [4.6 " jakub at gcc dot gnu.org
2012-03-01 14:40 ` jakub at gcc dot gnu.org
2013-04-12 16:18 ` jakub 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).