This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix -aux-info (was Re: Kill -a/-ax profiler)


On Wed, Dec 05, 2001 at 10:38:51PM -0800, Richard Henderson wrote:
>         /* Count of the # of basic blocks or # of instrumented arcs.  */
> -       assemble_integer (GEN_INT (profile_block_flag
> - 				 ? count_basic_blocks
> - 				 : count_instrumented_edges),
> +       assemble_integer (GEN_INT (count_instrumented_edges),
> 
> Update comment.
> 
> -       else if (!strncmp (arg, "aux-info", 8))
> - 	{
> 
> Deleted too much.

Jan, you missed this...
Commited as obvious.

2001-12-27  Jakub Jelinek  <jakub@redhat.com>

	* toplev.c (independent_decode_option): Re-add -aux-info option
	handling.

--- gcc/toplev.c.jj	Thu Dec 27 13:49:32 2001
+++ gcc/toplev.c	Thu Dec 27 18:23:03 2001
@@ -4235,6 +4235,30 @@ independent_decode_option (argc, argv)
 	return decode_W_option (arg + 1);
       break;
 
+    case 'a':
+      if (!strncmp (arg, "aux-info", 8))
+	{
+	  if (arg[8] == '\0')
+	    {
+	      if (argc == 1)
+		return 0;
+
+	      aux_info_file_name = argv[1];
+	      flag_gen_aux_info = 1;
+	      return 2;
+	    }
+	  else if (arg[8] == '=')
+	    {
+	      aux_info_file_name = arg + 9;
+	      flag_gen_aux_info = 1;
+	    }
+	  else
+	    return 0;
+	}
+      else
+	return 0;
+      break;
+
     case 'o':
       if (arg[1] == 0)
 	{


	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]