https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119440

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>:

https://gcc.gnu.org/g:7bec4570301c43ab948aca624d4cd7a3b33d65a1

commit r15-8901-g7bec4570301c43ab948aca624d4cd7a3b33d65a1
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Tue Mar 25 18:11:08 2025 +0100

    Add support of --enable-host-pie to the native Ada compiler

    gcc/ada/
            PR ada/119440
            * gcc-interface/Make-lang.in (GCC_LINK): Filter out -pie in stage 1
            (GCC_LLINK): Likewise.
            * gcc-interface/Makefile.in (COMPILER): Delete and replace by CC.
            (COMPILER_FLAGS): Delete.
            (ALL_COMPILERFLAGS): Delete and replace by ALL_CFLAGS.
            (ALL_ADAFLAGS): Move around.
            (enable_host_pie): New substituted variable.
            (LD_PICFLAG): Likewise.  Do not add it to TOOLS_LIBS.
            (LIBIBERTY): Test enable_host_pie.
            (LIBGNAT): Likewise and use libgnat_pic.a if yes.
            (TOOLS_FLAGS_TO_PASS): Pass $(PICFLAG) under CFLAGS & $(LD_PICFLAG)
            under LDFLAGS.  Also pass through ADA_CFLAGS.
            (common-tools): Add $(ALL_CFLAGS) $(ADA_CFLAGS) to the --GCC string
            of $(GNATLINK) commands.
            (../../gnatdll$(exeext)): Likewise.
            (gnatmake-re): Likewise.
            (gnatlink-re): Likewise.
            (gnatlib-shared-dual): Remove all the object files at the end.

    gnattools/
            PR ada/119440
            * configure.ac (host-pie): New switch.
            (host-bind-now): Likewise.
            Substitute PICFLAG and LD_PICFLAG.
            * configure: Regenerate.
            * Makefile.in (PICFLAG): New substituted variable.
            (LD_PICFLAG): Likewise.
            (TOOLS_FLAGS_TO_PASS): Pass $(PICFLAG) under CFLAGS & $(LD_PICFLAG)
            under LDFLAGS.  Do not pass -I- under ADA_INCLUDES.
            (TOOLS_FLAGS_TO_PASS_RE): Likewise.

Reply via email to