@@ -62,6 +62,14 @@ void acc_add_global(void); /* FIXME - does not belong here */
6262
6363static LOGICAL process_input (char * argv0 , LOGICAL * need_cuda_constructor );
6464
65+ /** Product name in debug output
66+ */
67+ #ifdef FLANG_VENDOR
68+ #define DNAME FLANG_VENDOR "F90"
69+ #else
70+ #define DNAME "F90"
71+ #endif
72+
6573#if DEBUG & sun
6674#ifndef _ERRNO_H
6775extern int errno ;
@@ -120,7 +128,11 @@ static int dodebug = 0;
120128#define DEBUGQQ 0
121129#endif
122130
131+ #if defined(FLANG_VENDOR ) && defined(DNAME )
132+ static char * dbg_feature = DNAME ;
133+ #else
123134static char * dbg_feature = "flang" ;
135+ #endif
124136
125137static int ipa_import_mode = 0 ;
126138
@@ -208,7 +220,7 @@ process_input(char *argv0, LOGICAL *need_cuda_constructor)
208220 gbl .func_count ++ ;
209221
210222 if (gbl .multiversion <= 1 ) {
211- TR ("F90 ILM INPUT begins\n" )
223+ TR (DNAME " ILM INPUT begins\n" )
212224 if (!IS_PARFILE )
213225 {
214226 upper (0 );
@@ -273,7 +285,7 @@ process_input(char *argv0, LOGICAL *need_cuda_constructor)
273285 AssignAddresses (); /* exp_rte.c */
274286 }
275287 }
276- TR ("F90 EXPANDER begins\n" );
288+ TR (DNAME " EXPANDER begins\n" );
277289
278290 expand (); /* expand ILM's into ILI */
279291 DUMP ("expand" );
@@ -301,14 +313,14 @@ process_input(char *argv0, LOGICAL *need_cuda_constructor)
301313 rm_smove ();
302314 DUMP ("rmsmove" );
303315
304- TR ("F90 SCHEDULER begins\n" );
316+ TR (DNAME " SCHEDULER begins\n" );
305317 DUMP ("before-schedule" );
306318 schedule ();
307319 xtimes [5 ] += getcpu ();
308320 DUMP ("schedule" );
309321 } /* CUDAG(GBL_CURRFUNC) & CUDA_HOST */
310322 }
311- TR ("F90 ASSEMBLER begins\n" );
323+ TR (DNAME " ASSEMBLER begins\n" );
312324 assemble ();
313325 xtimes [6 ] += getcpu ();
314326 upper_save_syminfo ();
@@ -929,7 +941,7 @@ process_stb_file()
929941
930942 gbl .func_count ++ ;
931943
932- TR ("F90 STBFILE INPUT begins\n" )
944+ TR (DNAME " STBFILE INPUT begins\n" )
933945 upper (1 ); /* should we generate upper_stbfil()? */
934946
935947 if (gbl .eof_flag )
0 commit comments