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]

GCC assembler bug


Hello,

it seems there's a bug in the GCC assembler. The ".equ"
directive can be used to define an address of a function:

    .equ FN,myfunction1
    call FN

If there are multiple and different definitions of FN, like this:

    .equ FN,myfunction1
    call FN

    .equ FN,myfunction2
    call FN

then only the first one is used and GCC generates

    call myfunction1
    call myfunction1

instead of 

    call myfunction1
    call myfunction2

I use the version 3.2 and the host computer is i386 at Linux dot 

    Best regards
    Piotr Wyderski



Zobacz nasz nowy serwis - wczasy za granicą - http://hoga.travelplanet.pl/
------------------------------------------------------------
Wiosną wirusy rosną bez pamięci!dlatego do pakietów wielostanowiskowych
mks_vir dokładamy Mobile Disks. Sprawdź:
http://www.mks.com.pl/promocja-mobile.html


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