From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3196 invoked by alias); 10 Nov 2002 21:33:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3112 invoked from network); 10 Nov 2002 21:33:13 -0000 Received: from unknown (HELO mailout6-0.nyroc.rr.com) (24.92.226.125) by sources.redhat.com with SMTP; 10 Nov 2002 21:33:13 -0000 Received: from doctormoo (syr-24-24-16-193.twcny.rr.com [24.24.16.193]) by mailout6-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id gAALX8k16745; Sun, 10 Nov 2002 16:33:12 -0500 (EST) Received: from neroden by doctormoo with local (Exim 3.36 #1 (Debian)) id 18AzhW-00007x-00; Sun, 10 Nov 2002 16:33:02 -0500 Date: Sun, 10 Nov 2002 13:33:00 -0000 To: binutils@sources.redhat.com Cc: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, dj@redhat.com Subject: patches: config for m68k-apollo-bsd*, or not Message-ID: <20021110213300.GA488@doctormoo> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline User-Agent: Mutt/1.4i From: Nathanael Nerode X-SW-Source: 2002-11/txt/msg00294.txt.bz2 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 802 All right. It appears that out of all of gcc and src, m68k-apollo-bsd* (as opposed to m68k-apollo-sysv*) is supported potentially only by gas. I am strongly inclined to kill the top level configuration logic for it, because it is causing trouble in autoconfiscation. This is the deapollo.diff patch. I would like it approved for the gcc 3.4 basic improvements branch and subsequently for src when that branch lands. If there are strong objections, the alternate patch apollo.diff updates the top level logic to allow the top level Makefile.in to be made autoconf-compatible. But I prefer the first patch as it's simpler. * configure.in (m68k-apollo-bsd*): Drop support. -or- * configure: Add hook for per-build-machine override of BISON. * configure.in: Use it for m68k-apollo-bsd*. --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="deapollo.diff" Content-length: 1110 Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.177.4.5 diff -u -r1.177.4.5 configure.in --- configure.in 10 Nov 2002 21:14:18 -0000 1.177.4.5 +++ configure.in 10 Nov 2002 21:26:46 -0000 @@ -943,16 +943,6 @@ tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" host_makefile_frag="config/mh-apollo68" ;; - m68k-apollo-bsd*) - #None of the Apollo compilers can compile gas or binutils. The preprocessor - # chokes on bfd, the compiler won't let you assign integers to enums, and - # other problems. Defining CC to gcc is a questionable way to say "don't use - # the apollo compiler" (the preferred version of GCC could be called cc, - # or whatever), but I'm not sure leaving CC as cc is any better... - #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG - tentative_cc=gcc - host_makefile_frag="config/mh-a68bsd" - ;; m88k-dg-dgux*) tentative_cc="gcc -Wall -ansi -D__using_DGUX" host_makefile_frag="config/mh-dgux" --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="apollo.diff" Content-length: 1301 ? aix.diff ? apollo.diff ? p1.patch ? p2.patch ? p3.patch ? p4.patch Index: configure =================================================================== RCS file: /cvs/gcc/gcc/configure,v retrieving revision 1.46.6.3 diff -u -r1.46.6.3 configure --- configure 10 Nov 2002 21:14:18 -0000 1.46.6.3 +++ configure 10 Nov 2002 21:22:26 -0000 @@ -1037,7 +1037,8 @@ AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} AS=as AS_FOR_TARGET='\$(USUAL_AS_FOR_TARGET)' - BISON='$(USUAL_BISON)' + # default to previously set bison: workaround for m68k-apollo-bsd + BISON=${BISON-'\$(USUAL_BISON)'} CC_FOR_BUILD='\$(CC)' DLLTOOL=dlltool DLLTOOL_FOR_TARGET='\$(USUAL_DLLTOOL_FOR_TARGET)' Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.177.4.5 diff -u -r1.177.4.5 configure.in --- configure.in 10 Nov 2002 21:14:18 -0000 1.177.4.5 +++ configure.in 10 Nov 2002 21:22:32 -0000 @@ -103,6 +103,12 @@ # per-target: +# This is a irritating workaround for m68k-apollo-bsd, +# which wants to use yacc for bison. +case ${build} in + m68k-apollo-bsd*) BISON=yacc ;; +esac + # Define is_cross_compiler to save on calls to 'test'. is_cross_compiler= if test x"${host}" = x"${target}" ; then --OXfL5xGRrasGEqWY--