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

Re: partial PATCH: initial configuration for sparc64-*-openbsd*


On Wed, May 29, 2002 at 08:49:09PM +0200, Marc Espie wrote:
> +#ifndef TARGET_CPU_DEFAULT
> +#define TARGET_CPU_DEFAULT	TARGET_CPU_ultrasparc
> +#endif

See the bits to set this in config.gcc for sparc64-freebsd.
Although arguably that should be moved down to the generic
bits that set target_cpu_default2.

> +#define OBSD_HAS_DECLARE_FUNCTION_NAME
> +#define OBSD_HAS_DECLARE_FUNCTION_SIZE
> +#define OBSD_HAS_DECLARE_OBJECT

At some point it'd be nice if this stuff was rearranged such
that you've got an openbsd-aout.h file that takes care of this.
Any elfos.h derived port will already have these.

> +/* A 64 but v9 complier in a Medium/Mid code model.  */

Comment misplaced.  Also consider if you wouln't really prefer
MEDLOW.  Very few applications have more than 2GB of static data.

> +/* XXX - do we really want HARD_QUAD? */

If you have the _Qp_* functions in libc, no, you don't.

> +#undef LONG_DOUBLE_TYPE_SIZE
> +#define LONG_DOUBLE_TYPE_SIZE 128

Need float_format=i128 in config.gcc.

> +/* For profiled binaries we have to change the memory model.  */
> +#undef CC1_SPEC
> +#define CC1_SPEC "%{p*:-mcmodel=medlow} %{p:-mcmodel=medlow}"

This has been fixed in the compiler.

2002-03-30  Richard Henderson  <rth@redhat.com>

        PR target/6032
        * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
        or -fomit-frame-pointer with profiling.
        (SUBTARGET_OVERRIDE_OPTIONS): Remove.
        (FUNCTION_PROFILER): Do nothing.
        (PROFILE_HOOK): New.
        * config/sparc/sparc.c (sparc_override_options): Don't check
        code models for profiling.
        (sparc_function_profiler): Remove.
        (sparc_profile_hook): New.
        * config/sparc/sparc-protos.h: Update.



r~


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