diff mbox

RFA: Fix target/47101 (vmsdbgout.o build failure)

Message ID 20101229203809.bx6zpmki74g4gg04-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Dec. 30, 2010, 1:38 a.m. UTC
This patch allows the ia64-hp-vms build to progress to the next problem.
Moreover, together with the patch for PR47063, it allows  
alpha64-dec-vms and alpha-dec-vms cross-builds of "all-gcc" to succeed.
2010-12-30  Joern Rennecke  <amylaar@spamcop.net>

	PR target/47101
	* vmsdbgout.c (vmsdbgout_init): Rename main_input_filename to filename.
	(vmsdbgout_finish): Likewise.

Comments

Richard Biener Dec. 30, 2010, 12:43 p.m. UTC | #1
On Thu, Dec 30, 2010 at 2:38 AM, Joern Rennecke <amylaar@spamcop.net> wrote:
> This patch allows the ia64-hp-vms build to progress to the next problem.
> Moreover, together with the patch for PR47063, it allows alpha64-dec-vms and
> alpha-dec-vms cross-builds of "all-gcc" to succeed.

Ok.

Thanks,
Richard.

> 2010-12-30  Joern Rennecke  <amylaar@spamcop.net>
>
>        PR target/47101
>        * vmsdbgout.c (vmsdbgout_init): Rename main_input_filename to
> filename.
>        (vmsdbgout_finish): Likewise.
>
> Index: vmsdbgout.c
> ===================================================================
> --- vmsdbgout.c (revision 168327)
> +++ vmsdbgout.c (working copy)
> @@ -1454,18 +1454,18 @@ vmsdbgout_end_source_file (unsigned int
>  /* Set up for Debug output at the start of compilation.  */
>
>  static void
> -vmsdbgout_init (const char *main_input_filename)
> +vmsdbgout_init (const char *filename)
>  {
>   const char *language_string = lang_hooks.name;
>
>   if (write_symbols == VMS_AND_DWARF2_DEBUG)
> -    (*dwarf2_debug_hooks.init) (main_input_filename);
> +    (*dwarf2_debug_hooks.init) (filename);
>
>   if (debug_info_level == DINFO_LEVEL_NONE)
>     return;
>
>   /* Remember the name of the primary input file.  */
> -  primary_filename = main_input_filename;
> +  primary_filename = filename;
>
>   /* Allocate the initial hunk of the file_info_table.  */
>   file_info_table = XCNEWVEC (dst_file_info_entry, FILE_TABLE_INCREMENT);
> @@ -1568,13 +1568,13 @@ vmsdbgout_abstract_function (tree decl)
>    VMS Debug debugging info.  */
>
>  static void
> -vmsdbgout_finish (const char *main_input_filename ATTRIBUTE_UNUSED)
> +vmsdbgout_finish (const char *filename ATTRIBUTE_UNUSED)
>  {
>   unsigned int i, ifunc;
>   int totsize;
>
>   if (write_symbols == VMS_AND_DWARF2_DEBUG)
> -    (*dwarf2_debug_hooks.finish) (main_input_filename);
> +    (*dwarf2_debug_hooks.finish) (filename);
>
>   if (debug_info_level == DINFO_LEVEL_NONE)
>     return;
>
>
diff mbox

Patch

Index: vmsdbgout.c
===================================================================
--- vmsdbgout.c	(revision 168327)
+++ vmsdbgout.c	(working copy)
@@ -1454,18 +1454,18 @@  vmsdbgout_end_source_file (unsigned int 
 /* Set up for Debug output at the start of compilation.  */
 
 static void
-vmsdbgout_init (const char *main_input_filename)
+vmsdbgout_init (const char *filename)
 {
   const char *language_string = lang_hooks.name;
 
   if (write_symbols == VMS_AND_DWARF2_DEBUG)
-    (*dwarf2_debug_hooks.init) (main_input_filename);
+    (*dwarf2_debug_hooks.init) (filename);
 
   if (debug_info_level == DINFO_LEVEL_NONE)
     return;
 
   /* Remember the name of the primary input file.  */
-  primary_filename = main_input_filename;
+  primary_filename = filename;
 
   /* Allocate the initial hunk of the file_info_table.  */
   file_info_table = XCNEWVEC (dst_file_info_entry, FILE_TABLE_INCREMENT);
@@ -1568,13 +1568,13 @@  vmsdbgout_abstract_function (tree decl)
    VMS Debug debugging info.  */
 
 static void
-vmsdbgout_finish (const char *main_input_filename ATTRIBUTE_UNUSED)
+vmsdbgout_finish (const char *filename ATTRIBUTE_UNUSED)
 {
   unsigned int i, ifunc;
   int totsize;
 
   if (write_symbols == VMS_AND_DWARF2_DEBUG)
-    (*dwarf2_debug_hooks.finish) (main_input_filename);
+    (*dwarf2_debug_hooks.finish) (filename);
 
   if (debug_info_level == DINFO_LEVEL_NONE)
     return;