Re: [PATCH] Avoid creation if invalid BIT_FIELD_REFs (PR tree-optimization/82549)

2017-10-16 Thread Richard Biener
On October 16, 2017 8:46:12 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >The tree-cfg.c verification requires that BIT_FIELD_REF bitpos fits >into >uhwi, but fold-const.c happily creates BIT_FIELD_REFs with negative >bitpos >(on invalid source). > >The following patch just punts optimization instea

[PATCH] Avoid creation if invalid BIT_FIELD_REFs (PR tree-optimization/82549)

2017-10-16 Thread Jakub Jelinek
Hi! The tree-cfg.c verification requires that BIT_FIELD_REF bitpos fits into uhwi, but fold-const.c happily creates BIT_FIELD_REFs with negative bitpos (on invalid source). The following patch just punts optimization instead of creating BIT_FIELD_REF with negative bitpos and also adds some format