From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11336 invoked by alias); 28 Jan 2014 13:23:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 11327 invoked by uid 89); 28 Jan 2014 13:23:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Jan 2014 13:23:15 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0SDNEbL002787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 Jan 2014 08:23:14 -0500 Received: from localhost (ovpn-116-72.ams2.redhat.com [10.36.116.72]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0SDNCJZ006582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Jan 2014 08:23:13 -0500 Received: by localhost (Postfix, from userid 1000) id 9887D1632F2; Tue, 28 Jan 2014 14:23:11 +0100 (CET) From: Dodji Seketeli To: Markus Trippelsdorf Cc: Jakub Jelinek , Bernd Edlinger , GCC Patches , Tom Tromey , Manuel =?utf-8?B?TMOzcGV6LUliw6HDsWV6?= Subject: Re: [PATCH] preprocessor/58580 - preprocessor goes OOM with warning for zero literals References: <878uwt63e2.fsf@redhat.com> <20131113081610.GH27813@tucnak.zalov.cz> <87zjp7t73c.fsf@redhat.com> <87vbxcig8t.fsf@redhat.com> <20140124150532.GB396@x4> <87iot9qtff.fsf@redhat.com> <20140124154419.GQ892@tucnak.redhat.com> <878uu5qs3q.fsf@redhat.com> <20140124230239.GH396@x4> <20140124232038.GI396@x4> <87d2jc2qgy.fsf@redhat.com> X-URL: http://www.redhat.com Date: Tue, 28 Jan 2014 13:23:00 -0000 In-Reply-To: <87d2jc2qgy.fsf@redhat.com> (Dodji Seketeli's message of "Tue, 28 Jan 2014 14:19:57 +0100") Message-ID: <878uu02qbk.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-01/txt/msg01780.txt.bz2 Dodji Seketeli writes: > Here is the patch I am committing right now. > > gcc/ChangeLog > > * input.c (location_get_source_line): Bail out on when line number > is zero, and test the return value of > lookup_or_add_file_to_cache_tab. > > gcc/testsuite/ChangeLog > > * c-c++-common/cpp/warning-zero-location.c: New test. > * c-c++-common/cpp/warning-zero-location-2.c: Likewise. I forgot to say that it passed bootstrap & test on x86_64-unknown-linux-gnu against trunk. Thanks. -- Dodji