This is the mail archive of the 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] Translate dollar signs to underscores for AIX (PR target/35483)

I found a few more dollar signs hiding in corners.

rs6000.c:output_toc() was calling strip_name_encoding manually
instead of using RS6000_OUTPUT_BASENAME, which uses

jc1 also generates some internal labels with dollar signs and because
internal labels use assemble_name_raw() without filtering, I need to
strip the dollar sign when created, not when emitted.  This entails
including tm_p.h in a few more files to get the prototype from

With these changes a a few in libjava, GCC is able to compile all of
libjava on AIX.  HTML_401F requires larger data size, so I also
increase the data area for jc1.

Bootstrapped and regression tested on powerpc-ibm-aix5.3.0.0.

Java parts pre-approved by Tom Tromey.  coverage.c pre-approved
by Richard Guenther.


        * (coverage.o): Depend on $(TM_P_H).
        * coverage.c: Include tm_p.h.
        * config/rs6000/x-aix (jc1): Override LDFLAGS.
        * config/rs6000/xcoff.h (ASM_GENERATE_INTERNAL_LABEL): Strip
        dollar signs from PREFIX.
        * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
        instead of manual strip_name_encoding.

        * (class.o): Depend on $(TM_P_H).
        (expr.o): Same.
        * class.c: Include tm_p.h.
        * expr.c: Include tm_p.h.

Attachment: java-diff
Description: Binary data

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