[PATCH] RS6000: Use .machine ppc for some CRT files

Sebastian Huber sebastian.huber@embedded-brains.de
Tue Apr 7 05:18:25 GMT 2020


Since commit e154242724b084380e3221df7c08fcdbd8460674 the flag -many is
sometimes not passed to the assembler.  Use .machine ppc to prevent
errors if these files are assembled for an ISA which does not support
FPRs.

libgcc/

	* config/rs6000/crtresfpr.S: Use .machine ppc.
	* config/rs6000/crtresxfpr.S: Likewise.
	* config/rs6000/crtsavfpr.S: Likewise.
---
 libgcc/config/rs6000/crtresfpr.S  | 1 +
 libgcc/config/rs6000/crtresxfpr.S | 1 +
 libgcc/config/rs6000/crtsavfpr.S  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/libgcc/config/rs6000/crtresfpr.S b/libgcc/config/rs6000/crtresfpr.S
index 6c0d01bf9c1..99e6f086026 100644
--- a/libgcc/config/rs6000/crtresfpr.S
+++ b/libgcc/config/rs6000/crtresfpr.S
@@ -27,6 +27,7 @@
 
 /* Do any initializations needed for the eabi environment */
 
+	.machine ppc
 	.section ".text"
 	#include "ppc-asm.h"
 
diff --git a/libgcc/config/rs6000/crtresxfpr.S b/libgcc/config/rs6000/crtresxfpr.S
index 9f01fa5094b..9931db244f7 100644
--- a/libgcc/config/rs6000/crtresxfpr.S
+++ b/libgcc/config/rs6000/crtresxfpr.S
@@ -27,6 +27,7 @@
 
 /* Do any initializations needed for the eabi environment */
 
+	.machine ppc
 	.section ".text"
 	#include "ppc-asm.h"
 
diff --git a/libgcc/config/rs6000/crtsavfpr.S b/libgcc/config/rs6000/crtsavfpr.S
index fa043ddd078..dd8743ae058 100644
--- a/libgcc/config/rs6000/crtsavfpr.S
+++ b/libgcc/config/rs6000/crtsavfpr.S
@@ -27,6 +27,7 @@
 
 /* Do any initializations needed for the eabi environment */
 
+	.machine ppc
 	.section ".text"
 	#include "ppc-asm.h"
 
-- 
2.16.4



More information about the Gcc-patches mailing list