From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24544 invoked by alias); 27 Jan 2014 21:26:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24481 invoked by uid 48); 27 Jan 2014 21:26:47 -0000 From: "pthaugen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/58580] [4.8 Regression] preprocessor goes OOM with warning for zero literals Date: Mon, 27 Jan 2014 21:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pthaugen at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg02821.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58580 Pat Haugen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pthaugen at gcc dot gnu.org --- Comment #11 from Pat Haugen --- CPU2000 benchmark 253.perlbmk started failing to build for me starting with revision 206957. Reduced down to following example. [pthaugen@igoo 00000001]$ cat junk.c # define HAS_FGETPOS [pthaugen@igoo 00000001]$ /home/pthaugen/install/gcc/gcc_hunt/bin/gcc -c junk.c -DHAS_FGETPOS junk.c:1:0: warning: "HAS_FGETPOS" redefined [enabled by default] # define HAS_FGETPOS ^ :0:0: note: this is the location of the previous definition junk.c:1:0: internal compiler error: Segmentation fault # define HAS_FGETPOS ^ 0x10667507 crash_signal /home/pthaugen/src/gcc/gcc_hunt/gcc/gcc/toplev.c:337 0x10cab5b7 add_file_to_cache_tab /home/pthaugen/src/gcc/gcc_hunt/gcc/gcc/input.c:296 0x10cab5b7 lookup_or_add_file_to_cache_tab /home/pthaugen/src/gcc/gcc_hunt/gcc/gcc/input.c:330 0x10cab5b7 location_get_source_line(expanded_location, int*) /home/pthaugen/src/gcc/gcc_hunt/gcc/gcc/input.c:704 0x10ca5167 diagnostic_show_locus(diagnostic_context*, diagnostic_info const*) /home/pthaugen/src/gcc/gcc_hunt/gcc/gcc/diagnostic.c:304 0x10ca580b diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) /home/pthaugen/src/gcc/gcc_hunt/gcc/gcc/diagnostic.c:800 0x10156397 c_cpp_error(cpp_reader*, int, int, unsigned int, unsigned int, char const*, char**) /home/pthaugen/src/gcc/gcc_hunt/gcc/gcc/c-family/c-common.c:9638 0x10cb85af cpp_diagnostic_with_line /home/pthaugen/src/gcc/gcc_hunt/gcc/libcpp/errors.c:145 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.