public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/25360]  New: Complex types are not encoded
@ 2005-12-12  5:53 pinskia at gcc dot gnu dot org
  2005-12-14 22:41 ` [Bug objc/25360] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-12  5:53 UTC (permalink / raw)
  To: gcc-bugs

The following testsuite fails because of this
FAIL: objc.dg-struct-layout-encoding-1/t024_main.m execution test

unknown type ]}
struct { _Complex float a;} size is 8, but is calulated as 0
struct { _Complex float a;} align is 4, but is calulated as 1
struct { _Complex unsigned int a;} size is 8, but is calulated as 0
struct { _Complex unsigned int a;} align is 4, but is calulated as 1
FAIL: objc.dg-struct-layout-encoding-1/t024_main.m execution test


-- 
           Summary: Complex types are not encoded
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

* [Bug objc/25360] Complex types are not encoded
  2005-12-12  5:53 [Bug objc/25360] New: Complex types are not encoded pinskia at gcc dot gnu dot org
@ 2005-12-14 22:41 ` pinskia at gcc dot gnu dot org
  2005-12-16  6:08 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-14 22:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-14 22:41 -------
I am handling this one, I sent a RFC to the objective-C language list.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-12-14 22:41:05
               date|                            |


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


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

* [Bug objc/25360] Complex types are not encoded
  2005-12-12  5:53 [Bug objc/25360] New: Complex types are not encoded pinskia at gcc dot gnu dot org
  2005-12-14 22:41 ` [Bug objc/25360] " pinskia at gcc dot gnu dot org
@ 2005-12-16  6:08 ` pinskia at gcc dot gnu dot org
  2005-12-16 20:05 ` pinskia at gcc dot gnu dot org
  2005-12-16 20:19 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-16  6:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-12-16 06:08 -------
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01234.html

This also includes the libobjc part.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |12/msg01234.html
           Keywords|                            |patch, wrong-code


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


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

* [Bug objc/25360] Complex types are not encoded
  2005-12-12  5:53 [Bug objc/25360] New: Complex types are not encoded pinskia at gcc dot gnu dot org
  2005-12-14 22:41 ` [Bug objc/25360] " pinskia at gcc dot gnu dot org
  2005-12-16  6:08 ` pinskia at gcc dot gnu dot org
@ 2005-12-16 20:05 ` pinskia at gcc dot gnu dot org
  2005-12-16 20:19 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-16 20:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-12-16 20:05 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


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

* [Bug objc/25360] Complex types are not encoded
  2005-12-12  5:53 [Bug objc/25360] New: Complex types are not encoded pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-12-16 20:05 ` pinskia at gcc dot gnu dot org
@ 2005-12-16 20:19 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-16 20:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-12-16 20:19 -------
Subject: Bug 25360

Author: pinskia
Date: Fri Dec 16 20:19:37 2005
New Revision: 108675

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108675
Log:
2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>

        PR objc/25360
        * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
        by the inner type.

2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>

        PR objc/25360
        * objc/objc-api.c (_C_COMPLEX): New define.
        * encoding.c (objc_sizeof_type): Handle _C_Complex.
        (objc_alignof_type): Likewise.
        (objc_skip_typespec): Likewise.


Modified:
    trunk/gcc/objc/ChangeLog
    trunk/gcc/objc/objc-act.c
    trunk/libobjc/ChangeLog
    trunk/libobjc/encoding.c
    trunk/libobjc/objc/objc-api.h


-- 


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


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

end of thread, other threads:[~2005-12-16 20:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-12  5:53 [Bug objc/25360] New: Complex types are not encoded pinskia at gcc dot gnu dot org
2005-12-14 22:41 ` [Bug objc/25360] " pinskia at gcc dot gnu dot org
2005-12-16  6:08 ` pinskia at gcc dot gnu dot org
2005-12-16 20:05 ` pinskia at gcc dot gnu dot org
2005-12-16 20:19 ` 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).