* Re: [parisc-linux] Internal compiler error
2000-07-12 19:17 ` Grant Grundler
@ 2000-07-12 18:15 ` willy
2000-07-12 19:43 ` John David Anglin
2000-07-12 19:37 ` John David Anglin
1 sibling, 1 reply; 6+ messages in thread
From: willy @ 2000-07-12 18:15 UTC (permalink / raw)
To: Grant Grundler; +Cc: John David Anglin, parisc-linux
On Wed, Jul 12, 2000 at 12:17:39PM -0700, Grant Grundler wrote:
> "John David Anglin" wrote:
> > Grant,
> >
> > Is this patch in your tree?
> > 2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
> >
> > * 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.
>
> 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.
that's in our tree;
2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* 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?
--
The Sex Pistols were revolutionaries. The Bay City Rollers weren't.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [parisc-linux] Internal compiler error
@ 2000-07-12 18:26 Grant Grundler
2000-07-12 18:35 ` John David Anglin
0 siblings, 1 reply; 6+ messages in thread
From: Grant Grundler @ 2000-07-12 18:26 UTC (permalink / raw)
To: parisc-linux
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] Internal compiler error
2000-07-12 18:26 [parisc-linux] Internal compiler error Grant Grundler
@ 2000-07-12 18:35 ` John David Anglin
2000-07-12 19:17 ` Grant Grundler
0 siblings, 1 reply; 6+ messages in thread
From: John David Anglin @ 2000-07-12 18:35 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
Grant,
Is this patch in your tree?
2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* 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)
>
> 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
>
> ---------------------------------------------------------------------------
> To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> `unsubscribe' as the subject.
>
>
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] Internal compiler error
2000-07-12 18:35 ` John David Anglin
@ 2000-07-12 19:17 ` Grant Grundler
2000-07-12 18:15 ` willy
2000-07-12 19:37 ` John David Anglin
0 siblings, 2 replies; 6+ messages in thread
From: Grant Grundler @ 2000-07-12 19:17 UTC (permalink / raw)
To: John David Anglin; +Cc: parisc-linux
"John David Anglin" wrote:
> Grant,
>
> Is this patch in your tree?
Dave (jda),
> 2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
>
> * 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.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] Internal compiler error
2000-07-12 19:17 ` Grant Grundler
2000-07-12 18:15 ` willy
@ 2000-07-12 19:37 ` John David Anglin
1 sibling, 0 replies; 6+ messages in thread
From: John David Anglin @ 2000-07-12 19:37 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
> > 2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
> >
> > * 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.
>
> I couldn't find "Return error_mark_node node" string in gcc/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
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] Internal compiler error
2000-07-12 18:15 ` willy
@ 2000-07-12 19:43 ` John David Anglin
0 siblings, 0 replies; 6+ messages in thread
From: John David Anglin @ 2000-07-12 19:43 UTC (permalink / raw)
To: willy; +Cc: grundler, parisc-linux
> 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
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-07-12 19:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-12 18:26 [parisc-linux] Internal compiler error Grant Grundler
2000-07-12 18:35 ` John David Anglin
2000-07-12 19:17 ` Grant Grundler
2000-07-12 18:15 ` willy
2000-07-12 19:43 ` John David Anglin
2000-07-12 19:37 ` John David Anglin
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.