public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26589] New: Optimizer hangs on conditional expression
@ 2006-03-07 4:40 pmcilroy at gmail dot com
2006-03-07 4:43 ` [Bug c/26589] " pinskia at gcc dot gnu dot org
2006-03-07 17:14 ` pmcilroy at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: pmcilroy at gmail dot com @ 2006-03-07 4:40 UTC (permalink / raw)
To: gcc-bugs
I compiled this trivial function on the OS X 10.3.9 g++ compiler, which is
still only version 3.3. With the optimizer enabled -O2, the compiler hangs.
Without optimization, the compile succeeds.
Code:
int f(int x) {
return 1 / (x ? 1 : 0) ;
}
GCC VERSION:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)
--
Summary: Optimizer hangs on conditional expression
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pmcilroy at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26589
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/26589] Optimizer hangs on conditional expression
2006-03-07 4:40 [Bug c/26589] New: Optimizer hangs on conditional expression pmcilroy at gmail dot com
@ 2006-03-07 4:43 ` pinskia at gcc dot gnu dot org
2006-03-07 17:14 ` pmcilroy at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-07 4:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-07 04:43 -------
This works in 3.3.2 with the FSF GCC. Please report this bug to Apple first
since it is their modified version of gcc.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26589
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/26589] Optimizer hangs on conditional expression
2006-03-07 4:40 [Bug c/26589] New: Optimizer hangs on conditional expression pmcilroy at gmail dot com
2006-03-07 4:43 ` [Bug c/26589] " pinskia at gcc dot gnu dot org
@ 2006-03-07 17:14 ` pmcilroy at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: pmcilroy at gmail dot com @ 2006-03-07 17:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pmcilroy at gmail dot com 2006-03-07 17:14 -------
Subject: Re: Optimizer hangs on conditional expression
OK, thanks very much.
I will let them know.
- Peter
On Mar 6, 2006, at 8:43 PM, pinskia at gcc dot gnu dot org wrote:
>
>
> ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-07
> 04:43 -------
> This works in 3.3.2 with the FSF GCC. Please report this bug to Apple
> first
> since it is their modified version of gcc.
>
>
> --
>
> pinskia at gcc dot gnu dot org changed:
>
> What |Removed |Added
> -----------------------------------------------------------------------
> -----
> Status|UNCONFIRMED |RESOLVED
> Resolution| |WORKSFORME
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26589
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26589
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-07 17:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-07 4:40 [Bug c/26589] New: Optimizer hangs on conditional expression pmcilroy at gmail dot com
2006-03-07 4:43 ` [Bug c/26589] " pinskia at gcc dot gnu dot org
2006-03-07 17:14 ` pmcilroy at gmail dot com
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).