[PUSHED] gcc_update: fix check for local source tree.

Message ID ab54bcd1-4972-d4df-f1cc-1336005ee718@suse.cz
State New
Headers show
Series
  • [PUSHED] gcc_update: fix check for local source tree.
Related show

Commit Message

Martin Liška May 10, 2021, 10:14 a.m.
Pushed as obvious.

Thanks,
Martin

contrib/ChangeLog:

	* gcc_update: Start using reload.c instead of version.c.
---
  contrib/gcc_update | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Comments

Richard Sandiford via Gcc-patches May 10, 2021, 11:20 a.m. | #1
On Mon, May 10, 2021 at 1:06 PM Martin Liška <mliska@suse.cz> wrote:
>

> Pushed as obvious.


Of course reload.c is a particularly bad choice of file to check for ... ;)

Richard.

> Thanks,

> Martin

>

> contrib/ChangeLog:

>

>         * gcc_update: Start using reload.c instead of version.c.

> ---

>   contrib/gcc_update | 2 +-

>   1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/contrib/gcc_update b/contrib/gcc_update

> index 45a27b76cc3..04dc4907fd9 100755

> --- a/contrib/gcc_update

> +++ b/contrib/gcc_update

> @@ -243,7 +243,7 @@ apply_patch () {

>   }

>

>   # Check whether this indeed looks like a local tree.

> -if [ ! -f gcc/version.c ]; then

> +if [ ! -f gcc/reload.c ]; then

>       echo "This does not seem to be a GCC tree!"

>       exit

>   fi

> --

> 2.31.1

>

Patch

diff --git a/contrib/gcc_update b/contrib/gcc_update
index 45a27b76cc3..04dc4907fd9 100755
--- a/contrib/gcc_update
+++ b/contrib/gcc_update
@@ -243,7 +243,7 @@  apply_patch () {
  }
  
  # Check whether this indeed looks like a local tree.
-if [ ! -f gcc/version.c ]; then
+if [ ! -f gcc/reload.c ]; then
      echo "This does not seem to be a GCC tree!"
      exit
  fi