В 21:18 +0300 на 16.08.2010 (пн), Yavor Doganov написа:
> As I can't reproduce the nefarious behavior on gcc61.fsffrance.org
> with a manually built GCC 4.4.4 from pristine source, I'm now building
> a new gcc with Debian patches.
Still can't reproduce with it :-(
Can you compile and run this simple program?
#import <Foundation/Foundation.h>
int
main (int argc, char **argv, char **env)
{
CREATE_AUTORELEASE_POOL (pool);
NSProcessInfo *procinfo;
NSArray *args;
NSString *foo = @"Test";
procinfo = [NSProcessInfo processInfo];
if (!procinfo)
{
NSLog (@"Unable to obtain process info.\n");
RELEASE (pool);
exit (EXIT_FAILURE);
}
args = [procinfo arguments];
if ([args count] == 1)
GSPrintf (stdout, @"No arguments given\n");
printf ("%s, PID %d\n", [foo cString], [procinfo processIdentifier]);
RELEASE (pool);
exit (EXIT_SUCCESS);
}
ifndef GNUSTEP_MAKEFILES
GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES)
endif
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = test
test_OBJC_FILES = test.m
include $(GNUSTEP_MAKEFILES)/tool.make