pro64-support
[Top] [All Lists]

Re: pro64-0.01.0-13.ia64 sgicc compiler with -O2 produces unresolved

To: pro64-support@xxxxxxxxxxx, "Nelson H. F. Beebe" <beebe@xxxxxxxxxxxxx>
Subject: Re: pro64-0.01.0-13.ia64 sgicc compiler with -O2 produces unresolved function references
From: mpm@xxxxxxxxxxxxxxxxx (Michael Murphy)
Date: Tue, 24 Apr 2001 10:19:39 -0700 (PDT)
Cc: meyering@xxxxxxxxxxxxx, beebe@xxxxxxxxxxxxx
Sender: owner-pro64-support@xxxxxxxxxxx
        From: "Nelson H. F. Beebe" <beebe@xxxxxxxxxxxxx>
        
        I've been testing the sgicc compiler from the pro64-0.01.0-13.ia64.rpm
        file obtained from http://oss.sgi.com/projects/Pro64/ on the HP IA-64
        emulator running on a Red Hat Linux 6.2 installation on an dual-CPU
        Intel Pentium III 600MHz system.
        
        With several programs compiled with "sgicc -O2", I've gotten link-time
        errors like this, always to the same symbol, Formal_Arg_StkSeg:
        
                array.o(.debug_info+0x1f46): undefined reference to 
`Formal_Arg_StkSeg'
        
        If optimization is reduced to -O1, the link succeeds.
        
This is the same error that Helf reported a few days ago.
It happens when you do -O -g.  If you just do -O it won't happen.
I have a fix checked in; if you don't want to wait for new binaries,
you can apply this patch to the source and build:

        be/cg/cgdwarf.cxx:
        *** 708,713 ****
        --- 708,714 ----
            if (ST_is_not_used(st)) return;
          
            Base_Symbol_And_Offset (st, &base_st, &base_ofst);
        +   if (ST_is_not_used(base_st)) return;
          
            deref = FALSE;
            if (DST_IS_deref(flag))  /* f90 formals, dope, etc */
-- Mike Murphy
-- mpm@xxxxxxx
-- quote of the day:
--  "The only thing necessary for the triumph of evil 
--   is for good men to do nothing."  (Edmund Burke, 1795)

<Prev in Thread] Current Thread [Next in Thread>
  • Re: pro64-0.01.0-13.ia64 sgicc compiler with -O2 produces unresolved function references, Michael Murphy <=