Date: Sat, 14 Dec 1996 15:10:54 -0800 (PST) From: kew@timesink.spk.wa.us To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2216: Ada specs not being compiled into cc/gcc Message-ID: <199612142310.PAA14526@phobos.walker.org> Resent-Message-ID: <199612142350.PAA00589@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612142310.PAA14526>