[llvm-commits] [llvm-gcc-4.2] r54491 - in /llvm-gcc-4.2/trunk/gcc/ada: Make-lang.in stub-ada.c

Duncan Sands baldrick at free.fr
Thu Aug 7 15:25:11 PDT 2008


Author: baldrick
Date: Thu Aug  7 17:25:09 2008
New Revision: 54491

URL: http://llvm.org/viewvc/llvm-project?rev=54491&view=rev
Log:
Make it once more possible to compile the Ada
front-end using GNAT GPL 2006.  This method has
the advantage of the resulting compiler not
producing warnings about the size of the
restrictions symbol.

Added:
    llvm-gcc-4.2/trunk/gcc/ada/stub-ada.c
Modified:
    llvm-gcc-4.2/trunk/gcc/ada/Make-lang.in

Modified: llvm-gcc-4.2/trunk/gcc/ada/Make-lang.in
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/ada/Make-lang.in?rev=54491&r1=54490&r2=54491&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/ada/Make-lang.in (original)
+++ llvm-gcc-4.2/trunk/gcc/ada/Make-lang.in Thu Aug  7 17:25:09 2008
@@ -263,13 +263,20 @@
  ada/widechar.o   \
  $(EXTRA_GNATBIND_OBJS)
 
+# LLVM LOCAL begin
+stub-ada.o : ada/stub-ada.c
+	$(CC) -c $(ALL_CFLAGS) $(ALL_ADA_CFLAGS) \
+		$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
+# LLVM LOCAL end
+
 # List of extra object files linked in with various programs.
 EXTRA_GNAT1_OBJS = prefix.o
-EXTRA_GNATBIND_OBJS = prefix.o version.o
+# LLVM LOCAL
+EXTRA_GNATBIND_OBJS = prefix.o version.o stub-ada.o
 
 # Language-independent object files.
 # LLVM LOCAL
-ADA_BACKEND = $(BACKEND) attribs.o stub-objc.o stub-c.o
+ADA_BACKEND = $(BACKEND) attribs.o stub-objc.o stub-c.o stub-ada.o
 
 # List of target dependent sources, overridden below as necessary
 TARGET_ADA_SRCS =

Added: llvm-gcc-4.2/trunk/gcc/ada/stub-ada.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/ada/stub-ada.c?rev=54491&view=auto

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/ada/stub-ada.c (added)
+++ llvm-gcc-4.2/trunk/gcc/ada/stub-ada.c Thu Aug  7 17:25:09 2008
@@ -0,0 +1,24 @@
+/* LLVM LOCAL file */
+/* Stub functions for Ada language routines that are referenced
+   from the back-end.
+   Copyright (C) 2008 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT 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
+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.  */
+
+/* Needed when building with GNAT GPL 2006.  */
+char system__restrictions__run_time_restrictions[1024] __attribute__ ((weak));





More information about the llvm-commits mailing list