PPC -mlongcall, take two
Andreas Tobler
toa@pop.agri.ch
Sun May 12 06:51:00 GMT 2002
Andreas Tobler wrote:
> This one above makes darwin fail when I bootstrap. The c_target_objs &
> cxx_target_objs get overwritten by this rs6000 stuff and the darwin-c
> will not be built and the result are undefined references to a few
> symbols. The patchlet below makes it at least to compile. Bootstrap
> ongoing. Though I don't know if correct since I'm not at home and I only
> have my powerbook handy.
Hmm, I'm not quite happy with this one. I get tons of warnings since
REGISTER_TARGET_PRAGMAS is defined twice here on darwin. Once in
darwin.h and once in rs6000.h. How is this longcall meant to work with
darwin?
Should we check in rs6000.h for
if !defined REGISTER_TARGET_PRAGMAS
define REGISTER_TARGET_PRAGMAS
fi
And add the longcall pragma to darwin.h?
Regards,
Andreas
> --- config.gcc.orig Sun May 12 10:44:32 2002
> +++ config.gcc Sun May 12 10:45:47 2002
> @@ -3650,8 +3650,8 @@
> fi
> ;;
> esac
> - c_target_objs="rs6000-c.o"
> - cxx_target_objs="rs6000-c.o"
> + c_target_objs="${c_target_objs} rs6000-c.o"
> + cxx_target_objs="${cxx_target_objs} rs6000-c.o"
> tmake_file="${tmake_file} rs6000/t-rs6000-c-rule"
> ;;
> sparc*-*-*)
More information about the Gcc-patches
mailing list