3838#define NO_DERIVEDPTR XBIT(58, 0x40000)
3939
4040static void handle_nonalloc_template (void );
41+ #ifdef FLANG_DPM_OUT_UNUSED
4142static int exist_test (int , int );
4243
4344static void add_adjarr_bounds_extr_f77 (int , int , int );
45+ #endif
4446static bool allocate_one_auto (int );
4547static void component_init_allocd_auto (int , int );
4648static int bnd_assn_precedes (int , int , int );
4749static void add_auto_bounds (int , int );
4850static void mk_allocate_scalar (int memberast , int sptr , int before );
4951static void mk_deallocate_scalar (int memberast , int sptr , int after );
5052static void dealloc_dt_auto (int , int , int );
53+ #ifdef FLANG_DPM_OUT_UNUSED
5154static int find_actual (int , int , int );
5255static void set_actual (int , int , LOGICAL );
56+ #endif
5357
5458static void open_entry_guard (int );
5559static void close_entry_guard (void );
@@ -68,16 +72,22 @@ static void change_mk_id(int sptr, int sptr1);
6872static void do_change_mk_id (void );
6973
7074static void finish_fl (void );
75+ #ifdef FLANG_DPM_OUT_UNUSED
7176static void add_fl (int );
77+ #endif
7278static bool emit_alnd (int sptr , int memberast , LOGICAL free_flag ,
7379 LOGICAL for_allocate , int allocbounds );
7480static void emit_secd (int sptr , int memberast , LOGICAL free_flag ,
7581 LOGICAL for_allocate );
82+ #ifdef FLANG_DPM_OUT_UNUSED
7683static void construct_align_sc (int , int , int );
84+ #endif
7785static void fix_sdsc_sc (int , int , int );
7886static void emit_redim (int arg );
7987static void emit_kopy_in (int , int , int );
88+ #ifdef FLANG_DPM_OUT_UNUSED
8089static LOGICAL is_f77_adjustable (int sptr );
90+ #endif
8191static void emit_scalar_kopy_in (int , int );
8292static int gen_ptr_in (int , int );
8393static int gen_ptr_out (int , int );
@@ -94,9 +104,11 @@ static void update_dist(int);
94104static int get_scalar_in_expr (int expr , int std , LOGICAL astversion );
95105static int emit_get_scalar_sub (int , int );
96106
107+ #ifdef FLANG_DPM_OUT_UNUSED
97108static void update_with_actual (int );
98109static void update_bounds_with_actual (int );
99110static void emit_bcst_scalar (int sptr , int std );
111+ #endif
100112
101113static int get_arg_table (void );
102114static void put_arg_table (int );
@@ -192,6 +204,7 @@ finish_fl(void)
192204 FREE (fl .base );
193205}
194206
207+ #ifdef FLANG_DPM_OUT_UNUSED
195208static void
196209add_fl (int a )
197210{
@@ -224,6 +237,7 @@ add_fl(int a)
224237 fl .base [nd ] = a ;
225238 }
226239}
240+ #endif
227241
228242/**
229243 \brief Stub
@@ -507,6 +521,7 @@ make_alnd(int sptr)
507521 return nd ;
508522}
509523
524+ #ifdef FLANG_DPM_OUT_UNUSED
510525static void
511526construct_align_sc (int alnd , int alignee , int target )
512527{
@@ -626,6 +641,7 @@ construct_align_sc(int alnd, int alignee, int target)
626641 return ;
627642 }
628643}
644+ #endif
629645
630646static LOGICAL
631647is_set (int flag , int value )
@@ -2670,6 +2686,7 @@ newargs_for_entry(int this_entry)
26702686 return new_dscptr ;
26712687}
26722688
2689+ #ifdef FLANG_DPM_OUT_UNUSED
26732690/* This routine generate IFTHEN to test static descriptor
26742691 * initilaized. "if(a$sd(1) .eq. 0)
26752692 */
@@ -2688,6 +2705,7 @@ exist_test(int sdsc, int memberast)
26882705 A_IFEXPRP (astnew , ifexpr );
26892706 return astnew ;
26902707}
2708+ #endif
26912709
26922710static int * orderargs ; /* List of arguments in dependence order. */
26932711
@@ -3289,6 +3307,7 @@ emit_kopy_in(int arg, int this_entry, int actual)
32893307 gbitable .unconditional = 1 ;
32903308} /* emit_kopy_in */
32913309
3310+ #ifdef FLANG_DPM_OUT_UNUSED
32923311/* Return TRUE if the arry given by sptr is adjustable according to
32933312 * Fortran-77. */
32943313static LOGICAL
@@ -3325,6 +3344,7 @@ is_f77_adjustable(int sptr)
33253344 }
33263345 return TRUE;
33273346}
3347+ #endif
33283348
33293349/* pghpf_copy_out_(void *db, void *sb, section *ds,
33303350 * section *ss, int intent);
@@ -4526,6 +4546,7 @@ redimension(int sptr, int memberast)
45264546 add_stmt_before (astnew , EntryStd );
45274547}
45284548
4549+ #ifdef FLANG_DPM_OUT_UNUSED
45294550static void
45304551add_adjarr_bounds_extr_f77 (int sym , int entry , int call_ast )
45314552{
@@ -4667,6 +4688,7 @@ set_actual(int entry, int call_ast, LOGICAL arrays)
46674688 }
46684689 }
46694690}
4691+ #endif
46704692
46714693#undef BND_ASSN_PRECEDES
46724694
0 commit comments