This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add testcase for PR 63894
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Markus Trippelsdorf <markus at trippelsdorf dot de>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 17 Nov 2014 05:39:53 -0800
- Subject: Re: [PATCH] Add testcase for PR 63894
- Authentication-results: sourceware.org; auth=none
- References: <20141117092825 dot GB344 at x4>
On Mon, Nov 17, 2014 at 1:28 AM, Markus Trippelsdorf
<markus@trippelsdorf.de> wrote:
> PR 63894 was fixed by r217634, so I'm just adding the testcase.
>
> Tested on powerpc64-unknown-linux-gnu.
> Commited.
>
> 2014-11-17 Markus Trippelsdorf <markus@trippelsdorf.de>
>
> PR ipa/63894
> * g++.dg/ipa/pr63894.C: New test.
>
> diff --git a/gcc/testsuite/g++.dg/ipa/pr63894.C b/gcc/testsuite/g++.dg/ipa/pr63894.C
> new file mode 100644
> index 000000000000..d0ba96bc5a38
> --- /dev/null
> +++ b/gcc/testsuite/g++.dg/ipa/pr63894.C
> @@ -0,0 +1,46 @@
> +/* { dg-do compile } */
> +/* { dg-options "-O3" } */
> +
> +struct A
> +{
> + void *operator new(unsigned long, int);
This failed on ILP32 targets. I checked in this patch to fix it:
Index: ChangeLog
===================================================================
--- ChangeLog (revision 217653)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2014-11-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ * g++.dg/ipa/pr63894.C (new): Replace unsigned long with
+ __SIZE_TYPE__.
+
2014-11-17 Richard Biener <rguenther@suse.de>
PR middle-end/63898
Index: g++.dg/ipa/pr63894.C
===================================================================
--- g++.dg/ipa/pr63894.C (revision 217653)
+++ g++.dg/ipa/pr63894.C (working copy)
@@ -3,7 +3,7 @@
struct A
{
- void *operator new(unsigned long, int);
+ void *operator new(__SIZE_TYPE__, int);
};
class C
{
--
H.J.