• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Looking for a Workaround for GCC Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for a Workaround for GCC Bug


  • Subject: Re: Looking for a Workaround for GCC Bug
  • From: Larry Bright <email@hidden>
  • Date: Fri, 16 Jan 2004 07:58:50 -0800

On Jan 16, 2004, at 7:46 AM, Alastair Houghton wrote:

On 16 Jan 2004, at 05:58, Larry Bright wrote:

If anyone knows a workaround for the following bug (I have reported it to Apple), I would appreciate knowing about it. I discovered this bug while developing in Xcode, but it seems trace back to the GCC compiler (version 3.3).

It seems to work just fine using GCC 3.3 20030304 (Apple Computer, Inc. build 1495). Try doing


	gcc -v

and see what your GCC comes back with.
...
  Do you have any other options enabled as well?)


Thanks for your prompt response, Alastair. Below you'll find exactly what I did in a Terminal window to get the results I reported in my original post. (Note that I AM using the same version and build of GCC that you used, according to the results of 'gcc -v'.) I can't even begin to explain why we would get different results!


Thanks again for your help. If you have any additional thoughts that might help clear up this mystery, I'd be very grateful to learn of them.

Cheers,

Larry

[LEBsMacG4Cube:~] larry% mkdir GCCbugTEMP
[LEBsMacG4Cube:~] larry% cd GCCbugTEMP/
[LEBsMacG4Cube:~/GCCbugTEMP] larry% cat > ctl.h
//  -------- Contents of header file ctl.h --------
#import <Cocoa/Cocoa.h>
@interface Ctl : NSObject
{
    IBOutlet NSTextField *a;
    IBOutlet NSQuickDrawView *q;
    IBOutlet NSTextField *xPosText;     // Fails
//  IBOutlet NSTextField *xPosTex;      // Succeeds
}
- (IBAction)ctlMethod:(id)sender;
@end

[LEBsMacG4Cube:~/GCCbugTEMP] larry% cat > ctl.m
//  -------- Contents of source file ctl.m --------
#import "ctl.h"
@implementation Ctl
- (IBAction)ctlMethod:(id)sender
{
}
@end

[LEBsMacG4Cube:~/GCCbugTEMP] larry% which gcc
/usr/bin/gcc
[LEBsMacG4Cube:~/GCCbugTEMP] larry% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
[LEBsMacG4Cube:~/GCCbugTEMP] larry% gcc -c ctl.m -g
/var/tmp//ccUKJNGB.s:42:I need a comma after symbol's name
/var/tmp//ccUKJNGB.s:42:Rest of line ignored. 1st junk character valued 52 (4).
[LEBsMacG4Cube:~/GCCbugTEMP] larry%
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Looking for a Workaround for GCC Bug
      • From: Chris Ridd <email@hidden>
References: 
 >Looking for a Workaround for GCC Bug (From: Larry Bright <email@hidden>)
 >Re: Looking for a Workaround for GCC Bug (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Looking for a Workaround for GCC Bug
  • Next by Date: Re: Looking for a Workaround for GCC Bug
  • Previous by thread: Re: Looking for a Workaround for GCC Bug
  • Next by thread: Re: Looking for a Workaround for GCC Bug
  • Index(es):
    • Date
    • Thread