Internal compiler error
Dave (dhd),
Since you expressed an interest in compiler bugs:
...
make[1]: Leaving directory `/linux/grundler/linux-2.3/arch/parisc/hpux'
hppa-linux-gcc -I/linux/grundler/linux-2.3/include -D__KERNEL__ -I/linux/grundler/linux-2.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -ffunction-sections -D__linux__ -pipe -fno-strength-reduce -DUTS_MACHINE='"parisc"' -c -o init/version.o init/version.c dino.c: In function `dino_common_init':
dino.c:675: incompatible type for argument 2 of `list_add'
dino.c:675: Tree check: expected class 't', have 'x' (error_mark)
dino.c:675: Internal compiler error in `expand_inline_function', at integrate.c:678
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [dino.o] Error 1
make[3]: Leaving directory `/linux/grundler/linux-2.3/drivers/gsc'
...
I'm changing code in several files in order to build an I/O tree of hp_devices much like pci does...the problem above was due to one of my changes:
...
STATIC struct list_head dino_list;
...
list_add(&dino_dev->dino_hba.hba_dev->global_list, dino_list);
Missing a '&' in front of dino_list and the compiler really didn't like that. I don't have a big problem with the compiler "oops"ing here since it correctly identified the problem.
cheers,
grant
Grant,
Is this patch in your tree?
2000-06-26 J. David Anglin <[email protected]>
* c-typeck.c (digest_init): Return error_mark_node node when TREE_TYPE (init) == error_mark_node.
The problem looks similar to the one the above patch addressed.
Dave (jda)
Quoted 39 lines
Dave (dhd),
Since you expressed an interest in compiler bugs:...
make[1]: Leaving directory `/linux/grundler/linux-2.3/arch/parisc/hpux'
hppa-linux-gcc -I/linux/grundler/linux-2.3/include -D__KERNEL__ -I/linux/grundler/linux-2.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -ffunction-sections -D__linux__ -pipe -fno-strength-reduce -DUTS_MACHINE='"parisc"' -c -oinit/version.oinit/version.cdino.c: In function `dino_common_init':
dino.c:675: incompatible type for argument 2 of `list_add'
dino.c:675: Tree check: expected class 't', have 'x' (error_mark)
dino.c:675: Internal compiler error in `expand_inline_function', at integrate.c:678
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [dino.o] Error 1
make[3]: Leaving directory `/linux/grundler/linux-2.3/drivers/gsc'
...I'm changing code in several files in order to build an I/O tree of
hp_devicesmuch like pci does...the problem above was due to one of my changes:...
STATIC structlist_headdino_list;
...list_add(&dino_dev->dino_hba.hba_dev->global_list, dino_list);Missing a '&' in front of
dino_listand the compiler really didn't like that. I don't have a big problem with the compiler "oops"ing here since it correctly identified the problem.cheers,
grant---------------------------------------------------------------------------
To unsubscribe: send e-mail to [email protected] with `unsubscribe' as the subject.
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoted 3 lines · John David Anglin
Grant,
Is this patch in your tree?
Dave (jda),
Quoted 6 lines
2000-06-26 J. David Anglin <[email protected]>
*
c-typeck.c(digest_init): Returnerror_mark_nodenode whenTREE_TYPE(init) ==error_mark_node.The problem looks similar to the one the above patch addressed.
I couldn't find "Return error_mark_node node" string in gcc/gcc/c-typeck.c.
I'm using whatever we have in binutils-2.10 and gcc CVS. I just rebuilt yesterday (7/11/2000) after dhd was done with some recent modifications.
thanks,
grant
Grant Grundler
Unix Development Lab
+1.408.447.7253
Quoted 9 lines · Grant Grundler
Quoted 8 lines · John David Anglin
Grant,
Is this patch in your tree?
2000-06-26 J. David Anglin <[email protected]>*
c-typeck.c(digest_init): Returnerror_mark_nodenode whenTREE_TYPE(init) ==error_mark_node.
Quoted 7 lines
Quoted 1 line
The problem looks similar to the one the above patch addressed.
I couldn't find "Return
error_mark_nodenode" string ingcc/gcc/c-typeck.c.I'm using whatever we have in binutils-2.10 and gcc CVS. I just rebuilt yesterday (7/11/2000) after dhd was done with some recent modifications.
that's in our tree;
2000-06-26 J. David Anglin <[email protected]>
* c-typeck.c (digest_init): Return error_mark_node node when TREE_TYPE (init) == error_mark_node.
is in gcc/gcc/ChangeLog. The last comment which isn't ours in ChangeLog is dated 2000-07-07. any changes since then which look even remotely relevant?
Signature · 1 line
The Sex Pistols were revolutionaries. The Bay City Rollers weren't.
Quoted 3 lines
is in gcc/gcc/ChangeLog. The last comment which isn't ours in ChangeLog is dated 2000-07-07. any changes since then which look even remotely relevant?
Not that I am aware of.
There is a patch related to the alignment of fields that is not installed because of portability concerns. Alignments greater than 16 bytes are not done correctly and may cause the compiler to abort due to a divide by zero. This may be important for the linux port.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoted 8 lines
Quoted 6 lines
2000-06-26 J. David Anglin <[email protected]>
*
c-typeck.c(digest_init): Returnerror_mark_nodenode whenTREE_TYPE(init) ==error_mark_node.The problem looks similar to the one the above patch addressed.
I couldn't find "Return
error_mark_nodenode" string ingcc/gcc/c-typeck.c.
Wrong search pattern. The patched code in digest_init looks like
if (type == error_mark_node
|| init == error_mark_node
|| TREE_TYPE (init) == error_mark_node)
return error_mark_node;This fixed a similar problem where a missing declaration caused the compiler to crash or produce the tree checking error that you got.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)