Bug 86645

Summary: [9 Regression] UBSAN error: tree-cfg.c:7874:26: runtime error: load of value 4293224825, which is not a valid value for type 'dump_flag'
Product: gcc Reporter: Martin Liška <marxin>
Component: middle-endAssignee: Martin Liška <marxin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 9.0   
Target Milestone: 9.0   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2018-07-23 00:00:00
Bug Depends on:    
Bug Blocks: 63426    

Description Martin Liška 2018-07-23 13:01:10 UTC
Seen for any test-case.
Comment 1 Martin Liška 2018-07-23 13:02:25 UTC
I've got patch for it.
Comment 2 Martin Liška 2018-07-25 08:04:48 UTC
Author: marxin
Date: Wed Jul 25 08:04:15 2018
New Revision: 262960

URL: https://gcc.gnu.org/viewcvs?rev=262960&root=gcc&view=rev
Log:
Limit dump_flag enum values range (PR middle-end/86645).

2018-07-25  Martin Liska  <mliska@suse.cz>

        PR middle-end/86645
	* dumpfile.c: And excluded values with TDF_ALL_VALUES.
	* dumpfile.h (enum dump_flag): Defince TDF_ALL_VALUES.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dumpfile.c
    trunk/gcc/dumpfile.h
Comment 3 Martin Liška 2018-07-25 08:06:32 UTC
Fixed on trunk.