Add GCC deprecation warning and link to deprecation schedule.

https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md

Change-Id: Ice00fbee37ef8a6e93ee6f59d126e1153a16e45a
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
diff --git a/bin/arm-linux-androideabi-g++ b/bin/arm-linux-androideabi-g++
index 54944a2..6eb60af 100755
--- a/bin/arm-linux-androideabi-g++
+++ b/bin/arm-linux-androideabi-g++
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+from __future__ import print_function
 import os
 import sys
 
@@ -24,7 +25,7 @@
       compiler = os.path.basename(os.path.abspath(__file__))
     self.real_compiler = os.path.join(
         compiler_path,
-        "real-" + compiler)
+        "edbbb32c-2589-11e9-9d3a-3feaeedb4eb4")
     self.argv0 = self.real_compiler
 
   def process_gomacc_command(self):
@@ -49,7 +50,15 @@
   def add_flags(self):
     self.args = self.prepend_flags + self.args + self.append_flags
 
+  def print_deprecation_warning(self):
+    print("Android GCC has been deprecated in favor of Clang, and will be removed from\n"
+          "Android in 2020-01 as per the deprecation plan in:\n"
+          "https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md\n\n",
+          file=sys.stderr)
+
+
   def invoke_compiler(self):
+    self.print_deprecation_warning()
     self.set_real_compiler()
     self.parse_custom_flags()
     self.process_gomacc_command()
diff --git a/bin/arm-linux-androideabi-gcc b/bin/arm-linux-androideabi-gcc
index 54944a2..93eb445 100755
--- a/bin/arm-linux-androideabi-gcc
+++ b/bin/arm-linux-androideabi-gcc
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+from __future__ import print_function
 import os
 import sys
 
@@ -24,7 +25,7 @@
       compiler = os.path.basename(os.path.abspath(__file__))
     self.real_compiler = os.path.join(
         compiler_path,
-        "real-" + compiler)
+        "eac354ea-2589-11e9-8634-4b9fc1cc7ade")
     self.argv0 = self.real_compiler
 
   def process_gomacc_command(self):
@@ -49,7 +50,15 @@
   def add_flags(self):
     self.args = self.prepend_flags + self.args + self.append_flags
 
+  def print_deprecation_warning(self):
+    print("Android GCC has been deprecated in favor of Clang, and will be removed from\n"
+          "Android in 2020-01 as per the deprecation plan in:\n"
+          "https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md\n\n",
+          file=sys.stderr)
+
+
   def invoke_compiler(self):
+    self.print_deprecation_warning()
     self.set_real_compiler()
     self.parse_custom_flags()
     self.process_gomacc_command()
diff --git a/bin/real-arm-linux-androideabi-gcc b/bin/eac354ea-2589-11e9-8634-4b9fc1cc7ade
similarity index 100%
rename from bin/real-arm-linux-androideabi-gcc
rename to bin/eac354ea-2589-11e9-8634-4b9fc1cc7ade
Binary files differ
diff --git a/bin/real-arm-linux-androideabi-g++ b/bin/edbbb32c-2589-11e9-9d3a-3feaeedb4eb4
similarity index 100%
rename from bin/real-arm-linux-androideabi-g++
rename to bin/edbbb32c-2589-11e9-9d3a-3feaeedb4eb4
Binary files differ