From patchwork Fri May 27 18:41:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 97733 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 58674B6F99 for ; Sat, 28 May 2011 04:42:16 +1000 (EST) Received: (qmail 2540 invoked by alias); 27 May 2011 18:42:09 -0000 Received: (qmail 2522 invoked by uid 22791); 27 May 2011 18:42:07 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 May 2011 18:41:48 +0000 Received: from hpaq14.eem.corp.google.com (hpaq14.eem.corp.google.com [172.25.149.14]) by smtp-out.google.com with ESMTP id p4RIfkMc013375; Fri, 27 May 2011 11:41:46 -0700 Received: from topo.tor.corp.google.com (topo.tor.corp.google.com [172.29.41.2]) by hpaq14.eem.corp.google.com with ESMTP id p4RIfiVY018837; Fri, 27 May 2011 11:41:45 -0700 Received: by topo.tor.corp.google.com (Postfix, from userid 54752) id 2A7A31DA1CA; Fri, 27 May 2011 14:41:44 -0400 (EDT) To: reply@codereview.appspotmail.com, crowl@google.com, gcc-patches@gcc.gnu.org Subject: [pph] Add testcase for shared streamed data (issue4532094) Message-Id: <20110527184144.2A7A31DA1CA@topo.tor.corp.google.com> Date: Fri, 27 May 2011 14:41:44 -0400 (EDT) From: dnovillo@google.com (Diego Novillo) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This is the test I was referring to in http://gcc.gnu.org/ml/gcc-patches/2011-05/msg02184.html The test, taken from the C testsuite, creates hundreds of thousands of shared bindings. Without sharing support, the streamer was trying to instantiate new objects, and ICEing eventually when the stack was blown. I have several other C test cases that are currently causing problem (or used to be a problem). I'll keep adding some representative tests as I fix them. Diego. * g++.dg/pph/c1limits-externalid.cc: New. * g++.dg/pph/c1limits-externalid.h: New. --- This patch is available for review at http://codereview.appspot.com/4532094 diff --git a/gcc/testsuite/g++.dg/pph/c1limits-externalid.cc b/gcc/testsuite/g++.dg/pph/c1limits-externalid.cc new file mode 100644 index 0000000..8b5039c --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c1limits-externalid.cc @@ -0,0 +1 @@ +#include "c1limits-externalid.h" diff --git a/gcc/testsuite/g++.dg/pph/c1limits-externalid.h b/gcc/testsuite/g++.dg/pph/c1limits-externalid.h new file mode 100644 index 0000000..fbfa767 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c1limits-externalid.h @@ -0,0 +1,18 @@ +#ifndef __PPH_GUARD_H +#define __PPH_GUARD_H +#define LIM1(x) x##0; x##1; x##2; x##3; x##4; x##5; x##6; x##7; x##8; x##9; +#define LIM2(x) LIM1(x##0) LIM1(x##1) LIM1(x##2) LIM1(x##3) LIM1(x##4) \ + LIM1(x##5) LIM1(x##6) LIM1(x##7) LIM1(x##8) LIM1(x##9) +#define LIM3(x) LIM2(x##0) LIM2(x##1) LIM2(x##2) LIM2(x##3) LIM2(x##4) \ + LIM2(x##5) LIM2(x##6) LIM2(x##7) LIM2(x##8) LIM2(x##9) +#define LIM4(x) LIM3(x##0) LIM3(x##1) LIM3(x##2) LIM3(x##3) LIM3(x##4) \ + LIM3(x##5) LIM3(x##6) LIM3(x##7) LIM3(x##8) LIM3(x##9) +#define LIM5(x) LIM4(x##0) LIM4(x##1) LIM4(x##2) LIM4(x##3) LIM4(x##4) \ + LIM4(x##5) LIM4(x##6) LIM4(x##7) LIM4(x##8) LIM4(x##9) +#define LIM6(x) LIM5(x##0) LIM5(x##1) LIM5(x##2) LIM5(x##3) LIM5(x##4) \ + LIM5(x##5) LIM5(x##6) LIM5(x##7) LIM5(x##8) LIM5(x##9) +#define LIM7(x) LIM6(x##0) LIM6(x##1) LIM6(x##2) LIM6(x##3) LIM6(x##4) \ + LIM6(x##5) LIM6(x##6) LIM6(x##7) LIM6(x##8) LIM6(x##9) + +LIM5(char t) +#endif