+2018-12-17 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
+
+ Backport from trunk
+ 2018-12-17 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
+
+ PR rtl-optimization/88253
+ * combine.c (combine_simplify_rtx): Test for side-effects before
+ substituting by zero.
+
2018-12-15 Segher Boessenkool <segher@kernel.crashing.org>
Backport from trunk
&& GET_MODE_PRECISION (mode) < GET_MODE_PRECISION (op0_mode)
&& subreg_lowpart_offset (mode, op0_mode) == SUBREG_BYTE (x)
&& HWI_COMPUTABLE_MODE_P (op0_mode)
- && (nonzero_bits (SUBREG_REG (x), op0_mode)
- & GET_MODE_MASK (mode)) == 0)
+ && ((nonzero_bits (SUBREG_REG (x), op0_mode)
+ & GET_MODE_MASK (mode)) == 0)
+ && !side_effects_p (SUBREG_REG (x)))
return CONST0_RTX (mode);
}
+2018-12-17 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
+
+ Backport from trunk
+ 2018-12-17 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
+
+ PR rtl-optimization/88253
+ * gcc.target/avr/pr88253.c: New test.
+
2018-12-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88138
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-Os -w" } */
+
+static int aRead() __attribute__((always_inline));
+static int aRead() {
+ unsigned char h,l;
+ l = (*(volatile unsigned char *)(0x78)) ;
+ h = (*(volatile unsigned char *)(0x79)) ;
+ return (h<<8) | l;
+}
+
+int main() {
+ volatile unsigned char x;
+ x = aRead()^42;
+ }
+ /* { dg-final { scan-assembler "lds r\\d+,121" } } */