re PR fortran/32938 (ICE in emit_move_insn with -fdefault-integer-8)
PR fortran/32938 * trans-stmt.c (gfc_trans_return): Convert to correct type. * gfortran.dg/altreturn_6.f90: New test. From-SVN: r127106
This commit is contained in:
parent
14b1261a5b
commit
7d520b9b12
@ -1,3 +1,8 @@
|
||||
2007-07-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||
|
||||
PR fortran/32938
|
||||
* trans-stmt.c (gfc_trans_return): Convert to correct type.
|
||||
|
||||
2007-07-31 Steven G. Kargl <kargl@gcc.gnu.org>
|
||||
|
||||
PR fortran/32942
|
||||
|
@ -447,7 +447,8 @@ gfc_trans_return (gfc_code * code ATTRIBUTE_UNUSED)
|
||||
|
||||
gfc_conv_expr (&se, code->expr);
|
||||
|
||||
tmp = build2 (MODIFY_EXPR, TREE_TYPE (result), result, se.expr);
|
||||
tmp = build2 (MODIFY_EXPR, TREE_TYPE (result), result,
|
||||
fold_convert (TREE_TYPE (result), se.expr));
|
||||
gfc_add_expr_to_block (&se.pre, tmp);
|
||||
|
||||
tmp = build1_v (GOTO_EXPR, gfc_get_return_label ());
|
||||
|
@ -1,3 +1,8 @@
|
||||
2007-07-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||
|
||||
PR fortran/32938
|
||||
* gfortran.dg/altreturn_6.f90: New test.
|
||||
|
||||
2007-07-31 Steven G. Kargl <kargl@gcc.gnu.org>
|
||||
|
||||
PR fortran/32942
|
||||
|
5
gcc/testsuite/gfortran.dg/altreturn_6.f90
Normal file
5
gcc/testsuite/gfortran.dg/altreturn_6.f90
Normal file
@ -0,0 +1,5 @@
|
||||
! PR 32938
|
||||
subroutine r (*)
|
||||
integer(kind=8) :: i
|
||||
return i
|
||||
end
|
Loading…
Reference in New Issue
Block a user