* [Bug middle-end/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
@ 2004-03-15 21:52 ` pinskia at gcc dot gnu dot org
2004-03-15 22:16 ` [Bug c/14589] " pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-15 21:52 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |middle-end
Keywords| |build, ice-on-valid-code
Target Milestone|--- |tree-ssa
Version|unknown |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
2004-03-15 21:52 ` [Bug middle-end/14589] " pinskia at gcc dot gnu dot org
@ 2004-03-15 22:16 ` pinskia at gcc dot gnu dot org
2004-03-15 22:28 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-15 22:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-15 22:16 -------
Confirmed with a cross compiler from powerpc-apple-darwin built at -O0:
0x0039be74 in expand_call (exp=0x410784d8, target=0x0, ignore=1) at ../../gcc/calls.c:2106
2106 int old_inhibit_defer_pop = inhibit_defer_pop;
(gdb) p cfun
$1 = (struct function *) 0x41615800
(gdb) p cfun->expr
During symbol reading, no way to lookup Objective-C classes.
$2 = (struct expr_status *) 0x0
Looks like the issue here is that the C front-end is creating a function by calling expands instead of
creating a function to do the work.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|middle-end |c
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-03-15 22:16:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
2004-03-15 21:52 ` [Bug middle-end/14589] " pinskia at gcc dot gnu dot org
2004-03-15 22:16 ` [Bug c/14589] " pinskia at gcc dot gnu dot org
@ 2004-03-15 22:28 ` pinskia at gcc dot gnu dot org
2004-04-08 20:48 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-15 22:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-15 22:28 -------
One more thing is that this causes pessimizes code right now.
static void __attribute__((constructor))
temp (void)
{
}
temp should not referenced at all as it is empty.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pessimizes-code
Known to fail| |tree-ssa
Known to work| |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-03-15 22:28 ` pinskia at gcc dot gnu dot org
@ 2004-04-08 20:48 ` pinskia at gcc dot gnu dot org
2004-04-08 20:50 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-08 20:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-08 20:48 -------
Actually this is no pessimizes-code as the ICE cannot happen on most targets.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|pessimizes-code |
Last reconfirmed|2004-03-15 22:16:47 |2004-04-08 20:48:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-04-08 20:48 ` pinskia at gcc dot gnu dot org
@ 2004-04-08 20:50 ` pinskia at gcc dot gnu dot org
2004-04-08 21:09 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-08 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-08 20:50 -------
I also think I have a patch to fix this, I am trying it right now.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-04-08 20:50 ` pinskia at gcc dot gnu dot org
@ 2004-04-08 21:09 ` pinskia at gcc dot gnu dot org
2004-04-09 13:42 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-08 21:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-08 21:09 -------
Created an attachment (id=6065)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6065&action=view)
Patch which should fix it
This patch removes the tree to RTL lowering from the C front-end and fixes the
bug I think. Could you try to bootstrap with it?
ChangeLog:
* c-objc-common.c (start_cdtor): Mark function as not public but used.
(c_objc_common_finish_file): Call c_expand_expr_stmt instead of expand_expr.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-04-08 21:09 ` pinskia at gcc dot gnu dot org
@ 2004-04-09 13:42 ` pinskia at gcc dot gnu dot org
2004-04-17 5:27 ` ro at techfak dot uni-bielefeld dot de
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-09 13:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-09 13:42 -------
Note my patch does exactly how mudflap constructs its c functions in mflang_flush_calls.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-04-09 13:42 ` pinskia at gcc dot gnu dot org
@ 2004-04-17 5:27 ` ro at techfak dot uni-bielefeld dot de
2004-04-17 5:44 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2004-04-17 5:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2004-04-17 03:06 -------
Subject: Re: [tree-ssa] Bootstrap failure on Tru64 UNIX
pinskia at gcc dot gnu dot org writes:
> bug I think. Could you try to bootstrap with it?
A bootstrap on alpha-dec-osf4.0f now went past make compare, but fails
later building libmudflap. I'll report this separately, since it's an
unrelated problem.
Thanks.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-04-17 5:27 ` ro at techfak dot uni-bielefeld dot de
@ 2004-04-17 5:44 ` pinskia at gcc dot gnu dot org
2004-04-30 1:30 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-17 5:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-17 05:29 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01046.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-04-17 5:44 ` pinskia at gcc dot gnu dot org
@ 2004-04-30 1:30 ` pinskia at gcc dot gnu dot org
2004-05-06 1:52 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-30 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-30 00:58 -------
This is also happens on i686-unknown-openbsd while compiling libmudflap.
--
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|alpha-dec-osf4.0f |
GCC host triplet|alpha-dec-osf4.0f |
GCC target triplet|alpha-dec-osf4.0f |alpha-dec-osf4.0f, i686-
| |unknown-openbsd31
Last reconfirmed|2004-04-08 20:48:15 |2004-04-30 00:58:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-04-30 1:30 ` pinskia at gcc dot gnu dot org
@ 2004-05-06 1:52 ` pinskia at gcc dot gnu dot org
2004-05-06 1:56 ` zack at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 1:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 01:52 -------
Note mine anymore, Zack posted a different patch which looks better in my view:
<http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00318.html>.
Zack this is your "[tree-ssa] Fix C __attribute__ ((constructor)) on
!have_ctors_dtorstargets" patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |zack at gcc dot gnu dot org
|org |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-05-06 1:52 ` pinskia at gcc dot gnu dot org
@ 2004-05-06 1:56 ` zack at gcc dot gnu dot org
2004-05-06 18:06 ` zack at gcc dot gnu dot org
2004-05-10 13:59 ` ro at techfak dot uni-bielefeld dot de
13 siblings, 0 replies; 15+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-05-06 1:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2004-05-06 01:56 -------
Huh, I had no idea this was causing bootstrap failures.
I'll note that making these functions static is wrong - then collect2 won't be
able to find them.
My patch won't optimize out an empty constructor, but then we weren't doing that
before. To do it, I think we would have to make the ctors/dtors lists cgraph's
problem, which would probably be a good move, but I'm not doing it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-05-06 1:56 ` zack at gcc dot gnu dot org
@ 2004-05-06 18:06 ` zack at gcc dot gnu dot org
2004-05-10 13:59 ` ro at techfak dot uni-bielefeld dot de
13 siblings, 0 replies; 15+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-05-06 18:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2004-05-06 18:06 -------
Patch checked in. Forgot to mention the PR number in the ChangeLog; it's
http://gcc.gnu.org/ml/gcc-cvs/2004-05/msg00210.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/14589] [tree-ssa] Bootstrap failure on Tru64 UNIX
2004-03-15 21:16 [Bug bootstrap/14589] New: [tree-ssa] Bootstrap failure on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
` (12 preceding siblings ...)
2004-05-06 18:06 ` zack at gcc dot gnu dot org
@ 2004-05-10 13:59 ` ro at techfak dot uni-bielefeld dot de
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2004-05-10 13:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2004-05-10 13:59 -------
Subject: Re: [tree-ssa] Bootstrap failure on Tru64 UNIX
zack at gcc dot gnu dot org writes:
> Patch checked in. Forgot to mention the PR number in the ChangeLog; it's
> http://gcc.gnu.org/ml/gcc-cvs/2004-05/msg00210.html
A bootstrap of the unmodified tree-ssa branch worked for me on
alpha-dec-osf5.1b.
Thanks.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14589
^ permalink raw reply [flat|nested] 15+ messages in thread