summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-12-09 18:59:54 +0000
committerTom Tromey <tromey@redhat.com>2008-12-09 18:59:54 +0000
commitda83465ce54501900e17ba58612235bcec583afc (patch)
tree3736fdc0c60b9e46121fb25d36061a050af64785
parenta17930004eea4cda64bcc8fc0b90cb11c5225b54 (diff)
downloadbinutils-redhat-da83465ce54501900e17ba58612235bcec583afc.tar.gz
bfd
* pef.c (bfd_pef_parse_traceback_table): Add parens to placate gcc 4.4. binutils * srconv.c (wr_hd): Add parens to placate gcc 4.4.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/pef.c2
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/srconv.c4
4 files changed, 12 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 93a8de835d..2a8aab328c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-09 Tom Tromey <tromey@redhat.com>
+
+ * pef.c (bfd_pef_parse_traceback_table): Add parens to placate gcc
+ 4.4.
+
2008-12-09 Tristan Gingold <gingold@adacore.com>
* cpu-avr.c (compatible): Makes avr-6 compatible only with itself.
diff --git a/bfd/pef.c b/bfd/pef.c
index 6630a770b9..b839095146 100644
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -97,7 +97,7 @@ bfd_pef_parse_traceback_table (bfd *abfd,
if (! (table.flags2 & TB_NAME_PRESENT))
return -1;
- if (! table.flags1 & TB_HAS_TBOFF)
+ if (! (table.flags1 & TB_HAS_TBOFF))
return -1;
offset = 8;
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index e6ee1fb733..6a868b141c 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-09 Tom Tromey <tromey@redhat.com>
+
+ * srconv.c (wr_hd): Add parens to placate gcc 4.4.
+
2008-12-09 Andrew Stubbs <ams@codesourcery.com>
* readelf.c (arm_attr_tag_CPU_arch): Add "v6-M" and "v6S-M".
diff --git a/binutils/srconv.c b/binutils/srconv.c
index 2a7d63876a..efccd66439 100644
--- a/binutils/srconv.c
+++ b/binutils/srconv.c
@@ -1,6 +1,6 @@
/* srconv.c -- Sysroff conversion program
Copyright 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- 2005, 2007 Free Software Foundation, Inc.
+ 2005, 2007, 2008 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -415,7 +415,7 @@ wr_hd (struct coff_ofile *p)
abort ();
}
- if (! bfd_get_file_flags(abfd) & EXEC_P)
+ if (! (bfd_get_file_flags(abfd) & EXEC_P))
{
hd.ep = 0;
}