[gnu.gcc.bug] const array not put into text segment

glenne%hplsla@HPLABS.HP.COM (Glenn Engel) (10/27/88)

The following code shows that with gcc1.29 const arrays are not put
into the text segment as they should be.  I am told that previuos versions
did do this properly.


gcc version 1.29
 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dhp9000s200 -Dhp9000s300
 -DPWB -Dmc68k -Dmc68000 -Dhpux -Dunix -D__HAVE_FPU__ garb.c /tmp/cca02713.cpp
GNU CPP version 1.29
 /usr/local/lib/gcc-cc1 /tmp/cca02713.cpp -quiet -dumpbase garb.c -version -o ga
rb.s
GNU C version 1.29 (68k, MIT syntax) compiled by GNU C version 1.29.


#NO_APP
.globl _k
.data                               THIS SHOULD BE .text !
	.even
_k:
	.long 1
	.long 2
	.long 3
	.long 4
.globl _j
.text                               THIS IS OK
	.even
_j:
	.long 10
	.even
.globl _main
_main:
	link a6,#0
L1:
	unlk a6
	rts

--
 |  Glenn R. Engel
 |  Hewlett-Packard 
 |  (206) 335-2066
 |  glenne%hplsla@hplabs.hp.com