It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/gccld/Makefile b/tools/gccld/Makefile
new file mode 100644
index 0000000..f348295
--- /dev/null
+++ b/tools/gccld/Makefile
@@ -0,0 +1,29 @@
+##===- tools/gccld/Makefile --------------------------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and is distributed under
+# the University of Illinois Open Source License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
+
+LEVEL = ../..
+
+include $(LEVEL)/Makefile.common
+
+install-local:: $(PROJ_bindir)/gccld
+	
+$(PROJ_bindir)/gccld : gccld.sh Makefile
+	$(Echo) Installing gccld shell script.
+	$(Verb) sed "s#@TOOLDIR@#$(PROJ_bindir)#" $< > $@
+	$(Verb) chmod 0755 $@
+
+all-local:: $(ToolDir)/gccld
+	
+$(ToolDir)/gccld : gccld.sh Makefile
+	$(Echo) Making $(ToolDir)/gccld shell script.
+	$(Verb) sed "s#@TOOLDIR@#$(ToolDir)#" $< > $@
+	$(Verb) chmod 0755 $@
+
+clean-local::
+	$(Verb)$(RM) -f $(ToolDir)/gccld
diff --git a/tools/gccld/gccld.sh b/tools/gccld/gccld.sh
new file mode 100644
index 0000000..9ec9305
--- /dev/null
+++ b/tools/gccld/gccld.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+##===- tools/gccld/gccld.sh ------------------------------------*- bash -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file was developed by Reid Spencer and is distributed under the
+# University of Illinois Open Source License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
+#
+# Synopsis: This shell script is a replacement for the old "gccld" tool that
+#           existed in LLVM versions before 2.0. The functionality of gccld has
+#           now been moved to llvm-ld. This shell script provides backwards 
+#           compatibility so build environments invoking gccld can still get 
+#           link (under the covers) with llvm-ld.
+#
+# Syntax:   gccld OPTIONS... (see llvm-ld for details)
+# 
+##===----------------------------------------------------------------------===##
+#
+echo "gccld: This tool is deprecated, please use llvm-ld" 1>&2
+TOOLDIR=@TOOLDIR@
+$TOOLDIR/llvm-ld "$@"