+2014-04-23 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/60635
+ * gimplify.c (gimple_regimplify_operands): Update the
+ re-gimplifed stmt.
+
2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
Back port from the trunk, subversion id 209546.
gsi_insert_after (gsi_p, post_stmt, GSI_NEW_STMT);
pop_gimplify_context (NULL);
+
+ update_stmt (stmt);
}
/* Expand EXPR to list of gimple statements STMTS. GIMPLE_TEST_F specifies
+2014-04-23 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/60635
+ * gfortran.dg/lto/pr60635_0.f90: New testcase.
+ * gfortran.dg/lto/pr60635_1.c: Likewise.
+
2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
Back port from the trunk, subversion id 209546.
--- /dev/null
+! { dg-lto-do link }
+program test
+ use iso_fortran_env
+
+ interface
+ integer(int16) function bigendc16(x) bind(C)
+ import
+ integer(int16), intent(in) :: x
+ end function
+ end interface
+
+ integer(int16) :: x16 = 12345
+ x16 = bigendc16(x16)
+ print *,x16
+end program
+
--- /dev/null
+#include <stdint.h>
+#include <stdbool.h>
+
+static bool littleendian=true;
+
+uint16_t bigendc16(union{uint16_t * n;uint8_t* b;}x){
+
+ if (!littleendian) return *x.n;
+
+ uint16_t res = ((uint16_t)(x.b[1])<<0) |
+ ((uint16_t)(x.b[0])<<8);
+ return res;
+}
+