This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/1692: -fvtable-gc flag is only meaningful on ELF targets
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1692: -fvtable-gc flag is only meaningful on ELF targets
- From: Richard Earnshaw <rearnsha at cambridge dot arm dot com>
- Date: Thu, 18 Jan 2001 11:06:42 GMT
- Reply-To: richard dot earnshaw at arm dot com
>Number: 1692
>Category: c++
>Synopsis: -fvtable-gc flag is only meaningful on ELF targets
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 18 03:16:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Richard Earnshaw
>Release: 2.97 20010116 (experimental)
>Organization:
ARM
>Environment:
System: NetBSD shark1 1.5H NetBSD 1.5H (SHARK) #57: Mon Oct 30 17:12:12 GMT 2000 rearnsha@shark1:/usr/src/sys/arch/arm32/compile/SHARK arm32
host: arm-unknown-netbsd
build: arm-unknown-netbsd
target: arm-unknown-netbsd
configured with: /home/rearnsha/gnusrc/egcs/configure --with-gcc-version-trigger=/home/rearnsha/gnusrc/egcs/gcc/version.c --host=arm-netbsd --prefix=/work/rearnsha/gnu/install --disable-checking
>Description:
The flag -fvtable-gc in the c++ front-end causes the compiler to emit
.vtable_inherit and .vtable_entry directives into the assembler file.
However, these directives are
1) Specific to gas
2) Specific only to ELF targets
This causes testsuite/g++.dg/vtgc1.C to fail on any non-elf platform
>How-To-Repeat:
Run the aforementioned test on any non-elf platform.
>Fix:
1) We should disable the above test if the target is not known to
use ELF format; we should probably also XFAIL if we can't guarantee
use of GAS as the assembler.
2) We should diagnose use of -fvtable-gc in circumstances where we
can't assume that we are using gas on an ELF platform, since at
preseent we generate confusing diagnostics from the assembler.
See g++.other/crash18.C which filters out some (but not all) of the
failing machines.
>Release-Note:
>Audit-Trail:
>Unformatted: