From: Mark Davies <mdavies@ibm.net>
To: egcs@cygnus.com
Subject: signal 6 while compiling
Date: Sat, 04 Apr 1998 14:20:00 -0000 [thread overview]
Message-ID: <35251D74.64C65280@ibm.net> (raw)
While compiling linux 2.1.9[12] with egcs980328 (cvs) I got a signal 6
when compiling
3c503.c. I've stripped the source as much as I can and replicated it
below.
I also get the same problem while compiling regex on glibc2
Mark.
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
// comment this out and it compiles ?
#include <asm/io.h>
#include "8390.h"
#include "3c503.h"
// gives error - function type not a prototype
static void
el2_block_input( );
void dummy();
static void
el2_block_input( )
{
int count;
int ring_offset;
struct sk_buff *skb;
unsigned short int *buf;
struct device *dev;
// removing these variables and changing the memcpy below compiles ok.
int end_of_ring = dev->rmem_end;
int semi_count = end_of_ring - (dev->mem_start + ring_offset);
// comment this out and it compiles - with or without changing the lines
// above
memcpy_fromio(skb->data, dev->mem_start + ring_offset, semi_count);
// comment this out and it compiles
outb_p((ei_status.interface_num == 0 ? ECNTRL_THIN : ECNTRL_AUI) |
ECNTRL_INPUT
| ECNTRL_START, E33G_CNTRL);
// comment this out and it compiles
buf = (unsigned short int *) skb->data;
// comment this out and it compiles
count = (count + 1) >> 1;
// Remove the if and/or the for loop and it compiles ok.
// it doesn't seem to matter whats inside the if or for loop
// except for the insw
for(;;)
{
if(count > 0)
{
}
else
{
// comment this out and it compiles
insw(E33G_FIFOH, buf, count);
// changing to this compiles
// insw(E33G_FIFOH, (short int *)0, count);
// changing to this compiles
// insw(E33G_FIFOH, buf, 0);
}
}
return;
}
next reply other threads:[~1998-04-04 14:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-04 14:20 Mark Davies [this message]
1998-04-07 15:26 ` Jim Wilson
1998-04-07 15:26 ` Jim Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35251D74.64C65280@ibm.net \
--to=mdavies@ibm.net \
--cc=egcs@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).