public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
       [not found] <bug-20102-4@http.gcc.gnu.org/bugzilla/>
@ 2011-12-22  0:55 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-22  0:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-22 00:45:57 UTC ---
AS mentioned, GCC for powerpc defaults to non-strict alignment which means you
need to supply -mstrict-align to get the strict alignment requirements.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
                   ` (8 preceding siblings ...)
  2005-08-24  6:47 ` amodra at bigpond dot net dot au
@ 2005-08-25  5:24 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-25  5:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-25 03:26 -------
-mstrict-align means don't produce loads which have unaligned loads.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
                   ` (7 preceding siblings ...)
  2005-08-24  1:51 ` amodra at bigpond dot net dot au
@ 2005-08-24  6:47 ` amodra at bigpond dot net dot au
  2005-08-25  5:24 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-08-24  6:47 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at bigpond dot net
                   |                            |dot au


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
                   ` (6 preceding siblings ...)
  2005-08-23 10:40 ` oakad at yahoo dot com
@ 2005-08-24  1:51 ` amodra at bigpond dot net dot au
  2005-08-24  6:47 ` amodra at bigpond dot net dot au
  2005-08-25  5:24 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-08-24  1:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amodra at bigpond dot net dot au  2005-08-24 00:44 -------
-mstrict-align should not affect aggregate layout.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
                   ` (5 preceding siblings ...)
  2005-08-23  1:31 ` amodra at bigpond dot net dot au
@ 2005-08-23 10:40 ` oakad at yahoo dot com
  2005-08-24  1:51 ` amodra at bigpond dot net dot au
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: oakad at yahoo dot com @ 2005-08-23 10:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From oakad at yahoo dot com  2005-08-23 10:27 -------
I was dealing with packed structs in this case. Are you sure that 
-mstrict-align will not break packing? And I'm talking of both inter- and 
intra-struct packing, as in packed array of packed structs. 
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
                   ` (4 preceding siblings ...)
  2005-02-21 19:50 ` oakad at yahoo dot com
@ 2005-08-23  1:31 ` amodra at bigpond dot net dot au
  2005-08-23 10:40 ` oakad at yahoo dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-08-23  1:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amodra at bigpond dot net dot au  2005-08-23 01:20 -------
Using -mstrict-align will avoid the unaligned accesses,  I haven't looked into
why there is a difference between the global and auto var..

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
                   ` (3 preceding siblings ...)
  2005-02-21 10:57 ` pinskia at gcc dot gnu dot org
@ 2005-02-21 19:50 ` oakad at yahoo dot com
  2005-08-23  1:31 ` amodra at bigpond dot net dot au
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: oakad at yahoo dot com @ 2005-02-21 19:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From oakad at yahoo dot com  2005-02-21 10:39 -------
I would like to notice that the issue only arises with packed structs, which 
are mostly found in places where exception handling is undesirable. Non-packed 
structs are always aligned anyway. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
                   ` (2 preceding siblings ...)
  2005-02-21 10:47 ` oakad at yahoo dot com
@ 2005-02-21 10:57 ` pinskia at gcc dot gnu dot org
  2005-02-21 19:50 ` oakad at yahoo dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-21 10:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-20 21:24 -------
(In reply to comment #2)
> 2. I believe that PPC architecture explicitly forbids unaligned floating loads 
> and stores. 

Wrong.  The PPC architecutures says that it will most likely to produce an unalignment exception but 
IIRC all unalignment exceptions have to be handled.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
  2005-02-20 18:50 ` [Bug target/20102] " pinskia at gcc dot gnu dot org
  2005-02-20 19:44 ` pinskia at gcc dot gnu dot org
@ 2005-02-21 10:47 ` oakad at yahoo dot com
  2005-02-21 10:57 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: oakad at yahoo dot com @ 2005-02-21 10:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From oakad at yahoo dot com  2005-02-20 21:16 -------
Three points: 
1. Handling of this case shall be consistent. When dealing with global 
variables compiler emits byte by byte copy code. With automatic variables, 
compiler emits single lfs/stfs. 
2. I believe that PPC architecture explicitly forbids unaligned floating loads 
and stores. 
3. The whole point in my code sniplet is to accelerate some communication 
protocol. Exception handler invocation is obviously out of question. 
 
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
  2005-02-20 18:50 ` [Bug target/20102] " pinskia at gcc dot gnu dot org
@ 2005-02-20 19:44 ` pinskia at gcc dot gnu dot org
  2005-02-21 10:47 ` oakad at yahoo dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-20 19:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure
  2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
@ 2005-02-20 18:50 ` pinskia at gcc dot gnu dot org
  2005-02-20 19:44 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-20 18:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-20 13:34 -------
lfs   f2, 395(r1)      //p.v3 - incorrect misaligned load (throws exception)
Yes but the OS/kernel is supposed to handle the exception as any other OS on PPC would.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20102


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-12-22  0:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20102-4@http.gcc.gnu.org/bugzilla/>
2011-12-22  0:55 ` [Bug target/20102] Incorrect floating point code generated when assigning to "packed" structure pinskia at gcc dot gnu.org
2005-02-20 17:21 [Bug c/20102] New: " oakad at yahoo dot com
2005-02-20 18:50 ` [Bug target/20102] " pinskia at gcc dot gnu dot org
2005-02-20 19:44 ` pinskia at gcc dot gnu dot org
2005-02-21 10:47 ` oakad at yahoo dot com
2005-02-21 10:57 ` pinskia at gcc dot gnu dot org
2005-02-21 19:50 ` oakad at yahoo dot com
2005-08-23  1:31 ` amodra at bigpond dot net dot au
2005-08-23 10:40 ` oakad at yahoo dot com
2005-08-24  1:51 ` amodra at bigpond dot net dot au
2005-08-24  6:47 ` amodra at bigpond dot net dot au
2005-08-25  5:24 ` pinskia 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).