diff mbox series

[pushed] Darwin: Allow for as versions that need '-' for std in.

Message ID 20240920152412.20551-1-iain@sandoe.co.uk
State New
Headers show
Series [pushed] Darwin: Allow for as versions that need '-' for std in. | expand

Commit Message

Iain Sandoe Sept. 20, 2024, 3:24 p.m. UTC
Tested on i686-darwin9, 17; x86_64-darwin17,19,21,23, pushed to trunk
thanks
Iain

--- 8< ---

Recent versions of Xcode as require a dash to read from standard
input.  We can use this on all supported OS versions so make it
unconditional.  Patch from Mark Mentovai.

gcc/ChangeLog:

	* config/darwin.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): New.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
 gcc/config/darwin.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 377599074a7..0d8886c026c 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -648,6 +648,8 @@  extern GTY(()) int darwin_ms_struct;
 #define ASM_OPTIONS "%{v} %{w:-W} %{I*}"
 #endif
 
+#define AS_NEEDS_DASH_FOR_PIPED_INPUT
+
 /* Default Darwin ASM_SPEC, very simple. */
 #define ASM_SPEC \
 "%{static} -arch %(darwin_arch) " \