public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1541] Fix PR 110085: `make clean` in GCC directory on sh target causes a failure
@ 2023-06-05  5:42 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2023-06-05  5:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:afd87299cefd021daf0158d5b6276c37013996b9

commit r14-1541-gafd87299cefd021daf0158d5b6276c37013996b9
Author: Andrew Pinski <apinski@marvell.com>
Date:   Mon Jun 5 04:32:00 2023 +0000

    Fix PR 110085: `make clean` in GCC directory on sh target causes a failure
    
    On sh target, there is a MULTILIB_DIRNAMES (or is it MULTILIB_OPTIONS) named m2,
    this conflicts with the langauge m2. So when you do a `make clean`, it will remove
    the m2 directory and then a build will fail. Now since r0-78222-gfa9585134f6f58,
    the multilib directories are no longer created in the gcc directory as libgcc
    was moved to the toplevel. So we can remove the part of clean that removes those
    directories.
    
    Tested on x86_64-linux-gnu and a cross to sh-elf that `make clean` followed by
    `make` works again.
    
    OK?
    
    gcc/ChangeLog:
    
            PR bootstrap/110085
            * Makefile.in (clean): Remove the removing of
            MULTILIB_DIR/MULTILIB_OPTIONS directories.

Diff:
---
 gcc/Makefile.in | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 1d39e6dd3f8..0c02f312985 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3622,13 +3622,6 @@ clean: mostlyclean lang.clean
 	-rm -f doc/*.pdf
 # Delete the include directories.
 	-rm -rf include include-fixed
-# Delete files used by the "multilib" facility (including libgcc subdirs).
-	-rm -f multilib.h tmpmultilib*
-	-if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \
-	  rm -rf $(MULTILIB_DIRNAMES); \
-	else if [ "x$(MULTILIB_OPTIONS)" != x ] ; then \
-	  rm -rf `echo $(MULTILIB_OPTIONS) | sed -e 's/\// /g'`; \
-	fi ; fi
 
 # Delete all files that users would normally create
 # while building and installing GCC.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-05  5:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05  5:42 [gcc r14-1541] Fix PR 110085: `make clean` in GCC directory on sh target causes a failure Andrew Pinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).