[15/28] rs6000: Write output to the vector definition include file

Message ID 217e9c6a9740fa9bcc9cf8c0d4409d0e2e3f6502.1592419212.git.wschmidt@linux.ibm.com
State New
Headers show
Series
  • rs6000: Auto-generate builtins from descriptions
Related show

Commit Message

Alan Modra via Gcc-patches June 17, 2020, 7:46 p.m.
2020-06-17  Bill Schmidt  <wschmidt@linux.ibm.com>

	* config/rs6000/rs6000-gen-builtins.c (write_defines_file):
	Implement.
---
 gcc/config/rs6000/rs6000-gen-builtins.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.17.1

Patch

diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index fb20f2bb2c0..a54b522a6b3 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -1830,6 +1830,10 @@  write_init_file ()
 static int
 write_defines_file ()
 {
+  for (int i = 0; i < num_ovld_stanzas; i++)
+    fprintf (defines_file, "#define %s %s\n",
+	     ovld_stanzas[i].extern_name,
+	     ovld_stanzas[i].intern_name);
   return 1;
 }