Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* DEC f77 automatic arrays and -std option
@ 1995-03-01 17:51 Bruno Wolff III
  1995-03-03 14:56 ` Steve Lionel
  0 siblings, 1 reply; 2+ messages in thread
From: Bruno Wolff III @ 1995-03-01 17:51 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DEC f77 automatic arrays and -std option
  1995-03-01 17:51 DEC f77 automatic arrays and -std option Bruno Wolff III
@ 1995-03-03 14:56 ` Steve Lionel
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1995-03-03 14:56 UTC (permalink / raw)



In article <3j2c6o$omp@uwm.edu>, bruno@alpha1.csd.uwm.edu (Bruno Wolff III) 
writes:
|>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?

Well, we are aware now, though it's mainly a matter of luck.  In the future,
please report problems through your Digital software support contact.

This appears to be an oversight in our recent implementation of this feature.
We'll fix it.  Thanks.
-- 

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For a summary of Digital's Internet services, send mail to info@digital.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-03-03 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-01 17:51 DEC f77 automatic arrays and -std option Bruno Wolff III
1995-03-03 14:56 ` Steve Lionel

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