This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: installation of unwind.h
- From: Michael Matz <matz at suse dot de>
- To: Richard Henderson <rth at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 4 Mar 2003 21:15:08 +0100 (CET)
- Subject: Re: installation of unwind.h
Hi,
On Fri, 21 Feb 2003, Richard Henderson wrote:
> On Thu, Feb 20, 2003 at 01:32:10PM +0100, Michael Matz wrote:
> > booted, regtested and visually verified to install where I wanted, on
> > i686-linux (3.3 branch). OK for 3.3 and HEAD?
>
> I'd prefer that this be installed in the gcc-private directory,
> just like <stdarg.h> et al. The reason is that the implementation
> of the (standard) API may change between versions.
Hmm, the implementation might, but the interface shouldn't. But anyway I
guess it doesn't matter much, so here is an updated patch.
bootstraped/regtested on i686-linux, and verified with a test program
including <unwind.h> . OK for 3.3 and HEAD?
Ciao,
Michael.
--
* unwind.h: Add the GPL exception.
* Makefile.in (install-headers): Install unwind.h.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.958.2.4
diff -u -p -r1.958.2.4 Makefile.in
--- Makefile.in 26 Jan 2003 11:35:04 -0000 1.958.2.4
+++ Makefile.in 4 Mar 2003 20:09:46 -0000
@@ -2977,7 +2977,9 @@ install-headers: $(INSTALL_HEADERS_DIR)
ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(DESTDIR)$(libsubdir)/include/$$i; \
fi; \
done; \
- fi
+ fi; \
+ rm -f $(DESTDIR)$(libsubdir)/include/unwind.h; \
+ cp -p $(srcdir)/unwind.h $(DESTDIR)$(libsubdir)/include/
# Create or recreate the gcc private include file directory.
install-include-dir: installdirs
Index: unwind.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind.h,v
retrieving revision 1.7
diff -u -p -r1.7 unwind.h
--- unwind.h 27 Nov 2002 10:33:54 -0000 1.7
+++ unwind.h 4 Mar 2003 20:09:46 -0000
@@ -1,5 +1,5 @@
/* Exception handling and frame unwind runtime interface routines.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003 Free Software Foundation, Inc.
This file is part of GCC.
@@ -17,6 +17,13 @@
along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
+
+/* As a special exception, if you include this header file into source
+ files compiled by GCC, this header file does not by itself cause
+ the resulting executable to be covered by the GNU General Public
+ License. This exception does not however invalidate any other
+ reasons why the executable file might be covered by the GNU General
+ Public License. */
/* This is derived from the C++ ABI for IA-64. Where we diverge
for cross-architecture compatibility are noted with "@@@". */