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

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>
This commit is contained in:
Iain Sandoe 2024-09-18 17:46:32 +01:00
parent cbe1b1c6c7
commit 33ccc1314d

View File

@ -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) " \