• 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
Looking for a Workaround for GCC Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for a Workaround for GCC Bug


  • Subject: Looking for a Workaround for GCC Bug
  • From: Larry Bright <email@hidden>
  • Date: Thu, 15 Jan 2004 21:58:55 -0800

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).

Thanks in advance...


Compile the following code with GCC 3.3 and be sure to use the -g option (generate debugging information):


//  -------- 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

//  -------- Contents of source file ctl.m --------
#import "ctl.h"
@implementation Ctl
- (IBAction)ctlMethod:(id)sender
{
}
@end

This should compile without complaint (and it does if the -g option is not used). Instead I get the following error report:

/var/tmp//ccGe9NTZ.s:42:I need a comma after symbol's name
/var/tmp//ccGe9NTZ.s:42:Rest of line ignored. 1st junk character valued 52 (4).


The message seems to indicate a syntax error in the output from the assembly phase. I produced the assembly output by use of the -S option and determined that the indicated error line (42) is a '.stabs' statement.

The example code is just one of many instances of this problem that I have encountered. I have NOT been able to figure out what feature of the input code induces the error. Changing the order of lines in the header file has sometimes induced the error. The problem seems to occur only when using the -g option.

I would appreciate a workaround if you can suggest one.
_______________________________________________
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: Alastair Houghton <email@hidden>
    • Re: Looking for a Workaround for GCC Bug
      • From: Justin Walker <email@hidden>
  • Prev by Date: Re: SourceForge Projet to Xcode
  • Next by Date: Referencing dylibs from a static lib in xcode?
  • Previous by thread: Too many pragmas in PB on 10.3?
  • Next by thread: Re: Looking for a Workaround for GCC Bug
  • Index(es):
    • Date
    • Thread