This is the mail archive of the gcc-bugs@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]

egcc on mips-dec-ultrix4.4


Hi,

I think the definition of INITIALIZE_TRAMPOLINE in gcc/config/mips/mips.h
is wrong:

#define INITIALIZE_TRAMPOLINE(ADDR, FUNC, CHAIN)			    \
{ .......								    \
  emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "_flush_cache"),	    \
  .......								    \
}

On Ultrix 4.4 (and probably older versions too) there is no _flush_cache()
in the system libraries. Older versions of gcc did:

#define INITIALIZE_TRAMPOLINE(ADDR, FUNC, CHAIN)			    \
{ .......								    \
  emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "cacheflush"),		    \
  .......								    \
}

This works since there is cacheflush() in libc.a.
Possible solutions are to #ifdef DECSTATION this in gcc/config/mips/mips.h
or to #undef INITIALIZE_TRAMPOLINE and redefine in gcc/config/mips/ultrix.h.

-- 
     _________________________________
    /\                                \
    \_|   Burkhard Steding            |
      |   HELIOS Software GmbH        |
      |   Steinriede 3                |
      |   30827 Garbsen               |
      |   Germany                     |
      |                               |
      |   Tel.: +49 5131 709336       |
      |   Fax.: +49 5131 709325       |
      |   e-mail: bst@helios.de       |
      |   ____________________________|___
       \_/_______________________________/


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