public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
@ 2005-12-16 15:02 ghazi at gcc dot gnu dot org
2005-12-16 15:10 ` [Bug middle-end/25443] " ghazi at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-12-16 15:02 UTC (permalink / raw)
To: gcc-bugs
I'm getting a 4.1/mainline failure in gcc.dg/tree-ssa/loop-3.c on x86_64 and
i686:
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00892.html
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00889.html
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00891.html
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00888.html
The failures look like this:
FAIL: gcc.dg/tree-ssa/loop-3.c scan-tree-dump-times step: 1
--
Summary: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ghazi at gcc dot gnu dot org
OtherBugsDependingO 23224
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
@ 2005-12-16 15:10 ` ghazi at gcc dot gnu dot org
2005-12-25 1:30 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-12-16 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ghazi at gcc dot gnu dot org 2005-12-16 15:10 -------
Forgot to say this is with -fpic or -fPIC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
2005-12-16 15:10 ` [Bug middle-end/25443] " ghazi at gcc dot gnu dot org
@ 2005-12-25 1:30 ` pinskia at gcc dot gnu dot org
2006-01-29 21:01 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-25 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-25 01:30 -------
I have not looked enough into this one but IIRC -fPIC changes the number of
registers available to allocate with which causes different IV selection so the
it might be the testcase is wrong for -fPIC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
2005-12-16 15:10 ` [Bug middle-end/25443] " ghazi at gcc dot gnu dot org
2005-12-25 1:30 ` pinskia at gcc dot gnu dot org
@ 2006-01-29 21:01 ` pinskia at gcc dot gnu dot org
2007-01-12 20:13 ` dalej at apple dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 21:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-29 21:01 -------
Confimed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-01-29 21:01:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-01-29 21:01 ` pinskia at gcc dot gnu dot org
@ 2007-01-12 20:13 ` dalej at apple dot com
2007-01-13 1:02 ` ghazi at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: dalej at apple dot com @ 2007-01-12 20:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dalej at apple dot com 2007-01-12 20:13 -------
With pic, the load of the global's address is pulled outside the loop, so the
"base" is a register rather than the global. This causes ivopts to represent
index*step all in the index field rather than as two separate fields, so the
dump looks like
MEM[base: &arr_base, index: (int *) iter * 4B] = D.1877;
instead of
MEM[symbol: arr_base, index: (int *) iter, step: 4B] = D.1877;
so the test fails, but the generated code is correct and optimal. I suggest
adding -fno-pic to the test, does that look OK?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-01-12 20:13 ` dalej at apple dot com
@ 2007-01-13 1:02 ` ghazi at gcc dot gnu dot org
2007-01-13 1:32 ` dalej at apple dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-01-13 1:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ghazi at gcc dot gnu dot org 2007-01-13 01:01 -------
(In reply to comment #4)
> so the test fails, but the generated code is correct and optimal. I suggest
> adding -fno-pic to the test, does that look OK?
I no longer have access to the x86 boxes I was using for testing last year. So
I can't test any fix. But anyway, if I recall correctly adding -fno-pic won't
help because stuff in RUNTESTFLAGS is added *after* the dg-options flags. So
pic will still be turned on if the user selects it. Instead do something like
what's in gcc.dg/sibcall-6.c, namely:
/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } {
"" } } */
I don't think the check for ilp32 is wanted in this case though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-01-13 1:02 ` ghazi at gcc dot gnu dot org
@ 2007-01-13 1:32 ` dalej at apple dot com
2007-01-13 5:02 ` ghazi at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: dalej at apple dot com @ 2007-01-13 1:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dalej at apple dot com 2007-01-13 01:32 -------
Stuff in --tool_opts from RUNTESTFLAGS goes before the dg-options on the
command line, I just tried it. Is there some other way to do it?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-01-13 1:32 ` dalej at apple dot com
@ 2007-01-13 5:02 ` ghazi at gcc dot gnu dot org
2007-01-15 23:41 ` dalej at apple dot com
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-01-13 5:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ghazi at gcc dot gnu dot org 2007-01-13 05:01 -------
(In reply to comment #6)
> Stuff in --tool_opts from RUNTESTFLAGS goes before the dg-options on the
> command line, I just tried it. Is there some other way to do it?
Yes, the GCC docs suggest using --target_board:
http://gcc.gnu.org/install/test.html
I could be wrong, but I'm pretty sure that one appends the flags you supply.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-01-13 5:02 ` ghazi at gcc dot gnu dot org
@ 2007-01-15 23:41 ` dalej at apple dot com
2007-01-15 23:45 ` echristo at apple dot com
2007-01-15 23:48 ` dalej at apple dot com
9 siblings, 0 replies; 11+ messages in thread
From: dalej at apple dot com @ 2007-01-15 23:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from dalej at apple dot com 2007-01-15 23:41 -------
You are right, thanks. Test case fixed thus in mainline (to be 4.3).
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01266.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-01-15 23:41 ` dalej at apple dot com
@ 2007-01-15 23:45 ` echristo at apple dot com
2007-01-15 23:48 ` dalej at apple dot com
9 siblings, 0 replies; 11+ messages in thread
From: echristo at apple dot com @ 2007-01-15 23:45 UTC (permalink / raw)
To: gcc-bugs
--
echristo at apple dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dalej at apple dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/25443] -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-01-15 23:45 ` echristo at apple dot com
@ 2007-01-15 23:48 ` dalej at apple dot com
9 siblings, 0 replies; 11+ messages in thread
From: dalej at apple dot com @ 2007-01-15 23:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from dalej at apple dot com 2007-01-15 23:48 -------
as per previous comment
--
dalej at apple dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25443
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-01-15 23:48 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-16 15:02 [Bug middle-end/25443] New: -fpic/-fPIC failure in gcc.dg/tree-ssa/loop-3.c ghazi at gcc dot gnu dot org
2005-12-16 15:10 ` [Bug middle-end/25443] " ghazi at gcc dot gnu dot org
2005-12-25 1:30 ` pinskia at gcc dot gnu dot org
2006-01-29 21:01 ` pinskia at gcc dot gnu dot org
2007-01-12 20:13 ` dalej at apple dot com
2007-01-13 1:02 ` ghazi at gcc dot gnu dot org
2007-01-13 1:32 ` dalej at apple dot com
2007-01-13 5:02 ` ghazi at gcc dot gnu dot org
2007-01-15 23:41 ` dalej at apple dot com
2007-01-15 23:45 ` echristo at apple dot com
2007-01-15 23:48 ` dalej at apple 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).