public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug build/16873] New: GDB 7.7 does not build with GCC 4.9 @ 2014-04-24 22:43 sergiodj at redhat dot com 2014-04-24 22:43 ` [Bug build/16873] " sergiodj at redhat dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: sergiodj at redhat dot com @ 2014-04-24 22:43 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=16873 Bug ID: 16873 Summary: GDB 7.7 does not build with GCC 4.9 Product: gdb Version: 7.7 Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: sergiodj at redhat dot com This bug is about building GDB 7.7 with GCC 4.9. Currently, this leads to some errors coming from BFD: In file included from ../../gdb/defs.h:104:0, from ../../gdb/cli/cli-dump.c:22: ../../gdb/cli/cli-dump.c: In function 'dump_bfd_file': ../bfd/bfd.h:302:108: error: right-hand operand of comma expression has no effect [-Werror=unused-value] #define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) ^ ../../gdb/cli/cli-dump.c:197:3: note: in expansion of macro 'bfd_set_section_vma' bfd_set_section_vma (obfd, osection, vaddr); ^ ../bfd/bfd.h:303:83: error: right-hand operand of comma expression has no effect [-Werror=unused-value] #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) ^ ../../gdb/cli/cli-dump.c:198:3: note: in expansion of macro 'bfd_set_section_alignment' bfd_set_section_alignment (obfd, osection, 0); The fix already exists on the master branch: commit 27b829ee701e29804216b3803fbaeb629be27491 Author: Nick Clifton <nickc@redhat.com> Date: Wed Jan 29 13:46:39 2014 +0000 It is just a matter of backporting it to the 7.7 branch before the 7.7.1 release. I am creating this bug to document the issue. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug build/16873] GDB 7.7 does not build with GCC 4.9 2014-04-24 22:43 [Bug build/16873] New: GDB 7.7 does not build with GCC 4.9 sergiodj at redhat dot com @ 2014-04-24 22:43 ` sergiodj at redhat dot com 2014-04-24 23:16 ` cvs-commit at gcc dot gnu.org 2014-04-24 23:18 ` sergiodj at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: sergiodj at redhat dot com @ 2014-04-24 22:43 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=16873 Sergio Durigan Junior <sergiodj at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at sourceware dot org |sergiodj at redhat dot com -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug build/16873] GDB 7.7 does not build with GCC 4.9 2014-04-24 22:43 [Bug build/16873] New: GDB 7.7 does not build with GCC 4.9 sergiodj at redhat dot com 2014-04-24 22:43 ` [Bug build/16873] " sergiodj at redhat dot com @ 2014-04-24 23:16 ` cvs-commit at gcc dot gnu.org 2014-04-24 23:18 ` sergiodj at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2014-04-24 23:16 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=16873 --- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, gdb-7.7-branch has been updated via 8a90a4ef6a9c5acb6fd363c7c556682578aa9254 (commit) from 87a1630ead223311c409d19e98553c4fa363cb59 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8a90a4ef6a9c5acb6fd363c7c556682578aa9254 commit 8a90a4ef6a9c5acb6fd363c7c556682578aa9254 Author: Nick Clifton <nickc@redhat.com> Date: Wed Jan 29 13:46:39 2014 +0000 Following up on Tom's suggestion I am checking in a patch to replace the various bfd_xxx_set macros with static inline functions, so that we can avoid compile time warnings about comma expressions with unused values. PR build/16873 * bfd-in.h (bfd_set_section_vma): Delete. (bfd_set_section_alignment): Delete. (bfd_set_section_userdata): Delete. (bfd_set_cacheable): Delete. * bfd.c (bfd_set_cacheable): New static inline function. * section.c (bfd_set_section_userdata): Likewise. (bfd_set_section_vma): Likewise. (bfd_set_section_alignment): Likewise. * bfd-in2.h: Regenerate. ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 14 ++++++++++++++ bfd/bfd-in.h | 5 ----- bfd/bfd-in2.h | 41 +++++++++++++++++++++++++++++++++++------ bfd/bfd.c | 8 ++++++++ bfd/section.c | 26 ++++++++++++++++++++++++++ 5 files changed, 83 insertions(+), 11 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug build/16873] GDB 7.7 does not build with GCC 4.9 2014-04-24 22:43 [Bug build/16873] New: GDB 7.7 does not build with GCC 4.9 sergiodj at redhat dot com 2014-04-24 22:43 ` [Bug build/16873] " sergiodj at redhat dot com 2014-04-24 23:16 ` cvs-commit at gcc dot gnu.org @ 2014-04-24 23:18 ` sergiodj at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: sergiodj at redhat dot com @ 2014-04-24 23:18 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=16873 Sergio Durigan Junior <sergiodj at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Sergio Durigan Junior <sergiodj at redhat dot com> --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-24 23:18 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-04-24 22:43 [Bug build/16873] New: GDB 7.7 does not build with GCC 4.9 sergiodj at redhat dot com 2014-04-24 22:43 ` [Bug build/16873] " sergiodj at redhat dot com 2014-04-24 23:16 ` cvs-commit at gcc dot gnu.org 2014-04-24 23:18 ` sergiodj at redhat dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).