From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,76e26990cccdba70,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-03-01 09:51:20 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.mathworks.com!news.alpha.net!uwm.edu!alpha1.csd.uwm.edu!bruno From: bruno@alpha1.csd.uwm.edu (Bruno Wolff III) Newsgroups: comp.unix.osf.osf1 Subject: DEC f77 automatic arrays and -std option Date: 1 Mar 1995 17:51:20 GMT Organization: Information & Media Technologies, University of Wisconsin - Milwaukee Distribution: world Message-ID: <3j2c6o$omp@uwm.edu> NNTP-Posting-Host: 129.89.169.1 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 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 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 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