public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16386] New: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
@ 2004-07-06 16:37 bkoz at gcc dot gnu dot org
  2004-07-06 16:38 ` [Bug c++/16386] " bkoz at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-07-06 16:37 UTC (permalink / raw)
  To: gcc-bugs

First reported by Michael Wong. 

The attached testcase produces different output depending on the version of gcc
used. This can be reproduced on powerpc-linux as well.

3.2.3
        size    align
ua      4       1
ua.a    4       1
ub      4       1
ub.b    4       1

3.3.3
        size    align
ua      16      16
ua.a    4       16
ub      16      16
ub.b    4       16

3.4.1
        size    align
ua      16      16
ua.a    4       4
ub      16      16
ub.b    4       4

-- 
           Summary: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ABI
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkoz at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/16386] [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
  2004-07-06 16:37 [Bug c++/16386] New: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4] bkoz at gcc dot gnu dot org
  2004-07-06 16:38 ` [Bug c++/16386] " bkoz at gcc dot gnu dot org
@ 2004-07-06 16:38 ` bkoz at gcc dot gnu dot org
  2004-07-06 16:43 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-07-06 16:38 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michaelw at ca dot ibm dot
                   |                            |com


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


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

* [Bug c++/16386] [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
  2004-07-06 16:37 [Bug c++/16386] New: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4] bkoz at gcc dot gnu dot org
@ 2004-07-06 16:38 ` bkoz at gcc dot gnu dot org
  2004-07-06 16:38 ` bkoz at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-07-06 16:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bkoz at gcc dot gnu dot org  2004-07-06 16:38 -------
Created an attachment (id=6697)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6697&action=view)
test case


-- 


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


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

* [Bug c++/16386] [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
  2004-07-06 16:37 [Bug c++/16386] New: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4] bkoz at gcc dot gnu dot org
  2004-07-06 16:38 ` [Bug c++/16386] " bkoz at gcc dot gnu dot org
  2004-07-06 16:38 ` bkoz at gcc dot gnu dot org
@ 2004-07-06 16:43 ` pinskia at gcc dot gnu dot org
  2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
  2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-06 16:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-06 16:43 -------
aligned and packed are conflicting attributes.

-- 


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


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

* [Bug c++/16386] [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
  2004-07-06 16:37 [Bug c++/16386] New: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4] bkoz at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-07-06 16:43 ` pinskia at gcc dot gnu dot org
@ 2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
  2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-02  1:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-02 01:21 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-02 01:21:39
               date|                            |


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


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

* [Bug c++/16386] [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
  2004-07-06 16:37 [Bug c++/16386] New: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4] bkoz at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
@ 2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-02  1:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-02 01:21 -------
This is only reproducible with the C++ front-end, the C front-end produces:
        size    align
ua      16      16
ua.a    4       16
ub      16      16
ub.b    4       16

Always.

I think this should be rejected as they are conflicting attributes.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ABI                         |accepts-invalid


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


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

* [Bug c++/16386] [ABI] attribute aligned,packed shifting [3.2/3.3/3.4]
       [not found] <bug-16386-4@http.gcc.gnu.org/bugzilla/>
@ 2013-11-07 10:34 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-11-07 10:34 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|gcc-bugs at gcc dot gnu.org        |
         Resolution|---                         |FIXED

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I see the results per Comment #3 very consistent across the recent release
series and current ICC and clang too. I think we can close the bug.


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

end of thread, other threads:[~2013-11-07 10:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-06 16:37 [Bug c++/16386] New: [ABI] attribute aligned,packed shifting [3.2/3.3/3.4] bkoz at gcc dot gnu dot org
2004-07-06 16:38 ` [Bug c++/16386] " bkoz at gcc dot gnu dot org
2004-07-06 16:38 ` bkoz at gcc dot gnu dot org
2004-07-06 16:43 ` pinskia at gcc dot gnu dot org
2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
2005-07-02  1:21 ` pinskia at gcc dot gnu dot org
     [not found] <bug-16386-4@http.gcc.gnu.org/bugzilla/>
2013-11-07 10:34 ` paolo.carlini at oracle 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).