On Jul 24, 2015, "H.J. Lu" <hongjiu...@intel.com> wrote: > Static chain returned from get_rtl_for_parm_ssa_default_def may not > have Pmode. This patch converts static chain to Pmode if needed. > Tested on Linux/x86-64. OK for trunk?
Yeah, this looks good to me, thanks. Even the static chain parm_decl undergoes promotion through promote_decl_mode. I'd have placed the test and convert_to_mode call as an else to the if (!local), though. Ok with that change too. Thanks! > PR bootstrap/66978 > * function.c (expand_function_start): Convert static chain to > Pmode if needed. > + if (GET_MODE (local) != Pmode) > + local = convert_to_mode (Pmode, local, > + TYPE_UNSIGNED (TREE_TYPE (parm))); > + -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer