gcc: remove incpath.o from CXX_C_OBJS

Message ID 74d3217b-55b1-5f30-800e-e6ca655acf31@suse.cz
State Accepted
Headers
Series gcc: remove incpath.o from CXX_C_OBJS |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Martin Liška Dec. 1, 2022, 9:33 a.m. UTC
  The object is already included in OBJS (libbackend.a), thus
we don't need it.

Noticed while using partial linking for libbackend.a.

Ready to be installed?
Thanks,
Martin

gcc/cp/ChangeLog:

	* Make-lang.in: Remove extra object dependency.
---
 gcc/cp/Make-lang.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Richard Biener Dec. 1, 2022, 3:26 p.m. UTC | #1
On Thu, Dec 1, 2022 at 10:33 AM Martin Liška <mliska@suse.cz> wrote:
>
> The object is already included in OBJS (libbackend.a), thus
> we don't need it.
>
> Noticed while using partial linking for libbackend.a.
>
> Ready to be installed?

Looks obvious?

OK.

> Thanks,
> Martin
>
> gcc/cp/ChangeLog:
>
>         * Make-lang.in: Remove extra object dependency.
> ---
>  gcc/cp/Make-lang.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
> index af25bdc044a..75e2f7c7ba3 100644
> --- a/gcc/cp/Make-lang.in
> +++ b/gcc/cp/Make-lang.in
> @@ -81,7 +81,7 @@ g++-cross$(exeext): xg++$(exeext)
>
>  # The compiler itself.
>  # Shared with C front end:
> -CXX_C_OBJS = attribs.o incpath.o \
> +CXX_C_OBJS = attribs.o \
>         $(C_COMMON_OBJS) $(CXX_TARGET_OBJS)
>
>  # Language-specific object files for C++ and Objective C++.
> --
> 2.38.1
>
  

Patch

diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index af25bdc044a..75e2f7c7ba3 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -81,7 +81,7 @@  g++-cross$(exeext): xg++$(exeext)
 
 # The compiler itself.
 # Shared with C front end:
-CXX_C_OBJS = attribs.o incpath.o \
+CXX_C_OBJS = attribs.o \
 	$(C_COMMON_OBJS) $(CXX_TARGET_OBJS)
 
 # Language-specific object files for C++ and Objective C++.