On 2025-11-19 3:29 a.m., Rainer Orth wrote:
> diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h
> --- a/gcc/config/ia64/hpux.h
> +++ b/gcc/config/ia64/hpux.h
> @@ -62,10 +62,6 @@ do {                                                       
> \
>  #undef  ASM_EXTRA_SPEC
>  #define ASM_EXTRA_SPEC "%{milp32:-milp32} %{mlp64:-mlp64}"
>  
> -#ifndef USE_GAS
> -#define AS_NEEDS_DASH_FOR_PIPED_INPUT
> -#endif
> -
>  #ifndef CROSS_DIRECTORY_STRUCTURE
>  #undef MD_EXEC_PREFIX
>  #define MD_EXEC_PREFIX "/usr/ccs/bin/"

I don't think this is strictly correct. One can generate code for the Intel 
assembler using
the -mno-gnu-as option (TARGET_GNU_AS).  But the behavior of the gcc driver 
program currently
is hard coded depending on whether AS_NEEDS_DASH_FOR_PIPED_INPUT is defined or 
not.  I think
the proper fix would be to update the AS_NEEDS_DASH_FOR_PIPED_INPUT define so 
it can depend
on an option.

The need for a dash isn't obvious from the HP man page but I guess Joseph found 
it was needed
for the non-GNU assemble on ia64-hpux.

Thanks,
Dave
-- 
John David Anglin  [email protected]

Reply via email to