Re: [PATCH] Fix UB in hash-map.h

2017-11-27 Thread Richard Biener
On Sun, Nov 26, 2017 at 10:05 AM, Markus Trippelsdorf wrote: > bootstrap-ubsan shows: > gcc/hash-map.h:277:19: runtime error: member access within null pointer of > type 'struct hash_map' > > Fix the issue by returning early. > bootstrap-ubsan on X86_64 and ppc64le. Tested on ppc64le. > > OK fo

[PATCH] Fix UB in hash-map.h

2017-11-26 Thread Markus Trippelsdorf
bootstrap-ubsan shows: gcc/hash-map.h:277:19: runtime error: member access within null pointer of type 'struct hash_map' Fix the issue by returning early. bootstrap-ubsan on X86_64 and ppc64le. Tested on ppc64le. OK for trunk? gcc/ * hash-map.h (gt_cleare_cache): Avoid UB. diff --git