diff mbox series

[committed] Unbreak non-ELF target bootstrap (PR bootstrap/89539)

Message ID 20190301081221.GN7611@tucnak
State New
Headers show
Series [committed] Unbreak non-ELF target bootstrap (PR bootstrap/89539) | expand

Commit Message

Jakub Jelinek March 1, 2019, 8:12 a.m. UTC
Hi!

The new early_lto_debug argument is right now used solely in
#if defined (OBJECT_FORMAT_ELF)
guarded parts of the function, so on other targets it warns about unused
parameter.

Fixed thusly, committed to trunk as obvious.

2019-03-01  Jakub Jelinek  <jakub@redhat.com>

	PR bootstrap/89539
	* dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
	early_lto_debug argument.


	Jakub
diff mbox series

Patch

--- gcc/dwarf2out.c.jj	2019-02-27 15:49:28.567392391 +0100
+++ gcc/dwarf2out.c	2019-03-01 09:04:15.440751912 +0100
@@ -11234,7 +11234,8 @@  output_skeleton_debug_sections (dw_die_r
 /* Output a comdat type unit DIE and its children.  */
 
 static void
-output_comdat_type_unit (comdat_type_node *node, bool early_lto_debug)
+output_comdat_type_unit (comdat_type_node *node,
+			 bool early_lto_debug ATTRIBUTE_UNUSED)
 {
   const char *secname;
   char *tmp;