This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/60436] [4.8/4.9/5 Regression] C preprocessor segfaults on assembly file
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Nov 2014 12:29:23 +0000
- Subject: [Bug preprocessor/60436] [4.8/4.9/5 Regression] C preprocessor segfaults on assembly file
- Auto-submitted: auto-generated
- References: <bug-60436-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60436
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jakub at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 34089
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34089&action=edit
gcc5-pr60436.patch
Untested fix. For add_map we have code to handle this. But if add_map is
false too many times, we can still overflow. This patch forces add_map to true
if highest is too high.