aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-03-04 08:42:03 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-03-04 08:42:03 -0500
commit541180f92afb6494e1e1b1a5d53016a3a466ae4a (patch)
tree17aa24947dfeaae1d8cb3485f0a9fe9a1019c295
parent42b8bb14ed3286a6337d60aff094cf2ba2474b81 (diff)
downloadgcc-541180f92afb6494e1e1b1a5d53016a3a466ae4a.zip
gcc-541180f92afb6494e1e1b1a5d53016a3a466ae4a.tar.gz
gcc-541180f92afb6494e1e1b1a5d53016a3a466ae4a.tar.bz2
(xstrdup): Declare instead of instead of strdup.
(ASM_OUTPUT_LABEL): Use xstrdup instead of strdup. (FIX_FRAME_POINTER_ADDRESS): Don't use DEPTH in string. From-SVN: r11414
-rw-r--r--gcc/config/1750a/1750a.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/1750a/1750a.h b/gcc/config/1750a/1750a.h
index 46c9ebf..15d167e 100644
--- a/gcc/config/1750a/1750a.h
+++ b/gcc/config/1750a/1750a.h
@@ -66,7 +66,7 @@ extern struct jumplabel_array jmplbl[];
extern int datalbl_ndx, jmplbl_ndx, label_pending, program_counter;
extern enum section current_section;
extern char *sectname[4];
-extern char *strdup(), *float_label();
+extern char *xstrdup(), *float_label();
#endif
/*--------------------------------------------------------------------*/
@@ -638,7 +638,7 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
ADDR should be a variable name. */
#define FIX_FRAME_POINTER_ADDRESS(ADDR,DEPTH) \
- fprintf(stderr,"FIX_FRAME_POINTER_ADDRESS called, DEPTH=%d\n"), \
+ fprintf(stderr,"FIX_FRAME_POINTER_ADDRESS called, depth=%d\n"), \
DEPTH), abort()
/* Store in the variable DEPTH the initial difference between the
@@ -1070,7 +1070,7 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
check_section(Konst); \
fprintf(FILE,"K%s\n",NAME); \
fflush(FILE); \
- datalbl[++datalbl_ndx].name = (char *)strdup (NAME); \
+ datalbl[++datalbl_ndx].name = (char *)xstrdup (NAME);\
datalbl[datalbl_ndx].size = 0; \
label_pending = 1; \
} \