From 137bb46a786df6bbca165a1dc0af184ffdf16b9d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 9 Nov 2001 23:13:22 +0000 Subject: [PATCH] clipper.h (ASM_OUTPUT_REG_POP): Fix typo. * clipper.h (ASM_OUTPUT_REG_POP): Fix typo. * tlink.c (recompile_files): Copy strings passed to `putenv'. From-SVN: r46904 --- 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 e4905981518..06881f45c28 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 ca67ee8009a..c7c1dbd43c9 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 4a669b46fd9..78840ca9a41 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) {