From: Willi Burmeister (wib@informatik.uni-kiel.de)
Date: Sat Jun 04 2005 - 13:54:51 EDT
Hi,
maybe someone can explain this behaviour of 'cc -E'.
I have a small test file
----------------------------------------
#define SWITCH -g
SWITCH
----------------------------------------
Parsing this file through the preprocessor we get:
----------------------------------------
% /usr/ccs/lib/cpp test.c
# 1 "test.c"
-g
----------------------------------------
% /usr/sfw/bin/cpp test.c
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
-g
----------------------------------------
% gcc -E test.c
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
-g
----------------------------------------
% cc -E test.c
# 1 "test.c"
# 2
- g
#ident "acomp: Sun C 5.5 2003/03/12"
----------------------------------------
Why do I get '- g' with this extra whitespace while using
Suns cc compiler? Is this a bug or a feature?
I know writing "-g" in the test file will solve this, but I'm
trying to compile emacs-21.4 on my Solaris 10/x86 system and
here the problems shows up. I don't want to use gcc and setting
CPP to /usr/ccs/lib/cpp gives among other things:
% /usr/ccs/lib/cpp /usr/include/sys/isa_defs.h
[...]
"/usr/include/sys/isa_defs.h", line 500: undefined control
[...]
Thanks for every help
Willi
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:49 EDT