public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/38240] New: Vector type definitions not compatible with attribute target
@ 2008-11-23 18:57 rth at gcc dot gnu dot org
2008-11-23 18:58 ` [Bug middle-end/38240] " rth at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: rth at gcc dot gnu dot org @ 2008-11-23 18:57 UTC (permalink / raw)
To: gcc-bugs
The attached test case segfaults because the definition of V
would differ with and without -msse. Without, we would use
vector emulation and the type has BLKmode; with, we would
have native instructions and the type has V4SFmode.
Vector types probably need a functional query for TYPE_MODE,
so that we get different modes based on the target flags for
the current function.
--
Summary: Vector type definitions not compatible with attribute
target
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
GCC target triplet: i386-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38240
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/38240] Vector type definitions not compatible with attribute target
2008-11-23 18:57 [Bug middle-end/38240] New: Vector type definitions not compatible with attribute target rth at gcc dot gnu dot org
@ 2008-11-23 18:58 ` rth at gcc dot gnu dot org
2008-11-23 18:59 ` rth at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu dot org @ 2008-11-23 18:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rth at gcc dot gnu dot org 2008-11-23 18:56 -------
Created an attachment (id=16752)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16752&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38240
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/38240] Vector type definitions not compatible with attribute target
2008-11-23 18:57 [Bug middle-end/38240] New: Vector type definitions not compatible with attribute target rth at gcc dot gnu dot org
2008-11-23 18:58 ` [Bug middle-end/38240] " rth at gcc dot gnu dot org
@ 2008-11-23 18:59 ` rth at gcc dot gnu dot org
2008-12-08 17:15 ` rth at gcc dot gnu dot org
2008-12-26 22:28 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu dot org @ 2008-11-23 18:59 UTC (permalink / raw)
To: gcc-bugs
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-11-23 18:58:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38240
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/38240] Vector type definitions not compatible with attribute target
2008-11-23 18:57 [Bug middle-end/38240] New: Vector type definitions not compatible with attribute target rth at gcc dot gnu dot org
2008-11-23 18:58 ` [Bug middle-end/38240] " rth at gcc dot gnu dot org
2008-11-23 18:59 ` rth at gcc dot gnu dot org
@ 2008-12-08 17:15 ` rth at gcc dot gnu dot org
2008-12-26 22:28 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu dot org @ 2008-12-08 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rth at gcc dot gnu dot org 2008-12-08 17:14 -------
Subject: Bug 38240
Author: rth
Date: Mon Dec 8 17:12:55 2008
New Revision: 142556
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142556
Log:
PR 38240
* tree.h (TYPE_MODE): Invoke vector_type_mode when needed.
(SET_TYPE_MODE): New.
* c-decl.c (parser_xref_tag): Use it.
(finish_enum): Likewise.
* tree.c (build_pointer_type_for_mode): Likewise.
(build_reference_type_for_mode, build_index_type): Likewise.
(build_range_type, make_vector_type): Likewise.
(build_common_tree_nodes_2): Likewise.
* stor-layout.c (compute_record_mode): Likewise.
(finalize_type_size, layout_type, make_fract_type): Likewise.
(make_accum_type, initialize_sizetypes): Likewise.
(vector_type_mode): New.
* function.c (allocate_struct_function): Call
invoke_set_current_function_hook before querying anything else.
* config/i386/i386.c (ix86_valid_target_attribute_inner_p): Add avx.
cp/
* class.c (finish_struct_bits): Use SET_TYPE_MODE.
* decl.c (record_unknown_type): Likewise.
(start_enum, finish_enum): Likewise.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr38240.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-decl.c
trunk/gcc/config/i386/i386.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/decl.c
trunk/gcc/function.c
trunk/gcc/stor-layout.c
trunk/gcc/tree.c
trunk/gcc/tree.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38240
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/38240] Vector type definitions not compatible with attribute target
2008-11-23 18:57 [Bug middle-end/38240] New: Vector type definitions not compatible with attribute target rth at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-12-08 17:15 ` rth at gcc dot gnu dot org
@ 2008-12-26 22:28 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-26 22:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2008-12-26 22:24 -------
Fixed.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38240
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-26 22:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-23 18:57 [Bug middle-end/38240] New: Vector type definitions not compatible with attribute target rth at gcc dot gnu dot org
2008-11-23 18:58 ` [Bug middle-end/38240] " rth at gcc dot gnu dot org
2008-11-23 18:59 ` rth at gcc dot gnu dot org
2008-12-08 17:15 ` rth at gcc dot gnu dot org
2008-12-26 22:28 ` reichelt 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).