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]

[Committed] Delete problematic premark_used_types prototype


The following patch resolves the bootstrap failure on AIX and other
non-dwarf2 platforms.  The failure is that we prototype the static
function premark_used_types outside of the #ifdef DWARF2_DEBUGGING_INFO
used in this file, which results in a stage2 "warnings treated as
errors" failure, as we prototype a static function that we don't
define.

One possible fix is to move the problematic function prototype to
the correct place at the top of the file.  However, an even simpler
fix is to observe that this function is defined before its used and
therefore doesn't need a prototype according to the current GNU
style guidelines.  The obvious patch below simply removes it.


The following patch has been tested on powerpc-ibm-aix5.2.0.0 where
it allows a bootstrap to continue past this point.

Committed to mainline as revision 112857.



2006-04-11  Roger Sayle  <roger@eyesopen.com>

	* dwarf2out.c (premark_used_types): Remove problematic prototype.


Index: dwarf2out.c
===================================================================
*** dwarf2out.c	(revision 112856)
--- dwarf2out.c	(working copy)
*************** static void dwarf2out_stack_adjust (rtx,
*** 354,360 ****
  static void flush_queued_reg_saves (void);
  static bool clobbers_queued_reg_save (rtx);
  static void dwarf2out_frame_debug_expr (rtx, const char *);
- static void premark_used_types (void);

  /* Support for complex CFA locations.  */
  static void output_cfa_loc (dw_cfi_ref);
--- 354,359 ----


Roger
--


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