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] |
On Thu, Jul 10, 2008 at 22:40, Bill Maddox <maddox@google.com> wrote: > This patch corrects -Wcast_qual and -Wc++-compat warnings in the > gcc/lto subdirectory. > Warnings in this directory are not being treated as errors. I've committed the following variant that adds -Werror to Make-lang.in and addresses the comments I sent earlier. Bootstrapped on x86_64. Testing in progress. 2008-07-11 Bill Maddox <maddox@google.com> Diego Novillo <dnovillo@google.com> * lto.c (lto_read_decls): Fix C++ compatibility warnings. Make code const-correct. (lto_file_read): Fix C++ compatibility warnings. (lto_read_section_data): Fix C++ compatibility warnings. (lto_get_section_data): Use CONST_CAST to avoid warning when const pointer passed to free. * lto-elf.c (lto_elf_build_section_table): Fix C++ compatibility warnings. (lto_elf_append_data): Fix C++ compatibility warnings. Use CONST_CAST to avoid warning assigning const pointer to d_buf field of Elf_Data. (lto_get_current_out_file): Fix C++ compatibility warnings. 2008-07-11 Diego Novillo <dnovillo@google.com> * Make-lang.in (lto-warn): Define. Diego.
Attachment:
lto-warning-fix-07-10.txt
Description: Text document
Attachment:
20080711-add-Werror-to-lto.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |