From: Grant Grundler <grundler@cup.hp.com>
To: Richard Hirst <rhirst@linuxcare.com>
Cc: Alan Modra <alan@linuxcare.com.au>, parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] hppa64 gcc sizeof() bug?
Date: Wed, 06 Dec 2000 10:28:12 -0800 [thread overview]
Message-ID: <200012061828.KAA06072@milano.cup.hp.com> (raw)
In-Reply-To: Your message of "Wed, 06 Dec 2000 12:18:55 PST." <20001206121855.S7166@linuxcare.com>
Richard Hirst wrote:
> > int sys32_get_kernel_syms(struct kernel_sym32 *table)
...
> Just changed it to 'table += 64' and it still generates code that
> adds 4096, so sizeof is not relevant.
Right. sizeof() works fine.
table points to something that is 4096/64 (64 bytes) in size.
table+=1 results in adding 4096/64 to table.
The code should read "((char *) table) += 64" or "table++".
grant
Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253
next prev parent reply other threads:[~2000-12-06 18:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-06 11:52 [parisc-linux] hppa64 gcc sizeof() bug? Richard Hirst
2000-12-06 12:18 ` Richard Hirst
2000-12-06 18:28 ` Grant Grundler [this message]
2000-12-06 12:44 ` Richard Hirst
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=200012061828.KAA06072@milano.cup.hp.com \
--to=grundler@cup.hp.com \
--cc=alan@linuxcare.com.au \
--cc=parisc-linux@thepuffingroup.com \
--cc=rhirst@linuxcare.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