This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Set FOR_CALL parameter in the call to promote_mode for VMS


While compiling the GNAT RTL for VMS a gcc_assert is triggered in expand_expr_real_1 at line 7435

=> gcc_assert (GET_MODE (decl_rtl) == pmode);

Eric Botcazou's analysis of the bug:
-------------------------
It is given SImode in expand_one_register_var as computed by

  enum machine_mode reg_mode
    = promote_mode (type, DECL_MODE (decl), &unsignedp, 0);

while it is given DImode in expand_expr_real_1 as computed by

  pmode = promote_mode (type, DECL_MODE (exp), &unsignedp,
			(TREE_CODE (exp) == RESULT_DECL
			 || TREE_CODE (exp) == PARM_DECL) ? 1 : 0);

because PROMOTE_MODE != PROMOTE_FUNCTION_MODE.
---------------------------

Patch previously submitted.
OK to commit?
--Douglas Rupp
AdaCore


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]