[parisc-linux] hppa64 gcc sizeof() bug?

Grant Grundler grundler@cup.hp.com
Wed, 06 Dec 2000 10:28:12 -0800


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