gas: consistently emit diagnostics for non-zero data emission to .bss/.struct
[deliverable/binutils-gdb.git] / gas / as.c
index b8a5be4c7172136d7f8d5142460e40a3f27c7290..cb9f0d1e95bb100e73517977a9b13a410ac1dc70 100644 (file)
--- a/gas/as.c
+++ b/gas/as.c
@@ -224,6 +224,11 @@ print_version_id (void)
           VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
 }
 
+#ifdef DEFAULT_FLAG_COMPRESS_DEBUG
+enum compressed_debug_section_type flag_compress_debug
+  = COMPRESS_DEBUG_GABI_ZLIB;
+#endif
+
 static void
 show_usage (FILE * stream)
 {
@@ -245,12 +250,21 @@ Options:\n\
 
   fprintf (stream, _("\
   --alternate             initially turn on alternate macro syntax\n"));
+#ifdef DEFAULT_FLAG_COMPRESS_DEBUG
   fprintf (stream, _("\
   --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]\n\
-                          compress DWARF debug sections using zlib\n"));
+                          compress DWARF debug sections using zlib [default]\n"));
   fprintf (stream, _("\
   --nocompress-debug-sections\n\
                           don't compress DWARF debug sections\n"));
+#else
+  fprintf (stream, _("\
+  --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]\n\
+                          compress DWARF debug sections using zlib\n"));
+  fprintf (stream, _("\
+  --nocompress-debug-sections\n\
+                          don't compress DWARF debug sections [default]\n"));
+#endif
   fprintf (stream, _("\
   -D                      produce assembler debugging messages\n"));
   fprintf (stream, _("\
@@ -665,7 +679,7 @@ This program has absolutely no warranty.\n"));
              if (strcasecmp (optarg, "none") == 0)
                flag_compress_debug = COMPRESS_DEBUG_NONE;
              else if (strcasecmp (optarg, "zlib") == 0)
-               flag_compress_debug = COMPRESS_DEBUG_GNU_ZLIB;
+               flag_compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
              else if (strcasecmp (optarg, "zlib-gnu") == 0)
                flag_compress_debug = COMPRESS_DEBUG_GNU_ZLIB;
              else if (strcasecmp (optarg, "zlib-gabi") == 0)
@@ -679,7 +693,7 @@ This program has absolutely no warranty.\n"));
 #endif
            }
          else
-           flag_compress_debug = COMPRESS_DEBUG;
+           flag_compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
          break;
 
        case OPTION_NOCOMPRESS_DEBUG:
This page took 0.023421 seconds and 4 git commands to generate.