public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bug report optimization #4186  and ia64
@ 2001-09-24  7:03 Willi Nüßer
  2001-09-24 12:50 ` Jim Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Nüßer @ 2001-09-24  7:03 UTC (permalink / raw)
  To: gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]

Hi,

some weeks ago we posted a bug report (optimization/#4186)
on bug-gcc.
For us this bug - although it is "only" in the opt case -
is critical. Without a solution we can not use gcc 3.* for our
development.
 
Now we face a similar optimization problem on ia64 as well
(gcc 3.0, 3.01, snapshots ...).
Again, if and only if we compile with -O2 our app crashes with SIGSEGV.
And again, it seems that some registers get filled with
incorrect values. Unfortunately we are still working
to create a _small_ testcase. 

Does anybody of the gcc gurus know if there is some work
on the register allocator etc going on? Is it possible that
these two gcc bugs are related to the same high level mechanism?

We need a fix really badly. Is it possible to fix this for 3.0.2?

Best regards
Willi Nuesser
SAP Linuxlab

PS:
Please CC me since I´m not on the list.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug report optimization #4186  and ia64
  2001-09-24  7:03 Bug report optimization #4186 and ia64 Willi Nüßer
@ 2001-09-24 12:50 ` Jim Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2001-09-24 12:50 UTC (permalink / raw)
  To: wilhelm.nuesser; +Cc: gcc

In article < 3BAF3CB0.7CAB5EC9@sap.com > you write:
>some weeks ago we posted a bug report (optimization/#4186)
>on bug-gcc.

>Now we face a similar optimization problem on ia64 as well
>(gcc 3.0, 3.01, snapshots ...).

I took a look at PR 4186.  It is an x86 sibling-call optimization bug.
We accidentally overwrite one of the incoming function arguments before
reading it in the sibling call sequence.  I put this info into the PR.

I think it is unlikely that the IA-64 problem is related, since the
IA-64 does not pass arguments on the stack like the x86 does.

Jim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Bug report optimization #4186  and ia64
@ 2001-09-25  1:40 Nuesser, Wilhelm
  0 siblings, 0 replies; 3+ messages in thread
From: Nuesser, Wilhelm @ 2001-09-25  1:40 UTC (permalink / raw)
  To: 'Jim Wilson'; +Cc: gcc

Hi,

> -----Original Message-----
> From: Jim Wilson [ mailto:wilson@cygnus.com ]
  
> I took a look at PR 4186.  It is an x86 sibling-call optimization bug.
> We accidentally overwrite one of the incoming function 
> arguments before
> reading it in the sibling call sequence.  I put this info into the PR.

Thanks a lot for your quick response. We will re-build or entire
app asap and check this.

> I think it is unlikely that the IA-64 problem is related, since the
> IA-64 does not pass arguments on the stack like the x86 does.

You're right. We checked this with -fno-optimize-sibling-calls and
- independently - with -fno-strict-aliasing as H.J. Lu suggested.
Neither of them showed any effect.

We'll have to look futher into a testcase.

Thanks
Willi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-25  1:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-24  7:03 Bug report optimization #4186 and ia64 Willi Nüßer
2001-09-24 12:50 ` Jim Wilson
2001-09-25  1:40 Nuesser, Wilhelm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).