From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13188 invoked by alias); 28 Jan 2014 18:40:08 -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 13175 invoked by uid 89); 28 Jan 2014 18:40:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f180.google.com Received: from mail-ob0-f180.google.com (HELO mail-ob0-f180.google.com) (209.85.214.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 28 Jan 2014 18:40:07 +0000 Received: by mail-ob0-f180.google.com with SMTP id wp4so832841obc.39 for ; Tue, 28 Jan 2014 10:40:05 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.103.178 with SMTP id fx18mr991765oeb.69.1390934405342; Tue, 28 Jan 2014 10:40:05 -0800 (PST) Received: by 10.76.105.174 with HTTP; Tue, 28 Jan 2014 10:40:05 -0800 (PST) In-Reply-To: <878uu02qbk.fsf@redhat.com> 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> <878uu02qbk.fsf@redhat.com> Date: Tue, 28 Jan 2014 18:40:00 -0000 Message-ID: Subject: Re: [PATCH] preprocessor/58580 - preprocessor goes OOM with warning for zero literals From: "H.J. Lu" To: Dodji Seketeli Cc: Markus Trippelsdorf , Jakub Jelinek , Bernd Edlinger , GCC Patches , Tom Tromey , =?ISO-8859-1?Q?Manuel_L=F3pez=2DIb=E1=F1ez?= Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg01809.txt.bz2 On Tue, Jan 28, 2014 at 5:23 AM, Dodji Seketeli wrote: > 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. > The new tests failed on Linux/x86: ERROR: c-c++-common/cpp/warning-zero-location-2.c -std=gnu++11: syntax error in target selector "4636" for " dg-error 10 "No such file or directory" { target *-*-* } 4636 " ERROR: c-c++-common/cpp/warning-zero-location-2.c -std=gnu++98: syntax error in target selector "4636" for " dg-error 10 "No such file or directory" { target *-*-* } 4636 " ERROR: c-c++-common/cpp/warning-zero-location-2.c -Wc++-compat : syntax error in target selector "4636" for " dg-error 10 "No such file or directory" { target *-*-* } 4636 " -- H.J.