genhooks.c (main): Set progname.
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 7 Jun 2012 12:12:01 +0000 (12:12 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Thu, 7 Jun 2012 12:12:01 +0000 (12:12 +0000)
* genhooks.c (main): Set progname.
(emit_documentation): Remove variable found_start, always bail out
when a place is missing.
* doc/tm.texi.in (C++ ABI): Add @hook
TARGET_CXX_DECL_MANGLING_CONTEXT.

From-SVN: r188302

gcc/ChangeLog
gcc/doc/tm.texi.in
gcc/genhooks.c

index ee090d629656e51d72b6db614b3726b3894dcede..35f54dc3ad21933e41f61ea77cef9c8d319895d7 100644 (file)
@@ -1,3 +1,11 @@
+2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * genhooks.c (main): Set progname.
+       (emit_documentation): Remove variable found_start, always bail out
+       when a place is missing.
+       * doc/tm.texi.in (C++ ABI): Add @hook
+       TARGET_CXX_DECL_MANGLING_CONTEXT.
+
 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/53580
index 31dedad8a228e7e5ece059e0cfffc1e5ccfec582..79b9e6eabef7d94a8b523f315a01086c7aca3297 100644 (file)
@@ -10077,6 +10077,8 @@ unloaded. The default is to return false.
 
 @hook TARGET_CXX_ADJUST_CLASS_AT_DEFINITION
 
+@hook TARGET_CXX_DECL_MANGLING_CONTEXT
+
 @node Named Address Spaces
 @section Adding support for named address spaces
 @cindex named address spaces
index fc48e45161c3b372b2ee2ae00ffea611bbc321be..19bfb5a91998d662c97f80ed058436fb8e7b4934 100644 (file)
@@ -1,6 +1,6 @@
 /* Process target.def to create initialization macros definition in
    target-hooks-def.h and documentation in target-hooks.texi.
-   Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -120,7 +120,6 @@ emit_documentation (const char *in_fname)
   char buf[1000];
   htab_t start_hooks = htab_create (99, s_hook_hash, s_hook_eq_p, (htab_del) 0);
   FILE *f;
-  bool found_start = false;
 
   /* Enter all the start hooks in start_hooks.  */
   f = fopen (in_fname, "r");
@@ -164,9 +163,8 @@ emit_documentation (const char *in_fname)
          if (shp->pos >= 0)
            fatal ("Duplicate hook %s\n", sh.name);
          shp->pos = i;
-         found_start = true;
        }
-      else if (!found_start)
+      else
        fatal ("No place specified to document hook %s\n", sh.name);
       free (sh.name);
     }
@@ -341,6 +339,8 @@ emit_init_macros (const char *docname)
 int
 main (int argc, char **argv)
 {
+  progname = "genhooks";
+
   if (argc >= 3)
     emit_documentation (argv[2]);
   else