This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add support for Fuchsia (OS)
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Josh Conner <joshconner at google dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 9 Dec 2016 00:26:38 -0800
- Subject: Re: [PATCH] Add support for Fuchsia (OS)
- Authentication-results: sourceware.org; auth=none
- References: <f777ac28-36e1-ebe9-9900-c4a95e9541a5@google.com>
On Thu, Dec 8, 2016 at 2:55 PM, Josh Conner <joshconner@google.com> wrote:
> This patch adds support to gcc for the Fuchsia OS
> (https://fuchsia.googlesource.com/).
>
> OK for mainline?
A few comments:
> +/* Build with PIC by default. */
> +#undef CC1_SPEC
> +#define CC1_SPEC "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"
Is it PIC by default or really PIE by default?
Also how does this interact with the -fpie/-fPIE options?
Thanks,
Andrew
>
> Thanks -
>
> Josh
>
>
> 2016-12-08 Joshua Conner <joshconner@google.com>
>
>
> * config/arm/fuchsia-elf.h: New file.
>
> * config/fuchsia.h: New file.
>
> * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
>
> (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
> targets.
>
> * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
>
>