Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: bruno@alpha1.csd.uwm.edu (Bruno Wolff III)
Subject: DEC f77 automatic arrays and -std option
Date: 1 Mar 1995 17:51:20 GMT	[thread overview]
Message-ID: <3j2c6o$omp@uwm.edu> (raw)

We have a complaint from a researcher here that the -std option did not
flag his use of automatic arrays as nonstandard. This made it harder for
him to find that he left a dummy array name out of a subroutine
declaration.
Does anyone know if DEC is aware of and/or planning to do anything about
this?

For the curious I have included -V output of a compile that illustrates
a case where I believe a warning should be issued.

test$MAIN                                                        1-Mar-1995 11:41:14    DEC Fortran V3.6-641                Page   1
                                                                22-Feb-1995 16:24:44    test.f

	      1       n = 20
	      2       call test (n)
	      3       end


PROGRAM SECTIONS

    Name				 Bytes   Attributes

  1 $CODE                                  260   PIC CON REL LCL   SHR   EXE NORD NOWRT OCTA

    Total Space Allocated                  260


ENTRY POINTS

    Address   Type  Name     
                             
  1-00000000        test$MAIN


VARIABLES

    Address   Type  Name
                        
  0-00000008  I*4   N   


FUNCTIONS AND SUBROUTINES REFERENCED

  Type  Name       
                   
        TEST       
\f
TEST                                                             1-Mar-1995 11:41:14    DEC Fortran V3.6-641                Page   2
                                Symbol Table                    22-Feb-1995 16:24:44    test.f

	      4       subroutine test (n)
	      5       dimension m(n)
	      6       do 10 i = 1, n
	      7       print *, m(i)
	      8 10    continue
	      9       end


PROGRAM SECTIONS

    Name				 Bytes   Attributes

  1 $CODE                                  260   PIC CON REL LCL   SHR   EXE NORD NOWRT OCTA

    Total Space Allocated                  260


ENTRY POINTS

    Address   Type  Name
                        
  1-00000030        TEST


VARIABLES

    Address   Type  Name     Address   Type  Name
                                                 
REG-0000000A  I*4   I          **      I*4   N   


ARRAYS

     Address  Type  Name        Bytes  Dimensions

      **      I*4   M              **  (*)



LABELS

    Address   Label
                   
  1-00000000   10  
\f
TEST                                                             1-Mar-1995 11:41:14    DEC Fortran V3.6-641                Page   3
                                Symbol Table                    22-Feb-1995 16:24:44    test.f



  +---------------------------------------------------+
  |               KEY TO ADDRESS CODE FORMATS         |
  |   ppp-oooooooo  - In Psect ppp, Offset oooooooo   |
  |   ***-********  - External                        |
  |               # - Suffix: Also In Registers       |
  |   REG-rrrrrrrr  - In Register rrrrrrrr            |
  |   REG-########  - In Various Registers            |
  |        **       - Not Used; Not Allocated         |
  +---------------------------------------------------+


COMPILER OPTIONS BEING USED

  no	-align commons 			.  no	-automatic				.  no	-recursive
  yes	-align records			.  no	-d_lines				.
  yes	-assume accuracy_sensitive	.  no	-extend_source				.  no	-pad_source
  no	-assume backslash		.  yes	-f77					.
  no	-assume dummy_aliases		.  no	-gen_feedback				.  no	-pg
  yes	-assume source_include		.  						.
  yes	-assume underscore		.  no	-syntax_only				.
  no	-check bounds			.  no	-vms					.  yes	-OSF
  no	-check format			.  yes	-call_shared				.
  no	-check output_conversion	.  						.
  no	-check overflow			.  						.
  no	-check underflow		.       -blas nomapped				.
  no	-show code			.       -error_limit 30 			.
  no	-show include			.       -float ieee_float  			.       -convert native
  yes	-show map			.  						.
  yes	-show single			.       -fpe0 					.       -fprm nearest
  no	-show xref			.       -G 0    				.
  no	-stand mia			.       -g1  					.  no	-synchronous_exceptions
  yes	-stand semantic			.       -granularity quadword 			.
  no	-stand source_form		.       -instruction_set floating_point  	.       -tune generic
  yes	-stand syntax			.       -integer_size 32			.       -real_size 32   -double_size 64
  yes	-warn alignments		.       -math_library accurate			.
  no	-warn argument_checking		.       -names lowercase			.
  no	-warn declarations		.       -O4    					.       -inline space   -unroll 0
  yes	-warn general			.       -terminal nostatistics			.
  yes	-warn informational		.  						.
  no	-warn truncated_source		.  						.
  yes	-warn uncalled			.  						.
  yes	-warn uninitialized		.  						.
  yes	-warn unreachable		.  						.
  no	-warn unused			.  						.
  yes	-warn usage			.  						.

  -I    path : .f,.for,.FOR,,/usr/include/.f,/usr/include/.for,/usr/include/.FOR,/usr/include/
  -V    filename : test.l
  -o    filename : /tmp/forAAAaavwwa.o
  -ana  filename : none
  -diag filename : none
  -feedback file : none

COMPILER: DEC Fortran V3.6-641-29BI
\f
TEST                                                             1-Mar-1995 11:41:14    DEC Fortran V3.6-641                Page   4
                                Compilation Statistics          22-Feb-1995 16:24:44    test.f

COMPILATION STATISTICS

  CPU time:          0.06 seconds
  Elapsed time:      0.20 seconds
  Pagefaults:         252
  I/O Count:            5


             reply	other threads:[~1995-03-01 17:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-01 17:51 Bruno Wolff III [this message]
1995-03-03 14:56 ` DEC f77 automatic arrays and -std option Steve Lionel
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox