This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to convert ASM_GLOBALIZE_LABEL to a target hook


On Thu, Aug 22, 2002 at 10:38:42AM -0400, David Edelsohn wrote:
> >>>>> Kaveh R Ghazi writes:
> 
> Kaveh> When I went through the code, RS6000_OUTPUT_BASENAME just does
> 
> >> assemble_name ((FILE), (*targetm.strip_name_encoding) (NAME))
> 
> Kaveh> and I thought assemble_name itself did a strip_name_encoding.  So I
> Kaveh> thought RS6000_OUTPUT_BASENAME was redundant.  Is that not the case?
> Kaveh> Can you please explain to me what went wrong so I don't repeat my
> Kaveh> mistake?
> 
> assemble_name (file, name)
>      FILE *file;
>      const char *name;
> {
>   const char *real_name;
>   tree id;
> 
>   real_name = (* targetm.strip_name_encoding) (name);
> 
>   id = maybe_get_identifier (real_name);
>   if (id)
>     TREE_SYMBOL_REFERENCED (id) = 1;
> 
>   if (name[0] == '*')
>     fputs (&name[1], file);
>   else
>     ASM_OUTPUT_LABELREF (file, name);
> }

Why doesn't ASM_OUTPUT_LABELREF do the strip_name_encoding for AIX?
At first blush, that's the actual bug.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]