public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95154] New: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C  -std=c++14 (test for excess errors)
@ 2020-05-15 14:38 schwab@linux-m68k.org
  2020-05-15 15:35 ` [Bug target/95154] " schwab@linux-m68k.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2020-05-15 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95154
           Summary: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C
                    -std=c++14 (test for excess errors)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
  Target Milestone: ---
            Target: ia64-*-*

spawn -ignore SIGHUP
/usr/local/gcc/gcc-20200515/Build/gcc/testsuite/g++3/../../xg++
-B/usr/local/gcc/gcc-20200515/Build/gcc/testsuite/g++3/../../
/usr/local/gcc/gcc-20200515/gcc/testsuite/g++.dg/abi/pure-virtual1.C
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++
-I/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/libstdc++-v3/include/ia64-suse-linux
-I/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/libstdc++-v3/include
-I/usr/local/gcc/gcc-20200515/libstdc++-v3/libsupc++
-I/usr/local/gcc/gcc-20200515/libstdc++-v3/include/backward
-I/usr/local/gcc/gcc-20200515/libstdc++-v3/testsuite/util -fmessage-length=0
-std=c++14 -pedantic-errors -Wno-long-long -fno-rtti -nodefaultlibs -lc
-L/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/./libstdc++-v3/src/.libs
-B/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/./libstdc++-v3/src/.libs
-L/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/./libstdc++-v3/src/.libs
-lm -o pure-virtual1.exe
/tmp/ccyWJZLT.o:(.data.rel.ro._ZTV1A[_ZTV1A]+0x10): undefined reference to
`__cxa_pure_virtual'
collect2: error: ld returned 1 exit status
compiler exited with status 1

The reference comes from the vtable for A, the weak declaration for
__cxa_pure_virtual is missing:

        .weak   _ZTV1A#
        .section        .data.rel.ro._ZTV1A,"awG",@progbits,_ZTV1A,comdat
        .align 8
        .type   _ZTV1A#, @object
        .size   _ZTV1A#, 32
_ZTV1A:
        data8   0
        data8   0
        data16.ua @iplt(__cxa_pure_virtual#)

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

* [Bug target/95154] [11 regression] FAIL: g++.dg/abi/pure-virtual1.C  -std=c++14 (test for excess errors)
  2020-05-15 14:38 [Bug target/95154] New: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C -std=c++14 (test for excess errors) schwab@linux-m68k.org
@ 2020-05-15 15:35 ` schwab@linux-m68k.org
  2020-05-18  5:54 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2020-05-15 15:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
The problem is that when output_constant processes a FDESC_EXPR it calls
ASM_OUTPUT_FDESC, which doesn't do weak processing (it doesn't call
assemble_external).

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

* [Bug target/95154] [11 regression] FAIL: g++.dg/abi/pure-virtual1.C  -std=c++14 (test for excess errors)
  2020-05-15 14:38 [Bug target/95154] New: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C -std=c++14 (test for excess errors) schwab@linux-m68k.org
  2020-05-15 15:35 ` [Bug target/95154] " schwab@linux-m68k.org
@ 2020-05-18  5:54 ` rguenth at gcc dot gnu.org
  2020-06-04  8:04 ` cvs-commit at gcc dot gnu.org
  2020-06-09 13:18 ` schwab@linux-m68k.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-18  5:54 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0

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

* [Bug target/95154] [11 regression] FAIL: g++.dg/abi/pure-virtual1.C  -std=c++14 (test for excess errors)
  2020-05-15 14:38 [Bug target/95154] New: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C -std=c++14 (test for excess errors) schwab@linux-m68k.org
  2020-05-15 15:35 ` [Bug target/95154] " schwab@linux-m68k.org
  2020-05-18  5:54 ` rguenth at gcc dot gnu.org
@ 2020-06-04  8:04 ` cvs-commit at gcc dot gnu.org
  2020-06-09 13:18 ` schwab@linux-m68k.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-04  8:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andreas Schwab <schwab@gcc.gnu.org>:

https://gcc.gnu.org/g:9b4e77e807e0099c3cfbf9c5b0c9e4154b9cb7a0

commit r11-896-g9b4e77e807e0099c3cfbf9c5b0c9e4154b9cb7a0
Author: Andreas Schwab <schwab@suse.de>
Date:   Fri May 15 17:38:30 2020 +0200

    Fix missing assemble_external in ASM_OUTPUT_FDESC

    When TARGET_VTABLE_USES_DESCRIPTORS is defined then function pointers in
    the vtable are output by ASM_OUTPUT_FDESC.  The only current user of
    this is ia64, but its implementation of ASM_OUTPUT_FDESC lacks a call to
    assemble_external.  Thus if there is no other reference to the function
    the weak declaration for it will be missing.

            PR target/95154
            * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Call assemble_external.

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

* [Bug target/95154] [11 regression] FAIL: g++.dg/abi/pure-virtual1.C  -std=c++14 (test for excess errors)
  2020-05-15 14:38 [Bug target/95154] New: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C -std=c++14 (test for excess errors) schwab@linux-m68k.org
                   ` (2 preceding siblings ...)
  2020-06-04  8:04 ` cvs-commit at gcc dot gnu.org
@ 2020-06-09 13:18 ` schwab@linux-m68k.org
  3 siblings, 0 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2020-06-09 13:18 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|ia64-*-*,*-*-darwin*        |ia64-*-*
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
Fixed.

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

end of thread, other threads:[~2020-06-09 13:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15 14:38 [Bug target/95154] New: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C -std=c++14 (test for excess errors) schwab@linux-m68k.org
2020-05-15 15:35 ` [Bug target/95154] " schwab@linux-m68k.org
2020-05-18  5:54 ` rguenth at gcc dot gnu.org
2020-06-04  8:04 ` cvs-commit at gcc dot gnu.org
2020-06-09 13:18 ` schwab@linux-m68k.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).