This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Supporting pthreads in libjava on Tru64 UNIX


On Fri, Jul 04, 2003 at 07:20:55PM +0200, Rainer Orth wrote:
>                               "       beq %0,3f\n"
>                               "       mb\n"
>                               "2:\n"
> +#       ifdef __ELF__
>                               ".section .text2,\"ax\"\n"
> +#       endif
>                               "3:     br 1b\n"
> +#       ifdef __ELF__
>                               ".previous"
> +#       endif

With the ifdefing, you've created an infinite loop.
Just nuke it all and do "beq %0,1b"; ev6 machines
have much better bracnch prediction and don't care
so much about forward vs back branches.

Alternately, if you're using gas, do ".subsection 1"
instead of ".section .text2".


r~


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