diff mbox series

[committed] Fortran's dump-parse-tree.c: Use '==' not '=' for '.eq.'.

Message ID 992cedd0-c56f-5d55-eec4-52a61fce17f4@codesourcery.com
State New
Headers show
Series [committed] Fortran's dump-parse-tree.c: Use '==' not '=' for '.eq.'. | expand

Commit Message

Tobias Burnus Nov. 30, 2020, 2:24 p.m. UTC
I was a bit confused by the '=' (assignment?) in the dump; hence,
in line with /=, >= etc. it now is '==' for '==' or '.eq.'.

Committed as r11-5570-g2610c786f7496c5006bb68d6801ef7450bd231a9

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
diff mbox series

Patch

commit 2610c786f7496c5006bb68d6801ef7450bd231a9
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Mon Nov 30 15:19:39 2020 +0100

    Fortran's dump-parse-tree.c: Use '==' not '=' for '.eq.'.
    
    gcc/fortran/
            * dump-parse-tree.c (show_expr): Use '==' not '=' for '.eq.'.

diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index cab0fb2979f..1012b11fb98 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -647,9 +647,9 @@  show_expr (gfc_expr *p)
 	  fputs ("NEQV ", dumpfile);
 	  break;
 	case INTRINSIC_EQ:
 	case INTRINSIC_EQ_OS:
-	  fputs ("= ", dumpfile);
+	  fputs ("== ", dumpfile);
 	  break;
 	case INTRINSIC_NE:
 	case INTRINSIC_NE_OS:
 	  fputs ("/= ", dumpfile);