* [Patch, Fortran, committed] PR57556 - Fix ordering issue in gfc_build_final_call
@ 2013-06-07 13:33 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2013-06-07 13:33 UTC (permalink / raw)
To: gcc patches, gfortran
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
It helps to initialize a block before calling "gfc_add_block_to_block
(&block" ...
Committed as Rev. 199812 after building and regtesting on x86-64-gnu-linux.
Tobias
[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 1163 bytes --]
Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog (Revision 199811)
+++ gcc/fortran/ChangeLog (Arbeitskopie)
@@ -1,3 +1,8 @@
+2013-06-07 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/57556
+ * trans.c (gfc_build_final_call): Init block before use.
+
2013-06-06 Tobias Burnus <burnus@net-b.de>
PR fortran/57542
Index: gcc/fortran/trans.c
===================================================================
--- gcc/fortran/trans.c (Revision 199811)
+++ gcc/fortran/trans.c (Arbeitskopie)
@@ -852,6 +852,7 @@ gfc_build_final_call (gfc_typespec ts, gfc_expr *f
gcc_assert (final_wrapper->expr_type == EXPR_VARIABLE);
gcc_assert (var);
+ gfc_start_block (&block);
gfc_init_se (&se, NULL);
gfc_conv_expr (&se, final_wrapper);
final_fndecl = se.expr;
@@ -936,7 +937,6 @@ gfc_build_final_call (gfc_typespec ts, gfc_expr *f
if (!POINTER_TYPE_P (TREE_TYPE (array)))
array = gfc_build_addr_expr (NULL, array);
- gfc_start_block (&block);
gfc_add_block_to_block (&block, &se.pre);
tmp = build_call_expr_loc (input_location,
final_fndecl, 3, array,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-07 13:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-07 13:33 [Patch, Fortran, committed] PR57556 - Fix ordering issue in gfc_build_final_call Tobias Burnus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).