aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-11-13 16:01:52 +0000
committerNick Clifton <nickc@redhat.com>2003-11-13 16:01:52 +0000
commite99158355d6f5097f9505dda44741f48d1b4e671 (patch)
tree036cf8c2964172264b9d1b14250892c75fdb90b9 /binutils/ar.c
parentb5727d755eafbcbadac67832172c6aa3f311ba6d (diff)
downloadgdb-e99158355d6f5097f9505dda44741f48d1b4e671.zip
gdb-e99158355d6f5097f9505dda44741f48d1b4e671.tar.gz
gdb-e99158355d6f5097f9505dda44741f48d1b4e671.tar.bz2
Emit a warning when an archive is created (only shown with -v) in order to
confrom to POSIX specification.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 7270635..5771427 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -750,6 +750,8 @@ open_inarch (const char *archive_filename, const char *file)
|| ! bfd_set_format (arch, bfd_archive)
|| ! bfd_close (arch))
bfd_fatal (archive_filename);
+ else if (!silent_create)
+ non_fatal (_("creating %s"), archive_filename);
/* If we die creating a new archive, don't leave it around. */
output_filename = archive_filename;