This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH to add -Wabi=n


Jason Merrill <jason@redhat.com> writes:

> Now that -fabi-version defaults to 0, -Wabi isn't very useful.  But for
> people interested in compatibility with earlier versions, this patch allows
> you to say -Wabi=2 to get any relevant warnings.  This patch also adjusts
> the compatibility aliases to default to backward compatibility with
> -fabi-version=2.

This patch

2014-06-12  Jason Merrill  <jason@redhat.com>

	* toplev.c (process_options): Reject -fabi-version=1.

which was committed as part of the above, but not posted AFAICS,
introduced a testsuite failure on i386-pc-solaris2.1? and
x86_64-unknown-linux-gnu with -m32:

FAIL: g++.dg/abi/layout4.C -std=gnu++98 (test for excess errors)
WARNING: g++.dg/abi/layout4.C -std=gnu++98 compilation failed to produce executable
FAIL: g++.dg/abi/layout4.C -std=gnu++11 (test for excess errors)
WARNING: g++.dg/abi/layout4.C -std=gnu++11 compilation failed to produce executable
FAIL: g++.dg/abi/layout4.C -std=gnu++1y (test for excess errors)
WARNING: g++.dg/abi/layout4.C -std=gnu++1y compilation failed to produce executable

Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/abi/layout4.C:1:0: error: '-fabi-version=1' is no longer supported

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]