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: [PATCH] adds powerpc-*-freebsd? to mainline


> Date: Tue, 13 Nov 2001 15:19:52 -0800
> From: "David O'Brien" <obrien@FreeBSD.org>

> @@ -1231,6 +1244,9 @@
>  
>  #define CPP_OS_MVME_SPEC ""
>  
> +/* PowerPC simulator based on FreeBSD system calls support.  */
> +#define LIB_SIM_SPEC "--start-group -lsim -lc --end-group"
> +
>  /* PowerPC simulator based on netbsd system calls support.  */
>  #define LIB_SIM_SPEC "--start-group -lsim -lc --end-group"
>  

No.

> @@ -1244,6 +1260,20 @@
>  
>  #define CPP_OS_SIM_SPEC ""
>  
> +/* Faked out FreeBSD support.
> +   The real information comes from config/freebsd.h  */
> +#ifndef USING_CONFIG_FREEBSD
> +#define CPP_OS_FREEBSD_SPEC	""
> +#define	STARTFILE_FREEBSD_SPEC	""
> +#define ENDFILE_FREEBSD_SPEC	""
> +#define LIB_FREEBSD_SPEC	""
> +#endif /* USING_CONFIG_FREEBSD */

This won't work.  If you really can't get these values without
including config/freebsd.h, it would be better to not have freebsd be
part of the combined toolchain.  However, I'd rather you try to
include the correct values here, as I doubt that there's anything
particularly special about freebsd and it allows the same compiler
binary to be shared.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>


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