All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randolph Chung <tausq@debian.org>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: Grant Grundler <grundler@dsl2.external.hp.com>,
	jsoe0708@tiscali.be, parisc-linux@lists.parisc-linux.org,
	debian-hppa@lists.debian.org
Subject: Re: [parisc-linux] new gcc-default for hppa
Date: Mon, 27 Jan 2003 23:31:01 -0800	[thread overview]
Message-ID: <20030128073101.GD20940@tausq.org> (raw)
In-Reply-To: <20030127072615.GF8487@tausq.org>

> well.... Grant and I did some more debugging on this.... here's what
> we've tried so far:

ok, here's what's happening apparently.... (with many thanks to Grant 
for a sharp eye :)

The pty_init() function does a number of structure copies. e.g.

init_termios is a 36-byte structure.

	pty_driver.init_termios = tty_std_termios;
	pty_driver.init_termios.c_iflag = 0;
	pty_driver.init_termios.c_oflag = 0;
	pty_driver.init_termios.c_cflag = B38400 | CS8 | CREAD;
	pty_driver.init_termios.c_lflag = 0;

gcc translates this to something like this:
    /* %r4 is &pty_driver */
    ldo 28(%r4),%r23
    ldi 28,%r21
    ldw,ma 4(%r22),%r20
    ldw,ma 4(%r22),%r19
    stw,ma %r20,4(%r23)
    addib,>= -8,%r21,.-12
    stw,ma %r19,4(%r23)
    /* ... */
    stw %r0,28(%r4)
    stw %r0,32(%r4)
    stw %r10,36(%r4)
    stw %r0,40(%r4)

When optimizations are turned on, gcc reschedules some of those final 
stw insns above the structure copy loop. When the structure copy 
happens, the values get overwritten. ick.

this was kind of interesting to debug :) but i have no idea how to fix
it. Dave? :)

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

  reply	other threads:[~2003-01-28  7:35 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10 16:31 [parisc-linux] new gcc-default for hppa jsoe0708
2003-01-10 17:09 ` Randolph Chung
2003-01-10 18:18   ` jsoe0708
2003-01-10 18:18   ` jsoe0708
2003-01-13 18:36   ` jsoe0708
2003-01-13 19:38     ` Grant Grundler
2003-01-13 19:38     ` Grant Grundler
2003-01-14  6:57       ` jsoe0708
2003-01-14 16:52         ` Grant Grundler
2003-01-14 17:49           ` jsoe0708
2003-01-14 17:49           ` jsoe0708
2003-01-15 16:14             ` jsoe0708
2003-01-16  1:06               ` Grant Grundler
2003-01-16  4:12                 ` Jeremy Drake
2003-01-16  4:12                 ` Jeremy Drake
2003-01-16 14:37                 ` M. Grabert
2003-01-16 15:02                   ` jsoe0708
2003-01-16 15:44                     ` jsoe0708
2003-01-16 15:44                     ` jsoe0708
2003-01-16 15:02                   ` jsoe0708
2003-01-16 14:37                 ` M. Grabert
2003-01-16  1:06               ` Grant Grundler
2003-01-16  1:41               ` Grant Grundler
2003-01-21 23:57                 ` Grant Grundler
2003-01-21 23:57                 ` Grant Grundler
2003-01-24 11:02                   ` Joel Soete
2003-01-24 11:02                   ` Joel Soete
2003-01-25  1:18                     ` Grant Grundler
2003-01-25  1:18                     ` Grant Grundler
2003-01-25  4:23                     ` John David Anglin
2003-01-25  4:23                     ` John David Anglin
2003-01-25 18:30                       ` Joel Soete
2003-01-25 17:44                         ` John David Anglin
2003-01-25 17:44                         ` John David Anglin
2003-01-25 18:30                       ` Joel Soete
2003-01-26  4:46                   ` Grant Grundler
2003-01-26  5:09                     ` John David Anglin
2003-01-27  7:26                       ` Randolph Chung
2003-01-27  7:26                       ` Randolph Chung
2003-01-28  7:31                         ` Randolph Chung [this message]
2003-01-28  7:46                           ` Randolph Chung
2003-01-28  9:16                             ` Patrick Caulfield
2003-01-28 11:54                               ` Joel Soete
2003-01-28 12:58                                 ` Joel Soete
2003-01-30 15:38                             ` Michael Wood
2003-01-30 15:38                             ` Michael Wood
2003-01-30 15:34                               ` Randolph Chung
2003-01-30 15:34                               ` Randolph Chung
2003-01-28  7:46                           ` Randolph Chung
2003-01-28 14:47                           ` John David Anglin
2003-01-28 14:47                           ` John David Anglin
2003-01-28  7:31                         ` Randolph Chung
2003-01-26  5:09                     ` John David Anglin
2003-01-26  4:46                   ` Grant Grundler
2003-01-16  1:41               ` Grant Grundler
2003-01-15 16:14             ` jsoe0708
2003-01-14 16:52         ` Grant Grundler
2003-01-14  6:57       ` jsoe0708
2003-01-14  8:22       ` Patrick Caulfield
2003-01-14 10:03     ` [parisc-linux] new gcc-snapshot problem [was: new gcc-default for hppa] jsoe0708
2003-01-14 13:54       ` John David Anglin
2003-01-14 14:16         ` Matthew Wilcox
2003-01-14 14:16         ` Matthew Wilcox
2003-01-14 14:44         ` jsoe0708
2003-01-14 15:04           ` John David Anglin
2003-01-14 15:04           ` John David Anglin
2003-01-14 15:28             ` jsoe0708
2003-01-14 15:28             ` jsoe0708
2003-01-14 14:44         ` jsoe0708
2003-01-14 13:54       ` John David Anglin
2003-01-14 10:03     ` jsoe0708
2003-01-13 18:36   ` [parisc-linux] new gcc-default for hppa jsoe0708
2003-01-10 17:09 ` Randolph Chung
  -- strict thread matches above, loose matches on Subject: below --
2003-01-16 11:35 jsoe0708
2003-01-16 11:35 jsoe0708
2003-01-10 16:31 jsoe0708

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=20030128073101.GD20940@tausq.org \
    --to=tausq@debian.org \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=debian-hppa@lists.debian.org \
    --cc=grundler@dsl2.external.hp.com \
    --cc=jsoe0708@tiscali.be \
    --cc=parisc-linux@lists.parisc-linux.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.