+2014-12-09 Uros Bizjak <ubizjak@gmail.com>
+
+ PR bootstrap/64213
+ Revert:
+ 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR rtl-optimization/64037
+ * combine.c (setup_incoming_promotions): Pass the argument
+ before any promotions happen to promote_function_mode.
+
2014-12-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/64193
uns3 = TYPE_UNSIGNED (DECL_ARG_TYPE (arg));
/* The mode and signedness of the argument as it is actually passed,
- see assign_parm_setup_reg in function.c. */
- mode3 = promote_function_mode (TREE_TYPE (arg), mode1, &uns1,
+ after any TARGET_PROMOTE_FUNCTION_ARGS-driven ABI promotions. */
+ mode3 = promote_function_mode (DECL_ARG_TYPE (arg), mode2, &uns3,
TREE_TYPE (cfun->decl), 0);
/* The mode of the register in which the argument is being passed. */
+2014-12-09 Uros Bizjak <ubizjak@gmail.com>
+
+ PR bootstrap/64213
+ Revert:
+ 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR rtl-optimization/64037
+ * g++.dg/pr64037.C: New test.
+
2014-12-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/64193
+++ /dev/null
-// { dg-do run { target i?86-*-* x86_64-*-* } }
-// { dg-options "-std=c++11 -Os" }
-
-enum class X : unsigned char {
- V = 2,
-};
-
-static void
-__attribute__((noinline,noclone))
-foo(unsigned &out, unsigned a, X b)
-{
- out = static_cast<unsigned>(b);
-}
-
-int main()
-{
- unsigned deadbeef = 0xDEADBEEF;
- asm volatile ("" : "+d" (deadbeef), "+c" (deadbeef));
-
- unsigned out;
- foo(out, 2, X::V);
-
- if (out != 2)
- __builtin_abort ();
-
- return 0;
-}