From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: chris@lslsun.epfl.ch (Christian Iseli) Cc: egcs@cygnus.com, gas2@cygnus.com Subject: Re: Loop unrolling and asm Date: Tue, 10 Mar 1998 07:15:00 -0000 Message-id: References: <199803100938.KAA18441@lslsun17.epfl.ch> X-SW-Source: 1998/msg00045.html > > Hi folks, > > While trying out egcs-1.0.2-prerelease, I compiled the > new XFree86-3.3.2 on a Linux 2.1.88 (RH 5.0) PPro box. > binutils-2.8.(...).21 is installed. > > I used -O2 -march=i686 -funroll-loops to compile XFree. > I encountered a small problem where a loop containing asm > was unrolled. The asm included labels (.label00, .label01, ...) > and the assembler died because of multiple definitions of > the labels. > > The problem, of course, went away when I recompiled the incriminated > file without loop unrolling. > > XFree seems to run fine. > > Now the question: how do you go about including an asm with labels > in a loop that will be unrolled? > Use 0f, 1f, .... 9f, 0b, .... 9b instead of .label00 in asm. But At one time, I needed more than 10 lables backward/forward. I had to disable inline. I think it is limited by binutils. Can we change binutils to accept more than 10 local lables? -- H.J. Lu (hjl@gnu.org)