Various build fixes.
[mingw-build.git] / binutils1.patch
1 A patch from bug #752071 to fix build already sent to upstream.
2 --- a/bfd/bfd-in.h
3 +++ b/bfd/bfd-in.h
4 @@ -294,9 +294,9 @@
5  
6  #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
7  
8 -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)
9 -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
10 -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
11 +#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE))
12 +#define bfd_set_section_alignment(bfd, ptr, val) ((ptr)->alignment_power = (val))
13 +#define bfd_set_section_userdata(bfd, ptr, val) ((ptr)->userdata = (val))
14  /* Find the address one past the end of SEC.  */
15  #define bfd_get_section_limit(bfd, sec) \
16    (((bfd)->direction != write_direction && (sec)->rawsize != 0 \
17 @@ -519,7 +519,7 @@
18  
19  #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
20  
21 -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
22 +#define bfd_set_cacheable(abfd,bool) ((abfd)->cacheable = bool)
23  
24  extern bfd_boolean bfd_cache_close
25    (bfd *abfd);
26 --- a/bfd/bfd-in2.h
27 +++ b/bfd/bfd-in2.h
28 @@ -301,9 +301,9 @@
29  
30  #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
31  
32 -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)
33 -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
34 -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
35 +#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE))
36 +#define bfd_set_section_alignment(bfd, ptr, val) ((ptr)->alignment_power = (val))
37 +#define bfd_set_section_userdata(bfd, ptr, val) ((ptr)->userdata = (val))
38  /* Find the address one past the end of SEC.  */
39  #define bfd_get_section_limit(bfd, sec) \
40    (((bfd)->direction != write_direction && (sec)->rawsize != 0 \
41 @@ -526,7 +526,7 @@
42  
43  #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
44  
45 -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
46 +#define bfd_set_cacheable(abfd,bool) ((abfd)->cacheable = bool)
47  
48  extern bfd_boolean bfd_cache_close
49    (bfd *abfd);