public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Newlib 1.8.1 problem: strcat causes bus address error
@ 1999-11-16  7:59 Borkhuis, Johan
  1999-11-30 23:39 ` Borkhuis, Johan
  0 siblings, 1 reply; 6+ messages in thread
From: Borkhuis, Johan @ 1999-11-16  7:59 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

> ----------
> From: 	Chris Faylor[SMTP:cgf@cygnus.com]
> Reply To: 	cygwin@sourceware.cygnus.com
> Sent: 	dinsdag 16 november 1999 15:56
> To: 	Borkhuis, Johan
> Cc: 	'cygwin@sourceware.cygnus.com'
> Subject: 	Re: Newlib 1.8.1 problem: strcat causes bus address error
> 
> If I'm understanding your question correctly, you are attempting to use
> newlib on an m68k target.  If that is the case, this has nothing to
> do with cygwin and is off-topic for this mailing list.
> 
I am sorry about that. I sent the message to the wrong mailing list by
mistake.

> There is a newlib mailing list: newlib@sourceware.cygnus.com .
> It is probably best to send your query there.
> 
I did not know that there is a newlib mailing list. It was not available on
the Cygnus mailinglist page, so I sent the message to the cross-GCC list and
to the address in the readme (newlib@cygnus.com) and (by mistake) to the
cygwin mailing list.

Thanks for your message.

Groeten
          Johan

--
     o o o o o o o . . .   ___________________________________
    o      _____           ||  Johan Borkhuis                |
  .][__n_n_|DD[  ====_____  |  johan.borkhuis@peektraffic.nl |
 >(________|__|_[_________]_|________________________________|
 _/oo OOOOO oo`  ooo   ooo  'o!o!o                      o!o!o`
= VxWorks page: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html =


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Newlib 1.8.1 problem: strcat causes bus address error
  1999-11-16  7:59 Newlib 1.8.1 problem: strcat causes bus address error Borkhuis, Johan
@ 1999-11-30 23:39 ` Borkhuis, Johan
  0 siblings, 0 replies; 6+ messages in thread
From: Borkhuis, Johan @ 1999-11-30 23:39 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

> ----------
> From: 	Chris Faylor[SMTP:cgf@cygnus.com]
> Reply To: 	cygwin@sourceware.cygnus.com
> Sent: 	dinsdag 16 november 1999 15:56
> To: 	Borkhuis, Johan
> Cc: 	'cygwin@sourceware.cygnus.com'
> Subject: 	Re: Newlib 1.8.1 problem: strcat causes bus address error
> 
> If I'm understanding your question correctly, you are attempting to use
> newlib on an m68k target.  If that is the case, this has nothing to
> do with cygwin and is off-topic for this mailing list.
> 
I am sorry about that. I sent the message to the wrong mailing list by
mistake.

> There is a newlib mailing list: newlib@sourceware.cygnus.com .
> It is probably best to send your query there.
> 
I did not know that there is a newlib mailing list. It was not available on
the Cygnus mailinglist page, so I sent the message to the cross-GCC list and
to the address in the readme (newlib@cygnus.com) and (by mistake) to the
cygwin mailing list.

Thanks for your message.

Groeten
          Johan

--
     o o o o o o o . . .   ___________________________________
    o      _____           ||  Johan Borkhuis                |
  .][__n_n_|DD[  ====_____  |  johan.borkhuis@peektraffic.nl |
 >(________|__|_[_________]_|________________________________|
 _/oo OOOOO oo`  ooo   ooo  'o!o!o                      o!o!o`
= VxWorks page: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html =


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Newlib 1.8.1 problem: strcat causes bus address error
  1999-11-16  6:56 ` Chris Faylor
@ 1999-11-30 23:39   ` Chris Faylor
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Faylor @ 1999-11-30 23:39 UTC (permalink / raw)
  To: Borkhuis, Johan; +Cc: 'cygwin@sourceware.cygnus.com'

On Tue, Nov 16, 1999 at 01:31:35PM +0100, Borkhuis, Johan wrote:
>We are using the GNU toolchain for m68k and newlib. When we are running our
>SW we get a bus address error. This error occurs in strcat. The code where
>the problem comes from is the following:
>
>  /* Skip over the data in s1 as quickly as possible.  */
>  if (ALIGNED (s1))
>    {
>      unsigned long *aligned_s1 = (unsigned long *)s1;
>      while (!DETECTNULL (*aligned_s1))
>	aligned_s1++;
>
>      s1 = (char *)aligned_s1;
>    }
>
>with ALLIGNED replaced with the following:
>
>#define ALIGNED(X)   (((long)X & (sizeof (long) - 1)))
>
>The error occured in the first assignement, because s1 is not alligned.
>The problems is created by the macro ALLIGNED. When X is not a multiple of 4
>(for a 32 bit long) this function returns TRUE when it should return FALSE.
>(BTW: this macro is also used in other modules, but there it is called
>UNALLIGNED.)
>
>Did anyone discover this problem, or is there a workaround for this?

If I'm understanding your question correctly, you are attempting to use
newlib on an m68k target.  If that is the case, this has nothing to
do with cygwin and is off-topic for this mailing list.

There is a newlib mailing list: newlib@sourceware.cygnus.com .
It is probably best to send your query there.

-Chris Faylor
-Cygwin Engineering Manager
-Cygnus Solutions

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Newlib 1.8.1 problem: strcat causes bus address error
  1999-11-16  4:30 Borkhuis, Johan
  1999-11-16  6:56 ` Chris Faylor
@ 1999-11-30 23:39 ` Borkhuis, Johan
  1 sibling, 0 replies; 6+ messages in thread
From: Borkhuis, Johan @ 1999-11-30 23:39 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

Hello,

We are using the GNU toolchain for m68k and newlib. When we are running our
SW we get a bus address error. This error occurs in strcat. The code where
the problem comes from is the following:

  /* Skip over the data in s1 as quickly as possible.  */
  if (ALIGNED (s1))
    {
      unsigned long *aligned_s1 = (unsigned long *)s1;
      while (!DETECTNULL (*aligned_s1))
	aligned_s1++;

      s1 = (char *)aligned_s1;
    }

with ALLIGNED replaced with the following:

#define ALIGNED(X)   (((long)X & (sizeof (long) - 1)))

The error occured in the first assignement, because s1 is not alligned.
The problems is created by the macro ALLIGNED. When X is not a multiple of 4
(for a 32 bit long) this function returns TRUE when it should return FALSE.
(BTW: this macro is also used in other modules, but there it is called
UNALLIGNED.)

Did anyone discover this problem, or is there a workaround for this?

Groeten
          Johan

--
     o o o o o o o . . .   ___________________________________
    o      _____           ||  Johan Borkhuis                |
  .][__n_n_|DD[  ====_____  |  johan.borkhuis@peektraffic.nl |
 >(________|__|_[_________]_|________________________________|
 _/oo OOOOO oo`  ooo   ooo  'o!o!o                      o!o!o`
= VxWorks page: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html =

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Newlib 1.8.1 problem: strcat causes bus address error
  1999-11-16  4:30 Borkhuis, Johan
@ 1999-11-16  6:56 ` Chris Faylor
  1999-11-30 23:39   ` Chris Faylor
  1999-11-30 23:39 ` Borkhuis, Johan
  1 sibling, 1 reply; 6+ messages in thread
From: Chris Faylor @ 1999-11-16  6:56 UTC (permalink / raw)
  To: Borkhuis, Johan; +Cc: 'cygwin@sourceware.cygnus.com'

On Tue, Nov 16, 1999 at 01:31:35PM +0100, Borkhuis, Johan wrote:
>We are using the GNU toolchain for m68k and newlib. When we are running our
>SW we get a bus address error. This error occurs in strcat. The code where
>the problem comes from is the following:
>
>  /* Skip over the data in s1 as quickly as possible.  */
>  if (ALIGNED (s1))
>    {
>      unsigned long *aligned_s1 = (unsigned long *)s1;
>      while (!DETECTNULL (*aligned_s1))
>	aligned_s1++;
>
>      s1 = (char *)aligned_s1;
>    }
>
>with ALLIGNED replaced with the following:
>
>#define ALIGNED(X)   (((long)X & (sizeof (long) - 1)))
>
>The error occured in the first assignement, because s1 is not alligned.
>The problems is created by the macro ALLIGNED. When X is not a multiple of 4
>(for a 32 bit long) this function returns TRUE when it should return FALSE.
>(BTW: this macro is also used in other modules, but there it is called
>UNALLIGNED.)
>
>Did anyone discover this problem, or is there a workaround for this?

If I'm understanding your question correctly, you are attempting to use
newlib on an m68k target.  If that is the case, this has nothing to
do with cygwin and is off-topic for this mailing list.

There is a newlib mailing list: newlib@sourceware.cygnus.com .
It is probably best to send your query there.

-Chris Faylor
-Cygwin Engineering Manager
-Cygnus Solutions

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Newlib 1.8.1 problem: strcat causes bus address error
@ 1999-11-16  4:30 Borkhuis, Johan
  1999-11-16  6:56 ` Chris Faylor
  1999-11-30 23:39 ` Borkhuis, Johan
  0 siblings, 2 replies; 6+ messages in thread
From: Borkhuis, Johan @ 1999-11-16  4:30 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

Hello,

We are using the GNU toolchain for m68k and newlib. When we are running our
SW we get a bus address error. This error occurs in strcat. The code where
the problem comes from is the following:

  /* Skip over the data in s1 as quickly as possible.  */
  if (ALIGNED (s1))
    {
      unsigned long *aligned_s1 = (unsigned long *)s1;
      while (!DETECTNULL (*aligned_s1))
	aligned_s1++;

      s1 = (char *)aligned_s1;
    }

with ALLIGNED replaced with the following:

#define ALIGNED(X)   (((long)X & (sizeof (long) - 1)))

The error occured in the first assignement, because s1 is not alligned.
The problems is created by the macro ALLIGNED. When X is not a multiple of 4
(for a 32 bit long) this function returns TRUE when it should return FALSE.
(BTW: this macro is also used in other modules, but there it is called
UNALLIGNED.)

Did anyone discover this problem, or is there a workaround for this?

Groeten
          Johan

--
     o o o o o o o . . .   ___________________________________
    o      _____           ||  Johan Borkhuis                |
  .][__n_n_|DD[  ====_____  |  johan.borkhuis@peektraffic.nl |
 >(________|__|_[_________]_|________________________________|
 _/oo OOOOO oo`  ooo   ooo  'o!o!o                      o!o!o`
= VxWorks page: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html =

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~1999-11-30 23:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-16  7:59 Newlib 1.8.1 problem: strcat causes bus address error Borkhuis, Johan
1999-11-30 23:39 ` Borkhuis, Johan
  -- strict thread matches above, loose matches on Subject: below --
1999-11-16  4:30 Borkhuis, Johan
1999-11-16  6:56 ` Chris Faylor
1999-11-30 23:39   ` Chris Faylor
1999-11-30 23:39 ` Borkhuis, Johan

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