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] |
Hello, Boostrapping a recent trunk on powerpc-ibm-aix5.3.0.0 fails in stage2 with cc1: warnings being treated as errors .../src/gcc/dbxout.c:3393: error: 'dbxout_block' defined but not used which looks legitimate to me. dbxout_block and a number of associated helpers are only referenced #if defined (DBX_DEBUGGING_INFO), and their definition is not so restricted. The attached patch fixes that by arranging to have the definitions and associated declarations conditioned the same way as the references, that is, within an #if defined (DBX_DEBUGGING_INFO) block. Tested by checking that the bootstrap proceeds past the failure point after the change. Olivier 2007-08-29 Olivier Hainque <hainque@adacore.com> * dbxout.c (dbxout_block): Move declaration within the first #if defined (DBX_DEBUGGING_INFO) block. Rearrange another such block to include the definition, together with the associated helpers.
Attachment:
dbxout_block.dif
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |