aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/weak-3.c8
-rw-r--r--gcc/testsuite/gcc.dg/weak-5.c4
3 files changed, 12 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0ab468915b6..57828875fe1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-08 Mark Mitchell <mark@codesourcery.com>
+
+ PR c/6569
+ * gcc.dg/weak-3.c: Update location of warning messages.
+ * gcc.dg/weak-5.c: Likewise.
+
2002-05-03 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20020503-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/weak-3.c b/gcc/testsuite/gcc.dg/weak-3.c
index bd7d827ee97..1675ab10f3b 100644
--- a/gcc/testsuite/gcc.dg/weak-3.c
+++ b/gcc/testsuite/gcc.dg/weak-3.c
@@ -34,12 +34,12 @@ void * foo1b (void)
}
-extern void * ffoo1c (void); /* { dg-warning "weak declaration" "weak declaration" } */
+extern void * ffoo1c (void);
void * foo1c (void)
{
return (void *)ffoo1c;
}
-extern void * ffoo1c (void) __attribute__((weak));
+extern void * ffoo1c (void) __attribute__((weak)); /* { dg-warning "weak declaration" "weak declaration" } */
int ffoo1d (void);
@@ -56,7 +56,7 @@ void * foo1e (void)
}
-extern void * ffoo1f (void); /* { dg-warning "weak declaration" "weak declaration" } */
+extern void * ffoo1f (void);
extern void * ffoox1f (void);
void * foo1f (void)
{
@@ -64,7 +64,7 @@ void * foo1f (void)
ffoo1f ();
return 0;
}
-extern void * ffoo1f (void) __attribute__((weak, alias ("ffoox1f")));
+extern void * ffoo1f (void) __attribute__((weak, alias ("ffoox1f"))); /* { dg-warning "weak declaration" "weak declaration" } */
extern void * ffoo1g (void);
diff --git a/gcc/testsuite/gcc.dg/weak-5.c b/gcc/testsuite/gcc.dg/weak-5.c
index 694eb61ac1c..eec210992f4 100644
--- a/gcc/testsuite/gcc.dg/weak-5.c
+++ b/gcc/testsuite/gcc.dg/weak-5.c
@@ -39,12 +39,12 @@ void * foo1b (void)
}
-extern int vfoo1c; /* { dg-warning "weak declaration" "weak declaration" } */
+extern int vfoo1c;
void * foo1c (void)
{
return (void *)&vfoo1c;
}
-extern int vfoo1c __attribute__((weak));
+extern int vfoo1c __attribute__((weak)); /* { dg-warning "weak declaration" "weak declaration" } */
extern int vfoo1d __attribute__((weak));