public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: broken non-BFD assembler
       [not found] <s2036f0a.048@emea1-mh.id2.novell.com>
@ 2005-02-06 11:50 ` Nathan Sidwell
  2005-02-08  7:48 ` Nathan Sidwell
  1 sibling, 0 replies; 3+ messages in thread
From: Nathan Sidwell @ 2005-02-06 11:50 UTC (permalink / raw)
  To: Jan Beulich; +Cc: binutils, Alan Modra

Jan Beulich wrote:
>>	* as.h (seg_not_empty_p): Declare.
>>	* subsegs.c (seg_not_empty_p): New predicate.
> 
> 
> The use of bfd_boolean here breaks non-BFD assemblers. If only used in
> such, declaration and definition should be bounded by #if
> BFD_ASSEMBLER.

ok, it should be change to a plain int.  I'll patch it when sourceware
comes back to life

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: broken non-BFD assembler
       [not found] <s2036f0a.048@emea1-mh.id2.novell.com>
  2005-02-06 11:50 ` broken non-BFD assembler Nathan Sidwell
@ 2005-02-08  7:48 ` Nathan Sidwell
  2005-02-08  8:16   ` Alan Modra
  1 sibling, 1 reply; 3+ messages in thread
From: Nathan Sidwell @ 2005-02-08  7:48 UTC (permalink / raw)
  To: Jan Beulich; +Cc: binutils, Alan Modra

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

Jan Beulich wrote:
>>	* as.h (seg_not_empty_p): Declare.
>>	* subsegs.c (seg_not_empty_p): New predicate.
> 
> 
> The use of bfd_boolean here breaks non-BFD assemblers. If only used in
> such, declaration and definition should be bounded by #if
> BFD_ASSEMBLER.

I've installed the attached obvious patch.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


[-- Attachment #2: bool.patch --]
[-- Type: text/plain, Size: 1776 bytes --]

2005-02-07  Nathan Sidwell  <nathan@codesourcery.com>

	* as.h (seg_not_empty_p): Return int, not bfd_boolean.
	* subsegs.c (seg_not_empty_p): Likewise.

Index: gas/as.h
===================================================================
RCS file: /cvs/src/src/gas/as.h,v
retrieving revision 1.41
diff -c -3 -p -r1.41 as.h
*** gas/as.h	27 Jan 2005 16:33:46 -0000	1.41
--- gas/as.h	7 Feb 2005 17:47:58 -0000
*************** segT   subseg_new (const char *, subsegT
*** 577,583 ****
  segT   subseg_force_new (const char *, subsegT);
  void   subseg_set (segT, subsegT);
  int    subseg_text_p (segT);
! bfd_boolean seg_not_empty_p (segT);
  void   start_dependencies (char *);
  void   register_dependency (char *);
  void   print_dependencies (void);
--- 577,583 ----
  segT   subseg_force_new (const char *, subsegT);
  void   subseg_set (segT, subsegT);
  int    subseg_text_p (segT);
! int    seg_not_empty_p (segT);
  void   start_dependencies (char *);
  void   register_dependency (char *);
  void   print_dependencies (void);
Index: gas/subsegs.c
===================================================================
RCS file: /cvs/src/src/gas/subsegs.c,v
retrieving revision 1.19
diff -c -3 -p -r1.19 subsegs.c
*** gas/subsegs.c	27 Jan 2005 16:33:47 -0000	1.19
--- gas/subsegs.c	7 Feb 2005 17:47:58 -0000
*************** subseg_text_p (segT sec)
*** 601,607 ****
     fr_fix == 0 one still contributes data.  Think of this as
     seg_definitely_not_empty_p.  */
  
! bfd_boolean
  seg_not_empty_p (segT sec)
  {
    segment_info_type *seginfo = seg_info (sec);
--- 601,607 ----
     fr_fix == 0 one still contributes data.  Think of this as
     seg_definitely_not_empty_p.  */
  
! int
  seg_not_empty_p (segT sec)
  {
    segment_info_type *seginfo = seg_info (sec);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: broken non-BFD assembler
  2005-02-08  7:48 ` Nathan Sidwell
@ 2005-02-08  8:16   ` Alan Modra
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Modra @ 2005-02-08  8:16 UTC (permalink / raw)
  To: Nathan Sidwell; +Cc: Jan Beulich, binutils

On Mon, Feb 07, 2005 at 05:54:19PM +0000, Nathan Sidwell wrote:
> Jan Beulich wrote:
> >>	* as.h (seg_not_empty_p): Declare.
> >>	* subsegs.c (seg_not_empty_p): New predicate.
> >
> >
> >The use of bfd_boolean here breaks non-BFD assemblers. If only used in
> >such, declaration and definition should be bounded by #if
> >BFD_ASSEMBLER.

Sorry.  My fault for telling Nathan to use bfd_boolean rather than int.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-07 21:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <s2036f0a.048@emea1-mh.id2.novell.com>
2005-02-06 11:50 ` broken non-BFD assembler Nathan Sidwell
2005-02-08  7:48 ` Nathan Sidwell
2005-02-08  8:16   ` Alan Modra

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).