home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
NeXT
/
GnuSource
/
cc-61.0.1
/
cc
/
NeXT-diffs
< prev
next >
Wrap
Text File
|
1991-06-04
|
8KB
|
237 lines
*** /Net/ohio/redbird/mself/fsf-36/gcc.c Mon Apr 1 17:15:49 1991
--- ./gcc.c Tue Jun 4 12:04:28 1991
***************
*** 301,307 ****
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %{o*} %{A} %{d} %{e*} %{N} %{n} \
%{r} %{s} %{S} %{T*} %{t} %{u*} %{X} %{x} %{z}\
%{Y*} %{!A:%{!nostdlib:%S}} \
! %{L*} %o %{!nostdlib:gnulib%s %L gnulib%s %{!A:%E}}\n }}}}}";
/* The default list of file name suffixes and their compilation specs. */
--- 301,307 ----
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %{o*} %{A} %{d} %{e*} %{N} %{n} \
%{r} %{s} %{S} %{T*} %{t} %{u*} %{X} %{x} %{z}\
%{Y*} %{!A:%{!nostdlib:%S}} \
! %{L*} %o %{!nostdlib: %L %{!A:%E}}\n }}}}}";
/* The default list of file name suffixes and their compilation specs. */
***************
*** 313,323 ****
%{C:%{!E:%eGNU C does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d}\
-undef -D__GNUC__=2 %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
%c %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %{pedantic*} %{H} %{d*} %C\
%i %{!M:%{!MM:%{!E:%{!pipe:%g.cpp}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n\
! %{!M:%{!MM:%{!E:cc1 %{!pipe:%g.cpp} %1 \
%{!Q:-quiet} -dumpbase %b.c %{Y*} %{d*} %{m*} %{a}\
%{g} %{O*} %{W*} %{w} %{pedantic*} %{ansi} %{traditional}\
%{v:-version} %{pg:-p} %{p} %{f*}\
--- 313,324 ----
%{C:%{!E:%eGNU C does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d}\
-undef -D__GNUC__=2 %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
+ -D__GNU__\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
%c %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %{pedantic*} %{H} %{d*} %C\
%i %{!M:%{!MM:%{!E:%{!pipe:%g.cpp}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n\
! %{!M:%{!MM:%{!E:cc1obj %{!pipe:%g.cpp} %1 \
%{!Q:-quiet} -dumpbase %b.c %{Y*} %{d*} %{m*} %{a}\
%{g} %{O*} %{W*} %{w} %{pedantic*} %{ansi} %{traditional}\
%{v:-version} %{pg:-p} %{p} %{f*}\
***************
*** 330,335 ****
--- 331,337 ----
"%{E:cpp -lang-c %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{i*} %{P}\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d}\
+ -D__GNU__\
-undef -D__GNUC__=2 %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
%c %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\
***************
*** 342,347 ****
--- 344,350 ----
%{C:%{!E:%eGNU C does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d}\
-undef -D__OBJC__ -D__GNUC__=2 %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
+ -D__GNU__\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
%c %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %{pedantic*} %{H} %{d*} %C\
***************
*** 362,367 ****
--- 365,371 ----
cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{i*} %{P}\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} \
+ -D__GNU__\
-undef -D__GNUC__=2 %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
%c %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\
***************
*** 373,378 ****
--- 377,383 ----
"cpp -lang-c++ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{i*} %{P}\
%{C:%{!E:%eGNU C++ does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} \
+ -D__GNU__\
-undef -D__GNUC__=2 -D__GNUG__ -D__cplusplus %{!undef:%p %P}\
%c %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %{pedantic*} %{H} %{d*} %C\
***************
*** 388,400 ****
%{!pipe:%g.s}\n }}}}"},
{".i", "@cpp-output"},
{"@cpp-output",
! "cc1 %i %1 %{!Q:-quiet} %{Y*} %{d*} %{m*} %{a}\
%{g} %{O*} %{W*} %{w} %{pedantic*} %{ansi} %{traditional}\
%{v:-version} %{pg:-p} %{p} %{f*}\
%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
%{!S:as %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
%{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %{!pipe:%g.s}\n }"},
! {".s", "@assembler"},
{"@assembler",
"%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
%{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %i\n }"},
--- 393,405 ----
%{!pipe:%g.s}\n }}}}"},
{".i", "@cpp-output"},
{"@cpp-output",
! "cc1obj %i %1 %{!Q:-quiet} %{Y*} %{d*} %{m*} %{a}\
%{g} %{O*} %{W*} %{w} %{pedantic*} %{ansi} %{traditional}\
%{v:-version} %{pg:-p} %{p} %{f*}\
%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
%{!S:as %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
%{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %{!pipe:%g.s}\n }"},
! {".s", "@assembler-with-cpp"},
{"@assembler",
"%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
%{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %i\n }"},
***************
*** 403,408 ****
--- 408,414 ----
"cpp -lang-c %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{i*} %{P}\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{trigraphs} \
+ -D__GNU__\
-undef -$ %{!undef:%p %P} -D__ASSEMBLER__ \
%c %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-ftraditional}\
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %{pedantic*} %{H} %{d*} %C\
***************
*** 1420,1425 ****
--- 1426,1432 ----
switch (c)
{
+ #ifndef NeXT
case 'b':
if (p[1] == 0 && i + 1 == argc)
fatal ("argument to `-b' is missing");
***************
*** 1428,1433 ****
--- 1435,1441 ----
else
spec_machine = p + 1;
break;
+ #endif /* not NeXT */
case 'B':
{
***************
*** 1458,1463 ****
--- 1466,1484 ----
spec_version = p + 1;
break;
+ #ifdef NeXT
+ case 'b':
+ if (p[1] != 's' || p[2] != 'd' || p[3] != '\0')
+ {
+ if (p[1] == 0)
+ spec_machine = argv[++i];
+ else
+ spec_machine = p + 1;
+ break;
+ }
+ /* fall through */
+ #endif /* NeXT */
+
default:
n_switches++;
***************
*** 1490,1496 ****
--- 1511,1522 ----
register char *p = &argv[i][1];
register int c = *p;
+ #ifdef NeXT
+ if (c == 'B' || c == 'V'
+ || (c == 'b' && (p[1] != 's' || p[2] != 'd' || p[3] != '\0')))
+ #else /* NeXT */
if (c == 'B' || c == 'b' || c == 'V')
+ #endif /* NeXT */
{
/* Skip a separate arg, if any. */
if (p[1] == 0)
*** /Net/nomad/comp/mself/fsf/cccp.c Thu Mar 14 11:42:24 1991
--- ./cccp.c Thu Mar 14 14:22:09 1991
***************
*** 838,843 ****
--- 838,844 ----
break;
case 'l':
+ #ifndef NeXT
if (! strcmp (argv[i], "-lang-c"))
cplusplus = 0, objc = 0;
if (! strcmp (argv[i], "-lang-c++"))
***************
*** 845,850 ****
--- 846,852 ----
if (! strcmp (argv[i], "-lang-objc"))
objc = 1, cplusplus = 0;
if (! strcmp (argv[i], "-lang-objc++"))
+ #endif /* not NeXT */
objc = 1, cplusplus = 1;
if (! strcmp (argv[i], "-lint"))
lint = 1;
*** c-typeck.c.orig Fri Apr 5 09:50:17 1991
--- c-typeck.c Fri Apr 5 12:14:59 1991
***************
*** 375,382 ****
--- 375,388 ----
switch (TREE_CODE (t1))
{
case POINTER_TYPE:
+ #ifdef NeXT
return (TREE_TYPE (t1) == TREE_TYPE (t2)
+ || (pedantic ? comptypes (TREE_TYPE (t1), TREE_TYPE (t2))
+ : comp_target_types (t1, t2)));
+ #else /* NeXT */
+ return (TREE_TYPE (t1) == TREE_TYPE (t2)
|| comptypes (TREE_TYPE (t1), TREE_TYPE (t2)));
+ #endif /* NeXT */
case FUNCTION_TYPE:
return function_types_compatible_p (t1, t2);
***************
*** 1090,1095 ****
--- 1096,1106 ----
"vprintf", FALSE, 1, TRUE,
"vfprintf", FALSE, 2, TRUE,
"vsprintf", FALSE, 2, TRUE,
+ #ifdef NeXT
+ #ifdef EXTRA_FORMAT_FUNCTIONS
+ EXTRA_FORMAT_FUNCTIONS
+ #endif
+ #endif /* NeXT */
0,
};