public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
@ 2006-03-12 22:23 ` pinskia at gcc dot gnu dot org
2006-03-12 22:25 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-12 22:23 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenther at suse dot de
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
@ 2006-03-12 22:23 pinskia at gcc dot gnu dot org
2006-03-12 22:23 ` [Bug middle-end/26659] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-12 22:23 UTC (permalink / raw)
To: gcc-bugs
gcc.target/powerpc/ppc-vector-memset.c fails on the mainline after one of the
follow patches:
+2006-03-10 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/26565
+ * builtins.c (get_pointer_alignment): Handle component
+ references for field alignment.
+
+2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
+
+ * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
+ when building with libgloss.
+ (sh*elf): Implement --without-fp option.
+ (sh64-superh-linux*): Don't multilib.
+
+2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
+
+ * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
+
----
The only which could have an effect on this testcase is patch for PR
middle-end/26565
--
Summary: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c
fails on the mainline
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-darwin
OtherBugsDependingO 26565
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
2006-03-12 22:23 ` [Bug middle-end/26659] " pinskia at gcc dot gnu dot org
2006-03-12 22:25 ` pinskia at gcc dot gnu dot org
@ 2006-03-12 22:25 ` rguenth at gcc dot gnu dot org
2006-03-13 1:35 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-12 22:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-03-12 22:24 -------
Mine.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-12 22:24:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
2006-03-12 22:23 ` [Bug middle-end/26659] " pinskia at gcc dot gnu dot org
@ 2006-03-12 22:25 ` pinskia at gcc dot gnu dot org
2006-03-12 22:25 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-12 22:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-12 22:25 -------
This fails also on powerpc64-linux-gnu so this is not darwin specific.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet|powerpc-darwin |powerpc*-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-03-12 22:25 ` rguenth at gcc dot gnu dot org
@ 2006-03-13 1:35 ` pinskia at gcc dot gnu dot org
2006-03-13 9:30 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 1:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-13 01:35 -------
[17:44] < pinskia> richi: it was this part which caused it:
[17:44] < pinskia> - align = DECL_ALIGN (exp);
[17:44] < pinskia> + align = MIN (align, DECL_ALIGN (exp));
[17:44] < pinskia> the alignment of the type is 1 while the alignment of the
decl is 16
[17:44] < richi> ok, so again, type and decl align differ ...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-03-13 1:35 ` pinskia at gcc dot gnu dot org
@ 2006-03-13 9:30 ` rguenth at gcc dot gnu dot org
2006-03-13 10:01 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-13 9:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2006-03-13 09:30 -------
Interestingly, on i686 (which has BIGGEST_ALIGNMENT 128), I get with the
testcase:
Breakpoint 3, get_pointer_alignment (exp=0xb7c8b320, max_align=128)
(gdb) call debug_tree(exp)
<addr_expr 0xb7c8b320
type <pointer_type 0xb7c95c38
type <integer_type 0xb7c95284 int sizes-gimplified public SI
size <integer_cst 0xb7c863f0 constant invariant 32>
unit size <integer_cst 0xb7c86180 constant invariant 4>
align 32 symtab 0 alias set -1 precision 32 min <integer_cst
0xb7c863a8 -2147483648> max <integer_cst 0xb7c863c0 2147483647>
pointer_to_this <pointer_type 0xb7c95c38>>
unsigned SI size <integer_cst 0xb7c863f0 32> unit size <integer_cst
0xb7c86180 4>
align 32 symtab 0 alias set -1>
invariant
arg 0 <var_decl 0xb7c92108 x
type <array_type 0xb7d2da10 type <integer_type 0xb7c95284 int>
sizes-gimplified BLK
size <integer_cst 0xb7c86db0 constant invariant 256>
unit size <integer_cst 0xb7c86168 constant invariant 32>
align 32 symtab 0 alias set -1 domain <integer_type 0xb7cebac8>>
addressable used BLK file t.c line 5 size <integer_cst 0xb7c86db0 256>
unit size <integer_cst 0xb7c86168 32>
align 32 context <function_decl 0xb7d2bd80 foo> attributes <tree_list
0xb7d38048>
(mem/s/c:BLK (plus:SI (reg/f:SI 54 virtual-stack-vars)
(const_int -32 [0xffffffe0])) [0 x+0 S32 A32])>>
i.e. the decl does not have alignment of 128, but 32. And we get the same
alignment before and after the patch (32). Off to a ppc machine...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-03-13 9:30 ` rguenth at gcc dot gnu dot org
@ 2006-03-13 10:01 ` rguenth at gcc dot gnu dot org
2006-03-13 11:20 ` patchapp at dberlin dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-13 10:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2006-03-13 10:01 -------
On powerpc64-linux I get
(gdb) call debug_tree(exp)
<addr_expr 0xf7d7a620
type <pointer_type 0xf7ea0070
type <integer_type 0xf7e90460 int sizes-gimplified public SI
size <integer_cst 0xf7e929e0 constant invariant 32>
unit size <integer_cst 0xf7e926a0 constant invariant 4>
align 32 symtab 0 alias set -1 precision 32 min <integer_cst
0xf7e92980 -2147483648> max <integer_cst 0xf7e929a0 2147483647>
pointer_to_this <pointer_type 0xf7ea0070>>
unsigned DI
size <integer_cst 0xf7e92b00 constant invariant 64>
unit size <integer_cst 0xf7e92b20 constant invariant 8>
align 64 symtab 0 alias set -1>
invariant
arg 0 <var_decl 0xf7d7b460 x
type <array_type 0xf7d7b3f0 type <integer_type 0xf7e90460 int>
sizes-gimplified BLK
size <integer_cst 0xf7e9e660 constant invariant 256>
unit size <integer_cst 0xf7e92680 constant invariant 32>
align 32 symtab 0 alias set -1 domain <integer_type 0xf7f16ee0>>
addressable used BLK file t.c line 5 size <integer_cst 0xf7e9e660 256>
unit size <integer_cst 0xf7e92680 32>
align 128 context <function_decl 0xf7f7d400 foo> attributes <tree_list
0xf7d7a5c0>
(mem/s/c:BLK (reg/f:DI 115 virtual-stack-vars) [0 x+0 S32 A128])>>
so the decl has an alignment of 128 -- I wonder why i686 is different here.
So,
I have a fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-03-13 10:01 ` rguenth at gcc dot gnu dot org
@ 2006-03-13 11:20 ` patchapp at dberlin dot org
2006-03-14 9:53 ` rguenth at gcc dot gnu dot org
2006-03-14 9:54 ` rguenth at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2006-03-13 11:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from patchapp at dberlin dot org 2006-03-13 11:20 -------
Subject: Bug number PR26659
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00737.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-03-13 11:20 ` patchapp at dberlin dot org
@ 2006-03-14 9:53 ` rguenth at gcc dot gnu dot org
2006-03-14 9:54 ` rguenth at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-14 9:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2006-03-14 09:53 -------
Subject: Bug 26659
Author: rguenth
Date: Tue Mar 14 09:53:36 2006
New Revision: 112048
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112048
Log:
2006-03-14 Richard Guenther <rguenther@suse.de>
PR middle-end/26659
* builtins.c (get_pointer_alignment): Prefer alignment
information from decls over that from types.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/26659] [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-03-14 9:53 ` rguenth at gcc dot gnu dot org
@ 2006-03-14 9:54 ` rguenth at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-14 9:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2006-03-14 09:54 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26659
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-03-14 9:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-12 22:23 [Bug middle-end/26659] New: [4.2 Regression] gcc.target/powerpc/ppc-vector-memset.c fails on the mainline pinskia at gcc dot gnu dot org
2006-03-12 22:23 ` [Bug middle-end/26659] " pinskia at gcc dot gnu dot org
2006-03-12 22:25 ` pinskia at gcc dot gnu dot org
2006-03-12 22:25 ` rguenth at gcc dot gnu dot org
2006-03-13 1:35 ` pinskia at gcc dot gnu dot org
2006-03-13 9:30 ` rguenth at gcc dot gnu dot org
2006-03-13 10:01 ` rguenth at gcc dot gnu dot org
2006-03-13 11:20 ` patchapp at dberlin dot org
2006-03-14 9:53 ` rguenth at gcc dot gnu dot org
2006-03-14 9:54 ` rguenth at gcc dot gnu dot org
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).