Bug 12027 - sparclite-coff build fails with INIT_SECTION_ASM_OP' undeclared
Summary: sparclite-coff build fails with INIT_SECTION_ASM_OP' undeclared
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2003-08-21 23:16 UTC by Dara Hazeghi
Modified: 2005-04-04 17:21 UTC (History)
2 users (show)

See Also:
Host:
Target: sparclite-*-*
Build:
Known to work:
Known to fail: 3.3.5 3.4.1 4.0.0
Last reconfirmed: 2004-05-29 13:37:57


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dara Hazeghi 2003-08-21 23:16:20 UTC
Configure with: ../combined/configure --target=sparclite-coff --enable-languages=c,c+4,objc; 
make

/usr/bin/gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes -pedantic -Wno-long-long -fno-common   -DHAVE_CONFIG_H    
-I. -I. -I../../combined/gcc -I../../combined/gcc/. -I../../combined/gcc/config -I../../combined/
gcc/../include  ../../combined/gcc/varasm.c -o varasm.o
../../combined/gcc/varasm.c:223: warning: function declaration isn't a prototype
../../combined/gcc/varasm.c: In function `init_section':
../../combined/gcc/varasm.c:223: `INIT_SECTION_ASM_OP' undeclared (first use in this function)
../../combined/gcc/varasm.c:223: (Each undeclared identifier is reported only once
../../combined/gcc/varasm.c:223: for each function it appears in.)

INIT_SECTION_ASM_OP is clearly undefined in sparc/litecoff.h . Note certain
Comment 1 Andrew Pinski 2003-08-21 23:23:55 UTC
Related to bug 8909 and bug 10847.
Comment 2 Dara Hazeghi 2003-08-21 23:55:08 UTC
Ditto for sparclite-elf.
Comment 3 Andrew Pinski 2003-08-23 17:26:29 UTC
This is a regression from when the sparc targets got reorginized (forgot when).
Comment 4 Andrew Pinski 2003-11-26 17:34:19 UTC
Confirmed.
Comment 5 Andrew Pinski 2003-12-28 03:02:41 UTC
Not a major target and it has been broken since at least 3.3.
Comment 6 Dara Hazeghi 2003-12-28 16:13:14 UTC
Agreed. Indeed, since nobody else seems to have mentined the breakage, I'd sat there's a good 
case for deprecating/removing the port.
Comment 7 Andrew Pinski 2004-01-11 01:35:43 UTC
I think a patch like this <http://gcc.gnu.org/ml/gcc-patches/2004-01/msg00810.html> is 
needed for sparc-coff/elf is needed.
Comment 8 Giovanni Bajo 2004-01-14 04:25:53 UTC
Moving back the milestone, the target is not deprecated yet AFAICT, so this is 
a fully qualified regression, albeit for a minor target.
Comment 9 Mark Mitchell 2004-02-28 02:33:47 UTC
Sparclite is not a primary target, so I've postponed this problem until (at
least) GCC 3.4.1.
Comment 10 Mark Mitchell 2004-06-09 19:19:09 UTC
I see no evidence that anyone cares very much about this bug, let alone that
anyone has a way of fixing it.  Postponed until 3.4.2.
Comment 11 Mark Mitchell 2004-08-19 20:31:46 UTC
Postponed until GCC 3.4.3.
Comment 12 Eric Botcazou 2004-10-26 08:36:31 UTC
Mark, may I simply remove the target for 4.0?
Comment 13 Mark Mitchell 2004-11-01 00:46:14 UTC
Postponed until GCC 3.4.4.
Comment 14 Eric Botcazou 2004-11-15 12:16:13 UTC
I think the sparclite-*-* targets should be removed for 4.0.  Is there a new
round of target removing scheduled before the 4.0.0 release?
Comment 15 Eric Botcazou 2004-11-20 10:24:47 UTC
Mine.
Comment 16 Eric Botcazou 2004-11-22 12:07:31 UTC
Suspended until deprecation/removal.
Comment 17 GCC Commits 2005-04-04 17:19:05 UTC
Subject: Bug 12027

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ebotcazou@gcc.gnu.org	2005-04-04 17:18:54

Modified files:
	gcc            : ChangeLog config.gcc 
Removed files:
	gcc/config/sparc: lite.h litecoff.h liteelf.h sp86x-elf.h 
	                  t-sp86x t-sparclite 

Log message:
	PR target/4198
	PR target/12027
	* config.gcc (Obsolete configurations): Remove
	sparclite-*-coff*, sparclite-*-elf* and sparc-*-openbsd*.
	(sparclite-*-coff*): Delete.
	(sparclite-*-elf*): Likewise.
	(sparc86x-*-elf*): Likewise.
	(target_cpu_default) <sparc*-*-*>: Remove sparc86x.
	* config/sparc/lite.h: Delete.
	* config/sparc/litecoff.h: Likewise.
	* config/sparc/liteelf.h: Likewise.
	* config/sparc/sp86x-elf.h: Likewise.
	* config/sparc/t-sparclite: Likewise.
	* config/sparc/t-sp86x: Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8120&r2=2.8121
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.gcc.diff?cvsroot=gcc&r1=1.528&r2=1.529
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/lite.h.diff?cvsroot=gcc&r1=1.8&r2=NONE
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/litecoff.h.diff?cvsroot=gcc&r1=1.17&r2=NONE
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/liteelf.h.diff?cvsroot=gcc&r1=1.16&r2=NONE
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sp86x-elf.h.diff?cvsroot=gcc&r1=1.18&r2=NONE
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/t-sp86x.diff?cvsroot=gcc&r1=1.3&r2=NONE
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/t-sparclite.diff?cvsroot=gcc&r1=1.5&r2=NONE

Comment 18 Eric Botcazou 2005-04-04 17:21:05 UTC
Target removed.