2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g77.f-torture / compile / 960317-1.f
blob4bb0a37278e597be76729fb23d02edf18616a1a5
1 * Date: Sat, 16 Mar 1996 19:58:37 -0500 (EST)
2 * From: Kate Hedstrom <kate@ahab.Rutgers.EDU>
3 * To: burley@gnu.ai.mit.edu
4 * Subject: g77 bug in assign
5 *
6 * I found some files in the NCAR graphics source code which used to
7 * compile with g77 and now don't. All contain the following combination
8 * of "save" and "assign". It fails on a Sun running SunOS 4.1.3 and a
9 * Sun running SunOS 5.5 (slightly older g77), but compiles on an
10 * IBM/RS6000:
13 SUBROUTINE QUICK
14 SAVE
16 ASSIGN 101 TO JUMP
17 101 Continue
19 RETURN
20 END
22 * Everything else in the NCAR distribution compiled, including quite a
23 * few C routines.
25 * Kate
28 * nemo% g77 -v -c quick.f
29 * gcc -v -c -xf77 quick.f
30 * Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.2/specs
31 * gcc version 2.7.2
32 * /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.2/f771 quick.f -fset-g77-defaults -quiet -dumpbase quick.f -version -fversion -o /usr/tmp/cca24166.s
33 * GNU F77 version 2.7.2 (sparc) compiled by GNU C version 2.7.1.
34 * GNU Fortran Front End version 0.5.18-960314 compiled: Mar 16 1996 14:28:11
35 * gcc: Internal compiler error: program f771 got fatal signal 11
38 * nemo% gdb /usr/local/lib/gcc-lib/*/*/f771 core
39 * GDB is free software and you are welcome to distribute copies of it
40 * under certain conditions; type "show copying" to see the conditions.
41 * There is absolutely no warranty for GDB; type "show warranty" for details.
42 * GDB 4.14 (sparc-sun-sunos4.1.3),
43 * Copyright 1995 Free Software Foundation, Inc...
44 * Core was generated by `f771'.
45 * Program terminated with signal 11, Segmentation fault.
46 * Couldn't read input and local registers from core file
47 * find_solib: Can't read pathname for load map: I/O error
49 * Couldn't read input and local registers from core file
50 * #0 0x21aa4 in ffecom_sym_transform_assign_ (s=???) at f/com.c:7881
51 * 7881 if ((ffesymbol_save (s) || ffe_is_saveall ())
52 * (gdb) where
53 * #0 0x21aa4 in ffecom_sym_transform_assign_ (s=???) at f/com.c:7881
54 * Error accessing memory address 0xefffefcc: Invalid argument.
55 * (gdb)
58 * ahab% g77 -v -c quick.f
59 * gcc -v -c -xf77 quick.f
60 * Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/specs
61 * gcc version 2.7.2
62 * /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/f771 quick.f -quiet -dumpbase quick.f -version -fversion -o /var/tmp/cca003D2.s
63 * GNU F77 version 2.7.2 (sparc) compiled by GNU C version 2.7.2.
64 * GNU Fortran Front End version 0.5.18-960304 compiled: Mar 5 1996 16:12:46
65 * gcc: Internal compiler error: program f771 got fatal signal 11
68 * ahab% !gdb
69 * gdb /usr/local/lib/gcc-lib/*/*/f771 core
70 * GDB is free software and you are welcome to distribute copies of it
71 * under certain conditions; type "show copying" to see the conditions.
72 * There is absolutely no warranty for GDB; type "show warranty" for details.
73 * GDB 4.15.1 (sparc-sun-solaris2.4),
74 * Copyright 1995 Free Software Foundation, Inc...
75 * Core was generated by
76 * `/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/f771 quick.f -quiet -dumpbase'.
77 * Program terminated with signal 11, Segmentation fault.
78 * Reading symbols from /usr/lib/libc.so.1...done.
79 * Reading symbols from /usr/lib/libdl.so.1...done.
80 * #0 0x43e04 in ffecom_sym_transform_assign_ (s=0x3a22f8) at f/com.c:7963
81 * Source file is more recent than executable.
82 * 7963 assert (st != NULL);
83 * (gdb) where
84 * #0 0x43e04 in ffecom_sym_transform_assign_ (s=0x3a22f8) at f/com.c:7963
85 * #1 0x38044 in ffecom_expr_ (expr=0x3a23c0, dest_tree=0x0, dest=0x0, dest_used=0x0, assignp=true) at f/com.c:2100
86 * #2 0x489c8 in ffecom_expr_assign_w (expr=0x3a23c0) at f/com.c:10238
87 * #3 0xe9228 in ffeste_R838 (label=0x3a1ba8, target=0x3a23c0) at f/ste.c:2769
88 * #4 0xdae60 in ffestd_stmt_pass_ () at f/std.c:840
89 * #5 0xdc090 in ffestd_exec_end () at f/std.c:1405
90 * #6 0xcb534 in ffestc_shriek_subroutine_ (ok=true) at f/stc.c:4849
91 * #7 0xd8f00 in ffestc_R1225 (name=0x0) at f/stc.c:12307
92 * #8 0xcc808 in ffestc_end () at f/stc.c:5572
93 * #9 0x9fa84 in ffestb_end3_ (t=0x3a19c8) at f/stb.c:3216
94 * #10 0x9f30c in ffestb_end (t=0x3a19c8) at f/stb.c:2995
95 * #11 0x98414 in ffesta_save_ (t=0x3a19c8) at f/sta.c:453
96 * #12 0x997ec in ffesta_second_ (t=0x3a19c8) at f/sta.c:1178
97 * #13 0x8ed84 in ffelex_send_token_ () at f/lex.c:1614
98 * #14 0x8cab8 in ffelex_finish_statement_ () at f/lex.c:946
99 * #15 0x91684 in ffelex_file_fixed (wf=0x397780, f=0x37a560) at f/lex.c:2946
100 * #16 0x107a94 in ffe_file (wf=0x397780, f=0x37a560) at f/top.c:456
101 * #17 0x96218 in yyparse () at f/parse.c:77
102 * #18 0x10beac in compile_file (name=0xdffffaf7 "quick.f") at toplev.c:2239
103 * #19 0x110dc0 in main (argc=9, argv=0xdffff994, envp=0xdffff9bc) at toplev.c:3927