public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libobjc/13834] New: forward / performv broken
@ 2004-01-23 17:10 gavin at ipalsoftware dot com
  2004-01-23 17:18 ` [Bug libobjc/13834] [3.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gavin at ipalsoftware dot com @ 2004-01-23 17:10 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

forward / performv appears to be completely broken in the gcc 3.x series.  Below
is a test program.

Expected output is:

hello world
hello world

This is the output generated by gcc 2.96.

Output under gcc 3.3.2 is:

hello world
hello ˆõÿ¿ýO\x03@ð¿Øš\x10öÿ¿ð¿\x18

This may be related to bug 429 "-forward:: / -performv:: does not work with
floats/structs" but as far as I can tell forward/performv is not working with
anything now.

#include <objc/Object.h>
#include <stdio.h>

@interface Obj1 : Object
{
}
- (retval_t) forward:(SEL)asel :(arglist_t)args;
@end

@interface Obj2 : Object
{
}
- hello:(const char *)str;
@end

static Obj1 *o1;
static Obj2 *o2;

@implementation Obj1
- (retval_t) forward:(SEL)sel :(arglist_t) args
{
  [o2 performv:sel :args];

  return self;
}
@end

@implementation Obj2
- hello:(const char *)str
{
  printf("hello %s\n", str);

  return self;
}

@end

int
main(void)
{
  o1 = [[Obj1 alloc] init];
  o2 = [[Obj2 alloc] init];

  [o2 hello:"world"];
  [(id) o1 hello:"world"];

  return 0;
}

-- 
           Summary: forward / performv broken
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libobjc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gavin at ipalsoftware dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-04-27  6:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-23 17:10 [Bug libobjc/13834] New: forward / performv broken gavin at ipalsoftware dot com
2004-01-23 17:18 ` [Bug libobjc/13834] [3.3 Regression] " pinskia at gcc dot gnu dot org
2004-02-15 12:40 ` gdr at gcc dot gnu dot org
2004-02-22 15:01 ` gdr at gcc dot gnu dot org
2004-04-18 18:47 ` gdr at gcc dot gnu dot org
2004-04-18 18:49 ` pinskia at gcc dot gnu dot org
2004-04-18 19:48 ` pinskia at gcc dot gnu dot org
2004-04-18 20:52 ` pinskia at gcc dot gnu dot org
2004-04-27  6:45 ` gdr 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).