modules?

Andrew Gallatin gallatin at cs.duke.edu
Tue Jul 20 19:45:35 PDT 2004


Peter Grehan writes:
 >   I was going to ask ruslan if this was the correct place to commit
 > this CFLAGS change. However, if you think it's OK, I'll do it.

Please do.  Whenever I've made a change like this in the past, I've
always managed to do it wrong ;_

 >   The second is a gcc patch, since internal libcalls (e.g. 64-bit arith)
 > don't respect the "-mlongcall" attribute. I've yet to file a bug against
 > gcc for this one.
 > 
 > diff -u -r1.1.1.9 rs6000.c
 > --- rs6000.c    7 Nov 2003 02:43:04 -0000       1.1.1.9
 > +++ rs6000.c    15 Jul 2004 03:40:09 -0000
 > @@ -2914,6 +2914,9 @@
 >         && lookup_attribute ("longcall", TYPE_ATTRIBUTES (fntype))
 >         && !lookup_attribute ("shortcall", TYPE_ATTRIBUTES (fntype)))
 >       cum->call_cookie = CALL_LONG;
 > +  else if (!fntype)
 > +    if (rs6000_default_long_calls)
 > +      cum->call_cookie = CALL_LONG;
 > 
 >     if (TARGET_DEBUG_ARG)
 
Have you talked to obrien or kan about getting this patch
into at least our local version of gcc after you've filed the bug?

Thanks,

Drew


More information about the freebsd-ppc mailing list