* [Fortran, Patch] Cosmetics
@ 2014-12-28 15:04 Andre Vehreschild
2014-12-28 16:46 ` FX
0 siblings, 1 reply; 4+ messages in thread
From: Andre Vehreschild @ 2014-12-28 15:04 UTC (permalink / raw)
To: GCC-Fortran-ML, GCC-Patches-ML
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
Hi all,
during gfortran hacking I found a displaced comment and an indentation mistake.
Just to make sure those don't get mangled in my other patches, I submit them
here.
- Andre
gcc/fortran/ChangeLog:
2014-12-28 Andre Vehreschild <vehre@gmx.de>
* trans-decl.c (gfc_finish_var_decl): Fixed displaced comment.
* trans-stmt.c (gfc_trans_allocate): Fixed indentation.
--
Andre Vehreschild * Kreuzherrenstr. 8 * 52062 Aachen
Tel.: +49 241 9291018 * Email: vehre@gmx.de
[-- Attachment #2: cosmetics_1.patch --]
[-- Type: text/x-patch, Size: 1573 bytes --]
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index 494d8aa..04568c8 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -550,17 +550,18 @@ static void
gfc_finish_var_decl (tree decl, gfc_symbol * sym)
{
tree new_type;
- /* TREE_ADDRESSABLE means the address of this variable is actually needed.
- This is the equivalent of the TARGET variables.
- We also need to set this if the variable is passed by reference in a
- CALL statement. */
/* Set DECL_VALUE_EXPR for Cray Pointees. */
if (sym->attr.cray_pointee)
gfc_finish_cray_pointee (decl, sym);
+ /* TREE_ADDRESSABLE means the address of this variable is actually needed.
+ This is the equivalent of the TARGET variables.
+ We also need to set this if the variable is passed by reference in a
+ CALL statement. */
if (sym->attr.target)
TREE_ADDRESSABLE (decl) = 1;
+
/* If it wasn't used we wouldn't be getting it. */
TREE_USED (decl) = 1;
diff --git a/gcc/fortran/trans-stmt.c b/gcc/fortran/trans-stmt.c
index 47edd32..24e47f2 100644
--- a/gcc/fortran/trans-stmt.c
+++ b/gcc/fortran/trans-stmt.c
@@ -5055,7 +5055,7 @@ gfc_trans_allocate (gfc_code * code)
if (unlimited_char)
tmp = TREE_TYPE (gfc_typenode_for_spec (&code->expr3->ts));
else
- tmp = TREE_TYPE (gfc_typenode_for_spec (&al->expr->ts));
+ tmp = TREE_TYPE (gfc_typenode_for_spec (&al->expr->ts));
tmp = TYPE_SIZE_UNIT (tmp);
memsz = fold_build2_loc (input_location, MULT_EXPR,
TREE_TYPE (tmp), tmp,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fortran, Patch] Cosmetics
2014-12-28 15:04 [Fortran, Patch] Cosmetics Andre Vehreschild
@ 2014-12-28 16:46 ` FX
2015-01-13 13:11 ` Andre Vehreschild
0 siblings, 1 reply; 4+ messages in thread
From: FX @ 2014-12-28 16:46 UTC (permalink / raw)
To: Andre Vehreschild; +Cc: GCC-Fortran-ML, GCC-Patches-ML
> 2014-12-28 Andre Vehreschild <vehre@gmx.de>
>
> * trans-decl.c (gfc_finish_var_decl): Fixed displaced comment.
> * trans-stmt.c (gfc_trans_allocate): Fixed indentation.
OK to commit. Thanks!
FX
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fortran, Patch] Cosmetics
2014-12-28 16:46 ` FX
@ 2015-01-13 13:11 ` Andre Vehreschild
2015-01-23 10:39 ` [Fortran, Patch, comitted] Cosmetics Andre Vehreschild
0 siblings, 1 reply; 4+ messages in thread
From: Andre Vehreschild @ 2015-01-13 13:11 UTC (permalink / raw)
To: FX; +Cc: GCC-Fortran-ML, GCC-Patches-ML
Hi,
is this patch commited now? I don't have the rights to do so myself.
- Andre
On Sun, 28 Dec 2014 17:17:50 +0100
FX <fxcoudert@gmail.com> wrote:
>
> > 2014-12-28 Andre Vehreschild <vehre@gmx.de>
> >
> > * trans-decl.c (gfc_finish_var_decl): Fixed displaced comment.
> > * trans-stmt.c (gfc_trans_allocate): Fixed indentation.
>
> OK to commit. Thanks!
>
> FX
--
Andre Vehreschild * Kreuzherrenstr. 8 * 52062 Aachen
Tel.: +49 241 9291018 * Email: vehre@gmx.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fortran, Patch, comitted] Cosmetics
2015-01-13 13:11 ` Andre Vehreschild
@ 2015-01-23 10:39 ` Andre Vehreschild
0 siblings, 0 replies; 4+ messages in thread
From: Andre Vehreschild @ 2015-01-23 10:39 UTC (permalink / raw)
To: FX; +Cc: GCC-Fortran-ML, GCC-Patches-ML
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
Hi all,
comitted as r220032.
Regards,
Andre
On Tue, 13 Jan 2015 14:04:50 +0100
Andre Vehreschild <vehre@gmx.de> wrote:
> Hi,
>
> is this patch commited now? I don't have the rights to do so myself.
>
> - Andre
>
> On Sun, 28 Dec 2014 17:17:50 +0100
> FX <fxcoudert@gmail.com> wrote:
>
> >
> > > 2014-12-28 Andre Vehreschild <vehre@gmx.de>
> > >
> > > * trans-decl.c (gfc_finish_var_decl): Fixed displaced comment.
> > > * trans-stmt.c (gfc_trans_allocate): Fixed indentation.
> >
> > OK to commit. Thanks!
> >
> > FX
>
>
--
Andre Vehreschild * Kreuzherrenstr. 8 * 52062 Aachen
Tel.: +49 241 9291018 * Email: vehre@gmx.de
[-- Attachment #2: cosmetics_1.patch --]
[-- Type: text/x-patch, Size: 2059 bytes --]
Index: gcc/fortran/trans-decl.c
===================================================================
--- gcc/fortran/trans-decl.c (Revision 220031)
+++ gcc/fortran/trans-decl.c (Arbeitskopie)
@@ -558,17 +558,18 @@
gfc_finish_var_decl (tree decl, gfc_symbol * sym)
{
tree new_type;
- /* TREE_ADDRESSABLE means the address of this variable is actually needed.
- This is the equivalent of the TARGET variables.
- We also need to set this if the variable is passed by reference in a
- CALL statement. */
/* Set DECL_VALUE_EXPR for Cray Pointees. */
if (sym->attr.cray_pointee)
gfc_finish_cray_pointee (decl, sym);
+ /* TREE_ADDRESSABLE means the address of this variable is actually needed.
+ This is the equivalent of the TARGET variables.
+ We also need to set this if the variable is passed by reference in a
+ CALL statement. */
if (sym->attr.target)
TREE_ADDRESSABLE (decl) = 1;
+
/* If it wasn't used we wouldn't be getting it. */
TREE_USED (decl) = 1;
Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog (Revision 220031)
+++ gcc/fortran/ChangeLog (Arbeitskopie)
@@ -1,3 +1,9 @@
+
+2015-01-23 Andre Vehreschild <vehre@gmx.de>
+
+ * trans-decl.c (gfc_finish_var_decl): Fixed moved comment.
+ * trans-stmt.c (gfc_trans_allocate): Fixed indentation.
+
2015-01-23 Jakub Jelinek <jakub@redhat.com>
* gfc-diagnostic.def (DK_ICE_NOBT): New kind.
Index: gcc/fortran/trans-stmt.c
===================================================================
--- gcc/fortran/trans-stmt.c (Revision 220031)
+++ gcc/fortran/trans-stmt.c (Arbeitskopie)
@@ -5150,7 +5150,7 @@
if (unlimited_char)
tmp = TREE_TYPE (gfc_typenode_for_spec (&code->expr3->ts));
else
- tmp = TREE_TYPE (gfc_typenode_for_spec (&al->expr->ts));
+ tmp = TREE_TYPE (gfc_typenode_for_spec (&al->expr->ts));
tmp = TYPE_SIZE_UNIT (tmp);
memsz = fold_build2_loc (input_location, MULT_EXPR,
TREE_TYPE (tmp), tmp,
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-23 10:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-28 15:04 [Fortran, Patch] Cosmetics Andre Vehreschild
2014-12-28 16:46 ` FX
2015-01-13 13:11 ` Andre Vehreschild
2015-01-23 10:39 ` [Fortran, Patch, comitted] Cosmetics Andre Vehreschild
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).