From db62533f402e2e50951fe0d1265544f4f9fccf81 Mon Sep 17 00:00:00 2001 From: ghazi Date: Fri, 9 Nov 2001 23:13:22 +0000 Subject: [PATCH] * clipper.h (ASM_OUTPUT_REG_POP): Fix typo. * tlink.c (recompile_files): Copy strings passed to `putenv'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46904 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/clipper/clipper.h | 2 +- gcc/tlink.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e490598..06881f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-11-09 Kaveh R. Ghazi + + * clipper.h (ASM_OUTPUT_REG_POP): Fix typo. + + * tlink.c (recompile_files): Copy strings passed to `putenv'. + 2001-11-09 Geoffrey Keating * tree.h (TYPE_VOLATILE): Trap use not on TYPEs. diff --git a/gcc/config/clipper/clipper.h b/gcc/config/clipper/clipper.h index ca67ee8..c7c1dbd 100644 --- a/gcc/config/clipper/clipper.h +++ b/gcc/config/clipper/clipper.h @@ -1020,7 +1020,7 @@ do \ It need not be very fast code. */ #define ASM_OUTPUT_REG_POP(FILE,REGNO) \ - fprintf (FILE, "\t%s (sp),%s\n\t\addq $8,sp\n", \ + fprintf (FILE, "\t%s (sp),%s\n\taddq $8,sp\n", \ (REGNO) < 16 ? "loadw" : "loadd", reg_names[REGNO]) /* This is how to output an element of a case-vector that is absolute */ diff --git a/gcc/tlink.c b/gcc/tlink.c index 4a669b4..78840ca 100644 --- a/gcc/tlink.c +++ b/gcc/tlink.c @@ -495,8 +495,8 @@ recompile_files () { file *f; - putenv ("COMPILER_PATH"); - putenv ("LIBRARY_PATH"); + putenv (xstrdup ("COMPILER_PATH")); + putenv (xstrdup ("LIBRARY_PATH")); while ((f = file_pop ()) != NULL) { -- 2.7.4