This is the mail archive of the gcc@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: Bootstrap failure on alphaev56-unknown-linux-gnu


On Sun, 22 Dec 2002, Jeff Sturm wrote:
> > 2002-12-20  Richard Henderson  <rth@redhat.com>
> >
> >       * config/alpha/alpha.c (decl_has_samegp): New.
> >       (samegp_function_operand): Use it.  Rename from
> >       current_file_function_operand.
> >       (direct_call_operand): Handle -msmall-text via symbol->jump.
> >       (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
> >       (tls_symbolic_operand_type): Likewise.
> >       (alpha_encode_section_info): Likewise.  Handle -msmall-text.
> >       (alpha_function_ok_for_sibcall): Use decl_has_samegp.
> >       (alpha_end_function): Set symbol->jump for functions defined in
> >       the text section.
> >       * config/alpha/alpha-protos.h: Update.
> >       * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
> >       (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
> >       (PREDICATE_CODES): Update.
> >       * config/alpha/alpha.md (call patterns): Update for
> >       samegp_function_operand rename; use !samegp reloc if
> >       TARGET_EXPLICIT_RELOCS.
> >       * doc/invoke.text: Document -msmall-text and -mlarge-text.
>
> appears to cause a bootstrap failure on mainline:

The trouble starts below around the bsr instruction:

        ldq $27,create_scalar_type($29)         !literal!24
        jsr $26,($27),0         !lituse_jsr!24
        ldah $29,0($26)         !gpdisp!25
        lda $29,0($29)          !gpdisp!25
        ldq $16,16($15)
        mov $0,$17
        ldq $18,24($15)
        bsr $26,do_typedef              !samegp

No procedure value (r27) is initialized by the bsr call, so do_typedef
starts with the wrong gp.

Previously this would've called the nogp entry point.  Is there some
other magic having to do with the samegp reloc?

Jeff



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