From owner-freebsd-bugs Sat Dec 14 15:50:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA00598 for bugs-outgoing; Sat, 14 Dec 1996 15:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA00589; Sat, 14 Dec 1996 15:50:02 -0800 (PST) Resent-Date: Sat, 14 Dec 1996 15:50:02 -0800 (PST) Resent-Message-Id: <199612142350.PAA00589@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, kew@timesink.spk.wa.us Received: from tau-ceti.isc-br.com (root@tau-ceti.isc-br.com [129.189.2.133]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id PAA00517 for ; Sat, 14 Dec 1996 15:49:42 -0800 (PST) Received: by tau-ceti.isc-br.com (Smail3.1.28.1 #13) id m0vZ3mc-0003D6C; Sat, 14 Dec 96 15:46 PST Received: (from root@localhost) by phobos.walker.org (8.8.4/8.7.3) id PAA14526; Sat, 14 Dec 1996 15:10:54 -0800 (PST) Message-Id: <199612142310.PAA14526@phobos.walker.org> Date: Sat, 14 Dec 1996 15:10:54 -0800 (PST) From: kew@timesink.spk.wa.us Reply-To: kew@timesink.spk.wa.us To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2216: Ada specs not being compiled into cc/gcc Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2216 >Category: bin >Synopsis: Ada specs not being compiled into cc/gcc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 14 15:50:01 PST 1996 >Last-Modified: >Originator: Keith Walker >Organization: Home User. >Release: FreeBSD 3.0-CURRENT i386 >Environment: 3.0 current, but as I remember, I had to fix this on 2.2 as well. My memory fails me on whether I fixed this on 2.1.5??? >Description: The current version of cc/gcc does not have the Ada specs compiled in. This poses a problem if the GNAT-Ada port is installed as the driver program will not recognize any of the ".ad[bs]" files. >How-To-Repeat: Install GNAT Ada. Attempt to compile any ada program consisting of .adb and .ads files. >Fix: Change /usr/src/gnu/usr.bin/cc/cc_tools/Makefile with this patch: --- Makefile.orig Sat Dec 14 15:03:36 1996 +++ Makefile Sat Dec 14 14:45:05 1996 @@ -129,6 +129,7 @@ echo '#include "cp/lang-options.h"' > options.h echo '#include "cp/lang-specs.h"' > specs.h echo '#include "f2c-specs.h"' >> specs.h + echo '#include "ada-specs.h"' >> specs.h @touch aout elf: @@ -140,6 +141,7 @@ echo '#include "cp/lang-options.h"' > options.h echo '#include "cp/lang-specs.h"' > specs.h echo '#include "f2c-specs.h"' >> specs.h + echo '#include "ada-specs.h"' >> specs.h @touch elf CLEANFILES+= config.h hconfig.h tconfig.h tm.h options.h specs.h elf aout Create the new file /usr/src/gnu/usr.bin/cc/cc/ada-specs.h: /****************************************************************************/ /* */ /* GNAT COMPILER COMPONENTS */ /* */ /* L A N G - S P E C S */ /* */ /* C Header File */ /* */ /* $Revision: 1.6 $ */ /* */ /* Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc. */ /* */ /* GNAT is free software; you can redistribute it and/or modify it under */ /* terms of the GNU General Public License as published by the Free Soft- */ /* ware Foundation; either version 2, or (at your option) any later ver- */ /* sion. GNAT is distributed in the hope that it will be useful, but WITH- */ /* OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY */ /* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License */ /* for more details. You should have received a copy of the GNU General */ /* Public License distributed with GNAT; see file COPYING. If not, write */ /* to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, */ /* MA 02111-1307, USA. */ /* */ /* GNAT was originally developed by the GNAT team at New York University. */ /* It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). */ /* */ /****************************************************************************/ /* This is the contribution to the `default_compilers' array in gcc.c for GNAT. */ {".ads", "@ada"}, {".adb", "@ada"}, {".ada", "@ada"}, {"@ada", "%{!M:%{!MM:%{!E:gnat1 %{I*} %{k8:-gnatk8} %{w:-gnatws} %{!Q:-quiet}\ -dumpbase %{.adb:%b.adb}%{.ads:%b.ads}\ %{!.adb:%{!.ads:%b.ada}}\ %{g*} %{O*} %{W*} %{w} %{p} %{pg:-p} %{m*}\ %{a} %{f*} %{d*}\ %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\ %i %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\ %{!S:%{!gnatc:%{!gnatz:%{!gnats:as %a %Y\ %{c:%W{o*}%{!o*:-o %w%b%O}}\ %{!c:-o %d%w%u%O} %{!pipe:%g.s} %A\n}}}}}}} "}, >Audit-Trail: >Unformatted: