From 252043ee440c4f59c85236e88ed663acf7d56bb7 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 25 Apr 1992 01:09:03 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r826 --- gcc/assert.h | 6 +++--- gcc/config/svr4.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/assert.h b/gcc/assert.h index fe50cfb8b42..59aafd9c487 100644 --- a/gcc/assert.h +++ b/gcc/assert.h @@ -13,7 +13,7 @@ ((void) ((expression) ? 0 : __assert (expression, __FILE__, __LINE__))) #define __assert(expression, file, lineno) \ - (printf ("%s:%d: failed assertion\n", file, lineno), \ + (printf ("%s:%u: failed assertion\n", file, lineno), \ abort (), 0) #else @@ -27,7 +27,7 @@ extern void __eprintf (const char *, const char *, int, const char *); ((void) ((expression) ? 0 : __assert (#expression, __FILE__, __LINE__))) #define __assert(expression, file, line) \ - (__eprintf ("%s:%d: failed assertion `%s'\n", \ + (__eprintf ("%s:%u: failed assertion `%s'\n", \ file, line, expression), 0) #else /* no __STDC__; i.e. -traditional. */ @@ -38,7 +38,7 @@ extern void __eprintf (); /* Defined in libgcc.a */ ((void) ((expression) ? 0 : __assert (expression, __FILE__, __LINE__))) #define __assert(expression, file, lineno) \ - (__eprintf ("%s:%d: failed assertion `%s'\n", \ + (__eprintf ("%s:%u: failed assertion `%s'\n", \ file, lineno, "expression"), 0) #endif /* no __STDC__; i.e. -traditional. */ diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h index b6a42bc164f..fcdd9d026a4 100644 --- a/gcc/config/svr4.h +++ b/gcc/config/svr4.h @@ -499,6 +499,7 @@ dtors_section () \ #define TYPE_ASM_OP ".type" #define SIZE_ASM_OP ".size" +#define WEAK_ASM_OP ".weak" /* The following macro defines the format used to output the second operand of the .type assembler directive. Different svr4 assemblers @@ -570,7 +571,7 @@ dtors_section () \ fprintf (FILE, ","); \ assemble_name (FILE, label); \ fprintf (FILE, "-"); \ - ASM_OUTPUT_LABELREF (FILE, (FNAME)); \ + assemble_name (FILE, (FNAME)); \ putc ('\n', FILE); \ } \ } while (0)