home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / gcc-2.3.3-src.lha / src / diffs / gcc-2.3.3.diffs
Encoding:
Text File  |  1994-02-07  |  177.2 KB  |  5,856 lines

  1. diff -rc --new-file gcc-2.3.3-fsf/Makefile.in gcc-2.3.3-amiga/Makefile.in
  2. *** gcc-2.3.3-fsf/Makefile.in    Fri Dec 25 07:07:58 1992
  3. --- gcc-2.3.3-amiga/Makefile.in    Sat Feb  5 18:36:26 1994
  4. ***************
  5. *** 58,64 ****
  6.   AR_FLAGS = rc
  7.   SHELL = /bin/sh
  8.   # on sysV, define this as cp.
  9. ! INSTALL = install -c
  10.   # These permit overriding just for certain files.
  11.   INSTALL_PROGRAM = $(INSTALL)
  12.   INSTALL_DATA = $(INSTALL)
  13. --- 58,64 ----
  14.   AR_FLAGS = rc
  15.   SHELL = /bin/sh
  16.   # on sysV, define this as cp.
  17. ! INSTALL = cp
  18.   # These permit overriding just for certain files.
  19.   INSTALL_PROGRAM = $(INSTALL)
  20.   INSTALL_DATA = $(INSTALL)
  21. ***************
  22. *** 133,138 ****
  23. --- 133,145 ----
  24.   # Common prefix for installation directories.
  25.   # NOTE: This directory must exist when you start installation.
  26.   prefix = /usr/local
  27. + # Directory in which to put localized header files. On the systems with
  28. + # gcc as the native cc, `local_prefix' may not be `prefix' which is
  29. + # `/usr'.  Similar considerations apply for toolkits located on non-writable
  30. + # storage, such as CD-ROM, where we need a completely separate place to put
  31. + # local include files.
  32. + # NOTE: local_prefix *should not* default from prefix.
  33. + local_prefix = /usr/local
  34.   # Directory in which to put host dependent programs and libraries
  35.   exec_prefix = $(prefix)
  36.   # Directory in which to put the executable for the command `gcc'
  37. ***************
  38. *** 482,489 ****
  39.       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgcc gcc.o version.o $(LIBS)
  40.   
  41.   # Dump a specs file to make -B./ read these specs over installed ones.
  42. ! specs: xgcc
  43. !     ./xgcc -dumpspecs > specs
  44.   
  45.   # We do want to create an executable named `xgcc', so we can use it to
  46.   # compile libgcc2.a.
  47. --- 489,496 ----
  48.       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgcc gcc.o version.o $(LIBS)
  49.   
  50.   # Dump a specs file to make -B./ read these specs over installed ones.
  51. ! specs: xgcc xgccv
  52. !     ./$(XGCC) -dumpspecs > specs
  53.   
  54.   # We do want to create an executable named `xgcc', so we can use it to
  55.   # compile libgcc2.a.
  56. ***************
  57. *** 659,666 ****
  58.       then (cd tmpcopy; $(AR) x ../$(LIBGCC1));    \
  59.       else true;                    \
  60.       fi
  61. !     (cd tmpcopy; $(AR) x ../$(LIBGCC2))
  62. !     (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
  63.       rm -rf tmpcopy
  64.       -if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
  65.   # Actually build it in tmplibgcc.a, then rename at end,
  66. --- 666,676 ----
  67.       then (cd tmpcopy; $(AR) x ../$(LIBGCC1));    \
  68.       else true;                    \
  69.       fi
  70. ! # the cd .. make sure there's no lock left on tmpcopy (this is actually a
  71. ! # bug in ixemul.library, but I can't get around it currently because it
  72. ! # involves an OS bug which is beyond my capabilities to fix...)
  73. !     (cd tmpcopy; $(AR) x ../$(LIBGCC2) ; cd ..; /c/wait 2)
  74. !     (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o; cd ..; /c/wait 2)
  75.       rm -rf tmpcopy
  76.       -if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
  77.   # Actually build it in tmplibgcc.a, then rename at end,
  78. ***************
  79. *** 677,686 ****
  80.       cd objc; \
  81.       $(MAKE) -f $${srcdir1}/objc/Makefile libobjc.a \
  82.         srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  83. !       GCC_FOR_TARGET="$${thisdir1}/xgcc -B$${thisdir1}/" \
  84.         GCC_CFLAGS="$(GCC_CFLAGS)"
  85.       -rm -f libobjc.a
  86. !     ln objc/libobjc.a . >/dev/null 2>&1 || cp objc/libobjc.a .
  87.       -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
  88.   
  89.   # This is used by objc/Makefile if the user runs that directly.
  90. --- 687,696 ----
  91.       cd objc; \
  92.       $(MAKE) -f $${srcdir1}/objc/Makefile libobjc.a \
  93.         srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  94. !       GCC_FOR_TARGET="$${thisdir1}/$(XGCC) -B$${thisdir1}/" \
  95.         GCC_CFLAGS="$(GCC_CFLAGS)"
  96.       -rm -f libobjc.a
  97. !     cp objc/libobjc.a . >/dev/null 2>&1 || cp objc/libobjc.a .
  98.       -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
  99.   
  100.   # This is used by objc/Makefile if the user runs that directly.
  101. ***************
  102. *** 690,696 ****
  103.       cd objc; \
  104.       $(MAKE) -f $$srcdir1/objc/Makefile libobjc.a \
  105.         srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  106. !       GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
  107.         GCC_CFLAGS="$(GCC_CFLAGS)"
  108.   
  109.   # Compile two additional files that are linked with every program
  110. --- 700,706 ----
  111.       cd objc; \
  112.       $(MAKE) -f $$srcdir1/objc/Makefile libobjc.a \
  113.         srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  114. !       GCC_FOR_TARGET="$$thisdir1/$(XGCC) -B$$thisdir1/" \
  115.         GCC_CFLAGS="$(GCC_CFLAGS)"
  116.   
  117.   # Compile two additional files that are linked with every program
  118. ***************
  119. *** 772,778 ****
  120.   # To make a configuration always use collect2, set USE_COLLECT2 to ld.
  121.   ld: collect2
  122.       rm -f ld
  123. !     ln collect2 ld
  124.   
  125.   collect2 : collect2.o version.o $(LIBDEPS)
  126.   # Don't try modifying collect2 (aka ld) in place--it might be linking this.
  127. --- 782,788 ----
  128.   # To make a configuration always use collect2, set USE_COLLECT2 to ld.
  129.   ld: collect2
  130.       rm -f ld
  131. !     cp collect2 ld
  132.   
  133.   collect2 : collect2.o version.o $(LIBDEPS)
  134.   # Don't try modifying collect2 (aka ld) in place--it might be linking this.
  135. ***************
  136. *** 1157,1163 ****
  137.   # Making the preprocessor
  138.   cpp: cccp
  139.       -rm -f cpp
  140. !     ln cccp cpp
  141.   cccp: cccp.o cexp.o version.o $(LIBDEPS)
  142.       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  143.   cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
  144. --- 1167,1173 ----
  145.   # Making the preprocessor
  146.   cpp: cccp
  147.       -rm -f cpp
  148. !     cp cccp cpp
  149.   cccp: cccp.o cexp.o version.o $(LIBDEPS)
  150.       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  151.   cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
  152. ***************
  153. *** 1170,1176 ****
  154.       $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  155.         -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
  156.         -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
  157. !       -DLOCAL_INCLUDE_DIR=\"$(prefix)/include\" \
  158.         -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
  159.         -DTOOLDIR=\"$(tooldir)/\" \
  160.         -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
  161. --- 1180,1186 ----
  162.       $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  163.         -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
  164.         -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
  165. !       -DLOCAL_INCLUDE_DIR=\"$(local_prefix)/include\" \
  166.         -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
  167.         -DTOOLDIR=\"$(tooldir)/\" \
  168.         -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
  169. ***************
  170. *** 1357,1363 ****
  171.   
  172.   # Copy the files of native compiler into directories where they will be run.
  173.   install-native: install-common install-libgcc $(INSTALL_HEADERS) \
  174. !    install-man
  175.   
  176.   # Copy the files of cross compiler into directories where they will be run.
  177.   install-cross: install-common install-common-headers \
  178. --- 1367,1373 ----
  179.   
  180.   # Copy the files of native compiler into directories where they will be run.
  181.   install-native: install-common install-libgcc $(INSTALL_HEADERS) \
  182. !    install-man $(INSTALL_EXTRA_PARTS)
  183.   
  184.   # Copy the files of cross compiler into directories where they will be run.
  185.   install-cross: install-common install-common-headers \
  186. ***************
  187. *** 1490,1496 ****
  188.         rm -f $(bindir)/gcc; \
  189.         $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
  190.         rm -f $(bindir)/gcc-$(target)-1; \
  191. !       ln $(bindir)/gcc $(bindir)/gcc-$(target)-1; \
  192.         mv $(bindir)/gcc-$(target)-1 $(bindir)/gcc-$(target); \
  193.       fi
  194.   # Install protoize if it was compiled.
  195. --- 1500,1506 ----
  196.         rm -f $(bindir)/gcc; \
  197.         $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
  198.         rm -f $(bindir)/gcc-$(target)-1; \
  199. !       cp $(bindir)/gcc $(bindir)/gcc-$(target)-1; \
  200.         mv $(bindir)/gcc-$(target)-1 $(bindir)/gcc-$(target); \
  201.       fi
  202.   # Install protoize if it was compiled.
  203. ***************
  204. *** 1707,1723 ****
  205.       mkdir tmp/config
  206.       mkdir tmp/objc
  207.       for file in *[0-9a-zA-Z+]; do \
  208. !       ln $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
  209.       done
  210.       cd config; \
  211.       for file in *[0-9a-zA-Z+]; do \
  212. !       ln $$file ../tmp/config >/dev/null 2>&1 || cp $$file ../tmp/config; \
  213.       done
  214.       cd objc; \
  215.       for file in *[0-9a-zA-Z+]; do \
  216. !       ln $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
  217.       done
  218. !     ln .gdbinit tmp
  219.       mv tmp gcc-$(version)
  220.   # Get rid of everything we don't want in the distribution.
  221.       cd gcc-$(version); make -f Makefile.in extraclean
  222. --- 1717,1733 ----
  223.       mkdir tmp/config
  224.       mkdir tmp/objc
  225.       for file in *[0-9a-zA-Z+]; do \
  226. !       cp $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
  227.       done
  228.       cd config; \
  229.       for file in *[0-9a-zA-Z+]; do \
  230. !       cp $$file ../tmp/config >/dev/null 2>&1 || cp $$file ../tmp/config; \
  231.       done
  232.       cd objc; \
  233.       for file in *[0-9a-zA-Z+]; do \
  234. !       cp $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
  235.       done
  236. !     cp .gdbinit tmp
  237.       mv tmp gcc-$(version)
  238.   # Get rid of everything we don't want in the distribution.
  239.       cd gcc-$(version); make -f Makefile.in extraclean
  240. ***************
  241. *** 1730,1746 ****
  242.   # in the intended test directory to make it a suitable test directory.
  243.   # THIS IS OBSOLETE; use the -srcdir operand in configure instead. 
  244.   maketest:
  245. !     ln -s $(DIR)/*.[chy] .
  246. !     ln -s $(DIR)/configure .
  247. !     ln -s $(DIR)/*.def .
  248.       -rm -f =*
  249. !     ln -s $(DIR)/.gdbinit .
  250. !     ln -s $(DIR)/$(FIXINCLUDES) .
  251. !     -ln -s $(DIR)/bison.simple .
  252. !     ln -s $(DIR)/config .
  253. !     ln -s $(DIR)/move-if-change .
  254.   # The then and else were swapped to avoid a problem on Ultrix.
  255. !     if [ ! -f Makefile ] ; then ln -s $(DIR)/Makefile .; else false; fi
  256.       -rm tm.h aux-output.c config.h md
  257.       make clean
  258.   # You must then run config to set up for compilation.
  259. --- 1740,1756 ----
  260.   # in the intended test directory to make it a suitable test directory.
  261.   # THIS IS OBSOLETE; use the -srcdir operand in configure instead. 
  262.   maketest:
  263. !     cp $(DIR)/*.[chy] .
  264. !     cp $(DIR)/configure .
  265. !     cp $(DIR)/*.def .
  266.       -rm -f =*
  267. !     cp $(DIR)/.gdbinit .
  268. !     cp $(DIR)/$(FIXINCLUDES) .
  269. !     -cp $(DIR)/bison.simple .
  270. !     cp $(DIR)/config .
  271. !     cp $(DIR)/move-if-change .
  272.   # The then and else were swapped to avoid a problem on Ultrix.
  273. !     if [ ! -f Makefile ] ; then cp $(DIR)/Makefile .; else false; fi
  274.       -rm tm.h aux-output.c config.h md
  275.       make clean
  276.   # You must then run config to set up for compilation.
  277. ***************
  278. *** 1756,1772 ****
  279.   # To prevent `make install' from compiling alloca.o and then relinking cc1
  280.   # because alloca.o is newer, we permit these recursive makes to compile
  281.   # alloca.o.  Then cc1 is newer, so it won't have to be relinked.
  282. !     $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  283.       $(MAKE) stage2
  284. !     $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  285.   
  286.   bootstrap2: force
  287. !     $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  288.       $(MAKE) stage2
  289. !     $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  290.   
  291.   bootstrap3: force
  292. !     $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  293.   
  294.   # Compare the object files in the current directory with those in the
  295.   # stage2 directory.
  296. --- 1766,1782 ----
  297.   # To prevent `make install' from compiling alloca.o and then relinking cc1
  298.   # because alloca.o is newer, we permit these recursive makes to compile
  299.   # alloca.o.  Then cc1 is newer, so it won't have to be relinked.
  300. !     $(MAKE) CC="stage1/$(XGCC) -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  301.       $(MAKE) stage2
  302. !     $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  303.   
  304.   bootstrap2: force
  305. !     $(MAKE) CC="stage1/$(XGCC) -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  306.       $(MAKE) stage2
  307. !     $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  308.   
  309.   bootstrap3: force
  310. !     $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
  311.   
  312.   # Compare the object files in the current directory with those in the
  313.   # stage2 directory.
  314. ***************
  315. *** 1789,1816 ****
  316.       -rm -f tmp-foo*
  317.   
  318.   # Copy the object files from a particular stage into a subdirectory.
  319. ! stage1: force
  320.       -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
  321.       -mv $(STAGESTUFF) stage1
  322.       -rm -f stage1/libgcc.a
  323.       -cp libgcc.a stage1
  324.       -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libgcc.a; else true; fi
  325.   
  326. ! stage2: force
  327.       -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
  328.       -mv $(STAGESTUFF) stage2
  329.       -rm -f stage2/libgcc.a
  330.       -cp libgcc.a stage2
  331.       -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libgcc.a; else true; fi
  332.   
  333. ! stage3: force
  334.       -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
  335.       -mv $(STAGESTUFF) stage3
  336.       -rm -f stage3/libgcc.a
  337.       -cp libgcc.a stage3
  338.       -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libgcc.a; else true; fi
  339.   
  340. ! stage4: force
  341.       -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
  342.       -mv $(STAGESTUFF) stage4
  343.       -rm -f stage4/libgcc.a
  344. --- 1799,1826 ----
  345.       -rm -f tmp-foo*
  346.   
  347.   # Copy the object files from a particular stage into a subdirectory.
  348. ! stage1: force $(EXTRA_STAGE1_TARGETS)
  349.       -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
  350.       -mv $(STAGESTUFF) stage1
  351.       -rm -f stage1/libgcc.a
  352.       -cp libgcc.a stage1
  353.       -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libgcc.a; else true; fi
  354.   
  355. ! stage2: force $(EXTRA_STAGE2_TARGETS)
  356.       -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
  357.       -mv $(STAGESTUFF) stage2
  358.       -rm -f stage2/libgcc.a
  359.       -cp libgcc.a stage2
  360.       -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libgcc.a; else true; fi
  361.   
  362. ! stage3: force $(EXTRA_STAGE3_TARGETS)
  363.       -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
  364.       -mv $(STAGESTUFF) stage3
  365.       -rm -f stage3/libgcc.a
  366.       -cp libgcc.a stage3
  367.       -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libgcc.a; else true; fi
  368.   
  369. ! stage4: force $(EXTRA_STAGE4_TARGETS)
  370.       -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
  371.       -mv $(STAGESTUFF) stage4
  372.       -rm -f stage4/libgcc.a
  373. diff -rc --new-file gcc-2.3.3-fsf/c-parse.c gcc-2.3.3-amiga/c-parse.c
  374. *** gcc-2.3.3-fsf/c-parse.c    Wed Oct  7 20:19:19 1992
  375. --- gcc-2.3.3-amiga/c-parse.c    Sat Feb  5 14:49:23 1994
  376. ***************
  377. *** 1,5 ****
  378.   
  379. ! /*  A Bison parser, made from c-parse.y  */
  380.   
  381.   #define YYBISON 1  /* Identify Bison output.  */
  382.   
  383. --- 1,6 ----
  384.   
  385. ! /*  A Bison parser, made from c-parse.y with Bison version GNU Bison version 1.22
  386. !   */
  387.   
  388.   #define YYBISON 1  /* Identify Bison output.  */
  389.   
  390. ***************
  391. *** 132,140 ****
  392. --- 133,143 ----
  393.   
  394.   #include <stdio.h>
  395.   
  396. + #ifndef __cplusplus
  397.   #ifndef __STDC__
  398.   #define const
  399.   #endif
  400. + #endif
  401.   
  402.   
  403.   
  404. ***************
  405. *** 178,183 ****
  406. --- 181,187 ----
  407.       60,    61,    62,    63,    64,    65,    66,    67
  408.   };
  409.   
  410. + #if YYDEBUG != 0
  411.   static const short yyprhs[] = {     0,
  412.        0,     1,     3,     4,     7,     8,    12,    14,    16,    22,
  413.       26,    31,    36,    39,    42,    45,    48,    50,    51,    52,
  414. ***************
  415. *** 333,338 ****
  416. --- 337,344 ----
  417.       89,     0
  418.   };
  419.   
  420. + #endif
  421.   #if YYDEBUG != 0
  422.   static const short yyrline[] = { 0,
  423.      209,   213,   222,   224,   224,   225,   227,   229,   230,   240,
  424. ***************
  425. *** 350,375 ****
  426.      742,   745,   758,   761,   765,   767,   775,   776,   777,   781,
  427.      783,   789,   790,   791,   794,   796,   799,   801,   804,   807,
  428.      813,   818,   820,   826,   831,   833,   840,   843,   848,   850,
  429. !    855,   860,   870,   881,   899,   901,   905,   907,   909,   915,
  430. !    918,   921,   925,   930,   932,   934,   936,   940,   957,   961,
  431. !    978,   985,   987,   992,   995,  1000,  1002,  1004,  1006,  1014,
  432. !   1020,  1022,  1024,  1026,  1032,  1038,  1040,  1042,  1044,  1046,
  433. !   1049,  1054,  1058,  1061,  1063,  1065,  1067,  1070,  1072,  1075,
  434. !   1078,  1081,  1084,  1088,  1090,  1093,  1095,  1099,  1102,  1107,
  435. !   1109,  1111,  1125,  1131,  1136,  1141,  1146,  1150,  1152,  1156,
  436. !   1160,  1164,  1173,  1175,  1180,  1183,  1187,  1190,  1194,  1197,
  437. !   1200,  1203,  1207,  1210,  1214,  1218,  1220,  1222,  1224,  1226,
  438. !   1228,  1230,  1232,  1240,  1242,  1243,  1246,  1248,  1251,  1254,
  439. !   1265,  1267,  1272,  1274,  1277,  1291,  1294,  1297,  1299,  1304,
  440. !   1309,  1317,  1322,  1325,  1338,  1346,  1350,  1354,  1358,  1364,
  441. !   1368,  1373,  1375,  1386,  1389,  1394,  1399,  1402,  1410,  1412,
  442. !   1422,  1432,  1433,  1441,  1444,  1456,  1460,  1476,  1483,  1492,
  443. !   1494,  1499,  1504,  1508,  1512,  1523,  1530,  1537,  1544,  1555,
  444. !   1559,  1566,  1590,  1618,  1633,  1644,  1647,  1651,  1654,  1659,
  445. !   1661,  1664,  1666,  1670,  1675,  1678,  1684,  1689,  1694,  1696,
  446. !   1705,  1706,  1712,  1714,  1719,  1721,  1725,  1728,  1734,  1737,
  447. !   1739,  1741,  1743,  1750,  1755,  1760,  1762,  1771,  1774,  1779,
  448. !   1782
  449.   };
  450.   
  451.   static const char * const yytname[] = {   "$","error","$illegal.","IDENTIFIER",
  452. --- 356,381 ----
  453.      742,   745,   758,   761,   765,   767,   775,   776,   777,   781,
  454.      783,   789,   790,   791,   794,   796,   799,   801,   804,   807,
  455.      813,   818,   820,   826,   831,   833,   840,   843,   848,   850,
  456. !    855,   867,   877,   888,   906,   908,   912,   914,   916,   922,
  457. !    925,   928,   932,   937,   939,   941,   943,   947,   964,   968,
  458. !    985,   992,   994,   999,  1002,  1007,  1009,  1011,  1013,  1021,
  459. !   1027,  1029,  1031,  1033,  1039,  1045,  1047,  1049,  1051,  1053,
  460. !   1056,  1061,  1065,  1068,  1070,  1072,  1074,  1077,  1079,  1082,
  461. !   1085,  1088,  1091,  1095,  1097,  1100,  1102,  1106,  1109,  1114,
  462. !   1116,  1118,  1132,  1138,  1143,  1148,  1153,  1157,  1159,  1163,
  463. !   1167,  1171,  1180,  1182,  1187,  1190,  1194,  1197,  1201,  1204,
  464. !   1207,  1210,  1214,  1217,  1221,  1225,  1227,  1229,  1231,  1233,
  465. !   1235,  1237,  1239,  1247,  1249,  1250,  1253,  1255,  1258,  1261,
  466. !   1272,  1274,  1279,  1281,  1284,  1298,  1301,  1304,  1306,  1311,
  467. !   1316,  1324,  1329,  1332,  1345,  1353,  1357,  1361,  1365,  1371,
  468. !   1375,  1380,  1382,  1393,  1396,  1401,  1406,  1409,  1417,  1419,
  469. !   1429,  1439,  1440,  1448,  1451,  1463,  1467,  1483,  1490,  1499,
  470. !   1501,  1506,  1511,  1515,  1519,  1530,  1537,  1544,  1551,  1562,
  471. !   1566,  1573,  1597,  1625,  1640,  1651,  1654,  1658,  1661,  1666,
  472. !   1668,  1671,  1673,  1677,  1682,  1685,  1691,  1696,  1701,  1703,
  473. !   1712,  1713,  1719,  1721,  1726,  1728,  1732,  1735,  1741,  1744,
  474. !   1746,  1748,  1750,  1757,  1762,  1767,  1769,  1778,  1781,  1786,
  475. !   1789
  476.   };
  477.   
  478.   static const char * const yytname[] = {   "$","error","$illegal.","IDENTIFIER",
  479. ***************
  480. *** 1078,1084 ****
  481.       50,    51
  482.   };
  483.   /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  484. ! #line 3 "bison.simple"
  485.   
  486.   /* Skeleton output parser for bison,
  487.      Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  488. --- 1084,1090 ----
  489.       50,    51
  490.   };
  491.   /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  492. ! #line 3 "/usr/lib/bison.simple"
  493.   
  494.   /* Skeleton output parser for bison,
  495.      Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  496. ***************
  497. *** 1102,1108 ****
  498.   #ifdef __GNUC__
  499.   #define alloca __builtin_alloca
  500.   #else /* not GNU C.  */
  501. ! #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__)
  502.   #include <alloca.h>
  503.   #else /* not sparc */
  504.   #if defined (MSDOS) && !defined (__TURBOC__)
  505. --- 1108,1114 ----
  506.   #ifdef __GNUC__
  507.   #define alloca __builtin_alloca
  508.   #else /* not GNU C.  */
  509. ! #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  510.   #include <alloca.h>
  511.   #else /* not sparc */
  512.   #if defined (MSDOS) && !defined (__TURBOC__)
  513. ***************
  514. *** 1111,1116 ****
  515. --- 1117,1132 ----
  516.   #if defined(_AIX)
  517.   #include <malloc.h>
  518.    #pragma alloca
  519. + #else /* not MSDOS, __TURBOC__, or _AIX */
  520. + #ifdef __hpux
  521. + #ifdef __cplusplus
  522. + extern "C" {
  523. + void *alloca (unsigned int);
  524. + };
  525. + #else /* not __cplusplus */
  526. + void *alloca ();
  527. + #endif /* not __cplusplus */
  528. + #endif /* __hpux */
  529.   #endif /* not _AIX */
  530.   #endif /* not MSDOS, or __TURBOC__ */
  531.   #endif /* not sparc.  */
  532. ***************
  533. *** 1204,1209 ****
  534. --- 1220,1230 ----
  535.   #ifndef YYMAXDEPTH
  536.   #define YYMAXDEPTH 10000
  537.   #endif
  538. + /* Prevent warning if -Wstrict-prototypes.  */
  539. + #ifdef __GNUC__
  540. + int yyparse (void);
  541. + #endif
  542.   
  543.   #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  544.   #define __yy_bcopy(FROM,TO,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  545. ***************
  546. *** 1244,1250 ****
  547.   #endif
  548.   #endif
  549.   
  550. ! #line 169 "bison.simple"
  551.   int
  552.   yyparse()
  553.   {
  554. --- 1265,1271 ----
  555.   #endif
  556.   #endif
  557.   
  558. ! #line 184 "/usr/lib/bison.simple"
  559.   int
  560.   yyparse()
  561.   {
  562. ***************
  563. *** 1253,1259 ****
  564.     register short *yyssp;
  565.     register YYSTYPE *yyvsp;
  566.     int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  567. !   int yychar1;        /*  lookahead token as an internal (translated) token number */
  568.   
  569.     short    yyssa[YYINITDEPTH];    /*  the state stack            */
  570.     YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  571. --- 1274,1280 ----
  572.     register short *yyssp;
  573.     register YYSTYPE *yyvsp;
  574.     int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  575. !   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  576.   
  577.     short    yyssa[YYINITDEPTH];    /*  the state stack            */
  578.     YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  579. ***************
  580. *** 1300,1306 ****
  581.   
  582.     /* Initialize stack pointers.
  583.        Waste one element of value and location stack
  584. !      so that they stay on the same level as the state stack.  */
  585.   
  586.     yyssp = yyss - 1;
  587.     yyvsp = yyvs;
  588. --- 1321,1328 ----
  589.   
  590.     /* Initialize stack pointers.
  591.        Waste one element of value and location stack
  592. !      so that they stay on the same level as the state stack.
  593. !      The wasted elements are never initialized.  */
  594.   
  595.     yyssp = yyss - 1;
  596.     yyvsp = yyvs;
  597. ***************
  598. *** 1331,1343 ****
  599.   #ifdef yyoverflow
  600.         /* Each stack pointer address is followed by the size of
  601.        the data in use in that stack, in bytes.  */
  602.         yyoverflow("parser stack overflow",
  603.            &yyss1, size * sizeof (*yyssp),
  604.            &yyvs1, size * sizeof (*yyvsp),
  605. - #ifdef YYLSP_NEEDED
  606.            &yyls1, size * sizeof (*yylsp),
  607. - #endif
  608.            &yystacksize);
  609.   
  610.         yyss = yyss1; yyvs = yyvs1;
  611.   #ifdef YYLSP_NEEDED
  612. --- 1353,1372 ----
  613.   #ifdef yyoverflow
  614.         /* Each stack pointer address is followed by the size of
  615.        the data in use in that stack, in bytes.  */
  616. + #ifdef YYLSP_NEEDED
  617. +       /* This used to be a conditional around just the two extra args,
  618. +      but that might be undefined if yyoverflow is a macro.  */
  619.         yyoverflow("parser stack overflow",
  620.            &yyss1, size * sizeof (*yyssp),
  621.            &yyvs1, size * sizeof (*yyvsp),
  622.            &yyls1, size * sizeof (*yylsp),
  623.            &yystacksize);
  624. + #else
  625. +       yyoverflow("parser stack overflow",
  626. +          &yyss1, size * sizeof (*yyssp),
  627. +          &yyvs1, size * sizeof (*yyvsp),
  628. +          &yystacksize);
  629. + #endif
  630.   
  631.         yyss = yyss1; yyvs = yyvs1;
  632.   #ifdef YYLSP_NEEDED
  633. ***************
  634. *** 1383,1388 ****
  635. --- 1412,1418 ----
  636.       fprintf(stderr, "Entering state %d\n", yystate);
  637.   #endif
  638.   
  639. +   goto yybackup;
  640.    yybackup:
  641.   
  642.   /* Do appropriate processing given the current state.  */
  643. ***************
  644. *** 1497,1503 ****
  645.   /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  646.   yyreduce:
  647.     yylen = yyr2[yyn];
  648. !   yyval = yyvsp[1-yylen]; /* implement default value of the action */
  649.   
  650.   #if YYDEBUG != 0
  651.     if (yydebug)
  652. --- 1527,1534 ----
  653.   /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  654.   yyreduce:
  655.     yylen = yyr2[yyn];
  656. !   if (yylen > 0)
  657. !     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  658.   
  659.   #if YYDEBUG != 0
  660.     if (yydebug)
  661. ***************
  662. *** 1507,1513 ****
  663.         fprintf (stderr, "Reducing via rule %d (line %d), ",
  664.              yyn, yyrline[yyn]);
  665.   
  666. !       /* Print the symboles being reduced, and their result.  */
  667.         for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  668.       fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  669.         fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  670. --- 1538,1544 ----
  671.         fprintf (stderr, "Reducing via rule %d (line %d), ",
  672.              yyn, yyrline[yyn]);
  673.   
  674. !       /* Print the symbols being reduced, and their result.  */
  675.         for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  676.       fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  677.         fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  678. ***************
  679. *** 2210,2222 ****
  680.       break;}
  681.   case 151:
  682.   #line 856 "c-parse.y"
  683. ! { if (strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "packed"))
  684.           warning ("`%s' attribute directive ignored",
  685.                IDENTIFIER_POINTER (yyvsp[0].ttype));
  686.         yyval.ttype = yyvsp[0].ttype; ;
  687.       break;}
  688.   case 152:
  689. ! #line 861 "c-parse.y"
  690.   { /* If not "mode (m)", then issue warning.  */
  691.         if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "mode") != 0)
  692.           {
  693. --- 2241,2260 ----
  694.       break;}
  695.   case 151:
  696.   #line 856 "c-parse.y"
  697. ! {
  698. ! #ifdef HANDLE_ATTRIBUTE0
  699. !       /* give the function a chance to validate further attributes */
  700. !       if (HANDLE_ATTRIBUTE0 (IDENTIFIER_POINTER (yyvsp[0].ttype)) ||
  701. !           strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "packed"))
  702. ! #else
  703. !       if (strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "packed"))
  704. ! #endif
  705.           warning ("`%s' attribute directive ignored",
  706.                IDENTIFIER_POINTER (yyvsp[0].ttype));
  707.         yyval.ttype = yyvsp[0].ttype; ;
  708.       break;}
  709.   case 152:
  710. ! #line 868 "c-parse.y"
  711.   { /* If not "mode (m)", then issue warning.  */
  712.         if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "mode") != 0)
  713.           {
  714. ***************
  715. *** 2228,2234 ****
  716.           yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
  717.       break;}
  718.   case 153:
  719. ! #line 871 "c-parse.y"
  720.   { /* if not "aligned(n)", then issue warning */
  721.         if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "aligned") != 0
  722.             || TREE_CODE (yyvsp[-1].ttype) != INTEGER_CST)
  723. --- 2266,2272 ----
  724.           yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
  725.       break;}
  726.   case 153:
  727. ! #line 878 "c-parse.y"
  728.   { /* if not "aligned(n)", then issue warning */
  729.         if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "aligned") != 0
  730.             || TREE_CODE (yyvsp[-1].ttype) != INTEGER_CST)
  731. ***************
  732. *** 2241,2247 ****
  733.           yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
  734.       break;}
  735.   case 154:
  736. ! #line 882 "c-parse.y"
  737.   { /* if not "format(...)", then issue warning */
  738.         if (strcmp (IDENTIFIER_POINTER (yyvsp[-7].ttype), "format") != 0
  739.             || TREE_CODE (yyvsp[-3].ttype) != INTEGER_CST
  740. --- 2279,2285 ----
  741.           yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
  742.       break;}
  743.   case 154:
  744. ! #line 889 "c-parse.y"
  745.   { /* if not "format(...)", then issue warning */
  746.         if (strcmp (IDENTIFIER_POINTER (yyvsp[-7].ttype), "format") != 0
  747.             || TREE_CODE (yyvsp[-3].ttype) != INTEGER_CST
  748. ***************
  749. *** 2259,2320 ****
  750.                   NULL_TREE); ;
  751.       break;}
  752.   case 156:
  753. ! #line 902 "c-parse.y"
  754.   { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, NULL_TREE);
  755.             if (pedantic)
  756.               pedwarn ("ANSI C forbids empty initializer braces"); ;
  757.       break;}
  758.   case 157:
  759. ! #line 906 "c-parse.y"
  760.   { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
  761.       break;}
  762.   case 158:
  763. ! #line 908 "c-parse.y"
  764.   { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
  765.       break;}
  766.   case 159:
  767. ! #line 910 "c-parse.y"
  768.   { yyval.ttype = NULL_TREE; ;
  769.       break;}
  770.   case 160:
  771. ! #line 917 "c-parse.y"
  772.   { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  773.       break;}
  774.   case 161:
  775. ! #line 919 "c-parse.y"
  776.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
  777.       break;}
  778.   case 162:
  779. ! #line 922 "c-parse.y"
  780.   { yyval.ttype = build_tree_list (tree_cons (yyvsp[-4].ttype, NULL_TREE,
  781.                              build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
  782.                       yyvsp[0].ttype); ;
  783.       break;}
  784.   case 163:
  785. ! #line 926 "c-parse.y"
  786.   { yyval.ttype = tree_cons (tree_cons (yyvsp[-4].ttype, NULL_TREE,
  787.                            build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
  788.                     yyvsp[0].ttype,
  789.                     yyvsp[-7].ttype); ;
  790.       break;}
  791.   case 164:
  792. ! #line 931 "c-parse.y"
  793.   { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  794.       break;}
  795.   case 165:
  796. ! #line 933 "c-parse.y"
  797.   { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-5].ttype); ;
  798.       break;}
  799.   case 166:
  800. ! #line 935 "c-parse.y"
  801.   { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  802.       break;}
  803.   case 167:
  804. ! #line 937 "c-parse.y"
  805.   { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
  806.       break;}
  807.   case 168:
  808. ! #line 942 "c-parse.y"
  809.   { push_c_function_context ();
  810.             if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
  811.               {
  812. --- 2297,2358 ----
  813.                   NULL_TREE); ;
  814.       break;}
  815.   case 156:
  816. ! #line 909 "c-parse.y"
  817.   { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, NULL_TREE);
  818.             if (pedantic)
  819.               pedwarn ("ANSI C forbids empty initializer braces"); ;
  820.       break;}
  821.   case 157:
  822. ! #line 913 "c-parse.y"
  823.   { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
  824.       break;}
  825.   case 158:
  826. ! #line 915 "c-parse.y"
  827.   { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
  828.       break;}
  829.   case 159:
  830. ! #line 917 "c-parse.y"
  831.   { yyval.ttype = NULL_TREE; ;
  832.       break;}
  833.   case 160:
  834. ! #line 924 "c-parse.y"
  835.   { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  836.       break;}
  837.   case 161:
  838. ! #line 926 "c-parse.y"
  839.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
  840.       break;}
  841.   case 162:
  842. ! #line 929 "c-parse.y"
  843.   { yyval.ttype = build_tree_list (tree_cons (yyvsp[-4].ttype, NULL_TREE,
  844.                              build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
  845.                       yyvsp[0].ttype); ;
  846.       break;}
  847.   case 163:
  848. ! #line 933 "c-parse.y"
  849.   { yyval.ttype = tree_cons (tree_cons (yyvsp[-4].ttype, NULL_TREE,
  850.                            build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
  851.                     yyvsp[0].ttype,
  852.                     yyvsp[-7].ttype); ;
  853.       break;}
  854.   case 164:
  855. ! #line 938 "c-parse.y"
  856.   { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  857.       break;}
  858.   case 165:
  859. ! #line 940 "c-parse.y"
  860.   { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-5].ttype); ;
  861.       break;}
  862.   case 166:
  863. ! #line 942 "c-parse.y"
  864.   { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  865.       break;}
  866.   case 167:
  867. ! #line 944 "c-parse.y"
  868.   { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
  869.       break;}
  870.   case 168:
  871. ! #line 949 "c-parse.y"
  872.   { push_c_function_context ();
  873.             if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
  874.               {
  875. ***************
  876. *** 2325,2336 ****
  877.             store_parm_decls (); ;
  878.       break;}
  879.   case 169:
  880. ! #line 957 "c-parse.y"
  881.   { finish_function (1);
  882.             pop_c_function_context (); ;
  883.       break;}
  884.   case 170:
  885. ! #line 963 "c-parse.y"
  886.   { push_c_function_context ();
  887.             if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
  888.               {
  889. --- 2363,2374 ----
  890.             store_parm_decls (); ;
  891.       break;}
  892.   case 169:
  893. ! #line 964 "c-parse.y"
  894.   { finish_function (1);
  895.             pop_c_function_context (); ;
  896.       break;}
  897.   case 170:
  898. ! #line 970 "c-parse.y"
  899.   { push_c_function_context ();
  900.             if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
  901.               {
  902. ***************
  903. *** 2341,2622 ****
  904.             store_parm_decls (); ;
  905.       break;}
  906.   case 171:
  907. ! #line 978 "c-parse.y"
  908.   { finish_function (1);
  909.             pop_c_function_context (); ;
  910.       break;}
  911.   case 174:
  912. ! #line 994 "c-parse.y"
  913.   { yyval.ttype = yyvsp[-1].ttype; ;
  914.       break;}
  915.   case 175:
  916. ! #line 996 "c-parse.y"
  917.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  918.       break;}
  919.   case 176:
  920. ! #line 1001 "c-parse.y"
  921.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  922.       break;}
  923.   case 177:
  924. ! #line 1003 "c-parse.y"
  925.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  926.       break;}
  927.   case 178:
  928. ! #line 1005 "c-parse.y"
  929.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  930.       break;}
  931.   case 180:
  932. ! #line 1016 "c-parse.y"
  933.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  934.       break;}
  935.   case 181:
  936. ! #line 1021 "c-parse.y"
  937.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  938.       break;}
  939.   case 182:
  940. ! #line 1023 "c-parse.y"
  941.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  942.       break;}
  943.   case 183:
  944. ! #line 1025 "c-parse.y"
  945.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  946.       break;}
  947.   case 185:
  948. ! #line 1034 "c-parse.y"
  949.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  950.       break;}
  951.   case 186:
  952. ! #line 1039 "c-parse.y"
  953.   { yyval.ttype = yyvsp[-1].ttype; ;
  954.       break;}
  955.   case 187:
  956. ! #line 1041 "c-parse.y"
  957.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  958.       break;}
  959.   case 188:
  960. ! #line 1043 "c-parse.y"
  961.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  962.       break;}
  963.   case 189:
  964. ! #line 1045 "c-parse.y"
  965.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  966.       break;}
  967.   case 191:
  968. ! #line 1051 "c-parse.y"
  969.   { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
  970.             /* Start scope of tag before parsing components.  */
  971.           ;
  972.       break;}
  973.   case 192:
  974. ! #line 1055 "c-parse.y"
  975.   { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
  976.             /* Really define the structure.  */
  977.           ;
  978.       break;}
  979.   case 193:
  980. ! #line 1059 "c-parse.y"
  981.   { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
  982.                         yyvsp[-1].ttype); ;
  983.       break;}
  984.   case 194:
  985. ! #line 1062 "c-parse.y"
  986.   { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
  987.       break;}
  988.   case 195:
  989. ! #line 1064 "c-parse.y"
  990.   { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
  991.       break;}
  992.   case 196:
  993. ! #line 1066 "c-parse.y"
  994.   { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  995.       break;}
  996.   case 197:
  997. ! #line 1068 "c-parse.y"
  998.   { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
  999.                         yyvsp[-1].ttype); ;
  1000.       break;}
  1001.   case 198:
  1002. ! #line 1071 "c-parse.y"
  1003.   { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
  1004.       break;}
  1005.   case 199:
  1006. ! #line 1073 "c-parse.y"
  1007.   { yyvsp[0].itype = suspend_momentary ();
  1008.             yyval.ttype = start_enum (yyvsp[-1].ttype); ;
  1009.       break;}
  1010.   case 200:
  1011. ! #line 1076 "c-parse.y"
  1012.   { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1013.             resume_momentary (yyvsp[-4].itype); ;
  1014.       break;}
  1015.   case 201:
  1016. ! #line 1079 "c-parse.y"
  1017.   { yyvsp[0].itype = suspend_momentary ();
  1018.             yyval.ttype = start_enum (NULL_TREE); ;
  1019.       break;}
  1020.   case 202:
  1021. ! #line 1082 "c-parse.y"
  1022.   { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1023.             resume_momentary (yyvsp[-4].itype); ;
  1024.       break;}
  1025.   case 203:
  1026. ! #line 1085 "c-parse.y"
  1027.   { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
  1028.       break;}
  1029.   case 207:
  1030. ! #line 1096 "c-parse.y"
  1031.   { if (pedantic) pedwarn ("comma at end of enumerator list"); ;
  1032.       break;}
  1033.   case 208:
  1034. ! #line 1101 "c-parse.y"
  1035.   { yyval.ttype = yyvsp[0].ttype; ;
  1036.       break;}
  1037.   case 209:
  1038. ! #line 1103 "c-parse.y"
  1039.   { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
  1040.             pedwarn ("no semicolon at end of struct or union"); ;
  1041.       break;}
  1042.   case 210:
  1043. ! #line 1108 "c-parse.y"
  1044.   { yyval.ttype = NULL_TREE; ;
  1045.       break;}
  1046.   case 211:
  1047. ! #line 1110 "c-parse.y"
  1048.   { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1049.       break;}
  1050.   case 212:
  1051. ! #line 1112 "c-parse.y"
  1052.   { if (pedantic)
  1053.               pedwarn ("extra semicolon in struct or union specified"); ;
  1054.       break;}
  1055.   case 213:
  1056. ! #line 1127 "c-parse.y"
  1057.   { yyval.ttype = yyvsp[0].ttype;
  1058.             current_declspecs = TREE_VALUE (declspec_stack);
  1059.             declspec_stack = TREE_CHAIN (declspec_stack);
  1060.             resume_momentary (yyvsp[-1].itype); ;
  1061.       break;}
  1062.   case 214:
  1063. ! #line 1132 "c-parse.y"
  1064.   { if (pedantic)
  1065.               pedwarn ("ANSI C forbids member declarations with no members");
  1066.             shadow_tag(yyvsp[0].ttype);
  1067.             yyval.ttype = NULL_TREE; ;
  1068.       break;}
  1069.   case 215:
  1070. ! #line 1137 "c-parse.y"
  1071.   { yyval.ttype = yyvsp[0].ttype;
  1072.             current_declspecs = TREE_VALUE (declspec_stack);
  1073.             declspec_stack = TREE_CHAIN (declspec_stack);
  1074.             resume_momentary (yyvsp[-1].itype); ;
  1075.       break;}
  1076.   case 216:
  1077. ! #line 1142 "c-parse.y"
  1078.   { if (pedantic)
  1079.               pedwarn ("ANSI C forbids member declarations with no members");
  1080.             shadow_tag(yyvsp[0].ttype);
  1081.             yyval.ttype = NULL_TREE; ;
  1082.       break;}
  1083.   case 217:
  1084. ! #line 1147 "c-parse.y"
  1085.   { yyval.ttype = NULL_TREE; ;
  1086.       break;}
  1087.   case 219:
  1088. ! #line 1153 "c-parse.y"
  1089.   { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1090.       break;}
  1091.   case 220:
  1092. ! #line 1158 "c-parse.y"
  1093.   { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE);
  1094.             decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
  1095.       break;}
  1096.   case 221:
  1097. ! #line 1162 "c-parse.y"
  1098.   { yyval.ttype = grokfield (yyvsp[-5].filename, yyvsp[-4].lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype);
  1099.             decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
  1100.       break;}
  1101.   case 222:
  1102. ! #line 1165 "c-parse.y"
  1103.   { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
  1104.       break;}
  1105.   case 224:
  1106. ! #line 1176 "c-parse.y"
  1107.   { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1108.       break;}
  1109.   case 225:
  1110. ! #line 1182 "c-parse.y"
  1111.   { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
  1112.       break;}
  1113.   case 226:
  1114. ! #line 1184 "c-parse.y"
  1115.   { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1116.       break;}
  1117.   case 227:
  1118. ! #line 1189 "c-parse.y"
  1119.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1120.       break;}
  1121.   case 228:
  1122. ! #line 1191 "c-parse.y"
  1123.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1124.       break;}
  1125.   case 229:
  1126. ! #line 1196 "c-parse.y"
  1127.   { yyval.ttype = NULL_TREE; ;
  1128.       break;}
  1129.   case 231:
  1130. ! #line 1202 "c-parse.y"
  1131.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1132.       break;}
  1133.   case 232:
  1134. ! #line 1204 "c-parse.y"
  1135.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1136.       break;}
  1137.   case 233:
  1138. ! #line 1209 "c-parse.y"
  1139.   { yyval.ttype = NULL_TREE; ;
  1140.       break;}
  1141.   case 234:
  1142. ! #line 1211 "c-parse.y"
  1143.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1144.       break;}
  1145.   case 235:
  1146. ! #line 1216 "c-parse.y"
  1147.   { yyval.ttype = yyvsp[-1].ttype; ;
  1148.       break;}
  1149.   case 236:
  1150. ! #line 1219 "c-parse.y"
  1151.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1152.       break;}
  1153.   case 237:
  1154. ! #line 1221 "c-parse.y"
  1155.   { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
  1156.       break;}
  1157.   case 238:
  1158. ! #line 1223 "c-parse.y"
  1159.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1160.       break;}
  1161.   case 239:
  1162. ! #line 1225 "c-parse.y"
  1163.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1164.       break;}
  1165.   case 240:
  1166. ! #line 1227 "c-parse.y"
  1167.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1168.       break;}
  1169.   case 241:
  1170. ! #line 1229 "c-parse.y"
  1171.   { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1172.       break;}
  1173.   case 242:
  1174. ! #line 1231 "c-parse.y"
  1175.   { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
  1176.       break;}
  1177.   case 243:
  1178. ! #line 1233 "c-parse.y"
  1179.   { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
  1180.       break;}
  1181.   case 250:
  1182. ! #line 1255 "c-parse.y"
  1183.   { emit_line_note (input_filename, lineno);
  1184.             pushlevel (0);
  1185.             clear_last_expr ();
  1186. --- 2379,2660 ----
  1187.             store_parm_decls (); ;
  1188.       break;}
  1189.   case 171:
  1190. ! #line 985 "c-parse.y"
  1191.   { finish_function (1);
  1192.             pop_c_function_context (); ;
  1193.       break;}
  1194.   case 174:
  1195. ! #line 1001 "c-parse.y"
  1196.   { yyval.ttype = yyvsp[-1].ttype; ;
  1197.       break;}
  1198.   case 175:
  1199. ! #line 1003 "c-parse.y"
  1200.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1201.       break;}
  1202.   case 176:
  1203. ! #line 1008 "c-parse.y"
  1204.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1205.       break;}
  1206.   case 177:
  1207. ! #line 1010 "c-parse.y"
  1208.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1209.       break;}
  1210.   case 178:
  1211. ! #line 1012 "c-parse.y"
  1212.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1213.       break;}
  1214.   case 180:
  1215. ! #line 1023 "c-parse.y"
  1216.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1217.       break;}
  1218.   case 181:
  1219. ! #line 1028 "c-parse.y"
  1220.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1221.       break;}
  1222.   case 182:
  1223. ! #line 1030 "c-parse.y"
  1224.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1225.       break;}
  1226.   case 183:
  1227. ! #line 1032 "c-parse.y"
  1228.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1229.       break;}
  1230.   case 185:
  1231. ! #line 1041 "c-parse.y"
  1232.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1233.       break;}
  1234.   case 186:
  1235. ! #line 1046 "c-parse.y"
  1236.   { yyval.ttype = yyvsp[-1].ttype; ;
  1237.       break;}
  1238.   case 187:
  1239. ! #line 1048 "c-parse.y"
  1240.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1241.       break;}
  1242.   case 188:
  1243. ! #line 1050 "c-parse.y"
  1244.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1245.       break;}
  1246.   case 189:
  1247. ! #line 1052 "c-parse.y"
  1248.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1249.       break;}
  1250.   case 191:
  1251. ! #line 1058 "c-parse.y"
  1252.   { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
  1253.             /* Start scope of tag before parsing components.  */
  1254.           ;
  1255.       break;}
  1256.   case 192:
  1257. ! #line 1062 "c-parse.y"
  1258.   { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
  1259.             /* Really define the structure.  */
  1260.           ;
  1261.       break;}
  1262.   case 193:
  1263. ! #line 1066 "c-parse.y"
  1264.   { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
  1265.                         yyvsp[-1].ttype); ;
  1266.       break;}
  1267.   case 194:
  1268. ! #line 1069 "c-parse.y"
  1269.   { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
  1270.       break;}
  1271.   case 195:
  1272. ! #line 1071 "c-parse.y"
  1273.   { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
  1274.       break;}
  1275.   case 196:
  1276. ! #line 1073 "c-parse.y"
  1277.   { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1278.       break;}
  1279.   case 197:
  1280. ! #line 1075 "c-parse.y"
  1281.   { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
  1282.                         yyvsp[-1].ttype); ;
  1283.       break;}
  1284.   case 198:
  1285. ! #line 1078 "c-parse.y"
  1286.   { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
  1287.       break;}
  1288.   case 199:
  1289. ! #line 1080 "c-parse.y"
  1290.   { yyvsp[0].itype = suspend_momentary ();
  1291.             yyval.ttype = start_enum (yyvsp[-1].ttype); ;
  1292.       break;}
  1293.   case 200:
  1294. ! #line 1083 "c-parse.y"
  1295.   { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1296.             resume_momentary (yyvsp[-4].itype); ;
  1297.       break;}
  1298.   case 201:
  1299. ! #line 1086 "c-parse.y"
  1300.   { yyvsp[0].itype = suspend_momentary ();
  1301.             yyval.ttype = start_enum (NULL_TREE); ;
  1302.       break;}
  1303.   case 202:
  1304. ! #line 1089 "c-parse.y"
  1305.   { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1306.             resume_momentary (yyvsp[-4].itype); ;
  1307.       break;}
  1308.   case 203:
  1309. ! #line 1092 "c-parse.y"
  1310.   { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
  1311.       break;}
  1312.   case 207:
  1313. ! #line 1103 "c-parse.y"
  1314.   { if (pedantic) pedwarn ("comma at end of enumerator list"); ;
  1315.       break;}
  1316.   case 208:
  1317. ! #line 1108 "c-parse.y"
  1318.   { yyval.ttype = yyvsp[0].ttype; ;
  1319.       break;}
  1320.   case 209:
  1321. ! #line 1110 "c-parse.y"
  1322.   { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
  1323.             pedwarn ("no semicolon at end of struct or union"); ;
  1324.       break;}
  1325.   case 210:
  1326. ! #line 1115 "c-parse.y"
  1327.   { yyval.ttype = NULL_TREE; ;
  1328.       break;}
  1329.   case 211:
  1330. ! #line 1117 "c-parse.y"
  1331.   { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1332.       break;}
  1333.   case 212:
  1334. ! #line 1119 "c-parse.y"
  1335.   { if (pedantic)
  1336.               pedwarn ("extra semicolon in struct or union specified"); ;
  1337.       break;}
  1338.   case 213:
  1339. ! #line 1134 "c-parse.y"
  1340.   { yyval.ttype = yyvsp[0].ttype;
  1341.             current_declspecs = TREE_VALUE (declspec_stack);
  1342.             declspec_stack = TREE_CHAIN (declspec_stack);
  1343.             resume_momentary (yyvsp[-1].itype); ;
  1344.       break;}
  1345.   case 214:
  1346. ! #line 1139 "c-parse.y"
  1347.   { if (pedantic)
  1348.               pedwarn ("ANSI C forbids member declarations with no members");
  1349.             shadow_tag(yyvsp[0].ttype);
  1350.             yyval.ttype = NULL_TREE; ;
  1351.       break;}
  1352.   case 215:
  1353. ! #line 1144 "c-parse.y"
  1354.   { yyval.ttype = yyvsp[0].ttype;
  1355.             current_declspecs = TREE_VALUE (declspec_stack);
  1356.             declspec_stack = TREE_CHAIN (declspec_stack);
  1357.             resume_momentary (yyvsp[-1].itype); ;
  1358.       break;}
  1359.   case 216:
  1360. ! #line 1149 "c-parse.y"
  1361.   { if (pedantic)
  1362.               pedwarn ("ANSI C forbids member declarations with no members");
  1363.             shadow_tag(yyvsp[0].ttype);
  1364.             yyval.ttype = NULL_TREE; ;
  1365.       break;}
  1366.   case 217:
  1367. ! #line 1154 "c-parse.y"
  1368.   { yyval.ttype = NULL_TREE; ;
  1369.       break;}
  1370.   case 219:
  1371. ! #line 1160 "c-parse.y"
  1372.   { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1373.       break;}
  1374.   case 220:
  1375. ! #line 1165 "c-parse.y"
  1376.   { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE);
  1377.             decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
  1378.       break;}
  1379.   case 221:
  1380. ! #line 1169 "c-parse.y"
  1381.   { yyval.ttype = grokfield (yyvsp[-5].filename, yyvsp[-4].lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype);
  1382.             decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
  1383.       break;}
  1384.   case 222:
  1385. ! #line 1172 "c-parse.y"
  1386.   { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
  1387.       break;}
  1388.   case 224:
  1389. ! #line 1183 "c-parse.y"
  1390.   { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1391.       break;}
  1392.   case 225:
  1393. ! #line 1189 "c-parse.y"
  1394.   { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
  1395.       break;}
  1396.   case 226:
  1397. ! #line 1191 "c-parse.y"
  1398.   { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1399.       break;}
  1400.   case 227:
  1401. ! #line 1196 "c-parse.y"
  1402.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1403.       break;}
  1404.   case 228:
  1405. ! #line 1198 "c-parse.y"
  1406.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1407.       break;}
  1408.   case 229:
  1409. ! #line 1203 "c-parse.y"
  1410.   { yyval.ttype = NULL_TREE; ;
  1411.       break;}
  1412.   case 231:
  1413. ! #line 1209 "c-parse.y"
  1414.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1415.       break;}
  1416.   case 232:
  1417. ! #line 1211 "c-parse.y"
  1418.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1419.       break;}
  1420.   case 233:
  1421. ! #line 1216 "c-parse.y"
  1422.   { yyval.ttype = NULL_TREE; ;
  1423.       break;}
  1424.   case 234:
  1425. ! #line 1218 "c-parse.y"
  1426.   { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1427.       break;}
  1428.   case 235:
  1429. ! #line 1223 "c-parse.y"
  1430.   { yyval.ttype = yyvsp[-1].ttype; ;
  1431.       break;}
  1432.   case 236:
  1433. ! #line 1226 "c-parse.y"
  1434.   { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1435.       break;}
  1436.   case 237:
  1437. ! #line 1228 "c-parse.y"
  1438.   { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
  1439.       break;}
  1440.   case 238:
  1441. ! #line 1230 "c-parse.y"
  1442.   { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1443.       break;}
  1444.   case 239:
  1445. ! #line 1232 "c-parse.y"
  1446.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1447.       break;}
  1448.   case 240:
  1449. ! #line 1234 "c-parse.y"
  1450.   { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1451.       break;}
  1452.   case 241:
  1453. ! #line 1236 "c-parse.y"
  1454.   { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1455.       break;}
  1456.   case 242:
  1457. ! #line 1238 "c-parse.y"
  1458.   { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
  1459.       break;}
  1460.   case 243:
  1461. ! #line 1240 "c-parse.y"
  1462.   { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
  1463.       break;}
  1464.   case 250:
  1465. ! #line 1262 "c-parse.y"
  1466.   { emit_line_note (input_filename, lineno);
  1467.             pushlevel (0);
  1468.             clear_last_expr ();
  1469. ***************
  1470. *** 2625,2636 ****
  1471.           ;
  1472.       break;}
  1473.   case 252:
  1474. ! #line 1268 "c-parse.y"
  1475.   { if (pedantic)
  1476.               pedwarn ("ANSI C forbids label declarations"); ;
  1477.       break;}
  1478.   case 255:
  1479. ! #line 1279 "c-parse.y"
  1480.   { tree link;
  1481.             for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link))
  1482.               {
  1483. --- 2663,2674 ----
  1484.           ;
  1485.       break;}
  1486.   case 252:
  1487. ! #line 1275 "c-parse.y"
  1488.   { if (pedantic)
  1489.               pedwarn ("ANSI C forbids label declarations"); ;
  1490.       break;}
  1491.   case 255:
  1492. ! #line 1286 "c-parse.y"
  1493.   { tree link;
  1494.             for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link))
  1495.               {
  1496. ***************
  1497. *** 2641,2676 ****
  1498.           ;
  1499.       break;}
  1500.   case 256:
  1501. ! #line 1293 "c-parse.y"
  1502.   {;
  1503.       break;}
  1504.   case 258:
  1505. ! #line 1298 "c-parse.y"
  1506.   { yyval.ttype = convert (void_type_node, integer_zero_node); ;
  1507.       break;}
  1508.   case 259:
  1509. ! #line 1300 "c-parse.y"
  1510.   { emit_line_note (input_filename, lineno);
  1511.             expand_end_bindings (getdecls (), 1, 0);
  1512.             yyval.ttype = poplevel (1, 1, 0);
  1513.             pop_momentary (); ;
  1514.       break;}
  1515.   case 260:
  1516. ! #line 1305 "c-parse.y"
  1517.   { emit_line_note (input_filename, lineno);
  1518.             expand_end_bindings (getdecls (), kept_level_p (), 0);
  1519.             yyval.ttype = poplevel (kept_level_p (), 0, 0);
  1520.             pop_momentary (); ;
  1521.       break;}
  1522.   case 261:
  1523. ! #line 1310 "c-parse.y"
  1524.   { emit_line_note (input_filename, lineno);
  1525.             expand_end_bindings (getdecls (), kept_level_p (), 0);
  1526.             yyval.ttype = poplevel (kept_level_p (), 0, 0);
  1527.             pop_momentary (); ;
  1528.       break;}
  1529.   case 264:
  1530. ! #line 1327 "c-parse.y"
  1531.   { emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  1532.             expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0);
  1533.             yyvsp[-3].itype = stmt_count;
  1534. --- 2679,2714 ----
  1535.           ;
  1536.       break;}
  1537.   case 256:
  1538. ! #line 1300 "c-parse.y"
  1539.   {;
  1540.       break;}
  1541.   case 258:
  1542. ! #line 1305 "c-parse.y"
  1543.   { yyval.ttype = convert (void_type_node, integer_zero_node); ;
  1544.       break;}
  1545.   case 259:
  1546. ! #line 1307 "c-parse.y"
  1547.   { emit_line_note (input_filename, lineno);
  1548.             expand_end_bindings (getdecls (), 1, 0);
  1549.             yyval.ttype = poplevel (1, 1, 0);
  1550.             pop_momentary (); ;
  1551.       break;}
  1552.   case 260:
  1553. ! #line 1312 "c-parse.y"
  1554.   { emit_line_note (input_filename, lineno);
  1555.             expand_end_bindings (getdecls (), kept_level_p (), 0);
  1556.             yyval.ttype = poplevel (kept_level_p (), 0, 0);
  1557.             pop_momentary (); ;
  1558.       break;}
  1559.   case 261:
  1560. ! #line 1317 "c-parse.y"
  1561.   { emit_line_note (input_filename, lineno);
  1562.             expand_end_bindings (getdecls (), kept_level_p (), 0);
  1563.             yyval.ttype = poplevel (kept_level_p (), 0, 0);
  1564.             pop_momentary (); ;
  1565.       break;}
  1566.   case 264:
  1567. ! #line 1334 "c-parse.y"
  1568.   { emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  1569.             expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0);
  1570.             yyvsp[-3].itype = stmt_count;
  1571. ***************
  1572. *** 2679,2685 ****
  1573.             position_after_white_space (); ;
  1574.       break;}
  1575.   case 265:
  1576. ! #line 1340 "c-parse.y"
  1577.   { stmt_count++;
  1578.             emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
  1579.             /* See comment in `while' alternative, above.  */
  1580. --- 2717,2723 ----
  1581.             position_after_white_space (); ;
  1582.       break;}
  1583.   case 265:
  1584. ! #line 1347 "c-parse.y"
  1585.   { stmt_count++;
  1586.             emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
  1587.             /* See comment in `while' alternative, above.  */
  1588. ***************
  1589. *** 2688,2718 ****
  1590.             position_after_white_space (); ;
  1591.       break;}
  1592.   case 266:
  1593. ! #line 1347 "c-parse.y"
  1594.   { expand_loop_continue_here (); ;
  1595.       break;}
  1596.   case 267:
  1597. ! #line 1351 "c-parse.y"
  1598.   { yyval.filename = input_filename; ;
  1599.       break;}
  1600.   case 268:
  1601. ! #line 1355 "c-parse.y"
  1602.   { yyval.lineno = lineno; ;
  1603.       break;}
  1604.   case 269:
  1605. ! #line 1360 "c-parse.y"
  1606.   { ;
  1607.       break;}
  1608.   case 270:
  1609. ! #line 1365 "c-parse.y"
  1610.   { ;
  1611.       break;}
  1612.   case 271:
  1613. ! #line 1370 "c-parse.y"
  1614.   { ;
  1615.       break;}
  1616.   case 273:
  1617. ! #line 1376 "c-parse.y"
  1618.   { int next;
  1619.             position_after_white_space ();
  1620.             next = getc (finput);
  1621. --- 2726,2756 ----
  1622.             position_after_white_space (); ;
  1623.       break;}
  1624.   case 266:
  1625. ! #line 1354 "c-parse.y"
  1626.   { expand_loop_continue_here (); ;
  1627.       break;}
  1628.   case 267:
  1629. ! #line 1358 "c-parse.y"
  1630.   { yyval.filename = input_filename; ;
  1631.       break;}
  1632.   case 268:
  1633. ! #line 1362 "c-parse.y"
  1634.   { yyval.lineno = lineno; ;
  1635.       break;}
  1636.   case 269:
  1637. ! #line 1367 "c-parse.y"
  1638.   { ;
  1639.       break;}
  1640.   case 270:
  1641. ! #line 1372 "c-parse.y"
  1642.   { ;
  1643.       break;}
  1644.   case 271:
  1645. ! #line 1377 "c-parse.y"
  1646.   { ;
  1647.       break;}
  1648.   case 273:
  1649. ! #line 1383 "c-parse.y"
  1650.   { int next;
  1651.             position_after_white_space ();
  1652.             next = getc (finput);
  1653. ***************
  1654. *** 2722,2762 ****
  1655.           ;
  1656.       break;}
  1657.   case 274:
  1658. ! #line 1388 "c-parse.y"
  1659.   { stmt_count++; ;
  1660.       break;}
  1661.   case 275:
  1662. ! #line 1390 "c-parse.y"
  1663.   { stmt_count++;
  1664.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1665.             c_expand_expr_stmt (yyvsp[-1].ttype);
  1666.             clear_momentary (); ;
  1667.       break;}
  1668.   case 276:
  1669. ! #line 1395 "c-parse.y"
  1670.   { expand_start_else ();
  1671.             yyvsp[-1].itype = stmt_count;
  1672.             position_after_white_space (); ;
  1673.       break;}
  1674.   case 277:
  1675. ! #line 1399 "c-parse.y"
  1676.   { expand_end_cond ();
  1677.             if (extra_warnings && stmt_count == yyvsp[-3].itype)
  1678.               warning ("empty body in an else-statement"); ;
  1679.       break;}
  1680.   case 278:
  1681. ! #line 1403 "c-parse.y"
  1682.   { expand_end_cond ();
  1683.             if (extra_warnings && stmt_count == yyvsp[0].itype)
  1684.               warning_with_file_and_line (if_stmt_file, if_stmt_line,
  1685.                           "empty body in an if-statement"); ;
  1686.       break;}
  1687.   case 279:
  1688. ! #line 1411 "c-parse.y"
  1689.   { expand_end_cond (); ;
  1690.       break;}
  1691.   case 280:
  1692. ! #line 1413 "c-parse.y"
  1693.   { stmt_count++;
  1694.             emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
  1695.             /* The emit_nop used to come before emit_line_note,
  1696. --- 2760,2800 ----
  1697.           ;
  1698.       break;}
  1699.   case 274:
  1700. ! #line 1395 "c-parse.y"
  1701.   { stmt_count++; ;
  1702.       break;}
  1703.   case 275:
  1704. ! #line 1397 "c-parse.y"
  1705.   { stmt_count++;
  1706.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1707.             c_expand_expr_stmt (yyvsp[-1].ttype);
  1708.             clear_momentary (); ;
  1709.       break;}
  1710.   case 276:
  1711. ! #line 1402 "c-parse.y"
  1712.   { expand_start_else ();
  1713.             yyvsp[-1].itype = stmt_count;
  1714.             position_after_white_space (); ;
  1715.       break;}
  1716.   case 277:
  1717. ! #line 1406 "c-parse.y"
  1718.   { expand_end_cond ();
  1719.             if (extra_warnings && stmt_count == yyvsp[-3].itype)
  1720.               warning ("empty body in an else-statement"); ;
  1721.       break;}
  1722.   case 278:
  1723. ! #line 1410 "c-parse.y"
  1724.   { expand_end_cond ();
  1725.             if (extra_warnings && stmt_count == yyvsp[0].itype)
  1726.               warning_with_file_and_line (if_stmt_file, if_stmt_line,
  1727.                           "empty body in an if-statement"); ;
  1728.       break;}
  1729.   case 279:
  1730. ! #line 1418 "c-parse.y"
  1731.   { expand_end_cond (); ;
  1732.       break;}
  1733.   case 280:
  1734. ! #line 1420 "c-parse.y"
  1735.   { stmt_count++;
  1736.             emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
  1737.             /* The emit_nop used to come before emit_line_note,
  1738. ***************
  1739. *** 2768,2774 ****
  1740.             emit_nop (); ;
  1741.       break;}
  1742.   case 281:
  1743. ! #line 1423 "c-parse.y"
  1744.   { /* Don't start the loop till we have succeeded
  1745.                in parsing the end test.  This is to make sure
  1746.                that we end every loop we start.  */
  1747. --- 2806,2812 ----
  1748.             emit_nop (); ;
  1749.       break;}
  1750.   case 281:
  1751. ! #line 1430 "c-parse.y"
  1752.   { /* Don't start the loop till we have succeeded
  1753.                in parsing the end test.  This is to make sure
  1754.                that we end every loop we start.  */
  1755. ***************
  1756. *** 2779,2789 ****
  1757.             position_after_white_space (); ;
  1758.       break;}
  1759.   case 282:
  1760. ! #line 1432 "c-parse.y"
  1761.   { expand_end_loop (); ;
  1762.       break;}
  1763.   case 283:
  1764. ! #line 1435 "c-parse.y"
  1765.   { emit_line_note (input_filename, lineno);
  1766.             expand_exit_loop_if_false (NULL_PTR,
  1767.                            truthvalue_conversion (yyvsp[-2].ttype));
  1768. --- 2817,2827 ----
  1769.             position_after_white_space (); ;
  1770.       break;}
  1771.   case 282:
  1772. ! #line 1439 "c-parse.y"
  1773.   { expand_end_loop (); ;
  1774.       break;}
  1775.   case 283:
  1776. ! #line 1442 "c-parse.y"
  1777.   { emit_line_note (input_filename, lineno);
  1778.             expand_exit_loop_if_false (NULL_PTR,
  1779.                            truthvalue_conversion (yyvsp[-2].ttype));
  1780. ***************
  1781. *** 2791,2802 ****
  1782.             clear_momentary (); ;
  1783.       break;}
  1784.   case 284:
  1785. ! #line 1442 "c-parse.y"
  1786.   { expand_end_loop ();
  1787.             clear_momentary (); ;
  1788.       break;}
  1789.   case 285:
  1790. ! #line 1446 "c-parse.y"
  1791.   { stmt_count++;
  1792.             emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  1793.             /* See comment in `while' alternative, above.  */
  1794. --- 2829,2840 ----
  1795.             clear_momentary (); ;
  1796.       break;}
  1797.   case 284:
  1798. ! #line 1449 "c-parse.y"
  1799.   { expand_end_loop ();
  1800.             clear_momentary (); ;
  1801.       break;}
  1802.   case 285:
  1803. ! #line 1453 "c-parse.y"
  1804.   { stmt_count++;
  1805.             emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  1806.             /* See comment in `while' alternative, above.  */
  1807. ***************
  1808. *** 2809,2820 ****
  1809.           ;
  1810.       break;}
  1811.   case 286:
  1812. ! #line 1458 "c-parse.y"
  1813.   { yyvsp[0].lineno = lineno;
  1814.             yyval.filename = input_filename; ;
  1815.       break;}
  1816.   case 287:
  1817. ! #line 1461 "c-parse.y"
  1818.   { 
  1819.             /* Start the loop.  Doing this after parsing
  1820.                all the expressions ensures we will end the loop.  */
  1821. --- 2847,2858 ----
  1822.           ;
  1823.       break;}
  1824.   case 286:
  1825. ! #line 1465 "c-parse.y"
  1826.   { yyvsp[0].lineno = lineno;
  1827.             yyval.filename = input_filename; ;
  1828.       break;}
  1829.   case 287:
  1830. ! #line 1468 "c-parse.y"
  1831.   { 
  1832.             /* Start the loop.  Doing this after parsing
  1833.                all the expressions ensures we will end the loop.  */
  1834. ***************
  1835. *** 2831,2837 ****
  1836.             yyvsp[-2].filename = input_filename; ;
  1837.       break;}
  1838.   case 288:
  1839. ! #line 1476 "c-parse.y"
  1840.   { /* Emit the increment expression, with a line number.  */
  1841.             emit_line_note (yyvsp[-4].filename, yyvsp[-5].lineno);
  1842.             expand_loop_continue_here ();
  1843. --- 2869,2875 ----
  1844.             yyvsp[-2].filename = input_filename; ;
  1845.       break;}
  1846.   case 288:
  1847. ! #line 1483 "c-parse.y"
  1848.   { /* Emit the increment expression, with a line number.  */
  1849.             emit_line_note (yyvsp[-4].filename, yyvsp[-5].lineno);
  1850.             expand_loop_continue_here ();
  1851. ***************
  1852. *** 2841,2847 ****
  1853.             expand_end_loop (); ;
  1854.       break;}
  1855.   case 289:
  1856. ! #line 1484 "c-parse.y"
  1857.   { stmt_count++;
  1858.             emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  1859.             c_expand_start_case (yyvsp[-1].ttype);
  1860. --- 2879,2885 ----
  1861.             expand_end_loop (); ;
  1862.       break;}
  1863.   case 289:
  1864. ! #line 1491 "c-parse.y"
  1865.   { stmt_count++;
  1866.             emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  1867.             c_expand_start_case (yyvsp[-1].ttype);
  1868. ***************
  1869. *** 2851,2888 ****
  1870.             position_after_white_space (); ;
  1871.       break;}
  1872.   case 290:
  1873. ! #line 1492 "c-parse.y"
  1874.   { expand_end_case (yyvsp[-3].ttype);
  1875.             pop_momentary (); ;
  1876.       break;}
  1877.   case 291:
  1878. ! #line 1495 "c-parse.y"
  1879.   { stmt_count++;
  1880.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1881.             if ( ! expand_exit_something ())
  1882.               error ("break statement not within loop or switch"); ;
  1883.       break;}
  1884.   case 292:
  1885. ! #line 1500 "c-parse.y"
  1886.   { stmt_count++;
  1887.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1888.             if (! expand_continue_loop (NULL_PTR))
  1889.               error ("continue statement not within a loop"); ;
  1890.       break;}
  1891.   case 293:
  1892. ! #line 1505 "c-parse.y"
  1893.   { stmt_count++;
  1894.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1895.             c_expand_return (NULL_TREE); ;
  1896.       break;}
  1897.   case 294:
  1898. ! #line 1509 "c-parse.y"
  1899.   { stmt_count++;
  1900.             emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
  1901.             c_expand_return (yyvsp[-1].ttype); ;
  1902.       break;}
  1903.   case 295:
  1904. ! #line 1513 "c-parse.y"
  1905.   { stmt_count++;
  1906.             emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno);
  1907.             STRIP_NOPS (yyvsp[-2].ttype);
  1908. --- 2889,2926 ----
  1909.             position_after_white_space (); ;
  1910.       break;}
  1911.   case 290:
  1912. ! #line 1499 "c-parse.y"
  1913.   { expand_end_case (yyvsp[-3].ttype);
  1914.             pop_momentary (); ;
  1915.       break;}
  1916.   case 291:
  1917. ! #line 1502 "c-parse.y"
  1918.   { stmt_count++;
  1919.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1920.             if ( ! expand_exit_something ())
  1921.               error ("break statement not within loop or switch"); ;
  1922.       break;}
  1923.   case 292:
  1924. ! #line 1507 "c-parse.y"
  1925.   { stmt_count++;
  1926.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1927.             if (! expand_continue_loop (NULL_PTR))
  1928.               error ("continue statement not within a loop"); ;
  1929.       break;}
  1930.   case 293:
  1931. ! #line 1512 "c-parse.y"
  1932.   { stmt_count++;
  1933.             emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
  1934.             c_expand_return (NULL_TREE); ;
  1935.       break;}
  1936.   case 294:
  1937. ! #line 1516 "c-parse.y"
  1938.   { stmt_count++;
  1939.             emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
  1940.             c_expand_return (yyvsp[-1].ttype); ;
  1941.       break;}
  1942.   case 295:
  1943. ! #line 1520 "c-parse.y"
  1944.   { stmt_count++;
  1945.             emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno);
  1946.             STRIP_NOPS (yyvsp[-2].ttype);
  1947. ***************
  1948. *** 2894,2900 ****
  1949.               error ("argument of `asm' is not a constant string"); ;
  1950.       break;}
  1951.   case 296:
  1952. ! #line 1524 "c-parse.y"
  1953.   { stmt_count++;
  1954.             emit_line_note (yyvsp[-9].filename, yyvsp[-8].lineno);
  1955.             c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE,
  1956. --- 2932,2938 ----
  1957.               error ("argument of `asm' is not a constant string"); ;
  1958.       break;}
  1959.   case 296:
  1960. ! #line 1531 "c-parse.y"
  1961.   { stmt_count++;
  1962.             emit_line_note (yyvsp[-9].filename, yyvsp[-8].lineno);
  1963.             c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE,
  1964. ***************
  1965. *** 2902,2908 ****
  1966.                        input_filename, lineno); ;
  1967.       break;}
  1968.   case 297:
  1969. ! #line 1531 "c-parse.y"
  1970.   { stmt_count++;
  1971.             emit_line_note (yyvsp[-11].filename, yyvsp[-10].lineno);
  1972.             c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
  1973. --- 2940,2946 ----
  1974.                        input_filename, lineno); ;
  1975.       break;}
  1976.   case 297:
  1977. ! #line 1538 "c-parse.y"
  1978.   { stmt_count++;
  1979.             emit_line_note (yyvsp[-11].filename, yyvsp[-10].lineno);
  1980.             c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
  1981. ***************
  1982. *** 2910,2916 ****
  1983.                        input_filename, lineno); ;
  1984.       break;}
  1985.   case 298:
  1986. ! #line 1539 "c-parse.y"
  1987.   { stmt_count++;
  1988.             emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno);
  1989.             c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
  1990. --- 2948,2954 ----
  1991.                        input_filename, lineno); ;
  1992.       break;}
  1993.   case 298:
  1994. ! #line 1546 "c-parse.y"
  1995.   { stmt_count++;
  1996.             emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno);
  1997.             c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
  1998. ***************
  1999. *** 2918,2924 ****
  2000.                        input_filename, lineno); ;
  2001.       break;}
  2002.   case 299:
  2003. ! #line 1545 "c-parse.y"
  2004.   { tree decl;
  2005.             stmt_count++;
  2006.             emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
  2007. --- 2956,2962 ----
  2008.                        input_filename, lineno); ;
  2009.       break;}
  2010.   case 299:
  2011. ! #line 1552 "c-parse.y"
  2012.   { tree decl;
  2013.             stmt_count++;
  2014.             emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
  2015. ***************
  2016. *** 2931,2943 ****
  2017.           ;
  2018.       break;}
  2019.   case 300:
  2020. ! #line 1556 "c-parse.y"
  2021.   { stmt_count++;
  2022.             emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  2023.             expand_computed_goto (convert (ptr_type_node, yyvsp[-1].ttype)); ;
  2024.       break;}
  2025.   case 302:
  2026. ! #line 1567 "c-parse.y"
  2027.   { register tree value = check_case_value (yyvsp[-1].ttype);
  2028.             register tree label
  2029.               = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  2030. --- 2969,2981 ----
  2031.           ;
  2032.       break;}
  2033.   case 300:
  2034. ! #line 1563 "c-parse.y"
  2035.   { stmt_count++;
  2036.             emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
  2037.             expand_computed_goto (convert (ptr_type_node, yyvsp[-1].ttype)); ;
  2038.       break;}
  2039.   case 302:
  2040. ! #line 1574 "c-parse.y"
  2041.   { register tree value = check_case_value (yyvsp[-1].ttype);
  2042.             register tree label
  2043.               = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  2044. ***************
  2045. *** 2963,2969 ****
  2046.             position_after_white_space (); ;
  2047.       break;}
  2048.   case 303:
  2049. ! #line 1591 "c-parse.y"
  2050.   { register tree value1 = check_case_value (yyvsp[-3].ttype);
  2051.             register tree value2 = check_case_value (yyvsp[-1].ttype);
  2052.             register tree label
  2053. --- 3001,3007 ----
  2054.             position_after_white_space (); ;
  2055.       break;}
  2056.   case 303:
  2057. ! #line 1598 "c-parse.y"
  2058.   { register tree value1 = check_case_value (yyvsp[-3].ttype);
  2059.             register tree value2 = check_case_value (yyvsp[-1].ttype);
  2060.             register tree label
  2061. ***************
  2062. *** 2993,2999 ****
  2063.             position_after_white_space (); ;
  2064.       break;}
  2065.   case 304:
  2066. ! #line 1619 "c-parse.y"
  2067.   {
  2068.             tree duplicate;
  2069.             register tree label
  2070. --- 3031,3037 ----
  2071.             position_after_white_space (); ;
  2072.       break;}
  2073.   case 304:
  2074. ! #line 1626 "c-parse.y"
  2075.   {
  2076.             tree duplicate;
  2077.             register tree label
  2078. ***************
  2079. *** 3010,3016 ****
  2080.             position_after_white_space (); ;
  2081.       break;}
  2082.   case 305:
  2083. ! #line 1634 "c-parse.y"
  2084.   { tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
  2085.             stmt_count++;
  2086.             emit_nop ();
  2087. --- 3048,3054 ----
  2088.             position_after_white_space (); ;
  2089.       break;}
  2090.   case 305:
  2091. ! #line 1641 "c-parse.y"
  2092.   { tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
  2093.             stmt_count++;
  2094.             emit_nop ();
  2095. ***************
  2096. *** 3019,3069 ****
  2097.             position_after_white_space (); ;
  2098.       break;}
  2099.   case 306:
  2100. ! #line 1646 "c-parse.y"
  2101.   { emit_line_note (input_filename, lineno); ;
  2102.       break;}
  2103.   case 307:
  2104. ! #line 1648 "c-parse.y"
  2105.   { emit_line_note (input_filename, lineno); ;
  2106.       break;}
  2107.   case 308:
  2108. ! #line 1653 "c-parse.y"
  2109.   { yyval.ttype = NULL_TREE; ;
  2110.       break;}
  2111.   case 310:
  2112. ! #line 1660 "c-parse.y"
  2113.   { yyval.ttype = NULL_TREE; ;
  2114.       break;}
  2115.   case 313:
  2116. ! #line 1667 "c-parse.y"
  2117.   { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  2118.       break;}
  2119.   case 314:
  2120. ! #line 1672 "c-parse.y"
  2121.   { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  2122.       break;}
  2123.   case 315:
  2124. ! #line 1677 "c-parse.y"
  2125.   { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
  2126.       break;}
  2127.   case 316:
  2128. ! #line 1679 "c-parse.y"
  2129.   { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
  2130.       break;}
  2131.   case 317:
  2132. ! #line 1685 "c-parse.y"
  2133.   { pushlevel (0);
  2134.             clear_parm_order ();
  2135.             declare_parm_level (0); ;
  2136.       break;}
  2137.   case 318:
  2138. ! #line 1689 "c-parse.y"
  2139.   { yyval.ttype = yyvsp[0].ttype;
  2140.             parmlist_tags_warning ();
  2141.             poplevel (0, 0, 0); ;
  2142.       break;}
  2143.   case 320:
  2144. ! #line 1697 "c-parse.y"
  2145.   { tree parm;
  2146.             if (pedantic)
  2147.               pedwarn ("ANSI C forbids forward parameter declarations");
  2148. --- 3057,3107 ----
  2149.             position_after_white_space (); ;
  2150.       break;}
  2151.   case 306:
  2152. ! #line 1653 "c-parse.y"
  2153.   { emit_line_note (input_filename, lineno); ;
  2154.       break;}
  2155.   case 307:
  2156. ! #line 1655 "c-parse.y"
  2157.   { emit_line_note (input_filename, lineno); ;
  2158.       break;}
  2159.   case 308:
  2160. ! #line 1660 "c-parse.y"
  2161.   { yyval.ttype = NULL_TREE; ;
  2162.       break;}
  2163.   case 310:
  2164. ! #line 1667 "c-parse.y"
  2165.   { yyval.ttype = NULL_TREE; ;
  2166.       break;}
  2167.   case 313:
  2168. ! #line 1674 "c-parse.y"
  2169.   { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  2170.       break;}
  2171.   case 314:
  2172. ! #line 1679 "c-parse.y"
  2173.   { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  2174.       break;}
  2175.   case 315:
  2176. ! #line 1684 "c-parse.y"
  2177.   { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
  2178.       break;}
  2179.   case 316:
  2180. ! #line 1686 "c-parse.y"
  2181.   { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
  2182.       break;}
  2183.   case 317:
  2184. ! #line 1692 "c-parse.y"
  2185.   { pushlevel (0);
  2186.             clear_parm_order ();
  2187.             declare_parm_level (0); ;
  2188.       break;}
  2189.   case 318:
  2190. ! #line 1696 "c-parse.y"
  2191.   { yyval.ttype = yyvsp[0].ttype;
  2192.             parmlist_tags_warning ();
  2193.             poplevel (0, 0, 0); ;
  2194.       break;}
  2195.   case 320:
  2196. ! #line 1704 "c-parse.y"
  2197.   { tree parm;
  2198.             if (pedantic)
  2199.               pedwarn ("ANSI C forbids forward parameter declarations");
  2200. ***************
  2201. *** 3073,3146 ****
  2202.             clear_parm_order (); ;
  2203.       break;}
  2204.   case 321:
  2205. ! #line 1705 "c-parse.y"
  2206.   { yyval.ttype = yyvsp[0].ttype; ;
  2207.       break;}
  2208.   case 322:
  2209. ! #line 1707 "c-parse.y"
  2210.   { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2211.       break;}
  2212.   case 323:
  2213. ! #line 1713 "c-parse.y"
  2214.   { yyval.ttype = get_parm_info (0); ;
  2215.       break;}
  2216.   case 324:
  2217. ! #line 1715 "c-parse.y"
  2218.   { yyval.ttype = get_parm_info (0);
  2219.             if (pedantic)
  2220.               pedwarn ("ANSI C requires a named argument before `...'");
  2221.           ;
  2222.       break;}
  2223.   case 325:
  2224. ! #line 1720 "c-parse.y"
  2225.   { yyval.ttype = get_parm_info (1); ;
  2226.       break;}
  2227.   case 326:
  2228. ! #line 1722 "c-parse.y"
  2229.   { yyval.ttype = get_parm_info (0); ;
  2230.       break;}
  2231.   case 327:
  2232. ! #line 1727 "c-parse.y"
  2233.   { push_parm_decl (yyvsp[0].ttype); ;
  2234.       break;}
  2235.   case 328:
  2236. ! #line 1729 "c-parse.y"
  2237.   { push_parm_decl (yyvsp[0].ttype); ;
  2238.       break;}
  2239.   case 329:
  2240. ! #line 1736 "c-parse.y"
  2241.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2242.       break;}
  2243.   case 330:
  2244. ! #line 1738 "c-parse.y"
  2245.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2246.       break;}
  2247.   case 331:
  2248. ! #line 1740 "c-parse.y"
  2249.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2250.       break;}
  2251.   case 332:
  2252. ! #line 1742 "c-parse.y"
  2253.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2254.       break;}
  2255.   case 333:
  2256. ! #line 1744 "c-parse.y"
  2257.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2258.       break;}
  2259.   case 334:
  2260. ! #line 1751 "c-parse.y"
  2261.   { pushlevel (0);
  2262.             clear_parm_order ();
  2263.             declare_parm_level (1); ;
  2264.       break;}
  2265.   case 335:
  2266. ! #line 1755 "c-parse.y"
  2267.   { yyval.ttype = yyvsp[0].ttype;
  2268.             parmlist_tags_warning ();
  2269.             poplevel (0, 0, 0); ;
  2270.       break;}
  2271.   case 337:
  2272. ! #line 1763 "c-parse.y"
  2273.   { tree t;
  2274.             for (t = yyvsp[-1].ttype; t; t = TREE_CHAIN (t))
  2275.               if (TREE_VALUE (t) == NULL_TREE)
  2276. --- 3111,3184 ----
  2277.             clear_parm_order (); ;
  2278.       break;}
  2279.   case 321:
  2280. ! #line 1712 "c-parse.y"
  2281.   { yyval.ttype = yyvsp[0].ttype; ;
  2282.       break;}
  2283.   case 322:
  2284. ! #line 1714 "c-parse.y"
  2285.   { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2286.       break;}
  2287.   case 323:
  2288. ! #line 1720 "c-parse.y"
  2289.   { yyval.ttype = get_parm_info (0); ;
  2290.       break;}
  2291.   case 324:
  2292. ! #line 1722 "c-parse.y"
  2293.   { yyval.ttype = get_parm_info (0);
  2294.             if (pedantic)
  2295.               pedwarn ("ANSI C requires a named argument before `...'");
  2296.           ;
  2297.       break;}
  2298.   case 325:
  2299. ! #line 1727 "c-parse.y"
  2300.   { yyval.ttype = get_parm_info (1); ;
  2301.       break;}
  2302.   case 326:
  2303. ! #line 1729 "c-parse.y"
  2304.   { yyval.ttype = get_parm_info (0); ;
  2305.       break;}
  2306.   case 327:
  2307. ! #line 1734 "c-parse.y"
  2308.   { push_parm_decl (yyvsp[0].ttype); ;
  2309.       break;}
  2310.   case 328:
  2311. ! #line 1736 "c-parse.y"
  2312.   { push_parm_decl (yyvsp[0].ttype); ;
  2313.       break;}
  2314.   case 329:
  2315. ! #line 1743 "c-parse.y"
  2316.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2317.       break;}
  2318.   case 330:
  2319. ! #line 1745 "c-parse.y"
  2320.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2321.       break;}
  2322.   case 331:
  2323. ! #line 1747 "c-parse.y"
  2324.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2325.       break;}
  2326.   case 332:
  2327. ! #line 1749 "c-parse.y"
  2328.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2329.       break;}
  2330.   case 333:
  2331. ! #line 1751 "c-parse.y"
  2332.   { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2333.       break;}
  2334.   case 334:
  2335. ! #line 1758 "c-parse.y"
  2336.   { pushlevel (0);
  2337.             clear_parm_order ();
  2338.             declare_parm_level (1); ;
  2339.       break;}
  2340.   case 335:
  2341. ! #line 1762 "c-parse.y"
  2342.   { yyval.ttype = yyvsp[0].ttype;
  2343.             parmlist_tags_warning ();
  2344.             poplevel (0, 0, 0); ;
  2345.       break;}
  2346.   case 337:
  2347. ! #line 1770 "c-parse.y"
  2348.   { tree t;
  2349.             for (t = yyvsp[-1].ttype; t; t = TREE_CHAIN (t))
  2350.               if (TREE_VALUE (t) == NULL_TREE)
  2351. ***************
  2352. *** 3148,3171 ****
  2353.             yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
  2354.       break;}
  2355.   case 338:
  2356. ! #line 1773 "c-parse.y"
  2357.   { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  2358.       break;}
  2359.   case 339:
  2360. ! #line 1775 "c-parse.y"
  2361.   { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  2362.       break;}
  2363.   case 340:
  2364. ! #line 1781 "c-parse.y"
  2365.   { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  2366.       break;}
  2367.   case 341:
  2368. ! #line 1783 "c-parse.y"
  2369.   { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  2370.       break;}
  2371.   }
  2372.      /* the action file gets copied in in place of this dollarsign */
  2373. ! #line 440 "bison.simple"
  2374.   
  2375.     yyvsp -= yylen;
  2376.     yyssp -= yylen;
  2377. --- 3186,3209 ----
  2378.             yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
  2379.       break;}
  2380.   case 338:
  2381. ! #line 1780 "c-parse.y"
  2382.   { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  2383.       break;}
  2384.   case 339:
  2385. ! #line 1782 "c-parse.y"
  2386.   { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  2387.       break;}
  2388.   case 340:
  2389. ! #line 1788 "c-parse.y"
  2390.   { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  2391.       break;}
  2392.   case 341:
  2393. ! #line 1790 "c-parse.y"
  2394.   { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  2395.       break;}
  2396.   }
  2397.      /* the action file gets copied in in place of this dollarsign */
  2398. ! #line 465 "/usr/lib/bison.simple"
  2399.   
  2400.     yyvsp -= yylen;
  2401.     yyssp -= yylen;
  2402. ***************
  2403. *** 3235,3241 ****
  2404.         int x, count;
  2405.   
  2406.         count = 0;
  2407. !       for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
  2408.           if (yycheck[x + yyn] == x)
  2409.             size += strlen(yytname[x]) + 15, count++;
  2410.         msg = (char *) malloc(size + 15);
  2411. --- 3273,3281 ----
  2412.         int x, count;
  2413.   
  2414.         count = 0;
  2415. !       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  2416. !       for (x = (yyn < 0 ? -yyn : 0);
  2417. !            x < (sizeof(yytname) / sizeof(char *)); x++)
  2418.           if (yycheck[x + yyn] == x)
  2419.             size += strlen(yytname[x]) + 15, count++;
  2420.         msg = (char *) malloc(size + 15);
  2421. ***************
  2422. *** 3246,3252 ****
  2423.             if (count < 5)
  2424.           {
  2425.             count = 0;
  2426. !           for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
  2427.               if (yycheck[x + yyn] == x)
  2428.                 {
  2429.               strcat(msg, count == 0 ? ", expecting `" : " or `");
  2430. --- 3286,3293 ----
  2431.             if (count < 5)
  2432.           {
  2433.             count = 0;
  2434. !           for (x = (yyn < 0 ? -yyn : 0);
  2435. !                x < (sizeof(yytname) / sizeof(char *)); x++)
  2436.               if (yycheck[x + yyn] == x)
  2437.                 {
  2438.               strcat(msg, count == 0 ? ", expecting `" : " or `");
  2439. ***************
  2440. *** 3266,3271 ****
  2441. --- 3307,3313 ----
  2442.       yyerror("parse error");
  2443.       }
  2444.   
  2445. +   goto yyerrlab1;
  2446.   yyerrlab1:   /* here on error raised explicitly by an action */
  2447.   
  2448.     if (yyerrstatus == 3)
  2449. ***************
  2450. *** 3357,3361 ****
  2451.     yystate = yyn;
  2452.     goto yynewstate;
  2453.   }
  2454. ! #line 1786 "c-parse.y"
  2455.   
  2456. --- 3399,3403 ----
  2457.     yystate = yyn;
  2458.     goto yynewstate;
  2459.   }
  2460. ! #line 1793 "c-parse.y"
  2461.   
  2462. diff -rc --new-file gcc-2.3.3-fsf/c-parse.y gcc-2.3.3-amiga/c-parse.y
  2463. *** gcc-2.3.3-fsf/c-parse.y    Wed Oct  7 20:19:01 1992
  2464. --- gcc-2.3.3-amiga/c-parse.y    Mon Nov 29 15:31:02 1993
  2465. ***************
  2466. *** 853,859 ****
  2467.   
  2468.   attrib
  2469.       : IDENTIFIER
  2470. !     { if (strcmp (IDENTIFIER_POINTER ($1), "packed"))
  2471.           warning ("`%s' attribute directive ignored",
  2472.                IDENTIFIER_POINTER ($1));
  2473.         $$ = $1; }
  2474. --- 853,866 ----
  2475.   
  2476.   attrib
  2477.       : IDENTIFIER
  2478. !     {
  2479. ! #ifdef HANDLE_ATTRIBUTE0
  2480. !       /* give the function a chance to validate further attributes */
  2481. !       if (HANDLE_ATTRIBUTE0 (IDENTIFIER_POINTER ($1)) ||
  2482. !           strcmp (IDENTIFIER_POINTER ($1), "packed"))
  2483. ! #else
  2484. !       if (strcmp (IDENTIFIER_POINTER ($1), "packed"))
  2485. ! #endif
  2486.           warning ("`%s' attribute directive ignored",
  2487.                IDENTIFIER_POINTER ($1));
  2488.         $$ = $1; }
  2489. diff -rc --new-file gcc-2.3.3-fsf/cccp.c gcc-2.3.3-amiga/cccp.c
  2490. *** gcc-2.3.3-fsf/cccp.c    Wed Dec 16 04:25:36 1992
  2491. --- gcc-2.3.3-amiga/cccp.c    Mon Nov 29 15:31:13 1993
  2492. ***************
  2493. *** 39,44 ****
  2494. --- 39,60 ----
  2495.   #include "config.h"
  2496.   #endif /* not EMACS */
  2497.   
  2498. + #ifdef amigados
  2499. + /* Since cpp uses alloca to store all its read files, this is quite deadly
  2500. +    on a system with non-automatic stackgrowth like amigados, so we better
  2501. +    turn it off now.  Normally alloca is #defined to __builtin_alloca, so
  2502. +    undefining it causes an external alloca to be used.
  2503. +    Note that it's not wise to generally inhibit __builtin_alloca, since
  2504. +    using the generic emulator entitels a serious (!) speed penalty, and
  2505. +    it's bad enough that we have to live with it in cccp, don't make cc1
  2506. +    unbearably slow as well... */
  2507. + #undef alloca
  2508. + static int amigados_abs_filename ();
  2509. + #endif
  2510.   #ifndef STANDARD_INCLUDE_DIR
  2511.   #define STANDARD_INCLUDE_DIR "/usr/include"
  2512.   #endif
  2513. ***************
  2514. *** 180,186 ****
  2515. --- 196,206 ----
  2516.   extern char *version_string;
  2517.   extern struct tm *localtime ();
  2518.   extern int sys_nerr;
  2519. + #ifndef HAVE_STRERROR
  2520.   extern char *sys_errlist[];
  2521. + #define strerror(err) sys_errlist[err]
  2522. + #endif
  2523.   
  2524.   #ifndef errno
  2525.   extern int errno;
  2526. ***************
  2527. *** 1672,1682 ****
  2528. --- 1692,1706 ----
  2529.         char *p = in_fname;
  2530.         char *p1 = p;
  2531.         /* Discard all directory prefixes from P.  */
  2532. + #ifdef FILE_NAME_NONDIRECTORY
  2533. +       p = FILE_NAME_NONDIRECTORY (p);
  2534. + #else
  2535.         while (*p1) {
  2536.       if (*p1 == '/')
  2537.         p = p1 + 1;
  2538.       p1++;
  2539.         }
  2540. + #endif
  2541.         /* Output P, but remove known suffixes.  */
  2542.         len = strlen (p);
  2543.         if (p[len - 2] == '.' && p[len - 1] == 'c')
  2544. ***************
  2545. *** 3393,3399 ****
  2546.   
  2547.         if (!no_output && already_output == 0
  2548.         && (kt->pass_thru
  2549. !           || (kt->type == T_DEFINE
  2550.             && (dump_macros == dump_names
  2551.                 || dump_macros == dump_definitions)))) {
  2552.           int len;
  2553. --- 3417,3423 ----
  2554.   
  2555.         if (!no_output && already_output == 0
  2556.         && (kt->pass_thru
  2557. !           || ((kt->type == T_DEFINE || kt->type == T_UNDEF)
  2558.             && (dump_macros == dump_names
  2559.                 || dump_macros == dump_definitions)))) {
  2560.           int len;
  2561. ***************
  2562. *** 3725,3730 ****
  2563. --- 3749,3766 ----
  2564.           search_start = dsp;
  2565.   #ifndef VMS
  2566.           ep = rindex (nam, '/');
  2567. + #ifdef amigados
  2568. +         /* amigados uses unix-style directory-filename separation, but
  2569. +            has VMS-style logicals as well */
  2570. +         if (ep == NULL) 
  2571. +           {
  2572. +         ep = rindex (nam, ':');
  2573. +         /* a ':' is part of the directory name, a '/' isn't ! */
  2574. +             if (ep != NULL) ep++;
  2575. +           }
  2576. + #endif /* amigados */
  2577.   #else                /* VMS */
  2578.           ep = rindex (nam, ']');
  2579.           if (ep == NULL) ep = rindex (nam, '>');
  2580. ***************
  2581. *** 3800,3806 ****
  2582. --- 3836,3846 ----
  2583.   
  2584.     /* If specified file name is absolute, just open it.  */
  2585.   
  2586. + #ifndef amigados
  2587.     if (*fbeg == '/') {
  2588. + #else
  2589. +   if (amigados_abs_filename (fbeg, flen)) {
  2590. + #endif
  2591.       strncpy (fname, fbeg, flen);
  2592.       fname[flen] = 0;
  2593.       if (redundant_include_p (fname))
  2594. ***************
  2595. *** 3823,3828 ****
  2596. --- 3863,3872 ----
  2597.       if (searchptr->fname[0] == 0)
  2598.         continue;
  2599.       strcpy (fname, searchptr->fname);
  2600. + #ifdef amigados
  2601. +     if (fname[strlen (fname) - 1] != ':')
  2602. + #endif
  2603.       strcat (fname, "/");
  2604.       fname[strlen (fname) + flen] = 0;
  2605.         } else {
  2606. ***************
  2607. *** 7637,7643 ****
  2608.       fprintf (stderr, "%s:%d: ", ip->nominal_fname, ip->lineno);
  2609.   
  2610.     if (errno < sys_nerr)
  2611. !     fprintf (stderr, "%s: %s\n", name, sys_errlist[errno]);
  2612.     else
  2613.       fprintf (stderr, "%s: undocumented I/O error\n", name);
  2614.   
  2615. --- 7681,7687 ----
  2616.       fprintf (stderr, "%s:%d: ", ip->nominal_fname, ip->lineno);
  2617.   
  2618.     if (errno < sys_nerr)
  2619. !     fprintf (stderr, "%s: %s\n", name, strerror (errno));
  2620.     else
  2621.       fprintf (stderr, "%s: undocumented I/O error\n", name);
  2622.   
  2623. ***************
  2624. *** 8538,8546 ****
  2625.   perror_with_name (name)
  2626.        char *name;
  2627.   {
  2628.     fprintf (stderr, "%s: ", progname);
  2629. !   if (errno < sys_nerr)
  2630. !     fprintf (stderr, "%s: %s\n", name, sys_errlist[errno]);
  2631.     else
  2632.       fprintf (stderr, "%s: undocumented I/O error\n", name);
  2633.     errors++;
  2634. --- 8582,8592 ----
  2635.   perror_with_name (name)
  2636.        char *name;
  2637.   {
  2638. +   int error = errno;
  2639.     fprintf (stderr, "%s: ", progname);
  2640. !   if (error < sys_nerr)
  2641. !     fprintf (stderr, "%s: %s\n", name, strerror (error));
  2642.     else
  2643.       fprintf (stderr, "%s: undocumented I/O error\n", name);
  2644.     errors++;
  2645. ***************
  2646. *** 8916,8918 ****
  2647. --- 8962,8988 ----
  2648.     return dst;
  2649.   }
  2650.   #endif /* VMS */
  2651. + #ifdef amigados
  2652. + /* This function returns whether the LEN characters long filename FNAME 
  2653. +    is an absolute path specification. */
  2654. + static int
  2655. + amigados_abs_filename (fname, len)
  2656. +      char *fname;
  2657. +      int len;
  2658. + {
  2659. +   /* we're using ixemul.library, which treats `/foo' as `foo:', so 
  2660. +      fname[0] is to be considered absolute as well */
  2661. +   if (fname[0] == '/')
  2662. +     return 1;
  2663. +   /* else do an index() on fname, but one which is limited to len characters */
  2664. +   while (*fname && *fname != ':' && len) 
  2665. +     fname++, len--;
  2666. +   return *fname == ':';
  2667. + }
  2668. + #endif /* amigados */
  2669. diff -rc --new-file gcc-2.3.3-fsf/config/amigados.c gcc-2.3.3-amiga/config/amigados.c
  2670. *** gcc-2.3.3-fsf/config/amigados.c    Thu Jan  1 00:00:00 1970
  2671. --- gcc-2.3.3-amiga/config/amigados.c    Mon Nov 29 15:31:17 1993
  2672. ***************
  2673. *** 0 ****
  2674. --- 1,158 ----
  2675. + /* Definitions of target machine for GNU compiler.  amiga 68000/68020 version.
  2676. +    Copyright (C) 1992 Free Software Foundation, Inc.
  2677. +    Contributed by Markus M. Wild (wild@amiga.physik.unizh.ch).
  2678. + This file is part of GNU CC.
  2679. + GNU CC is free software; you can redistribute it and/or modify
  2680. + it under the terms of the GNU General Public License as published by
  2681. + the Free Software Foundation; either version 2, or (at your option)
  2682. + any later version.
  2683. + GNU CC is distributed in the hope that it will be useful,
  2684. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  2685. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  2686. + GNU General Public License for more details.
  2687. + You should have received a copy of the GNU General Public License
  2688. + along with GNU CC; see the file COPYING.  If not, write to
  2689. + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  2690. + #include "m68k.c"
  2691. + /* Does operand (which is a symbolic_operand) live in text space? If
  2692. +    so SYMBOL_REF_FLAG, which is set by ENCODE_SECTION_INFO, will be true.
  2693. +    This function is used in base relative code generation. */
  2694. + int
  2695. + read_only_operand (operand)
  2696. +      rtx operand;
  2697. + {
  2698. +   if (GET_CODE (operand) == CONST)
  2699. +     operand = XEXP (XEXP (operand, 0), 0);
  2700. +   if (GET_CODE (operand) == SYMBOL_REF)
  2701. +     return SYMBOL_REF_FLAG (operand) || CONSTANT_POOL_ADDRESS_P (operand);
  2702. +   return 1;
  2703. + }
  2704. + /* the rest of the file is to implement AmigaDOS specific keywords some day.
  2705. +    The approach used so far used __attribute__ for this, but this required
  2706. +    changes to c-parse.y as well as if we'd use the common keywords used
  2707. +    on commercial AmigaDOS C-compilers as well. So in the future I'll probably
  2708. +    switch to __saveds and __interrupt keywords as well.
  2709. +    The rest of this file is currently ignored, because it's no longer
  2710. +    working with the current gcc version. */
  2711. + #if not_yet_working
  2712. + #include "tree.h"
  2713. + struct attribute {
  2714. +   tree ident;
  2715. +   int  saveds : 1,
  2716. +        interrupt : 1;
  2717. + };
  2718. + static struct attribute *a_tab = 0;
  2719. + static int a_index, a_size;
  2720. + void
  2721. + add_attr_entry (attr)
  2722. +     struct attribute *attr;
  2723. + {
  2724. +   if (! a_tab)
  2725. +     {
  2726. +       a_size = 10;
  2727. +       a_index = 0;
  2728. +       a_tab  = (struct attribute *) xmalloc (a_size * sizeof (struct attribute));
  2729. +     }
  2730. +   if (a_index == a_size)
  2731. +     {
  2732. +       a_size <<= 1;
  2733. +       a_tab = (struct attribute *) xrealloc (a_tab, a_size * sizeof (struct attribute));
  2734. +     }
  2735. +   a_tab[a_index++] = *attr;
  2736. + }
  2737. + void
  2738. + attr_do_saveds (function_ident)
  2739. +       tree function_ident;
  2740. + {
  2741. +   struct attribute attr, *a;
  2742. +   int i;
  2743. +   for (i = 0, a = a_tab; i < a_index; i++, a++)
  2744. +     if (a->ident == function_ident)
  2745. +       {
  2746. +     a->saveds = 1;
  2747. +     return;
  2748. +       }
  2749. +   /* create a new entry for this function */
  2750. +   attr.ident     = function_ident;
  2751. +   attr.saveds    = 1;
  2752. +   attr.interrupt = 0;
  2753. +   add_attr_entry (&attr);
  2754. + }
  2755. + void
  2756. + attr_do_interrupt (function_ident)
  2757. +     tree function_ident;
  2758. + {
  2759. +   struct attribute attr, *a;
  2760. +   int i;
  2761. +   for (i = 0, a = a_tab; i < a_index; i++, a++)
  2762. +     if (a->ident == function_ident)
  2763. +       {
  2764. +     /* __interrupt implies __saveds */
  2765. +     a->saveds    = 1;
  2766. +     a->interrupt = 1;
  2767. +     return;
  2768. +       }
  2769. +   /* create a new entry for this function */
  2770. +   attr.ident     = function_ident;
  2771. +   attr.saveds     = 1;
  2772. +   attr.interrupt = 1;
  2773. +   add_attr_entry (&attr);
  2774. + }
  2775. + int
  2776. + attr_does_saveds (function_name)
  2777. +     char *function_name;
  2778. + {
  2779. +   tree ident = get_identifier (function_name);
  2780. +   struct attribute *attr;
  2781. +   int i;
  2782. +   
  2783. +   for (i = 0, attr = a_tab; i < a_index; i++, attr++)
  2784. +     if (attr->ident == ident)
  2785. +       return attr->saveds;
  2786. +   return 0;
  2787. + }
  2788. + int
  2789. + attr_does_interrupt (function_name)
  2790. +     char *function_name;
  2791. + {
  2792. +   tree ident = get_identifier (function_name);
  2793. +   struct attribute *attr;
  2794. +   int i;
  2795. +   
  2796. +   for (i = 0, attr = a_tab; i < a_index; i++, attr++)
  2797. +     if (attr->ident == ident)
  2798. +       return attr->interrupt;
  2799. +   return 0;
  2800. + }
  2801. + #endif
  2802. diff -rc --new-file gcc-2.3.3-fsf/config/amigados.h gcc-2.3.3-amiga/config/amigados.h
  2803. *** gcc-2.3.3-fsf/config/amigados.h    Thu Jan  1 00:00:00 1970
  2804. --- gcc-2.3.3-amiga/config/amigados.h    Mon Nov 29 15:31:21 1993
  2805. ***************
  2806. *** 0 ****
  2807. --- 1,388 ----
  2808. + /* Definitions of target machine for GNU compiler.  amiga 68000/68020 version.
  2809. +    Copyright (C) 1992 Free Software Foundation, Inc.
  2810. +    Contributed by Markus M. Wild (wild@amiga.physik.unizh.ch).
  2811. + This file is part of GNU CC.
  2812. + GNU CC is free software; you can redistribute it and/or modify
  2813. + it under the terms of the GNU General Public License as published by
  2814. + the Free Software Foundation; either version 2, or (at your option)
  2815. + any later version.
  2816. + GNU CC is distributed in the hope that it will be useful,
  2817. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  2818. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  2819. + GNU General Public License for more details.
  2820. + You should have received a copy of the GNU General Public License
  2821. + along with GNU CC; see the file COPYING.  If not, write to
  2822. + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  2823. + #include "m68k.h"
  2824. + /* See m68k.h for bits in TARGET_DEFAULT.
  2825. +    0 means 68000, no hardware fpu (68881/68882/68040).
  2826. +    7 means 68020 (or higher) with hardware fpu.  */
  2827. + #ifndef TARGET_DEFAULT
  2828. + #define TARGET_DEFAULT 0
  2829. + #endif
  2830. + /* Define __HAVE_68881__ in preprocessor according to the -m flags.
  2831. +    This will control the use of inline 68881 insns in certain macros.
  2832. +    Also inform the program which CPU this is for.  */
  2833. + #if TARGET_DEFAULT & 02
  2834. + /* -m68881 is the default */
  2835. + #define CPP_SPEC \
  2836. + "%{!msoft-float:-D__HAVE_68881__ }\
  2837. + %{!ansi:%{m68000:-Dmc68010}%{mc68000:-Dmc68010}%{!mc68000:%{!m68000:-Dmc68020}}}"
  2838. + #else
  2839. + /* -msoft-float is the default, assume -mc68000 as well */
  2840. + #define CPP_SPEC \
  2841. + "%{m68881:-D__HAVE_68881__ }\
  2842. + %{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
  2843. + #endif
  2844. + /* -m68000 requires special flags to the assembler.  */
  2845. + #if TARGET_DEFAULT & 01
  2846. + #define ASM_SPEC \
  2847. +  "%{m68000:-mc68010}%{mc68000:-mc68010}%{!mc68000:%{!m68000:-mc68020}} %{msmall-code:-l} "
  2848. + #else
  2849. + #define ASM_SPEC \
  2850. +  "%{m68020:-mc68020}%{mc68020:-mc68020}%{!mc68020:%{!m68020:-mc68010}} %{msmall-code:-l} "
  2851. + #endif
  2852. + /* amiga/amigados are the new "standard" defines for the Amiga, MCH_AMIGA
  2853. +  * was used before and is included for compatibility reasons */
  2854. + #define CPP_PREDEFINES "-Dmc68000 -Damiga -Damigados -DMCH_AMIGA -DAMIGA"
  2855. + /* Choose the right startup file, depending on whether we use base relative
  2856. +    code, base relative code with automatic relocation (-resident), or plain
  2857. +    crt0.o. 
  2858. +   
  2859. +    Profiling is currently only available for plain startup.
  2860. +    mcrt0.o does not (yet) exist. */
  2861. + #define STARTFILE_SPEC \
  2862. +   "%{resident:rcrt0.o%s}%{!resident:%{!fbaserel:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}%{fbaserel:%{pg:bgcrt0.o%s}%{!pg:%{p:bmcrt0.o%s}%{!p:bcrt0.o%s}}}}"
  2863. + /* Automatically search libamiga.a for AmigaDOS specific functions.  Note
  2864. +    that we first search the standard C library to resolve as much as
  2865. +    possible from there, since it has names that are duplicated in libamiga.a
  2866. +    which we *don't* want from there.  Then search the standard C library
  2867. +    again to resolve any references that libamiga.a might have generated.
  2868. +    This may only be a temporary solution since it might be better to simply
  2869. +    remove the things from libamiga.a that should be pulled in from libc.a
  2870. +    instead, which would eliminate the first reference to libc.a. */
  2871. + #define LIB_SPEC "%{!p:%{!pg:-lc -lamiga -lc}}%{p:-lc_p -lamiga -lc_p}%{pg:-lc_p -lamiga -lc_p}"
  2872. + /* if debugging, tell the linker to output amiga-hunk symbols *and* a BSD
  2873. +    compatible debug hunk (which will probably change in the future, it's not
  2874. +    tremendously useful in its current state). */
  2875. + #define LINK_SPEC "%{g:-amiga-debug-hunk} %{fbaserel:-databss-together} %{resident:-databss-together -datadata-reloc -f libb} "
  2876. + #define CC1_SPEC "%{resident:-fbaserel} "
  2877. + #define CC1PLUS_SPEC "%{resident:-fbaserel} "
  2878. + /* Omit frame pointer at high optimization levels. (This doesn't hurt, since
  2879. +    GDB doesn't work under AmigaDOS at the moment anyway..) */
  2880. +   
  2881. + #define OPTIMIZATION_OPTIONS(OPTIMIZE) \
  2882. + {                                  \
  2883. +   if (OPTIMIZE >= 2)                         \
  2884. +     flag_omit_frame_pointer = 1;                \
  2885. + }
  2886. + /* provide a dummy entry for the small-code switch. This is currently only
  2887. +    needed by the assembler (explanations: m68k.h), but will be used by cc1
  2888. +    to output 16bit pc-relative code later. */
  2889. + #undef TARGET_SWITCHES
  2890. + #define TARGET_SWITCHES  \
  2891. +   { { "68020", 5},                \
  2892. +     { "c68020", 5},                \
  2893. +     { "68881", 2},                \
  2894. +     { "bitfield", 4},                \
  2895. +     { "68000", -5},                \
  2896. +     { "c68000", -5},                \
  2897. +     { "soft-float", -0102},            \
  2898. +     { "nobitfield", -4},            \
  2899. +     { "rtd", 8},                \
  2900. +     { "nortd", -8},                \
  2901. +     { "short", 040},                \
  2902. +     { "noshort", -040},                \
  2903. +     { "fpa", 0100},                \
  2904. +     { "nofpa", -0100},                \
  2905. +     { "sky", 0200},                \
  2906. +     { "nosky", -0200},                \
  2907. +     { "68040", 0407},                \
  2908. +     { "68030", -01400},                \
  2909. +     { "68030", 7},                \
  2910. +     { "68040-only", 01000},            \
  2911. +     { "small-code", 0 },            \
  2912. +     { "", TARGET_DEFAULT}}
  2913. + /* Every structure or union's size must be a multiple of 2 bytes.  */
  2914. + #define STRUCTURE_SIZE_BOUNDARY 16
  2915. + /* This is (almost;-)) BSD, so it wants DBX format.  */
  2916. + #define DBX_DEBUGGING_INFO
  2917. + /* Allow folding division by zero.  */
  2918. + #define REAL_INFINITY
  2919. + /* This is how to output an assembler line defining a `double' constant.  */
  2920. + #undef ASM_OUTPUT_DOUBLE
  2921. + #define ASM_OUTPUT_DOUBLE(FILE,VALUE)                    \
  2922. +   {                                    \
  2923. +     if (REAL_VALUE_ISINF (VALUE))                    \
  2924. +       fprintf (FILE, "\t.double 0r%s99e999\n", (VALUE) > 0 ? "" : "-");    \
  2925. +     else if (isnan (VALUE))                        \
  2926. +       {                                    \
  2927. +     union { double d; long l[2];} t;                \
  2928. +     t.d = (VALUE);                            \
  2929. +     fprintf (FILE, "\t.long 0x%lx\n\t.long 0x%lx\n", t.l[0], t.l[1]); \
  2930. +       }                                    \
  2931. +     else                                \
  2932. +       fprintf (FILE, "\t.double 0r%.17g\n", VALUE);            \
  2933. +   }
  2934. + /* This is how to output an assembler line defining a `float' constant.  */
  2935. + #undef ASM_OUTPUT_FLOAT
  2936. + #define ASM_OUTPUT_FLOAT(FILE,VALUE)                    \
  2937. +   {                                    \
  2938. +     if (REAL_VALUE_ISINF (VALUE))                    \
  2939. +       fprintf (FILE, "\t.single 0r%s99e999\n", (VALUE) > 0 ? "" : "-");    \
  2940. +     else if (isnan (VALUE))                        \
  2941. +       {                                    \
  2942. +     union { float f; long l;} t;                    \
  2943. +     t.f = (VALUE);                            \
  2944. +     fprintf (FILE, "\t.long 0x%lx\n", t.l);                \
  2945. +       }                                    \
  2946. +     else                                \
  2947. +       fprintf (FILE, "\t.single 0r%.9g\n", VALUE);            \
  2948. +   }
  2949. + /* This is how to output an assembler lines defining floating operands.
  2950. +    There's no way to output a NaN's fraction, so we lose it.  */
  2951. +   
  2952. + #undef ASM_OUTPUT_FLOAT_OPERAND
  2953. + #define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE)                \
  2954. +   (REAL_VALUE_ISINF ((VALUE))                        \
  2955. +    ? asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
  2956. +    : (VALUE) == -0.0                            \
  2957. +    ? asm_fprintf (FILE, "%I0r-0.0")                    \
  2958. +    : asm_fprintf (FILE, "%I0r%.9g", (VALUE)))
  2959. + #undef ASM_OUTPUT_DOUBLE_OPERAND
  2960. + #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE)                \
  2961. +   (REAL_VALUE_ISINF ((VALUE))                        \
  2962. +    ? asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
  2963. +    : (VALUE) == -0.0                            \
  2964. +    ? asm_fprintf (FILE, "%I0r-0.0")                    \
  2965. +    : asm_fprintf (FILE, "%I0r%.17g", (VALUE)))
  2966. + /* use A5 as framepointer instead of A6, this makes A6 available as a
  2967. +    general purpose register, and can thus be used without problems in
  2968. +    direct library calls. */
  2969. + #undef FRAME_POINTER_REGNUM
  2970. + #define FRAME_POINTER_REGNUM 13
  2971. + #undef ARG_POINTER_REGNUM
  2972. + #define ARG_POINTER_REGNUM 13
  2973. + /* we use A4 for this, not A5, which is the framepointer */
  2974. + #undef PIC_OFFSET_TABLE_REGNUM
  2975. + #define PIC_OFFSET_TABLE_REGNUM 12
  2976. + /* setup a default shell return value for those (gazillion..) programs that
  2977. +    (inspite of ANSI-C) declare main() to be void (or even VOID...) and thus
  2978. +    cause the shell to randomly caugh upon executing such programs (contrary
  2979. +    to Unix, AmigaDOS scripts are terminated with an error if a program returns
  2980. +    with an error code above the `error' or even `failure' level
  2981. +    (which is configurable with the FAILAT command) */
  2982. + #define DEFAULT_MAIN_RETURN c_expand_return (integer_zero_node)
  2983. + /* we do have an ansi-compliant c-library ;-) */
  2984. + #define HAVE_VPRINTF
  2985. + #define HAVE_VFPRINTF
  2986. + #define HAVE_PUTENV
  2987. + #define HAVE_STRERROR
  2988. + #define HAVE_ATEXIT
  2989. + /* given that symbolic_operand(X), return TRUE if no special
  2990. +    base relative relocation is necessary */
  2991. + #define LEGITIMATE_BASEREL_OPERAND_P(X) \
  2992. +   (flag_pic >= 3 && read_only_operand (X))
  2993. + #undef LEGITIMATE_PIC_OPERAND_P
  2994. + #define LEGITIMATE_PIC_OPERAND_P(X) \
  2995. +   (! symbolic_operand (X, VOIDmode) || LEGITIMATE_BASEREL_OPERAND_P (X))
  2996. + /* Define this macro if references to a symbol must be treated
  2997. +    differently depending on something about the variable or
  2998. +    function named by the symbol (such as what section it is in).
  2999. +    The macro definition, if any, is executed immediately after the
  3000. +    rtl for DECL or other node is created.
  3001. +    The value of the rtl will be a `mem' whose address is a
  3002. +    `symbol_ref'.
  3003. +    The usual thing for this macro to do is to a flag in the
  3004. +    `symbol_ref' (such as `SYMBOL_REF_FLAG') or to store a modified
  3005. +    name string in the `symbol_ref' (if one bit is not enough
  3006. +    information).
  3007. +    On the Amiga we use this to indicate if a symbol is in text or
  3008. +    data space.  */
  3009. + #define ENCODE_SECTION_INFO(DECL)\
  3010. + do                                    \
  3011. +   {                                    \
  3012. +     if (TREE_CODE (DECL) == FUNCTION_DECL)                \
  3013. +       SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1;            \
  3014. +     else                                \
  3015. +       {                                    \
  3016. +     rtx rtl = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd'        \
  3017. +            ? TREE_CST_RTL (DECL) : DECL_RTL (DECL));        \
  3018. +     if (RTX_UNCHANGING_P (rtl) && !MEM_VOLATILE_P (rtl))        \
  3019. +       SYMBOL_REF_FLAG (XEXP (rtl, 0)) = 1;                \
  3020. +       }                                    \
  3021. +   }                                    \
  3022. + while (0)
  3023. + #undef SELECT_RTX_SECTION
  3024. + #define SELECT_RTX_SECTION(MODE, X) readonly_data_section ();
  3025. + /* according to varasm.c, RELOC referrs *only* to whether constants (!)
  3026. +    are addressed by address. This doesn't matter in baserelative code,
  3027. +    so we allow (inspite of flag_pic) readonly_data_section() in that
  3028. +    case */
  3029. + #undef SELECT_SECTION
  3030. + #define SELECT_SECTION(DECL, RELOC)                    \
  3031. + {                                    \
  3032. +   if (TREE_CODE (DECL) == STRING_CST)                    \
  3033. +     {                                    \
  3034. +       if (! flag_writable_strings)                    \
  3035. +     readonly_data_section ();                    \
  3036. +       else                                \
  3037. +     data_section ();                        \
  3038. +     }                                    \
  3039. +   else if (TREE_CODE (DECL) == VAR_DECL)                \
  3040. +     {                                    \
  3041. +       if ((flag_pic && flag_pic < 3 && RELOC)                \
  3042. +       || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL))        \
  3043. +     data_section ();                        \
  3044. +       else                                \
  3045. +     readonly_data_section ();                    \
  3046. +     }                                    \
  3047. +   else                                    \
  3048. +     readonly_data_section ();                        \
  3049. + }
  3050. + #if not_yet_working
  3051. + /* starting support for amiga specific keywords
  3052. +  * --------------------------------------------
  3053. +  */
  3054. + /* validate attributes that don't take a parameter. Currently we support
  3055. +  * __attribute__ (saveds) and __attribute__ (interrupt)
  3056. +  */
  3057. + #define HANDLE_ATTRIBUTE0(attr) \
  3058. +   (strcmp(attr, "saveds") != 0 && strcmp(attr, "interrupt") != 0)
  3059. + /* (c-common.c)
  3060. +  * install additional attributes
  3061. +  */
  3062. + #define HANDLE_EXTRA_ATTRIBUTES(a)                         \
  3063. +   if (TREE_VALUE (a) != 0                            \
  3064. +       && TREE_CODE (TREE_VALUE (a)) == IDENTIFIER_NODE                \
  3065. +       && TREE_VALUE (a) == get_identifier ("saveds"))                \
  3066. +     {                                        \
  3067. +       if (TREE_CODE (decl) != FUNCTION_DECL)                    \
  3068. +         {                                    \
  3069. +           warning_with_decl (decl,                        \
  3070. +               "saveds attribute specified for non-function `%s'");        \
  3071. +       return;                                \
  3072. +         }                                    \
  3073. +                                               \
  3074. +       attr_do_saveds (DECL_NAME (decl));                    \
  3075. +     }                                        \
  3076. +   else if (TREE_VALUE (a) != 0                            \
  3077. +       && TREE_CODE (TREE_VALUE (a)) == IDENTIFIER_NODE                \
  3078. +       && TREE_VALUE (a) == get_identifier ("interrupt"))            \
  3079. +     {                                        \
  3080. +       if (TREE_CODE (decl) != FUNCTION_DECL)                    \
  3081. +         {                                    \
  3082. +           warning_with_decl (decl,                        \
  3083. +               "saveds attribute specified for non-function `%s'");        \
  3084. +       return;                                \
  3085. +         }                                    \
  3086. +                                               \
  3087. +       attr_do_interrupt (DECL_NAME (decl));                    \
  3088. +     }                                        \
  3089. + #define PROLOGUE_EXTRA_SAVE(mask)                        \
  3090. +   { extern char *current_function_name;                        \
  3091. +     /* saveds makes the function preserve d1/a0/a1 as well */            \
  3092. +     if (attr_does_saveds (current_function_name))                \
  3093. +       mask |= 0x40c0; }                                \
  3094. + #define EPILOGUE_EXTRA_RESTORE(mask, nregs)                    \
  3095. +   { extern char *current_function_name;                        \
  3096. +     /* restore those extra registers */                        \
  3097. +     if (attr_does_saveds (current_function_name))                \
  3098. +       {                                        \
  3099. +     mask |= 0x0302;                                \
  3100. +     nregs += 3;                                \
  3101. +       } }                                    \
  3102. + #define EPILOGUE_EXTRA_BARRIER_KLUDGE(stream)                    \
  3103. +   { extern char *current_function_name;                        \
  3104. +     /* PLEASE Help! how is this done cleaner?? */                \
  3105. +     if (attr_does_saveds (current_function_name))                \
  3106. +       {                                        \
  3107. +     fprintf (stderr,                             \
  3108. +          "warning: couldn't cleanup `saveds'-stack in `%s'.\n");    \
  3109. +     fprintf (stderr,                            \
  3110. +          "         this is only ok, if the function never returns!\n");    \
  3111. +       }    }                                    \
  3112. +         
  3113. + #define EPILOGUE_EXTRA_TEST(stream)                        \
  3114. +   { extern char *current_function_name;                        \
  3115. +     /* with the interrupt-attribute, we have to set the cc before rts */    \
  3116. +     if (attr_does_interrupt (current_function_name))                \
  3117. +       asm_fprintf (stream, "\ttstl %s\n", reg_names[0]); }            \
  3118. + #endif
  3119. diff -rc --new-file gcc-2.3.3-fsf/config/m68k.c gcc-2.3.3-amiga/config/m68k.c
  3120. *** gcc-2.3.3-fsf/config/m68k.c    Fri Oct 30 01:00:58 1992
  3121. --- gcc-2.3.3-amiga/config/m68k.c    Mon Nov 29 15:31:26 1993
  3122. ***************
  3123. *** 60,66 ****
  3124.      
  3125.   finalize_pic ()
  3126.   {
  3127. !   if (flag_pic && current_function_uses_pic_offset_table)
  3128.       emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
  3129.   }
  3130.   
  3131. --- 60,66 ----
  3132.      
  3133.   finalize_pic ()
  3134.   {
  3135. !   if (flag_pic && (flag_pic < 3) && current_function_uses_pic_offset_table)
  3136.       emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
  3137.   }
  3138.   
  3139. ***************
  3140. *** 180,185 ****
  3141. --- 180,188 ----
  3142.         mask &= ~ (1 << (15 - FRAME_POINTER_REGNUM));
  3143.         num_saved_regs--;
  3144.       }
  3145. + #ifdef PROLOGUE_EXTRA_SAVE
  3146. +   PROLOGUE_EXTRA_SAVE (mask);
  3147. + #endif
  3148.   
  3149.   #if NEED_PROBE
  3150.     fprintf (stream, "\ttstl sp@(%d)\n", NEED_PROBE - num_saved_regs * 4);
  3151. ***************
  3152. *** 213,219 ****
  3153.         asm_fprintf (stream, "\tmoveml %0I0x%x,%Rsp@-\n", mask);
  3154.   #endif
  3155.       }
  3156. !   if (flag_pic && current_function_uses_pic_offset_table)
  3157.       {
  3158.   #ifdef MOTOROLA
  3159.         asm_fprintf (stream, "\t%Omove.l %0I__GLOBAL_OFFSET_TABLE_, %s\n",
  3160. --- 216,222 ----
  3161.         asm_fprintf (stream, "\tmoveml %0I0x%x,%Rsp@-\n", mask);
  3162.   #endif
  3163.       }
  3164. !   if (flag_pic && (flag_pic < 3) && current_function_uses_pic_offset_table)
  3165.       {
  3166.   #ifdef MOTOROLA
  3167.         asm_fprintf (stream, "\t%Omove.l %0I__GLOBAL_OFFSET_TABLE_, %s\n",
  3168. ***************
  3169. *** 281,286 ****
  3170. --- 284,292 ----
  3171.         /* Output just a no-op so that debuggers don't get confused
  3172.        about which function the pc is in at this address.  */
  3173.         asm_fprintf (stream, "\tnop\n");
  3174. + #ifdef EPILOGUE_EXTRA_BARRIER_KLUDGE
  3175. +       EPILOGUE_EXTRA_BARRIER_KLUDGE(stream);
  3176. + #endif
  3177.         return;
  3178.       }
  3179.   
  3180. ***************
  3181. *** 311,316 ****
  3182. --- 317,325 ----
  3183.           nregs++;
  3184.       mask |= 1 << regno;
  3185.         }
  3186. + #ifdef EPILOGUE_EXTRA_RESTORE
  3187. +   EPILOGUE_EXTRA_RESTORE(mask, nregs);
  3188. + #endif
  3189.     offset = foffset + nregs * 4;
  3190.     if (offset + fsize >= 0x8000
  3191.         && frame_pointer_needed
  3192. ***************
  3193. *** 513,518 ****
  3194. --- 522,530 ----
  3195.   #endif
  3196.       }
  3197.       }
  3198. + #ifdef EPILOGUE_EXTRA_TEST
  3199. +   EPILOGUE_EXTRA_TEST(stream);
  3200. + #endif
  3201.     if (current_function_pops_args)
  3202.       asm_fprintf (stream, "\trtd %0I%d\n", current_function_pops_args);
  3203.     else
  3204. ***************
  3205. *** 803,817 ****
  3206.     /* First handle a simple SYMBOL_REF or LABEL_REF */
  3207.     if (GET_CODE (orig) == SYMBOL_REF || GET_CODE (orig) == LABEL_REF)
  3208.       {
  3209.         if (reg == 0)
  3210.       abort ();
  3211.   
  3212. !       pic_ref = gen_rtx (MEM, Pmode,
  3213. !              gen_rtx (PLUS, Pmode,
  3214. !                   pic_offset_table_rtx, orig));
  3215.         current_function_uses_pic_offset_table = 1;
  3216.         RTX_UNCHANGING_P (pic_ref) = 1;
  3217.         emit_move_insn (reg, pic_ref);
  3218.         return reg;
  3219.       }
  3220.     else if (GET_CODE (orig) == CONST)
  3221. --- 815,839 ----
  3222.     /* First handle a simple SYMBOL_REF or LABEL_REF */
  3223.     if (GET_CODE (orig) == SYMBOL_REF || GET_CODE (orig) == LABEL_REF)
  3224.       {
  3225. + #ifdef LEGITIMATE_BASEREL_OPERAND_P
  3226. +   if (LEGITIMATE_BASEREL_OPERAND_P (orig))
  3227. +     return orig;
  3228. + #endif
  3229.         if (reg == 0)
  3230.       abort ();
  3231.   
  3232. !       if (flag_pic >= 3)
  3233. !     pic_ref = gen_rtx (PLUS, Pmode, pic_offset_table_rtx, orig);
  3234. !       else
  3235. !         pic_ref = gen_rtx (MEM, Pmode,
  3236. !                gen_rtx (PLUS, Pmode,
  3237. !                     pic_offset_table_rtx, orig));
  3238.         current_function_uses_pic_offset_table = 1;
  3239.         RTX_UNCHANGING_P (pic_ref) = 1;
  3240.         emit_move_insn (reg, pic_ref);
  3241.         return reg;
  3242.       }
  3243.     else if (GET_CODE (orig) == CONST)
  3244. ***************
  3245. *** 840,845 ****
  3246. --- 862,868 ----
  3247.         pic_ref = gen_rtx (PLUS, Pmode, base, orig);
  3248.         /* Likewise, should we set special REG_NOTEs here?  */
  3249.       }
  3250.     return pic_ref;
  3251.   }
  3252.   
  3253. ***************
  3254. *** 1887,1892 ****
  3255. --- 1910,1919 ----
  3256.                 fprintf (file, ":w");
  3257.               if ((flag_pic == 2) && (breg == pic_offset_table_rtx))
  3258.                 fprintf (file, ":l");
  3259. +             if ((flag_pic == 3) && (breg == pic_offset_table_rtx))
  3260. +               fprintf (file, ":W");
  3261. +             if ((flag_pic == 4) && (breg == pic_offset_table_rtx))
  3262. +               fprintf (file, ":L");
  3263.             }
  3264.           if (addr != 0 && ireg != 0)
  3265.             {
  3266. diff -rc --new-file gcc-2.3.3-fsf/config/m68k.h gcc-2.3.3-amiga/config/m68k.h
  3267. *** gcc-2.3.3-fsf/config/m68k.h    Tue Nov 24 22:01:03 1992
  3268. --- gcc-2.3.3-amiga/config/m68k.h    Mon Nov 29 15:31:31 1993
  3269. ***************
  3270. *** 327,335 ****
  3271.   #ifndef SUPPORT_SUN_FPA
  3272.   
  3273.   #define CONDITIONAL_REGISTER_USAGE \
  3274. ! {                                               \
  3275. !   if (flag_pic)                                 \
  3276. !     fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1;    \
  3277.   }
  3278.   
  3279.   #else /* defined SUPPORT_SUN_FPA */
  3280. --- 327,338 ----
  3281.   #ifndef SUPPORT_SUN_FPA
  3282.   
  3283.   #define CONDITIONAL_REGISTER_USAGE \
  3284. ! {                                                \
  3285. !   if (flag_pic)                                  \
  3286. !     fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1;     \
  3287. !   /* prevent saving/restoring of the base reg */ \
  3288. !   if (flag_pic == 3)                 \
  3289. !     call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
  3290.   }
  3291.   
  3292.   #else /* defined SUPPORT_SUN_FPA */
  3293. diff -rc --new-file gcc-2.3.3-fsf/config/m68k.md gcc-2.3.3-amiga/config/m68k.md
  3294. *** gcc-2.3.3-fsf/config/m68k.md    Mon Nov 23 22:47:27 1992
  3295. --- gcc-2.3.3-amiga/config/m68k.md    Mon Nov 29 15:31:38 1993
  3296. ***************
  3297. *** 704,716 ****
  3298.   {
  3299.     if (flag_pic && symbolic_operand (operands[1], SImode)) 
  3300.       {
  3301. !       /* The source is an address which requires PIC relocation.  
  3302. !          Call legitimize_pic_address with the source, mode, and a relocation
  3303. !          register (a new pseudo, or the final destination if reload_in_progress
  3304. !          is set).   Then fall through normally */
  3305. !       extern rtx legitimize_pic_address();
  3306. !       rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode);
  3307. !       operands[1] = legitimize_pic_address (operands[1], SImode, temp);
  3308.       }
  3309.   }")
  3310.   
  3311. --- 704,721 ----
  3312.   {
  3313.     if (flag_pic && symbolic_operand (operands[1], SImode)) 
  3314.       {
  3315. ! #ifdef LEGITIMATE_BASEREL_OPERAND_P
  3316. !       if (flag_pic < 3 || !LEGITIMATE_BASEREL_OPERAND_P (operands[1]))
  3317. ! #endif
  3318. !       {
  3319. !         /* The source is an address which requires PIC relocation.  
  3320. !            Call legitimize_pic_address with the source, mode, and a relocation
  3321. !            register (a new pseudo, or the final destination if reload_in_progress
  3322. !            is set).   Then fall through normally */
  3323. !         extern rtx legitimize_pic_address();
  3324. !         rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode);
  3325. !         operands[1] = legitimize_pic_address (operands[1], SImode, temp);
  3326. !       }
  3327.       }
  3328.   }")
  3329.   
  3330. ***************
  3331. *** 1711,1718 ****
  3332.   
  3333.         /* These insns can result from reloads to access
  3334.        stack slots over 64k from the frame pointer.  */
  3335. !       if (GET_CODE (operands[2]) == CONST_INT
  3336. !       && INTVAL (operands[2]) + 0x8000 >= (unsigned) 0x10000)
  3337.           return \"move%.l %2,%0\;add%.l %1,%0\";
  3338.   #ifdef SGS
  3339.         if (GET_CODE (operands[2]) == REG)
  3340. --- 1716,1724 ----
  3341.   
  3342.         /* These insns can result from reloads to access
  3343.        stack slots over 64k from the frame pointer.  */
  3344. !       if (((GET_CODE (operands[2]) == CONST_INT
  3345. !        && INTVAL (operands[2]) + 0x8000 >= (unsigned) 0x10000))
  3346. !       || (flag_pic == 4 && operands[1] == pic_offset_table_rtx))
  3347.           return \"move%.l %2,%0\;add%.l %1,%0\";
  3348.   #ifdef SGS
  3349.         if (GET_CODE (operands[2]) == REG)
  3350. ***************
  3351. *** 4651,4657 ****
  3352.     ""
  3353.     "
  3354.   {
  3355. !   if (flag_pic && GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF)
  3356.       operands[0] = gen_rtx (MEM, GET_MODE (operands[0]),
  3357.                  force_reg (Pmode, XEXP (operands[0], 0)));
  3358.   }")
  3359. --- 4657,4663 ----
  3360.     ""
  3361.     "
  3362.   {
  3363. !   if (flag_pic && flag_pic < 3 && GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF)
  3364.       operands[0] = gen_rtx (MEM, GET_MODE (operands[0]),
  3365.                  force_reg (Pmode, XEXP (operands[0], 0)));
  3366.   }")
  3367. ***************
  3368. *** 4662,4668 ****
  3369.        (match_operand:SI 1 "general_operand" "g"))]
  3370.     ;; Operand 1 not really used on the m68000.
  3371.   
  3372. !   "! flag_pic"
  3373.     "*
  3374.   #ifdef MOTOROLA
  3375.     return \"jsr %0\";
  3376. --- 4668,4674 ----
  3377.        (match_operand:SI 1 "general_operand" "g"))]
  3378.     ;; Operand 1 not really used on the m68000.
  3379.   
  3380. !   "(! flag_pic || flag_pic >= 3)"
  3381.     "*
  3382.   #ifdef MOTOROLA
  3383.     return \"jsr %0\";
  3384. ***************
  3385. *** 4677,4683 ****
  3386.        (match_operand:SI 1 "general_operand" "g"))]
  3387.     ;; Operand 1 not really used on the m68000.
  3388.   
  3389. !   "flag_pic"
  3390.     "*
  3391.     return \"jsr %0\";
  3392.   ")
  3393. --- 4683,4689 ----
  3394.        (match_operand:SI 1 "general_operand" "g"))]
  3395.     ;; Operand 1 not really used on the m68000.
  3396.   
  3397. !   "(flag_pic && flag_pic < 3)"
  3398.     "*
  3399.     return \"jsr %0\";
  3400.   ")
  3401. ***************
  3402. *** 4693,4699 ****
  3403.     ""
  3404.     "
  3405.   {
  3406. !   if (flag_pic && GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF)
  3407.       operands[1] = gen_rtx (MEM, GET_MODE (operands[1]),
  3408.                  force_reg (Pmode, XEXP (operands[1], 0)));
  3409.   }")
  3410. --- 4699,4705 ----
  3411.     ""
  3412.     "
  3413.   {
  3414. !   if (flag_pic && flag_pic < 3 && GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF)
  3415.       operands[1] = gen_rtx (MEM, GET_MODE (operands[1]),
  3416.                  force_reg (Pmode, XEXP (operands[1], 0)));
  3417.   }")
  3418. ***************
  3419. *** 4704,4710 ****
  3420.       (call (match_operand:QI 1 "memory_operand" "o")
  3421.             (match_operand:SI 2 "general_operand" "g")))]
  3422.     ;; Operand 2 not really used on the m68000.
  3423. !   "! flag_pic"
  3424.     "*
  3425.   #ifdef MOTOROLA
  3426.     return \"jsr %1\";
  3427. --- 4710,4716 ----
  3428.       (call (match_operand:QI 1 "memory_operand" "o")
  3429.             (match_operand:SI 2 "general_operand" "g")))]
  3430.     ;; Operand 2 not really used on the m68000.
  3431. !   "(! flag_pic || flag_pic >= 3)"
  3432.     "*
  3433.   #ifdef MOTOROLA
  3434.     return \"jsr %1\";
  3435. ***************
  3436. *** 4719,4725 ****
  3437.       (call (match_operand:QI 1 "memory_operand" "o")
  3438.             (match_operand:SI 2 "general_operand" "g")))]
  3439.     ;; Operand 2 not really used on the m68000.
  3440. !   "flag_pic"
  3441.     "*
  3442.     return \"jsr %1\";
  3443.   ")
  3444. --- 4725,4731 ----
  3445.       (call (match_operand:QI 1 "memory_operand" "o")
  3446.             (match_operand:SI 2 "general_operand" "g")))]
  3447.     ;; Operand 2 not really used on the m68000.
  3448. !   "(flag_pic && flag_pic < 3)"
  3449.     "*
  3450.     return \"jsr %1\";
  3451.   ")
  3452. diff -rc --new-file gcc-2.3.3-fsf/config/t-amigados gcc-2.3.3-amiga/config/t-amigados
  3453. *** gcc-2.3.3-fsf/config/t-amigados    Thu Jan  1 00:00:00 1970
  3454. --- gcc-2.3.3-amiga/config/t-amigados    Sat Feb  5 14:15:26 1994
  3455. ***************
  3456. *** 0 ****
  3457. --- 1,180 ----
  3458. + # Makefile fragment for amigados target.
  3459. + # We generate two additional things:
  3460. + #
  3461. + # libb/libgcc.a
  3462. + #    A base relative version of libgcc.a which is used when compiling and
  3463. + #    linking with the '-resident' option.
  3464. + #
  3465. + # xgccv
  3466. + #    A forking gcc instead of one calling ssytem(). This makes it less
  3467. + #    system conformant (can't ^C it when started from make), while
  3468. + #    providing increased functionality (-pipe option).
  3469. + # Use the vfork'ing version of gcc by default, so that the -pipe option can
  3470. + # get tested.  To use the regular version just do "make XGCC=gcc".
  3471. + XGCC = xgccv -pipe
  3472. + GCC_FOR_TARGET = ./$(XGCC) -B./
  3473. + # Build residentable versions of the gcc executables by default.  Use
  3474. + # "make RESIDENT=" to build non-residentable versions.
  3475. + RESIDENT = -resident
  3476. + # The standard additional target flags for the compiler.
  3477. + T_CFLAGS = $(RESIDENT)
  3478. + # Allow the user to override the default target optimizations with gcc, or
  3479. + # if the target compiler is not gcc and doesn't understand -O<N>.
  3480. + T_OPTIMISE = -O2
  3481. + # Each compilation environment (Manx, Dice, GCC, SAS/C, etc) provides its
  3482. + # own equivalent of the UNIX /usr/include tree.  For gcc, the standard
  3483. + # headers are in /gnu/include and system specific headers are in
  3484. + # /gnu/os-include.  Use these paths for fixincludes.
  3485. + SYSTEM_HEADER_DIR = /gnu/include
  3486. + OTHER_FIXINCLUDES_DIRS = /gnu/os-include
  3487. + # We don't need a libgcc1, it's all in ixemul.library
  3488. + LIBGCC1 = libgcc1.null
  3489. + # Flags to use when compiling the normal version of libgcc.a.
  3490. + # Don't compile with debugging, as long as there is no debugger.
  3491. + # Explicitly leave out the -resident compilation flag and don't use T_CFLAGS.
  3492. + LIBGCC2_CFLAGS = $(T_OPTIMIZE) $(INTERNAL_CFLAGS) $(X_CFLAGS) $(CFLAGS) \
  3493. +           $(CROSS_GCC_CFLAGS)
  3494. + # Flags to use when compiling the base relative version of libgcc.a.
  3495. + # Don't compile with debugging, as long as there is no debugger.
  3496. + # Explicitly force -resident in the compilation flags and don't use T_CFLAGS.
  3497. + LIBBGCC2_CFLAGS = $(T_OPTIMIZE) $(INTERNAL_CFLAGS) $(X_CFLAGS) $(CFLAGS) \
  3498. +           $(CROSS_GCC_CFLAGS) -resident
  3499. + # Build the base relative library.
  3500. + # It is later copied into /gnu/lib/gcc-lib/amigados/<version>/libb/libgcc.a,
  3501. + # whereas libgcc.a is copied into /gnu/lib/gcc-lib/amigados/<version>/libgcc.a.
  3502. + # It doesn't work very well to define one of the EXTRA_* macros to contain
  3503. + # libb/libgcc.a, particularly for doing "make stageN" or "make install".
  3504. + GCC_PARTS=$(GCC_PASSES) libgcc.a libb/libgcc.a $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
  3505. + INSTALL_EXTRA_PARTS = install-libbgcc install-gccv
  3506. + # This includes the knowledge that target amigados doesn't need libgcc1.a
  3507. + libb/libgcc.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(LIB2FUNCS_EXTRA) \
  3508. +    longlong.h gbl-ctors.h config.status
  3509. + # Actually build it in tmplibbgcc.a, then rename at end,
  3510. + # so that libb/libgcc.a itself remains nonexistent if compilation is aborted.
  3511. +     -rm -f tmplibbgcc.a
  3512. + # -e causes any failing command to make this rule fail.
  3513. + # -e doesn't work in certain shells, so we test $$? as well.
  3514. +     set -e; \
  3515. +     for name in $(LIB2FUNCS); \
  3516. +     do \
  3517. +       echo $${name}; \
  3518. +       $(GCC_FOR_TARGET) $(LIBBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
  3519. +           $(srcdir)/libgcc2.c -o $${name}.o; \
  3520. +       if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  3521. +       $(AR) $(AR_FLAGS) tmplibbgcc.a $${name}.o; \
  3522. +       rm -f $${name}.o; \
  3523. +     done
  3524. + # Some shells crash when a loop has no items.
  3525. + # So make sure there is always at least one--`..'.
  3526. + # Then ignore it.
  3527. + # We don't use -e here because there are if statements
  3528. + # that should not make the command give up when the if condition is false.
  3529. + # Instead, we test for failure after each command where it matters.
  3530. +     -for file in .. $(LIB2FUNCS_EXTRA); \
  3531. +     do \
  3532. +       if [ x$${file} != x.. ]; then \
  3533. +         name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
  3534. +         echo $${name}; \
  3535. +         if [ $${name}.asm = $${file} ]; then \
  3536. +           cp $${file} $${name}.s; file=$${name}.s; \
  3537. +           if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  3538. +         else true; fi; \
  3539. +         $(GCC_FOR_TARGET) $(LIBBGCC2_CFLAGS) $(INCLUDES) -c $${file}; \
  3540. +         if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
  3541. +         $(AR) $(AR_FLAGS) tmplibbgcc.a $${name}.o; \
  3542. +         rm -f $${name}.[so]; \
  3543. +       else true; \
  3544. +       fi; \
  3545. +     done
  3546. +     -if $(RANLIB_TEST) ; then $(RANLIB) tmplibbgcc.a; else true; fi
  3547. +     -if [ -d libb ] ; then true ; else mkdir libb ; fi
  3548. +     mv tmplibbgcc.a libb/libgcc.a
  3549. + install-libbgcc: libb/libgcc.a install-dir
  3550. +     -if [ -d $(libsubdir)/libb ] ; then true ; else mkdir $(libsubdir)/libb ; fi
  3551. +     -if [ -f libb/libgcc.a ] ; then \
  3552. +       rm -f $(libsubdir)/libb/libgcc.a; \
  3553. +       $(INSTALL_DATA) libb/libgcc.a $(libsubdir)/libb/libgcc.a; \
  3554. +       if $(RANLIB_TEST) ; then \
  3555. +         (cd $(libsubdir)/libb; $(RANLIB) libgcc.a); else true; fi; \
  3556. +       chmod a-x $(libsubdir)/libb/libgcc.a; \
  3557. +     else true; fi
  3558. +     
  3559. + # The default gcc (xgcc) is built without -DAMIGADOS_FORK_GCC. This gcc (xgccv)
  3560. + # is built with AMIGADOS_FORK_GCC defined, so that it can use '-pipe'.  We
  3561. + # don't want to define EXTRA_PASSES to xgccv because that will cause xgccv
  3562. + # to be installed in $(libsubdir), so instead we use the default GCC_PASSES
  3563. + # and add xgccv to it.
  3564. + GCC_PASSES = xgcc xgccv cc1 cpp $(EXTRA_PASSES)
  3565. + xgccv: xgccv.o version.o $(LIBDEPS)
  3566. +     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgccv xgccv.o version.o $(LIBS)
  3567. + xgccv.o: gcc.c $(CONFIG_H) gvarargs.h obstack.h
  3568. +     $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  3569. +   -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
  3570. +   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
  3571. +   -DDEFAULT_TARGET_MACHINE=\"$(target)\" \
  3572. +   -DTOOLDIR=\"$(tooldir)/\" \
  3573. +   -DAMIGADOS_FORK_GCC \
  3574. +   -c `echo $(srcdir)/gcc.c | sed 's,^\./,,'` -o xgccv.o
  3575. + install-gccv: xgccv
  3576. +     rm -f $(bindir)/gccv
  3577. +     $(INSTALL_PROGRAM) xgccv $(bindir)/gccv
  3578. + # When making one of the stage<N> dirs, we need to make a libb subdir for
  3579. + # it, and copy libbgcc.a there as libgcc.a.
  3580. + EXTRA_STAGE1_TARGETS = stage1-libb
  3581. + EXTRA_STAGE2_TARGETS = stage2-libb
  3582. + EXTRA_STAGE3_TARGETS = stage3-libb
  3583. + EXTRA_STAGE4_TARGETS = stage4-libb
  3584. + stage1-libb:
  3585. +     -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
  3586. +     -if [ -d stage1/libb ] ; then true ; else mkdir stage1/libb ; fi
  3587. +     -cp libb/libgcc.a stage1/libb/libgcc.a
  3588. +     -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libb/libgcc.a; else true; fi
  3589. + stage2-libb:
  3590. +     -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
  3591. +     -if [ -d stage2/libb ] ; then true ; else mkdir stage2/libb ; fi
  3592. +     -cp libb/libgcc.a stage2/libb/libgcc.a
  3593. +     -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libb/libgcc.a; else true; fi
  3594. + stage3-libb:
  3595. +     -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
  3596. +     -if [ -d stage3/libb ] ; then true ; else mkdir stage3/libb ; fi
  3597. +     -cp libb/libgcc.a stage3/libb/libgcc.a
  3598. +     -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libb/libgcc.a; else true; fi
  3599. + stage4-libb:
  3600. +     -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
  3601. +     -if [ -d stage4/libb ] ; then true ; else mkdir stage4/libb ; fi
  3602. +     -cp libb/libgcc.a stage4/libb/libgcc.a
  3603. +     -if $(RANLIB_TEST) ; then $(RANLIB) stage4/libb/libgcc.a; else true; fi
  3604. diff -rc --new-file gcc-2.3.3-fsf/config/x-amigados gcc-2.3.3-amiga/config/x-amigados
  3605. *** gcc-2.3.3-fsf/config/x-amigados    Thu Jan  1 00:00:00 1970
  3606. --- gcc-2.3.3-amiga/config/x-amigados    Mon Nov 29 15:31:46 1993
  3607. ***************
  3608. *** 0 ****
  3609. --- 1,36 ----
  3610. + # Note: It doesn't do any good to try to define prefix or local_prefix
  3611. + # in the host overrides because configure will just change them back.
  3612. + # You either have to give an appropriate option to configure or live with
  3613. + # an Amiga specific patch to configure.  See the note in configure.  -fnf
  3614. + # Building under amigados almost certainly requires an already working gcc.
  3615. + # Use gccv, which is a gcc compiled with AMIGADOS_FORK_GCC so "-pipe" will
  3616. + # work and get exercised.  To bootstrap with the regular gcc just do
  3617. + # "make CC=gcc"
  3618. + CC = gccv -pipe
  3619. + # Allow the user to override the default host optimization with gcc, or if the
  3620. + # host compiler is not gcc and doesn't understand -O<N>.
  3621. + X_OPTIMIZE = -O2
  3622. + # The standard additional host flags for the compiler.
  3623. + X_CFLAGS = $(X_OPTIMIZE)
  3624. + # Man pages get a wierd suffix...
  3625. + manext = .0
  3626. + # We really shouldn't specify CFLAGS from here, but there's no other way
  3627. + # to get rid of the `-g' indoctrinated by Makefile.in.  Note this becomes
  3628. + # part of both the host compilation CFLAGS and the target compilation
  3629. + # CFLAGS.
  3630. + CFLAGS =
  3631. + # Ranlib does exist, but may not be in a path where the default RANLIB_TEST
  3632. + # expects it, so just force it to true.
  3633. + RANLIB_TEST = true
  3634. diff -rc --new-file gcc-2.3.3-fsf/config/xm-amigados.h gcc-2.3.3-amiga/config/xm-amigados.h
  3635. *** gcc-2.3.3-fsf/config/xm-amigados.h    Thu Jan  1 00:00:00 1970
  3636. --- gcc-2.3.3-amiga/config/xm-amigados.h    Sat Feb  5 14:01:29 1994
  3637. ***************
  3638. *** 0 ****
  3639. --- 1,215 ----
  3640. + /* Configuration for GNU C-compiler for Commodore Amiga, running AmigaDOS.
  3641. +    Copyright (C) 1992 Free Software Foundation, Inc.
  3642. +    Contributed by Markus M. Wild (wild@amiga.physik.unizh.ch).
  3643. + This file is part of GNU CC.
  3644. + GNU CC is free software; you can redistribute it and/or modify
  3645. + it under the terms of the GNU General Public License as published by
  3646. + the Free Software Foundation; either version 2, or (at your option)
  3647. + any later version.
  3648. + GNU CC is distributed in the hope that it will be useful,
  3649. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  3650. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  3651. + GNU General Public License for more details.
  3652. + You should have received a copy of the GNU General Public License
  3653. + along with GNU CC; see the file COPYING.  If not, write to
  3654. + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  3655. + /* first include the generic header, then modify some parts.. */
  3656. + #include "xm-m68k.h"
  3657. + /* Amiga specific headers, such as from the Native Developer Update kits,
  3658. +    go in SYSTEM_INCLUDE_DIR.  STANDARD_INCLUDE_DIR is the equivalent of
  3659. +    Unix "/usr/include".  All other include paths are set in Makefile. */
  3660. + #define SYSTEM_INCLUDE_DIR    "/gnu/os-include"
  3661. + #define STANDARD_INCLUDE_DIR    "/gnu/include"
  3662. + /* Fork one piped subcommand.  SEARCH_FLAG is the system call to use
  3663. +    (either execv or execvp).  ARGV is the arg vector to use.
  3664. +    NOT_LAST is nonzero if this is not the last subcommand
  3665. +    (i.e. its output should be piped to the next one.)  */
  3666. + #ifndef AMIGADOS_FORK_GCC
  3667. + /* This version uses a more or less amigados-conformant way of running a
  3668. +    program (in the context of the parent). If you want to use -pipe however,
  3669. +    you'll have to use the vfork() version afterwards. */
  3670. + #define PEXECUTE(SEARCH_FLAG,PROGRAM,ARGV,NOT_LAST) \
  3671. + ({char *_argline;                        \
  3672. +   int _arglinelength, _i;                    \
  3673. +                                 \
  3674. +   for (_i = 1, _arglinelength=0; ARGV[_i]; ++_i)        \
  3675. +     _arglinelength += strlen(ARGV[_i]) + 1;            \
  3676. +                                 \
  3677. +   _arglinelength += strlen(PROGRAM) + 1;            \
  3678. +                                 \
  3679. +   if (!(_argline = (char *)alloca(_arglinelength)))         \
  3680. +     pfatal_with_name ("alloca");                \
  3681. +                                 \
  3682. +   strcpy(_argline, PROGRAM);                    \
  3683. +   for (_i = 1; ARGV[_i]; ++_i)                     \
  3684. +     {                                \
  3685. +       strcat(_argline, " ");                    \
  3686. +       strcat(_argline, ARGV[_i]);                \
  3687. +     }                                \
  3688. +                                 \
  3689. +   ssystem(_argline); })                        \
  3690. + #define PEXECUTE_RESULT(STATUS, COMMAND) \
  3691. +   ({ STATUS = COMMAND.pid; })
  3692. + #else
  3693. + /* the vfork() version. This one has the drawback, that gcc is not 
  3694. +    interruptible when started from make, since ixemul.library doesn't yet
  3695. +    propagate ^C to subprocesses. */
  3696. + #define PEXECUTE(SEARCH_FLAG,PROGRAM,ARGV,NOT_LAST) \
  3697. + ({int (*_func)() = (SEARCH_FLAG ? execv : execvp);            \
  3698. +   int _pid;                                \
  3699. +   int _pdes[2];                                \
  3700. +   int _input_desc = last_pipe_input;                    \
  3701. +   int _output_desc = STDOUT_FILE_NO;                    \
  3702. +   int _retries, _sleep_interval, _result;                \
  3703. +                                     \
  3704. +   /* If this isn't the last process, make a pipe for its output,    \
  3705. +      and record it as waiting to be the input to the next process.  */    \
  3706. +                                     \
  3707. +   if (NOT_LAST)                                \
  3708. +     {                                    \
  3709. +       if (pipe (_pdes) < 0)                        \
  3710. +     pfatal_with_name ("pipe");                    \
  3711. +       _output_desc = _pdes[WRITE_PORT];                    \
  3712. +       last_pipe_input = _pdes[READ_PORT];                \
  3713. +     }                                    \
  3714. +   else                                    \
  3715. +     last_pipe_input = STDIN_FILE_NO;                    \
  3716. +                                     \
  3717. +   /* Fork a subprocess; wait and retry if it fails.  */            \
  3718. +   _sleep_interval = 1;                            \
  3719. +   for (_retries = 0; _retries < 4; _retries++)                \
  3720. +     {                                    \
  3721. +       _pid = vfork ();                            \
  3722. +       if (_pid >= 0)                            \
  3723. +     break;                                \
  3724. +       sleep (_sleep_interval);                        \
  3725. +       _sleep_interval *= 2;                        \
  3726. +     }                                    \
  3727. +                                     \
  3728. +   switch (_pid)                                \
  3729. +     {                                    \
  3730. +     case -1:                                \
  3731. +       pfatal_with_name ("vfork");                    \
  3732. +       /* NOTREACHED */                            \
  3733. +       _result = 0;                            \
  3734. +       break;                                \
  3735. +                                     \
  3736. +     case 0: /* child */                            \
  3737. +       /* Move the input and output pipes into place, if nec.  */    \
  3738. +       if (_input_desc != STDIN_FILE_NO)                    \
  3739. +     {                                \
  3740. +       close (STDIN_FILE_NO);                    \
  3741. +       dup (_input_desc);                        \
  3742. +       close (_input_desc);                        \
  3743. +     }                                \
  3744. +       if (_output_desc != STDOUT_FILE_NO)                \
  3745. +     {                                \
  3746. +       close (STDOUT_FILE_NO);                    \
  3747. +       dup (_output_desc);                        \
  3748. +       close (_output_desc);                        \
  3749. +     }                                \
  3750. +                                     \
  3751. +       /* Close the parent's descs that aren't wanted here.  */        \
  3752. +       if (last_pipe_input != STDIN_FILE_NO)                \
  3753. +     close (last_pipe_input);                    \
  3754. +                                     \
  3755. +       /* Exec the program.  */                        \
  3756. +       (*_func) (PROGRAM, ARGV);                        \
  3757. +       perror_exec (PROGRAM);                        \
  3758. +       exit (-1);                            \
  3759. +       /* NOTREACHED */                            \
  3760. +       _result = 0;                            \
  3761. +       break;                                \
  3762. +                                     \
  3763. +     default:                                \
  3764. +       /* In the parent, after forking.                    \
  3765. +      Close the descriptors that we made for this child.  */        \
  3766. +       if (_input_desc != STDIN_FILE_NO)                    \
  3767. +     close (_input_desc);                        \
  3768. +       if (_output_desc != STDOUT_FILE_NO)                \
  3769. +     close (_output_desc);                        \
  3770. +                                     \
  3771. +       /* Return child's process number.  */                \
  3772. +       _result = _pid;                            \
  3773. +       break;                                \
  3774. +     }                                     \
  3775. + _result; })                                \
  3776. + #define PEXECUTE_RESULT(STATUS, COMMAND) \
  3777. +   ({ wait (& STATUS); })
  3778. + #endif /* AMIGADOS_FORK_GCC */
  3779. + /* the following macros are stolen more or less from xm-vms.h ... */
  3780. + /* This macro is used to help compare filenames in cp-lex.c.
  3781. +    We also need to make sure that the names are all lower case, because
  3782. +    we must be able to compare filenames to determine if a file implements
  3783. +    a class.  */
  3784. + #define FILE_NAME_NONDIRECTORY(C)                \
  3785. + ({                                \
  3786. +    extern char *rindex();                    \
  3787. +    char * pnt_ = (C), * pnt1_;                    \
  3788. +    pnt1_ = pnt_ - 1;                        \
  3789. +    while (*++pnt1_)                        \
  3790. +      if ((*pnt1_ >= 'A' && *pnt1_ <= 'Z')) *pnt1_ |= 0x20;    \
  3791. +    pnt1_ = rindex (pnt_, '/');                     \
  3792. +    pnt1_ = (pnt1_ == 0 ? rindex (pnt_, ':') : pnt1_);        \
  3793. +    (pnt1_ == 0 ? pnt_ : pnt1_ + 1);                \
  3794. +  })
  3795. + /* Macro to generate the name of the cross reference file.  The standard
  3796. +    one does not work, since it was written assuming that the conventions
  3797. +    of a unix style filesystem will work on the host system.
  3798. +  
  3799. +    Contrary to VMS, I'm using the original unix filename, there's no reason
  3800. +    not to use this under AmigaDOS. */
  3801. + #define XREF_FILE_NAME(BUFF, NAME)    \
  3802. +   s = FILE_NAME_NONDIRECTORY (NAME);            \
  3803. +   if (s == NAME) sprintf(BUFF, ".%s.gxref", NAME);    \
  3804. +   else {                        \
  3805. +     unsigned char ch = *s; /* could be Latin1 char.. */    \
  3806. +     /* temporary: cut the filename from the directory */\
  3807. +     *s = 0;                        \
  3808. +     sprintf (BUFF, "%s.%c%s.gxref", NAME, ch, s+1);    \
  3809. +     /* and restore the filename */            \
  3810. +     *s = ch;                        \
  3811. +   }                            \
  3812. + /* Macro that is used in cp-xref.c to determine whether a file name is
  3813. +    absolute or not.
  3814. +    This checks for both, '/' as first character, since we're running under
  3815. +    ixemul.library which provides for this unix'ism, and for the usual 
  3816. +    logical-terminator, ':', somewhere in the filename. */
  3817. + #define FILE_NAME_ABSOLUTE_P(NAME) (NAME[0] == '/' || index(NAME, ':'))
  3818. + /* the colon conflicts with the name space of logicals */
  3819. + #define PATH_SEPARATOR ','
  3820. + /* AmigaDOS handles rename(2) *much* better than any link(2)/unlink(2)
  3821. +    hacks. It's actually the inverse case as on Unix. rename(2) was always
  3822. +    there, link(2) is new with OS 2.0 */
  3823. + #define HAVE_rename 1
  3824. diff -rc --new-file gcc-2.3.3-fsf/configure gcc-2.3.3-amiga/configure
  3825. *** gcc-2.3.3-fsf/configure    Mon Dec 21 07:58:23 1992
  3826. --- gcc-2.3.3-amiga/configure    Sat Feb  5 14:04:47 1994
  3827. ***************
  3828. *** 28,33 ****
  3829. --- 28,34 ----
  3830.   #       --build=TARGET    specifies configuration of machine you are
  3831.   #                using to compile GCC.
  3832.   #       --prefix=DIR        specifies directory to install in.
  3833. + #       --local-prefix=DIR    specifies directory to put local ./include in.
  3834.   #       --exec-prefix=DIR    specifies directory to install executables in.
  3835.   #       --with-gnu-ld    arrange to work with GNU ld.
  3836.   #       --with-gnu-as    arrange to work with GAS.
  3837. ***************
  3838. *** 52,65 ****
  3839.   
  3840.   host=
  3841.   
  3842. ! # Default prefix to /usr/local.
  3843. ! prefix=/usr/local
  3844.   # Default is to let the Makefile set exec_prefix from $(prefix)
  3845.   exec_prefix='$(prefix)'
  3846.   
  3847.   remove=rm
  3848. ! hard_link=ln
  3849. ! symbolic_link='ln -s'
  3850.   copy=cp
  3851.   
  3852.   # Record all the arguments, to write them in config.status.
  3853. --- 53,79 ----
  3854.   
  3855.   host=
  3856.   
  3857. ! # Note:  For AmigaDOS we want this to default to /gnu unless we specify
  3858. ! # otherwise to configure.  Changing it in Makefile.in or config/m68k/x-amigados
  3859. ! # is ineffective since configure will always change them back in the final
  3860. ! # generated Makefile, so we have to go to the root of the problem, which is
  3861. ! # here.  -fnf
  3862. ! # Default prefix to /gnu.
  3863. ! prefix=/gnu
  3864. ! # local_prefix specifies where to find the directory /usr/local/include
  3865. ! # We don't use $(prefix) for this
  3866. ! # because we always want GCC to search /usr/local/include
  3867. ! # even if GCC is installed somewhere other than /usr/local.
  3868. ! # Think THREE TIMES before specifying any other value for this!
  3869. ! # DO NOT make this use $prefix!
  3870. ! # Note:  See AmigaDOS note above for this AmigaDOS specific change.  -fnf
  3871. ! local_prefix=/local
  3872.   # Default is to let the Makefile set exec_prefix from $(prefix)
  3873.   exec_prefix='$(prefix)'
  3874.   
  3875.   remove=rm
  3876. ! hard_link=cp
  3877. ! symbolic_link=cp
  3878.   copy=cp
  3879.   
  3880.   # Record all the arguments, to write them in config.status.
  3881. ***************
  3882. *** 97,102 ****
  3883. --- 111,120 ----
  3884.       prefix=$arg
  3885.       next_arg=
  3886.       ;;
  3887. +   --local-prefix)
  3888. +     local_prefix=$arg
  3889. +     next_arg=
  3890. +     ;;
  3891.     --exec-prefix)
  3892.       exec_prefix=$arg
  3893.       next_arg=
  3894. ***************
  3895. *** 133,138 ****
  3896. --- 151,165 ----
  3897.        -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  3898.       prefix=`echo $arg | sed 's/-*p[a-z]*=//'`
  3899.       ;;
  3900. +      -local-prefix | --local-prefix | --local-prefi | --local-pref | --local-pre \
  3901. +     | --local-pr | --local-p | --local- | --local | --loc | --lo | --l)
  3902. +     next_arg=--local-prefix
  3903. +     ;;
  3904. +      -local-prefix=* | --local-prefix=* | --local-prefi=* | --local-pref=* \
  3905. +     | --local-pre=* | --local-pr=* | --local-p=* | --local-=* | --local=* \
  3906. +     | --loc=* | --lo=* | --l=*)
  3907. +     local_prefix=`echo $arg | sed 's/-*l[-a-z]*=//'`
  3908. +     ;;
  3909.        -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \
  3910.       | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  3911.       next_arg=--exec-prefix
  3912. ***************
  3913. *** 185,191 ****
  3914.           srcdir=..
  3915.       fi
  3916.   fi
  3917.   if [ ! -r ${srcdir}/tree.c ]
  3918.   then
  3919.       if [ x$srcdirdefaulted = x ]
  3920. --- 212,218 ----
  3921.           srcdir=..
  3922.       fi
  3923.   fi
  3924. ! srcdir=../gcc-2.3.3-amiga    #Hack
  3925.   if [ ! -r ${srcdir}/tree.c ]
  3926.   then
  3927.       if [ x$srcdirdefaulted = x ]
  3928. ***************
  3929. *** 210,216 ****
  3930.   
  3931.       echo "\
  3932.   Usage: `basename $progname` [--host=HOST] [--build=BUILD]
  3933. !        [--prefix=DIR] [--exec-pref=DIR]
  3934.          [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--nfp] TARGET" 1>&2
  3935.       echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
  3936.       if [ -r config.status ]
  3937. --- 237,243 ----
  3938.   
  3939.       echo "\
  3940.   Usage: `basename $progname` [--host=HOST] [--build=BUILD]
  3941. !        [--prefix=DIR] [--local-pref=DIR] [--exec-pref=DIR]
  3942.          [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--nfp] TARGET" 1>&2
  3943.       echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
  3944.       if [ -r config.status ]
  3945. ***************
  3946. *** 476,481 ****
  3947. --- 503,515 ----
  3948.           fixincludes=fixinc.svr4
  3949.           broken_install=yes
  3950.           ;;
  3951. +     m68k-*-amigados)
  3952. +         xm_file=xm-amigados.h
  3953. +         out_file=amigados.c
  3954. +         tm_file=amigados.h
  3955. +         tmake_file=t-amigados
  3956. +         xmake_file=x-amigados
  3957. +         ;;
  3958.       m68k-cbm-sysv4*)        # Commodore variant of V.4.
  3959.           tm_file=amix.h
  3960.           xm_file=xm-amix.h
  3961. ***************
  3962. *** 1272,1284 ****
  3963.   
  3964.   # Remove all formfeeds, since some Makes get confused by them.
  3965.   # Also arrange to give the variables `target', `host_xmake_file',
  3966. ! # `tmake_file', `prefix', `exec_prefix' and `FIXINCLUDES'
  3967.   # values in the Makefile from the values they have in this script.
  3968.   rm -f Makefile.xx
  3969.   sed -e "s/ //" -e "s/^target=.*$/target=${target}/" \
  3970.       -e "s|^xmake_file=.*$|xmake_file=${host_xmake_file}|" \
  3971.       -e "s|^tmake_file=.*$|tmake_file=${tmake_file}|" \
  3972.       -e "s|^prefix[     ]*=.*|prefix = $prefix|" \
  3973.       -e "s|^exec_prefix[     ]*=.*|exec_prefix = $exec_prefix|" \
  3974.       -e "s|^FIXINCLUDES[     ]*=.*|FIXINCLUDES = $fixincludes|" \
  3975.       Makefile.tem > Makefile.xx
  3976. --- 1306,1319 ----
  3977.   
  3978.   # Remove all formfeeds, since some Makes get confused by them.
  3979.   # Also arrange to give the variables `target', `host_xmake_file',
  3980. ! # `tmake_file', `prefix', `local_prefix', `exec_prefix', `FIXINCLUDES'
  3981.   # values in the Makefile from the values they have in this script.
  3982.   rm -f Makefile.xx
  3983.   sed -e "s/ //" -e "s/^target=.*$/target=${target}/" \
  3984.       -e "s|^xmake_file=.*$|xmake_file=${host_xmake_file}|" \
  3985.       -e "s|^tmake_file=.*$|tmake_file=${tmake_file}|" \
  3986.       -e "s|^prefix[     ]*=.*|prefix = $prefix|" \
  3987. +     -e "s|^local_prefix[     ]*=.*|local_prefix = $local_prefix|" \
  3988.       -e "s|^exec_prefix[     ]*=.*|exec_prefix = $exec_prefix|" \
  3989.       -e "s|^FIXINCLUDES[     ]*=.*|FIXINCLUDES = $fixincludes|" \
  3990.       Makefile.tem > Makefile.xx
  3991. diff -rc --new-file gcc-2.3.3-fsf/expr.c gcc-2.3.3-amiga/expr.c
  3992. *** gcc-2.3.3-fsf/expr.c    Sun Dec 20 07:16:15 1992
  3993. --- gcc-2.3.3-amiga/expr.c    Mon Nov 29 15:32:03 1993
  3994. ***************
  3995. *** 1977,1982 ****
  3996. --- 1977,1988 ----
  3997.   
  3998.     argvec = (struct arg *) alloca (nargs * sizeof (struct arg));
  3999.   
  4000. + /* how would you do this RIGHT ?? fake a DECL node? dunno... */
  4001. + #ifdef ENCODE_SECTION_INFO
  4002. +   /* mark it as a function (to be in the text section that is) */
  4003. +   SYMBOL_REF_FLAG (fun) = 1;
  4004. + #endif
  4005.     INIT_CUMULATIVE_ARGS (args_so_far, (tree)0, fun);
  4006.   
  4007.     args_size.constant = 0;
  4008. diff -rc --new-file gcc-2.3.3-fsf/gcc.c gcc-2.3.3-amiga/gcc.c
  4009. *** gcc-2.3.3-fsf/gcc.c    Tue Dec  8 13:32:53 1992
  4010. --- gcc-2.3.3-amiga/gcc.c    Sat Feb  5 14:30:53 1994
  4011. ***************
  4012. *** 104,110 ****
  4013. --- 104,114 ----
  4014.   extern char *getenv ();
  4015.   
  4016.   extern int errno, sys_nerr;
  4017. + #ifndef HAVE_STRERROR
  4018. + /* provide a cheap strerror() emulator for those that don't have it */
  4019.   extern char *sys_errlist[];
  4020. + #define strerror(err) sys_errlist[err]
  4021. + #endif
  4022.   
  4023.   extern int execv (), execvp ();
  4024.   
  4025. ***************
  4026. *** 917,923 ****
  4027. --- 921,929 ----
  4028.   #endif /* !defined STANDARD_EXEC_PREFIX */
  4029.   
  4030.   static char *standard_exec_prefix = STANDARD_EXEC_PREFIX;
  4031. + #ifndef amigados
  4032.   static char *standard_exec_prefix_1 = "/usr/lib/gcc/";
  4033. + #endif
  4034.   #ifdef MD_EXEC_PREFIX
  4035.   static char *md_exec_prefix = MD_EXEC_PREFIX;
  4036.   #endif
  4037. ***************
  4038. *** 933,940 ****
  4039. --- 939,948 ----
  4040.   static char *md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1;
  4041.   #endif
  4042.   static char *standard_startfile_prefix = STANDARD_STARTFILE_PREFIX;
  4043. + #ifndef amigados
  4044.   static char *standard_startfile_prefix_1 = "/lib/";
  4045.   static char *standard_startfile_prefix_2 = "/usr/lib/";
  4046. + #endif
  4047.   
  4048.   /* Clear out the vector of arguments (after a command is executed).  */
  4049.   
  4050. ***************
  4051. *** 1126,1142 ****
  4052.   #endif
  4053.         if (base == (char *)0)
  4054.       {
  4055.         if (access ("/usr/tmp", R_OK | W_OK) == 0)
  4056.           base = "/usr/tmp/";
  4057.         else
  4058.           base = "/tmp/";
  4059.       }
  4060.       }
  4061.   
  4062.     len = strlen (base);
  4063. !   temp_filename = xmalloc (len + sizeof("/ccXXXXXX"));
  4064.     strcpy (temp_filename, base);
  4065. !   if (len > 0 && temp_filename[len-1] != '/')
  4066.       temp_filename[len++] = '/';
  4067.     strcpy (temp_filename + len, "ccXXXXXX");
  4068.   
  4069. --- 1134,1158 ----
  4070.   #endif
  4071.         if (base == (char *)0)
  4072.       {
  4073. + #ifdef amigados
  4074. +       base = "ram:";
  4075. + #else
  4076.         if (access ("/usr/tmp", R_OK | W_OK) == 0)
  4077.           base = "/usr/tmp/";
  4078.         else
  4079.           base = "/tmp/";
  4080. + #endif
  4081.       }
  4082.       }
  4083.   
  4084.     len = strlen (base);
  4085. !   temp_filename = xmalloc (len + sizeof("/ccXXXXXX") + 1);
  4086.     strcpy (temp_filename, base);
  4087. !   if (len > 0 && temp_filename[len-1] != '/'
  4088. ! #ifdef amigados
  4089. !                         && temp_filename[len-1] != ':'
  4090. ! #endif
  4091. !                                     )
  4092.       temp_filename[len++] = '/';
  4093.     strcpy (temp_filename + len, "ccXXXXXX");
  4094.   
  4095. ***************
  4096. *** 1210,1215 ****
  4097. --- 1226,1232 ----
  4098.     int suffix_len = (machine_suffix) ? strlen (machine_suffix) : 0;
  4099.     int first_time = TRUE;
  4100.     struct prefix_list *pprefix;
  4101. +   char path_sep[] = { PATH_SEPARATOR, 0 };
  4102.   
  4103.     obstack_grow (&collect_obstack, env_var, strlen (env_var));
  4104.   
  4105. ***************
  4106. *** 1220,1226 ****
  4107.         if (machine_suffix)
  4108.       {
  4109.         if (!first_time)
  4110. !         obstack_grow (&collect_obstack, ":", 1);
  4111.           
  4112.         first_time = FALSE;
  4113.         obstack_grow (&collect_obstack, pprefix->prefix, len);
  4114. --- 1237,1243 ----
  4115.         if (machine_suffix)
  4116.       {
  4117.         if (!first_time)
  4118. !         obstack_grow (&collect_obstack, path_sep, 1);
  4119.           
  4120.         first_time = FALSE;
  4121.         obstack_grow (&collect_obstack, pprefix->prefix, len);
  4122. ***************
  4123. *** 1230,1236 ****
  4124.         if (just_machine_suffix && pprefix->require_machine_suffix == 2)
  4125.       {
  4126.         if (!first_time)
  4127. !         obstack_grow (&collect_obstack, ":", 1);
  4128.           
  4129.         first_time = FALSE;
  4130.         obstack_grow (&collect_obstack, pprefix->prefix, len);
  4131. --- 1247,1253 ----
  4132.         if (just_machine_suffix && pprefix->require_machine_suffix == 2)
  4133.       {
  4134.         if (!first_time)
  4135. !         obstack_grow (&collect_obstack, path_sep, 1);
  4136.           
  4137.         first_time = FALSE;
  4138.         obstack_grow (&collect_obstack, pprefix->prefix, len);
  4139. ***************
  4140. *** 1240,1246 ****
  4141.         if (!pprefix->require_machine_suffix)
  4142.       {
  4143.         if (!first_time)
  4144. !         obstack_grow (&collect_obstack, ":", 1);
  4145.   
  4146.         first_time = FALSE;
  4147.         obstack_grow (&collect_obstack, pprefix->prefix, len);
  4148. --- 1257,1263 ----
  4149.         if (!pprefix->require_machine_suffix)
  4150.       {
  4151.         if (!first_time)
  4152. !         obstack_grow (&collect_obstack, path_sep, 1);
  4153.   
  4154.         first_time = FALSE;
  4155.         obstack_grow (&collect_obstack, pprefix->prefix, len);
  4156. ***************
  4157. *** 1273,1279 ****
  4158.   
  4159.     /* Determine the filename to execute (special case for absolute paths).  */
  4160.   
  4161. !   if (*name == '/')
  4162.       {
  4163.         if (access (name, mode))
  4164.       {
  4165. --- 1290,1300 ----
  4166.   
  4167.     /* Determine the filename to execute (special case for absolute paths).  */
  4168.   
  4169. !   if (*name == '/'
  4170. ! #ifdef amigados
  4171. !           || index (name, ':')
  4172. ! #endif
  4173. !                     )
  4174.       {
  4175.         if (access (name, mode))
  4176.       {
  4177. ***************
  4178. *** 1479,1484 ****
  4179. --- 1500,1506 ----
  4180.      NOT_LAST is nonzero if this is not the last subcommand
  4181.      (i.e. its output should be piped to the next one.)  */
  4182.   
  4183. + #ifndef PEXECUTE
  4184.   #ifndef OS2
  4185.   #ifdef __MSDOS__
  4186.   
  4187. ***************
  4188. *** 1625,1630 ****
  4189. --- 1647,1653 ----
  4190.     return (search_flag ? spawnv : spawnvp) (1, program, argv);
  4191.   }
  4192.   #endif /* not OS2 */
  4193. + #endif /* !defined (PEXECUTE) */
  4194.   
  4195.   /* Execute the command specified by the arguments on the current line of spec.
  4196.      When using pipes, this includes several piped-together commands
  4197. ***************
  4198. *** 1719,1727 ****
  4199. --- 1742,1756 ----
  4200.       {
  4201.         char *string = commands[i].argv[0];
  4202.   
  4203. + #ifdef PEXECUTE
  4204. +       commands[i].pid = PEXECUTE (string != commands[i].prog,
  4205. +                   string, commands[i].argv,
  4206. +                   i + 1 < n_commands);
  4207. + #else
  4208.         commands[i].pid = pexecute (string != commands[i].prog,
  4209.                     string, commands[i].argv,
  4210.                     i + 1 < n_commands);
  4211. + #endif
  4212.   
  4213.         if (string != commands[i].prog)
  4214.       free (string);
  4215. ***************
  4216. *** 1742,1752 ****
  4217. --- 1771,1785 ----
  4218.       int pid;
  4219.       char *prog;
  4220.   
  4221. + #ifdef PEXECUTE_RESULT
  4222. +     pid = PEXECUTE_RESULT (status, commands[i]);
  4223. + #else /* PEXECUTE_RESULT */
  4224.   #ifdef __MSDOS__
  4225.           status = pid = commands[i].pid;
  4226.   #else
  4227.       pid = wait (&status);
  4228.   #endif
  4229. + #endif /* PEXECUTE_RESULT */
  4230.       if (pid < 0)
  4231.         abort ();
  4232.   
  4233. ***************
  4234. *** 1853,1858 ****
  4235. --- 1886,1892 ----
  4236.         if (*endp == PATH_SEPARATOR || *endp == 0)
  4237.           {
  4238.             strncpy (nstore, startp, endp-startp);
  4239. + #ifndef amigados
  4240.             if (endp == startp)
  4241.           {
  4242.             strcpy (nstore, "./");
  4243. ***************
  4244. *** 1864,1869 ****
  4245. --- 1898,1912 ----
  4246.           }
  4247.             else
  4248.           nstore[endp-startp] = 0;
  4249. + #else
  4250. +           if (endp[-1] != '/' && endp[-1] != ':')
  4251. +         {
  4252. +           nstore[endp-startp] = '/';
  4253. +           nstore[endp-startp+1] = 0;
  4254. +         }
  4255. +           else
  4256. +         nstore[endp-startp] = 0;
  4257. + #endif
  4258.             add_prefix (&exec_prefix, nstore, 0, 0, NULL_PTR);
  4259.             if (*endp == 0)
  4260.           break;
  4261. ***************
  4262. *** 1886,1891 ****
  4263. --- 1929,1935 ----
  4264.         if (*endp == PATH_SEPARATOR || *endp == 0)
  4265.           {
  4266.             strncpy (nstore, startp, endp-startp);
  4267. + #ifndef amigados
  4268.             if (endp == startp)
  4269.           {
  4270.             strcpy (nstore, "./");
  4271. ***************
  4272. *** 1897,1902 ****
  4273. --- 1941,1955 ----
  4274.           }
  4275.             else
  4276.           nstore[endp-startp] = 0;
  4277. + #else
  4278. +           if (endp[-1] != '/' && endp[-1] != ':')
  4279. +         {
  4280. +           nstore[endp-startp] = '/';
  4281. +           nstore[endp-startp+1] = 0;
  4282. +         }
  4283. +           else
  4284. +         nstore[endp-startp] = 0;
  4285. + #endif
  4286.             add_prefix (&startfile_prefix, nstore, 0, 0, NULL_PTR);
  4287.             /* Make separate list of dirs that came from LIBRARY_PATH.  */
  4288.             add_prefix (&library_prefix, nstore, 0, 0, NULL_PTR);
  4289. ***************
  4290. *** 1922,1927 ****
  4291. --- 1975,1981 ----
  4292.         if (*endp == PATH_SEPARATOR || *endp == 0)
  4293.           {
  4294.             strncpy (nstore, startp, endp-startp);
  4295. + #ifndef amigados
  4296.             if (endp == startp)
  4297.           {
  4298.             strcpy (nstore, "./");
  4299. ***************
  4300. *** 1933,1938 ****
  4301. --- 1987,2001 ----
  4302.           }
  4303.             else
  4304.           nstore[endp-startp] = 0;
  4305. + #else
  4306. +           if (endp[-1] != '/' && endp[-1] != ':')
  4307. +         {
  4308. +           nstore[endp-startp] = '/';
  4309. +           nstore[endp-startp+1] = 0;
  4310. +         }
  4311. +           else
  4312. +         nstore[endp-startp] = 0;
  4313. + #endif
  4314.             add_prefix (&startfile_prefix, nstore, 0, 0, NULL_PTR);
  4315.             /* Make separate list of dirs that came from LIBRARY_PATH.  */
  4316.             add_prefix (&library_prefix, nstore, 0, 0, NULL_PTR);
  4317. ***************
  4318. *** 2135,2144 ****
  4319. --- 2198,2211 ----
  4320.     /* Use 2 as fourth arg meaning try just the machine as a suffix,
  4321.        as well as trying the machine and the version.  */
  4322.     add_prefix (&exec_prefix, standard_exec_prefix, 0, 2, NULL_PTR);
  4323. + #ifndef amigados
  4324.     add_prefix (&exec_prefix, standard_exec_prefix_1, 0, 2, NULL_PTR);
  4325. + #endif
  4326.   
  4327.     add_prefix (&startfile_prefix, standard_exec_prefix, 0, 1, NULL_PTR);
  4328. + #ifndef amigados
  4329.     add_prefix (&startfile_prefix, standard_exec_prefix_1, 0, 1, NULL_PTR);
  4330. + #endif
  4331.   
  4332.     /* More prefixes are enabled in main, after we read the specs file
  4333.        and determine whether this is cross-compilation or not.  */
  4334. ***************
  4335. *** 3357,3366 ****
  4336. --- 3424,3435 ----
  4337.   
  4338.         add_prefix (&startfile_prefix, standard_startfile_prefix, 0, 0,
  4339.             NULL_PTR);
  4340. + #ifndef amigados
  4341.         add_prefix (&startfile_prefix, standard_startfile_prefix_1, 0, 0,
  4342.             NULL_PTR);
  4343.         add_prefix (&startfile_prefix, standard_startfile_prefix_2, 0, 0,
  4344.             NULL_PTR);
  4345. + #endif
  4346.   #if 0 /* Can cause surprises, and one can use -B./ instead.  */
  4347.         add_prefix (&startfile_prefix, "./", 0, 1, NULL_PTR);
  4348.   #endif
  4349. ***************
  4350. *** 3433,3442 ****
  4351. --- 3502,3515 ----
  4352.         register char *p;
  4353.         int len;
  4354.   
  4355. + #ifdef FILE_NAME_NONDIRECTORY
  4356. +       input_basename = FILE_NAME_NONDIRECTORY (input_filename);
  4357. + #else
  4358.         input_basename = input_filename;
  4359.         for (p = input_filename; *p; p++)
  4360.           if (*p == '/')
  4361.             input_basename = p + 1;
  4362. + #endif
  4363.   
  4364.         /* Find a suffix starting with the last period,
  4365.            and set basename_length to exclude that suffix.  */
  4366. ***************
  4367. *** 3675,3681 ****
  4368.     char *s;
  4369.   
  4370.     if (errno < sys_nerr)
  4371. !     s = concat ("%s: ", sys_errlist[errno], "");
  4372.     else
  4373.       s = "cannot open %s";
  4374.     fatal (s, name);
  4375. --- 3748,3754 ----
  4376.     char *s;
  4377.   
  4378.     if (errno < sys_nerr)
  4379. !     s = concat ("%s: ", strerror (errno), "");
  4380.     else
  4381.       s = "cannot open %s";
  4382.     fatal (s, name);
  4383. ***************
  4384. *** 3688,3694 ****
  4385.     char *s;
  4386.   
  4387.     if (errno < sys_nerr)
  4388. !     s = concat ("%s: ", sys_errlist[errno], "");
  4389.     else
  4390.       s = "cannot open %s";
  4391.     error (s, name);
  4392. --- 3761,3767 ----
  4393.     char *s;
  4394.   
  4395.     if (errno < sys_nerr)
  4396. !     s = concat ("%s: ", strerror (errno), "");
  4397.     else
  4398.       s = "cannot open %s";
  4399.     error (s, name);
  4400. ***************
  4401. *** 3702,3708 ****
  4402.   
  4403.     if (errno < sys_nerr)
  4404.       s = concat ("installation problem, cannot exec %s: ",
  4405. !         sys_errlist[errno], "");
  4406.     else
  4407.       s = "installation problem, cannot exec %s";
  4408.     error (s, name);
  4409. --- 3775,3781 ----
  4410.   
  4411.     if (errno < sys_nerr)
  4412.       s = concat ("installation problem, cannot exec %s: ",
  4413. !         strerror (errno), "");
  4414.     else
  4415.       s = "installation problem, cannot exec %s";
  4416.     error (s, name);
  4417. diff -rc --new-file gcc-2.3.3-fsf/genconfig.c gcc-2.3.3-amiga/genconfig.c
  4418. *** gcc-2.3.3-fsf/genconfig.c    Tue Oct 13 04:11:48 1992
  4419. --- gcc-2.3.3-amiga/genconfig.c    Mon Nov 29 15:32:15 1993
  4420. ***************
  4421. *** 303,310 ****
  4422. --- 303,318 ----
  4423.     printf ("/* Generated automatically by the program `genconfig'\n\
  4424.   from the machine description file `md'.  */\n\n");
  4425.   
  4426. + #ifdef amigados
  4427. +   /* this constant probably better be 14 in general, or a cross compiling
  4428. +      host might choke on some amigados header files... */
  4429. +   /* Allow at least 14 operands for the sake of asm constructs.  */
  4430. +   max_recog_operands = 14;
  4431. + #else
  4432.     /* Allow at least 10 operands for the sake of asm constructs.  */
  4433.     max_recog_operands = 9;  /* We will add 1 later.  */
  4434. + #endif
  4435.     max_dup_operands = 1;
  4436.   
  4437.     /* Read the machine description.  */
  4438. diff -rc --new-file gcc-2.3.3-fsf/gstdarg.h gcc-2.3.3-amiga/gstdarg.h
  4439. *** gcc-2.3.3-fsf/gstdarg.h    Mon Nov 30 23:06:24 1992
  4440. --- gcc-2.3.3-amiga/gstdarg.h    Mon Nov 29 15:32:19 1993
  4441. ***************
  4442. *** 138,141 ****
  4443. --- 138,147 ----
  4444.   
  4445.   #endif /* __GNUC__ */
  4446.   #endif /* not _ANSI_STDARG_H_ */
  4447. + #ifdef amigados
  4448. + # ifndef _VA_LIST
  4449. + #  define _VA_LIST
  4450. +    typedef __gnuc_va_list va_list;
  4451. + # endif
  4452. + #endif /* amigados */
  4453.   #endif /* not _STDARG_H */
  4454. diff -rc --new-file gcc-2.3.3-fsf/gstddef.h gcc-2.3.3-amiga/gstddef.h
  4455. *** gcc-2.3.3-fsf/gstddef.h    Sun Nov 22 22:03:34 1992
  4456. --- gcc-2.3.3-amiga/gstddef.h    Mon Nov 29 15:32:23 1993
  4457. ***************
  4458. *** 2,7 ****
  4459. --- 2,47 ----
  4460.   #ifndef _STDDEF_H_
  4461.   #ifndef _ANSI_STDDEF_H
  4462.   
  4463. + #ifdef amigados
  4464. + /* GNU libc has special support in this file, 4.3bsd-net2 libc deserves that
  4465. +    just as well. The system headers are ANSI compliant, the used compiler IS
  4466. +    gcc, so it's really ok to use the system header, no reason to hassle
  4467. +    with a jungle of ifdefs. Besides, amigados is only defined if compiling
  4468. +    with host=amigados, it doesn't apply if compiling with target=amigados
  4469. +    on a different host with possibly different system headers. Same thing
  4470. +    would apply to gstdarg.h and gvarargs.h, but those headers are more
  4471. +    easily fixable than this one and I'm sick of writing the same comment
  4472. +    there as well. MW
  4473. +    Include the contents of <stddef.h> inline rather than with a #include,
  4474. +    to avoid infinite include recursion when this file is installed in
  4475. +    gcc's include directory as stddef.h.  (fnf)  */
  4476. + #define _STDDEF_H_
  4477. + #include <machine/ansi.h>
  4478. + typedef    _PTRDIFF_T_    ptrdiff_t;
  4479. + #ifdef    _SIZE_T_
  4480. + typedef    _SIZE_T_    size_t;
  4481. + #undef    _SIZE_T_
  4482. + #endif
  4483. + #ifdef    _WCHAR_T_
  4484. + typedef    _WCHAR_T_    wchar_t;
  4485. + #undef    _WCHAR_T_
  4486. + #endif
  4487. + #ifndef    NULL
  4488. + #define    NULL    0
  4489. + #endif
  4490. + #define    offsetof(type, member)    ((size_t)(&((type *)0)->member))
  4491. + #else /* not amigados */
  4492.   /* Any one of these symbols __need_* means that GNU libc
  4493.      wants us just to define one data type.  So don't define
  4494.      the symbols that indicate this file's entire job has been done.  */
  4495. ***************
  4496. *** 146,151 ****
  4497. --- 186,193 ----
  4498.   #ifndef __WCHAR_TYPE__
  4499.   #define __WCHAR_TYPE__ int
  4500.   #endif
  4501. + #endif /* not amigados */
  4502.   #ifdef __GNUG__
  4503.   /* In C++, wchar_t is a distinct basic type,
  4504.      and we can expect __wchar_t to be defined by cc1plus.  */
  4505. diff -rc --new-file gcc-2.3.3-fsf/gvarargs.h gcc-2.3.3-amiga/gvarargs.h
  4506. *** gcc-2.3.3-fsf/gvarargs.h    Mon Nov 30 23:07:12 1992
  4507. --- gcc-2.3.3-amiga/gvarargs.h    Mon Nov 29 15:32:27 1993
  4508. ***************
  4509. *** 136,142 ****
  4510.   #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____)
  4511.   /* The macro _VA_LIST is used in SCO Unix 3.2.  */
  4512.   #ifndef _VA_LIST
  4513. ! #if !(defined (__BSD_NET2__) || defined (____386BSD____))
  4514.   #define _VA_LIST_
  4515.   #endif
  4516.   #define _VA_LIST
  4517. --- 136,142 ----
  4518.   #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____)
  4519.   /* The macro _VA_LIST is used in SCO Unix 3.2.  */
  4520.   #ifndef _VA_LIST
  4521. ! #if !(defined (__BSD_NET2__) || defined (____386BSD____) || defined (__amigados__))
  4522.   #define _VA_LIST_
  4523.   #endif
  4524.   #define _VA_LIST
  4525. ***************
  4526. *** 151,155 ****
  4527. --- 151,162 ----
  4528.   #ifdef _BSD_VA_LIST
  4529.   #undef _BSD_VA_LIST
  4530.   #endif
  4531. + #ifdef amigados
  4532. + # ifndef _VA_LIST
  4533. + #  define _VA_LIST
  4534. +    typedef __gnuc_va_list va_list;
  4535. + # endif
  4536. + #endif /* amigados */
  4537.   
  4538.   #endif /* __GNUC__ */
  4539. diff -rc --new-file gcc-2.3.3-fsf/machmode.h gcc-2.3.3-amiga/machmode.h
  4540. *** gcc-2.3.3-fsf/machmode.h    Sun Aug  2 02:59:22 1992
  4541. --- gcc-2.3.3-amiga/machmode.h    Mon Nov 29 15:32:31 1993
  4542. ***************
  4543. *** 83,89 ****
  4544.   
  4545.   /* Get the name of mode MODE as a string.  */
  4546.   
  4547. ! extern char *mode_name[];
  4548.   #define GET_MODE_NAME(MODE)        (mode_name[(int)(MODE)])
  4549.   
  4550.   enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC,
  4551. --- 83,89 ----
  4552.   
  4553.   /* Get the name of mode MODE as a string.  */
  4554.   
  4555. ! extern char * const mode_name[];
  4556.   #define GET_MODE_NAME(MODE)        (mode_name[(int)(MODE)])
  4557.   
  4558.   enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC,
  4559. ***************
  4560. *** 92,108 ****
  4561.   /* Get the general kind of object that mode MODE represents
  4562.      (integer, floating, complex, etc.)  */
  4563.   
  4564. ! extern enum mode_class mode_class[];
  4565.   #define GET_MODE_CLASS(MODE)        (mode_class[(int)(MODE)])
  4566.   
  4567.   /* Get the size in bytes of an object of mode MODE.  */
  4568.   
  4569. ! extern int mode_size[];
  4570.   #define GET_MODE_SIZE(MODE)        (mode_size[(int)(MODE)])
  4571.   
  4572.   /* Get the size in bytes of the basic parts of an object of mode MODE.  */
  4573.   
  4574. ! extern int mode_unit_size[];
  4575.   #define GET_MODE_UNIT_SIZE(MODE)    (mode_unit_size[(int)(MODE)])
  4576.   
  4577.   /* Get the number of units in the object.  */
  4578. --- 92,108 ----
  4579.   /* Get the general kind of object that mode MODE represents
  4580.      (integer, floating, complex, etc.)  */
  4581.   
  4582. ! extern const enum mode_class mode_class[];
  4583.   #define GET_MODE_CLASS(MODE)        (mode_class[(int)(MODE)])
  4584.   
  4585.   /* Get the size in bytes of an object of mode MODE.  */
  4586.   
  4587. ! extern const int mode_size[];
  4588.   #define GET_MODE_SIZE(MODE)        (mode_size[(int)(MODE)])
  4589.   
  4590.   /* Get the size in bytes of the basic parts of an object of mode MODE.  */
  4591.   
  4592. ! extern const int mode_unit_size[];
  4593.   #define GET_MODE_UNIT_SIZE(MODE)    (mode_unit_size[(int)(MODE)])
  4594.   
  4595.   /* Get the number of units in the object.  */
  4596. ***************
  4597. *** 124,130 ****
  4598.   
  4599.   /* Get the next wider natural mode (eg, QI -> HI -> SI -> DI -> TI).  */
  4600.   
  4601. ! extern enum machine_mode mode_wider_mode[];
  4602.   #define GET_MODE_WIDER_MODE(MODE)    (mode_wider_mode[(int)(MODE)])
  4603.   
  4604.   /* Return the mode for data of a given size SIZE and mode class CLASS.
  4605. --- 124,130 ----
  4606.   
  4607.   /* Get the next wider natural mode (eg, QI -> HI -> SI -> DI -> TI).  */
  4608.   
  4609. ! extern const enum machine_mode mode_wider_mode[];
  4610.   #define GET_MODE_WIDER_MODE(MODE)    (mode_wider_mode[(int)(MODE)])
  4611.   
  4612.   /* Return the mode for data of a given size SIZE and mode class CLASS.
  4613. diff -rc --new-file gcc-2.3.3-fsf/objc/Makefile gcc-2.3.3-amiga/objc/Makefile
  4614. *** gcc-2.3.3-fsf/objc/Makefile    Tue Nov  3 10:32:47 1992
  4615. --- gcc-2.3.3-amiga/objc/Makefile    Mon Nov 29 15:32:33 1993
  4616. ***************
  4617. *** 40,46 ****
  4618.   
  4619.   core.o: core.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
  4620.   hash.o: hash.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
  4621. ! object.o: object.m object.h $(OBJC_H)
  4622.       $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
  4623.   
  4624.   mostlyclean:
  4625. --- 40,46 ----
  4626.   
  4627.   core.o: core.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
  4628.   hash.o: hash.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
  4629. ! object.o: $(srcdir)/objc/object.m $(srcdir)/objc/object.h $(OBJC_H)
  4630.       $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
  4631.   
  4632.   mostlyclean:
  4633. diff -rc --new-file gcc-2.3.3-fsf/print-tree.c gcc-2.3.3-amiga/print-tree.c
  4634. *** gcc-2.3.3-fsf/print-tree.c    Sat Oct 24 00:09:26 1992
  4635. --- gcc-2.3.3-amiga/print-tree.c    Mon Nov 29 15:32:37 1993
  4636. ***************
  4637. *** 24,30 ****
  4638.   
  4639.   extern char **tree_code_name;
  4640.   
  4641. ! extern char *mode_name[];
  4642.   
  4643.   void print_node ();
  4644.   void indent_to ();
  4645. --- 24,30 ----
  4646.   
  4647.   extern char **tree_code_name;
  4648.   
  4649. ! extern char *const mode_name[];
  4650.   
  4651.   void print_node ();
  4652.   void indent_to ();
  4653. diff -rc --new-file gcc-2.3.3-fsf/protoize.c gcc-2.3.3-amiga/protoize.c
  4654. *** gcc-2.3.3-fsf/protoize.c    Tue Dec 22 07:21:04 1992
  4655. --- gcc-2.3.3-amiga/protoize.c    Mon Nov 29 15:32:46 1993
  4656. ***************
  4657. *** 78,84 ****
  4658. --- 78,87 ----
  4659.   #undef getopt
  4660.   
  4661.   extern int errno;
  4662. + #ifndef HAVE_STRERROR
  4663.   extern char *sys_errlist[];
  4664. + #define strerror(err) sys_errlist[err]
  4665. + #endif
  4666.   extern char *version_string;
  4667.   
  4668.   /* Systems which are compatible only with POSIX 1003.1-1988 (but *not*
  4669. ***************
  4670. *** 776,783 ****
  4671. --- 779,791 ----
  4672.   {
  4673.     struct default_include *p;
  4674.   
  4675. + #ifdef FILE_NAME_ABSOLUTE_P
  4676. +   if (! FILE_NAME_ABSOLUTE_P (path))
  4677. +     abort ();
  4678. + #else
  4679.     if (path[0] != '/')
  4680.       abort ();        /* Must be an absolutized filename.  */
  4681. + #endif
  4682.   
  4683.     for (p = include_defaults; p->fname; p++)
  4684.       if (!strncmp (path, p->fname, strlen (p->fname))
  4685. ***************
  4686. *** 1204,1210 ****
  4687. --- 1212,1222 ----
  4688.     {
  4689.       const char *src_p;
  4690.   
  4691. + #ifdef FILE_NAME_ABSOLUTE_P
  4692. +     if (! FILE_NAME_ABSOLUTE_P (rel_filename))
  4693. + #else
  4694.       if (rel_filename[0] != '/')
  4695. + #endif
  4696.         {
  4697.           src_p = cwd2;
  4698.           while (*endp++ = *src_p++)
  4699. ***************
  4700. *** 1406,1412 ****
  4701.             if (my_stat (filename, &stat_buf) == -1)
  4702.               {
  4703.                 fprintf (stderr, "%s: %s: can't get status: %s\n",
  4704. !                pname, shortpath (NULL, filename), sys_errlist[errno]);
  4705.                 stat_buf.st_mtime = (time_t) -1;
  4706.               }
  4707.           }
  4708. --- 1418,1424 ----
  4709.             if (my_stat (filename, &stat_buf) == -1)
  4710.               {
  4711.                 fprintf (stderr, "%s: %s: can't get status: %s\n",
  4712. !                pname, shortpath (NULL, filename), strerror (errno));
  4713.                 stat_buf.st_mtime = (time_t) -1;
  4714.               }
  4715.           }
  4716. ***************
  4717. *** 1467,1472 ****
  4718. --- 1479,1503 ----
  4719.     return ++q;
  4720.   }
  4721.   
  4722. + /* Use this macro to advance a char * over the filename part in a line
  4723. +    read from an aux-info file. */
  4724. + #ifndef amigados
  4725. + /* Version for file systems where the colon has no special meaning */
  4726. + #define ADVANCE_PAST_FILENAME(CP) \
  4727. +   while (* (CP) != ':') (CP)++
  4728. + #else
  4729. + /* Have to heuristically decide whether the colon is part of the filename
  4730. +    or whether it serves to delimit the filename from the line number. If
  4731. +    it's the latter case, then the character following the colon *must*
  4732. +    be a digit. Note that this heuristic fails if the filename starts
  4733. +    with a digit. */
  4734. + #define ADVANCE_PAST_FILENAME(CP) \
  4735. +     while ((CP)[0] != ':' || !isdigit ((CP)[1])) \
  4736. +       (CP)++;
  4737. + #endif
  4738.   /* Given a line from  an aux info file, and a time at which the aux info
  4739.      file it came from was created, check to see if the item described in
  4740.      the line comes from a file which has been modified since the aux info
  4741. ***************
  4742. *** 1488,1495 ****
  4743.     {
  4744.       const char *filename_start = p = l + 3;
  4745.   
  4746. !     while (*p != ':')
  4747. !       p++;
  4748.       filename = (char *) alloca ((size_t) (p - filename_start) + 1);
  4749.       strncpy (filename, filename_start, (size_t) (p - filename_start));
  4750.       filename[p-filename_start] = '\0';
  4751. --- 1519,1525 ----
  4752.     {
  4753.       const char *filename_start = p = l + 3;
  4754.   
  4755. !     ADVANCE_PAST_FILENAME (p);
  4756.       filename = (char *) alloca ((size_t) (p - filename_start) + 1);
  4757.       strncpy (filename, filename_start, (size_t) (p - filename_start));
  4758.       filename[p-filename_start] = '\0';
  4759. ***************
  4760. *** 1546,1553 ****
  4761.       const char *filename_start = p = l + 3;
  4762.       char *filename;
  4763.   
  4764. !     while (*p != ':')
  4765. !       p++;
  4766.       filename = (char *) alloca ((size_t) (p - filename_start) + 1);
  4767.       strncpy (filename, filename_start, (size_t) (p - filename_start));
  4768.       filename[p-filename_start] = '\0';
  4769. --- 1576,1582 ----
  4770.       const char *filename_start = p = l + 3;
  4771.       char *filename;
  4772.   
  4773. !     ADVANCE_PAST_FILENAME (p);
  4774.       filename = (char *) alloca ((size_t) (p - filename_start) + 1);
  4775.       strncpy (filename, filename_start, (size_t) (p - filename_start));
  4776.       filename[p-filename_start] = '\0';
  4777. ***************
  4778. *** 2000,2006 ****
  4779.         if (child_pid == -1)
  4780.           {
  4781.             fprintf (stderr, "%s: could not fork process: %s\n",
  4782. !            pname, sys_errlist[errno]);
  4783.             return 0;
  4784.           }
  4785.   
  4786. --- 2029,2035 ----
  4787.         if (child_pid == -1)
  4788.           {
  4789.             fprintf (stderr, "%s: could not fork process: %s\n",
  4790. !            pname, strerror (errno));
  4791.             return 0;
  4792.           }
  4793.   
  4794. ***************
  4795. *** 2028,2034 ****
  4796.           if (wait (&wait_status) == -1)
  4797.             {
  4798.               fprintf (stderr, "%s: wait failed: %s\n",
  4799. !              pname, sys_errlist[errno]);
  4800.               return 0;
  4801.             }
  4802.       if ((wait_status & 0x7F) != 0)
  4803. --- 2057,2063 ----
  4804.           if (wait (&wait_status) == -1)
  4805.             {
  4806.               fprintf (stderr, "%s: wait failed: %s\n",
  4807. !              pname, strerror (errno));
  4808.               return 0;
  4809.             }
  4810.       if ((wait_status & 0x7F) != 0)
  4811. ***************
  4812. *** 2055,2061 ****
  4813.         write (f, ": ", 2);
  4814.         write (f, compile_params[0], strlen (compile_params[0]));
  4815.         write (f, ": ", 2);
  4816. !       write (f, sys_errlist[e], strlen (sys_errlist[e]));
  4817.         write (f, "\n", 1);
  4818.             _exit (1);
  4819.           }
  4820. --- 2084,2090 ----
  4821.         write (f, ": ", 2);
  4822.         write (f, compile_params[0], strlen (compile_params[0]));
  4823.         write (f, ": ", 2);
  4824. !       write (f, strerror (e), strlen (strerror (e)));
  4825.         write (f, "\n", 1);
  4826.             _exit (1);
  4827.           }
  4828. ***************
  4829. *** 2115,2121 ****
  4830.       {
  4831.         fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
  4832.              pname, shortpath (NULL, aux_info_filename),
  4833. !            sys_errlist[errno]);
  4834.         errors++;
  4835.         return;
  4836.       }
  4837. --- 2144,2150 ----
  4838.       {
  4839.         fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
  4840.              pname, shortpath (NULL, aux_info_filename),
  4841. !            strerror (errno));
  4842.         errors++;
  4843.         return;
  4844.       }
  4845. ***************
  4846. *** 2143,2149 ****
  4847.       {
  4848.         fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
  4849.              pname, shortpath (NULL, aux_info_filename),
  4850. !            sys_errlist[errno]);
  4851.         errors++;
  4852.         return;
  4853.       }
  4854. --- 2172,2178 ----
  4855.       {
  4856.         fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
  4857.              pname, shortpath (NULL, aux_info_filename),
  4858. !            strerror (errno));
  4859.         errors++;
  4860.         return;
  4861.       }
  4862. ***************
  4863. *** 2158,2164 ****
  4864.         {
  4865.           fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
  4866.            pname, shortpath (NULL, aux_info_filename),
  4867. !          sys_errlist[errno]);
  4868.           errors++;
  4869.           return;
  4870.         }
  4871. --- 2187,2193 ----
  4872.         {
  4873.           fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
  4874.            pname, shortpath (NULL, aux_info_filename),
  4875. !          strerror (errno));
  4876.           errors++;
  4877.           return;
  4878.         }
  4879. ***************
  4880. *** 2185,2191 ****
  4881.         {
  4882.           fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
  4883.                pname, shortpath (NULL, base_source_filename),
  4884. !              sys_errlist[errno]);
  4885.           errors++;
  4886.           return;
  4887.         }
  4888. --- 2214,2220 ----
  4889.         {
  4890.           fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
  4891.                pname, shortpath (NULL, base_source_filename),
  4892. !              strerror (errno));
  4893.           errors++;
  4894.           return;
  4895.         }
  4896. ***************
  4897. *** 2206,2212 ****
  4898.         {
  4899.           fprintf (stderr, "%s: can't open aux info file `%s' for reading: %s\n",
  4900.            pname, shortpath (NULL, aux_info_filename),
  4901. !          sys_errlist[errno]);
  4902.           return;
  4903.         }
  4904.     
  4905. --- 2235,2241 ----
  4906.         {
  4907.           fprintf (stderr, "%s: can't open aux info file `%s' for reading: %s\n",
  4908.            pname, shortpath (NULL, aux_info_filename),
  4909. !          strerror (errno));
  4910.           return;
  4911.         }
  4912.     
  4913. ***************
  4914. *** 2222,2228 ****
  4915.         {
  4916.           fprintf (stderr, "%s: error reading aux info file `%s': %s\n",
  4917.            pname, shortpath (NULL, aux_info_filename),
  4918. !          sys_errlist[errno]);
  4919.           free (aux_info_base);
  4920.           close (aux_info_file);
  4921.           return;
  4922. --- 2251,2257 ----
  4923.         {
  4924.           fprintf (stderr, "%s: error reading aux info file `%s': %s\n",
  4925.            pname, shortpath (NULL, aux_info_filename),
  4926. !          strerror (errno));
  4927.           free (aux_info_base);
  4928.           close (aux_info_file);
  4929.           return;
  4930. ***************
  4931. *** 2234,2240 ****
  4932.         {
  4933.           fprintf (stderr, "%s: error closing aux info file `%s': %s\n",
  4934.            pname, shortpath (NULL, aux_info_filename),
  4935. !          sys_errlist[errno]);
  4936.           free (aux_info_base);
  4937.           close (aux_info_file);
  4938.           return;
  4939. --- 2263,2269 ----
  4940.         {
  4941.           fprintf (stderr, "%s: error closing aux info file `%s': %s\n",
  4942.            pname, shortpath (NULL, aux_info_filename),
  4943. !          strerror (errno));
  4944.           free (aux_info_base);
  4945.           close (aux_info_file);
  4946.           return;
  4947. ***************
  4948. *** 2248,2254 ****
  4949.       if (my_unlink (aux_info_filename) == -1)
  4950.         fprintf (stderr, "%s: can't delete aux info file `%s': %s\n",
  4951.              pname, shortpath (NULL, aux_info_filename),
  4952. !            sys_errlist[errno]);
  4953.   
  4954.     /* Save a pointer into the first line of the aux_info file which
  4955.        contains the filename of the directory from which the compiler
  4956. --- 2277,2283 ----
  4957.       if (my_unlink (aux_info_filename) == -1)
  4958.         fprintf (stderr, "%s: can't delete aux info file `%s': %s\n",
  4959.              pname, shortpath (NULL, aux_info_filename),
  4960. !            strerror (errno));
  4961.   
  4962.     /* Save a pointer into the first line of the aux_info file which
  4963.        contains the filename of the directory from which the compiler
  4964. ***************
  4965. *** 2260,2266 ****
  4966.     {
  4967.       char *p = aux_info_base;
  4968.   
  4969. !     while (*p != ':')
  4970.         p++;
  4971.       p++;
  4972.       while (*p == ' ')
  4973. --- 2289,2297 ----
  4974.     {
  4975.       char *p = aux_info_base;
  4976.   
  4977. !     /* have to make sure at least one space is following the colon to make
  4978. !        sure the colon is not part of the filename */
  4979. !     while (*p != ':' && p[1] != ' ')
  4980.         p++;
  4981.       p++;
  4982.       while (*p == ' ')
  4983. ***************
  4984. *** 2274,2280 ****
  4985. --- 2305,2315 ----
  4986.         continue;
  4987.       aux_info_second_line = p;
  4988.       aux_info_relocated_name = 0;
  4989. + #ifdef FILE_NAME_ABSOLUTE_P
  4990. +     if (! FILE_NAME_ABSOLUTE_P (invocation_filename))
  4991. + #else
  4992.       if (invocation_filename[0] != '/')
  4993. + #endif
  4994.         {
  4995.       /* INVOCATION_FILENAME is relative;
  4996.          append it to BASE_SOURCE_FILENAME's dir.  */
  4997. ***************
  4998. *** 2314,2320 ****
  4999.                     {
  5000.                       fprintf (stderr, "%s: can't delete file `%s': %s\n",
  5001.                    pname, shortpath (NULL, aux_info_filename),
  5002. !                  sys_errlist[errno]);
  5003.                       return;
  5004.                     }
  5005.                   goto start_over;
  5006. --- 2349,2355 ----
  5007.                     {
  5008.                       fprintf (stderr, "%s: can't delete file `%s': %s\n",
  5009.                    pname, shortpath (NULL, aux_info_filename),
  5010. !                  strerror (errno));
  5011.                       return;
  5012.                     }
  5013.                   goto start_over;
  5014. ***************
  5015. *** 2362,2368 ****
  5016.   #ifndef UNPROTOIZE
  5017.   
  5018.   /* Check an individual filename for a .c suffix.  If the filename has this
  5019. !    suffix, rename the file such that its suffix is changed to .C.  This
  5020.      function implements the -C option.  */
  5021.   
  5022.   static void
  5023. --- 2397,2403 ----
  5024.   #ifndef UNPROTOIZE
  5025.   
  5026.   /* Check an individual filename for a .c suffix.  If the filename has this
  5027. !    suffix, rename the file such that its suffix is changed to .cc.  This
  5028.      function implements the -C option.  */
  5029.   
  5030.   static void
  5031. ***************
  5032. *** 2371,2377 ****
  5033.   {
  5034.     const char *filename = hp->symbol;
  5035.     int last_char_index = strlen (filename) - 1;
  5036. !   char *const new_filename = (char *) alloca (strlen (filename) + 1);
  5037.   
  5038.     /* Note that we don't care here if the given file was converted or not.  It
  5039.        is possible that the given file was *not* converted, simply because there
  5040. --- 2406,2412 ----
  5041.   {
  5042.     const char *filename = hp->symbol;
  5043.     int last_char_index = strlen (filename) - 1;
  5044. !   char *const new_filename = (char *) alloca (strlen (filename) + 2);
  5045.   
  5046.     /* Note that we don't care here if the given file was converted or not.  It
  5047.        is possible that the given file was *not* converted, simply because there
  5048. ***************
  5049. *** 2383,2395 ****
  5050.       return;
  5051.   
  5052.     strcpy (new_filename, filename);
  5053. !   new_filename[last_char_index] = 'C';
  5054.   
  5055.     if (my_link (filename, new_filename) == -1)
  5056.       {
  5057.         fprintf (stderr, "%s: warning: can't link file `%s' to `%s': %s\n",
  5058.              pname, shortpath (NULL, filename),
  5059. !            shortpath (NULL, new_filename), sys_errlist[errno]);
  5060.         errors++;
  5061.         return;
  5062.       }
  5063. --- 2418,2447 ----
  5064.       return;
  5065.   
  5066.     strcpy (new_filename, filename);
  5067. !   strcat (new_filename + last_char_index, "cc");
  5068.   
  5069. +   /* use rename(2) if available !! Update config files to include HAVE_rename
  5070. +      if the used OS provides it. Advantages are: it's atomic, it's one
  5071. +      system call compared to two. */
  5072. + #ifdef HAVE_rename
  5073. +   /* if the mentioned systems (POSIX 1003.1-1988) have rename(2), this has
  5074. +      to be changed to `my_rename' as well. */
  5075. +   if (rename (filename, new_filename) == -1)
  5076. +     {
  5077. +       fprintf (stderr, "%s: warning: can't rename file `%s' to `%s': %s\n",
  5078. +            pname, shortpath (NULL, filename),
  5079. +            shortpath (NULL, new_filename), strerror (errno));
  5080. +       errors++;
  5081. +       return;
  5082. +     }
  5083. + #else
  5084.     if (my_link (filename, new_filename) == -1)
  5085.       {
  5086.         fprintf (stderr, "%s: warning: can't link file `%s' to `%s': %s\n",
  5087.              pname, shortpath (NULL, filename),
  5088. !            shortpath (NULL, new_filename), strerror (errno));
  5089.         errors++;
  5090.         return;
  5091.       }
  5092. ***************
  5093. *** 2397,2406 ****
  5094.     if (my_unlink (filename) == -1)
  5095.       {
  5096.         fprintf (stderr, "%s: warning: can't delete file `%s': %s\n",
  5097. !            pname, shortpath (NULL, filename), sys_errlist[errno]);
  5098.         errors++;
  5099.         return;
  5100.       }
  5101.   }
  5102.   
  5103.   #endif /* !defined (UNPROTOIZE) */
  5104. --- 2449,2459 ----
  5105.     if (my_unlink (filename) == -1)
  5106.       {
  5107.         fprintf (stderr, "%s: warning: can't delete file `%s': %s\n",
  5108. !            pname, shortpath (NULL, filename), strerror (errno));
  5109.         errors++;
  5110.         return;
  5111.       }
  5112. + #endif
  5113.   }
  5114.   
  5115.   #endif /* !defined (UNPROTOIZE) */
  5116. ***************
  5117. *** 4093,4099 ****
  5118.     if (my_stat ((char *)convert_filename, &stat_buf) == -1)
  5119.       {
  5120.         fprintf (stderr, "%s: can't get status for file `%s': %s\n",
  5121. !            pname, shortpath (NULL, convert_filename), sys_errlist[errno]);
  5122.         return;
  5123.       }
  5124.     orig_size = stat_buf.st_size;
  5125. --- 4146,4152 ----
  5126.     if (my_stat ((char *)convert_filename, &stat_buf) == -1)
  5127.       {
  5128.         fprintf (stderr, "%s: can't get status for file `%s': %s\n",
  5129. !            pname, shortpath (NULL, convert_filename), strerror (errno));
  5130.         return;
  5131.       }
  5132.     orig_size = stat_buf.st_size;
  5133. ***************
  5134. *** 4128,4134 ****
  5135.         {
  5136.           fprintf (stderr, "%s: can't open file `%s' for reading: %s\n",
  5137.            pname, shortpath (NULL, convert_filename),
  5138. !          sys_errlist[errno]);
  5139.           return;
  5140.         }
  5141.   
  5142. --- 4181,4187 ----
  5143.         {
  5144.           fprintf (stderr, "%s: can't open file `%s' for reading: %s\n",
  5145.            pname, shortpath (NULL, convert_filename),
  5146. !          strerror (errno));
  5147.           return;
  5148.         }
  5149.   
  5150. ***************
  5151. *** 4141,4147 ****
  5152.           close (input_file);
  5153.           fprintf (stderr, "\n%s: error reading input file `%s': %s\n",
  5154.            pname, shortpath (NULL, convert_filename),
  5155. !          sys_errlist[errno]);
  5156.           return;
  5157.         }
  5158.   
  5159. --- 4194,4200 ----
  5160.           close (input_file);
  5161.           fprintf (stderr, "\n%s: error reading input file `%s': %s\n",
  5162.            pname, shortpath (NULL, convert_filename),
  5163. !          strerror (errno));
  5164.           return;
  5165.         }
  5166.   
  5167. ***************
  5168. *** 4174,4180 ****
  5169.         {
  5170.           fprintf (stderr, "%s: can't create/open clean file `%s': %s\n",
  5171.            pname, shortpath (NULL, clean_filename),
  5172. !          sys_errlist[errno]);
  5173.           return;
  5174.         }
  5175.     
  5176. --- 4227,4233 ----
  5177.         {
  5178.           fprintf (stderr, "%s: can't create/open clean file `%s': %s\n",
  5179.            pname, shortpath (NULL, clean_filename),
  5180. !          strerror (errno));
  5181.           return;
  5182.         }
  5183.     
  5184. ***************
  5185. *** 4182,4188 ****
  5186.     
  5187.       if (write (clean_file, new_clean_text_base, clean_size) != clean_size)
  5188.         fprintf (stderr, "%s: error writing file `%s': %s\n",
  5189. !            pname, shortpath (NULL, clean_filename), sys_errlist[errno]);
  5190.     
  5191.       close (clean_file);
  5192.     }
  5193. --- 4235,4241 ----
  5194.     
  5195.       if (write (clean_file, new_clean_text_base, clean_size) != clean_size)
  5196.         fprintf (stderr, "%s: error writing file `%s': %s\n",
  5197. !            pname, shortpath (NULL, clean_filename), strerror (errno));
  5198.     
  5199.       close (clean_file);
  5200.     }
  5201. ***************
  5202. *** 4285,4291 ****
  5203.                  pname,
  5204.                  shortpath (NULL, convert_filename),
  5205.                  shortpath (NULL, new_filename),
  5206. !                sys_errlist[errno]);
  5207.                 return;
  5208.               }
  5209.           }
  5210. --- 4338,4344 ----
  5211.                  pname,
  5212.                  shortpath (NULL, convert_filename),
  5213.                  shortpath (NULL, new_filename),
  5214. !                strerror (errno));
  5215.                 return;
  5216.               }
  5217.           }
  5218. ***************
  5219. *** 4294,4300 ****
  5220.     if (my_unlink (convert_filename) == -1)
  5221.       {
  5222.         fprintf (stderr, "%s: can't delete file `%s': %s\n",
  5223. !            pname, shortpath (NULL, convert_filename), sys_errlist[errno]);
  5224.         return;
  5225.       }
  5226.   
  5227. --- 4347,4353 ----
  5228.     if (my_unlink (convert_filename) == -1)
  5229.       {
  5230.         fprintf (stderr, "%s: can't delete file `%s': %s\n",
  5231. !            pname, shortpath (NULL, convert_filename), strerror (errno));
  5232.         return;
  5233.       }
  5234.   
  5235. ***************
  5236. *** 4307,4313 ****
  5237.         {
  5238.           fprintf (stderr, "%s: can't create/open output file `%s': %s\n",
  5239.            pname, shortpath (NULL, convert_filename),
  5240. !          sys_errlist[errno]);
  5241.           return;
  5242.         }
  5243.     
  5244. --- 4360,4366 ----
  5245.         {
  5246.           fprintf (stderr, "%s: can't create/open output file `%s': %s\n",
  5247.            pname, shortpath (NULL, convert_filename),
  5248. !          strerror (errno));
  5249.           return;
  5250.         }
  5251.     
  5252. ***************
  5253. *** 4319,4325 ****
  5254.         if (write (output_file, repl_text_base, out_size) != out_size)
  5255.           fprintf (stderr, "%s: error writing file `%s': %s\n",
  5256.            pname, shortpath (NULL, convert_filename),
  5257. !          sys_errlist[errno]);
  5258.       }
  5259.     
  5260.       close (output_file);
  5261. --- 4372,4378 ----
  5262.         if (write (output_file, repl_text_base, out_size) != out_size)
  5263.           fprintf (stderr, "%s: error writing file `%s': %s\n",
  5264.            pname, shortpath (NULL, convert_filename),
  5265. !          strerror (errno));
  5266.       }
  5267.     
  5268.       close (output_file);
  5269. ***************
  5270. *** 4336,4342 ****
  5271.     /* The cast avoids an erroneous warning on AIX.  */
  5272.     if (my_chmod ((char *)convert_filename, stat_buf.st_mode) == -1)
  5273.       fprintf (stderr, "%s: can't change mode of file `%s': %s\n",
  5274. !          pname, shortpath (NULL, convert_filename), sys_errlist[errno]);
  5275.   
  5276.     /* Note:  We would try to change the owner and group of the output file
  5277.        to match those of the input file here, except that may not be a good
  5278. --- 4389,4395 ----
  5279.     /* The cast avoids an erroneous warning on AIX.  */
  5280.     if (my_chmod ((char *)convert_filename, stat_buf.st_mode) == -1)
  5281.       fprintf (stderr, "%s: can't change mode of file `%s': %s\n",
  5282. !          pname, shortpath (NULL, convert_filename), strerror (errno));
  5283.   
  5284.     /* Note:  We would try to change the owner and group of the output file
  5285.        to match those of the input file here, except that may not be a good
  5286. ***************
  5287. *** 4479,4485 ****
  5288.     if (!cwd_buffer)
  5289.       {
  5290.         fprintf (stderr, "%s: cannot get working directory: %s\n",
  5291. !            pname, sys_errlist[errno]);
  5292.         exit (1);
  5293.       }
  5294.   
  5295. --- 4532,4538 ----
  5296.     if (!cwd_buffer)
  5297.       {
  5298.         fprintf (stderr, "%s: cannot get working directory: %s\n",
  5299. !            pname, strerror (errno));
  5300.         exit (1);
  5301.       }
  5302.   
  5303. diff -rc --new-file gcc-2.3.3-fsf/rtl.c gcc-2.3.3-amiga/rtl.c
  5304. *** gcc-2.3.3-fsf/rtl.c    Sat Sep 19 19:33:11 1992
  5305. --- gcc-2.3.3-amiga/rtl.c    Mon Nov 29 15:32:52 1993
  5306. ***************
  5307. *** 49,55 ****
  5308.   
  5309.   #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   NAME ,
  5310.   
  5311. ! char *rtx_name[] = {
  5312.   #include "rtl.def"        /* rtl expressions are documented here */
  5313.   };
  5314.   
  5315. --- 49,55 ----
  5316.   
  5317.   #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   NAME ,
  5318.   
  5319. ! char * const rtx_name[] = {
  5320.   #include "rtl.def"        /* rtl expressions are documented here */
  5321.   };
  5322.   
  5323. ***************
  5324. *** 60,66 ****
  5325.   
  5326.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  NAME,
  5327.   
  5328. ! char *mode_name[(int) MAX_MACHINE_MODE] = {
  5329.   #include "machmode.def"
  5330.   
  5331.   #ifdef EXTRA_CC_MODES
  5332. --- 60,66 ----
  5333.   
  5334.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  NAME,
  5335.   
  5336. ! char * const mode_name[(int) MAX_MACHINE_MODE] = {
  5337.   #include "machmode.def"
  5338.   
  5339.   #ifdef EXTRA_CC_MODES
  5340. ***************
  5341. *** 76,82 ****
  5342.   
  5343.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  CLASS,
  5344.   
  5345. ! enum mode_class mode_class[(int) MAX_MACHINE_MODE] = {
  5346.   #include "machmode.def"
  5347.   };
  5348.   
  5349. --- 76,82 ----
  5350.   
  5351.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  CLASS,
  5352.   
  5353. ! const enum mode_class mode_class[(int) MAX_MACHINE_MODE] = {
  5354.   #include "machmode.def"
  5355.   };
  5356.   
  5357. ***************
  5358. *** 87,93 ****
  5359.   
  5360.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  SIZE,
  5361.   
  5362. ! int mode_size[(int) MAX_MACHINE_MODE] = {
  5363.   #include "machmode.def"
  5364.   };
  5365.   
  5366. --- 87,93 ----
  5367.   
  5368.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  SIZE,
  5369.   
  5370. ! const int mode_size[(int) MAX_MACHINE_MODE] = {
  5371.   #include "machmode.def"
  5372.   };
  5373.   
  5374. ***************
  5375. *** 98,104 ****
  5376.   
  5377.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  UNIT,
  5378.   
  5379. ! int mode_unit_size[(int) MAX_MACHINE_MODE] = {
  5380.   #include "machmode.def"        /* machine modes are documented here */
  5381.   };
  5382.   
  5383. --- 98,104 ----
  5384.   
  5385.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  UNIT,
  5386.   
  5387. ! const int mode_unit_size[(int) MAX_MACHINE_MODE] = {
  5388.   #include "machmode.def"        /* machine modes are documented here */
  5389.   };
  5390.   
  5391. ***************
  5392. *** 111,117 ****
  5393.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  \
  5394.     (enum machine_mode) WIDER,
  5395.   
  5396. ! enum machine_mode mode_wider_mode[(int) MAX_MACHINE_MODE] = {
  5397.   #include "machmode.def"        /* machine modes are documented here */
  5398.   };
  5399.   
  5400. --- 111,117 ----
  5401.   #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER)  \
  5402.     (enum machine_mode) WIDER,
  5403.   
  5404. ! const enum machine_mode mode_wider_mode[(int) MAX_MACHINE_MODE] = {
  5405.   #include "machmode.def"        /* machine modes are documented here */
  5406.   };
  5407.   
  5408. ***************
  5409. *** 130,136 ****
  5410.      rtx's of that code.  The sequence is a C string in which
  5411.      each character describes one operand.  */
  5412.   
  5413. ! char *rtx_format[] = {
  5414.     /* "*" undefined.
  5415.            can cause a warning message
  5416.        "0" field is unused (or used in a phase-dependent manner)
  5417. --- 130,136 ----
  5418.      rtx's of that code.  The sequence is a C string in which
  5419.      each character describes one operand.  */
  5420.   
  5421. ! char *const rtx_format[] = {
  5422.     /* "*" undefined.
  5423.            can cause a warning message
  5424.        "0" field is unused (or used in a phase-dependent manner)
  5425. ***************
  5426. *** 161,167 ****
  5427.   /* Indexed by rtx code, gives a character representing the "class" of
  5428.      that rtx code.  See rtl.def for documentation on the defined classes.  */
  5429.   
  5430. ! char rtx_class[] = {
  5431.   #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   CLASS, 
  5432.   #include "rtl.def"        /* rtl expressions are defined here */
  5433.   #undef DEF_RTL_EXPR
  5434. --- 161,167 ----
  5435.   /* Indexed by rtx code, gives a character representing the "class" of
  5436.      that rtx code.  See rtl.def for documentation on the defined classes.  */
  5437.   
  5438. ! const char rtx_class[] = {
  5439.   #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   CLASS, 
  5440.   #include "rtl.def"        /* rtl expressions are defined here */
  5441.   #undef DEF_RTL_EXPR
  5442. ***************
  5443. *** 169,175 ****
  5444.   
  5445.   /* Names for kinds of NOTEs and REG_NOTEs.  */
  5446.   
  5447. ! char *note_insn_name[] = { "NOTE_INSN_FUNCTION_BEG", "NOTE_INSN_DELETED",
  5448.                  "NOTE_INSN_BLOCK_BEG", "NOTE_INSN_BLOCK_END",
  5449.                  "NOTE_INSN_LOOP_BEG", "NOTE_INSN_LOOP_END",
  5450.                  "NOTE_INSN_FUNCTION_END", "NOTE_INSN_SETJMP",
  5451. --- 169,176 ----
  5452.   
  5453.   /* Names for kinds of NOTEs and REG_NOTEs.  */
  5454.   
  5455. ! char * const note_insn_name[] = 
  5456. !              { "NOTE_INSN_FUNCTION_BEG", "NOTE_INSN_DELETED",
  5457.                  "NOTE_INSN_BLOCK_BEG", "NOTE_INSN_BLOCK_END",
  5458.                  "NOTE_INSN_LOOP_BEG", "NOTE_INSN_LOOP_END",
  5459.                  "NOTE_INSN_FUNCTION_END", "NOTE_INSN_SETJMP",
  5460. ***************
  5461. *** 177,183 ****
  5462.                  "NOTE_INSN_PROLOGUE_END", "NOTE_INSN_EPILOGUE_BEG",
  5463.                  "NOTE_INSN_DELETED_LABEL"};
  5464.   
  5465. ! char *reg_note_name[] = { "", "REG_DEAD", "REG_INC", "REG_EQUIV", "REG_WAS_0",
  5466.                 "REG_EQUAL", "REG_RETVAL", "REG_LIBCALL",
  5467.                 "REG_NONNEG", "REG_NO_CONFLICT", "REG_UNUSED",
  5468.                 "REG_CC_SETTER", "REG_CC_USER", "REG_LABEL",
  5469. --- 178,185 ----
  5470.                  "NOTE_INSN_PROLOGUE_END", "NOTE_INSN_EPILOGUE_BEG",
  5471.                  "NOTE_INSN_DELETED_LABEL"};
  5472.   
  5473. ! char * const reg_note_name[] = 
  5474. !             { "", "REG_DEAD", "REG_INC", "REG_EQUIV", "REG_WAS_0",
  5475.                 "REG_EQUAL", "REG_RETVAL", "REG_LIBCALL",
  5476.                 "REG_NONNEG", "REG_NO_CONFLICT", "REG_UNUSED",
  5477.                 "REG_CC_SETTER", "REG_CC_USER", "REG_LABEL",
  5478. diff -rc --new-file gcc-2.3.3-fsf/rtl.h gcc-2.3.3-amiga/rtl.h
  5479. *** gcc-2.3.3-fsf/rtl.h    Sun Dec 13 01:42:19 1992
  5480. --- gcc-2.3.3-amiga/rtl.h    Mon Nov 29 15:32:56 1993
  5481. ***************
  5482. *** 42,54 ****
  5483.   extern int rtx_length[];
  5484.   #define GET_RTX_LENGTH(CODE)        (rtx_length[(int)(CODE)])
  5485.   
  5486. ! extern char *rtx_name[];
  5487.   #define GET_RTX_NAME(CODE)        (rtx_name[(int)(CODE)])
  5488.   
  5489. ! extern char *rtx_format[];
  5490.   #define GET_RTX_FORMAT(CODE)        (rtx_format[(int)(CODE)])
  5491.   
  5492. ! extern char rtx_class[];
  5493.   #define GET_RTX_CLASS(CODE)        (rtx_class[(int)(CODE)])
  5494.   
  5495.   /* Common union for an element of an rtx.  */
  5496. --- 42,54 ----
  5497.   extern int rtx_length[];
  5498.   #define GET_RTX_LENGTH(CODE)        (rtx_length[(int)(CODE)])
  5499.   
  5500. ! extern char * const rtx_name[];
  5501.   #define GET_RTX_NAME(CODE)        (rtx_name[(int)(CODE)])
  5502.   
  5503. ! extern char * const rtx_format[];
  5504.   #define GET_RTX_FORMAT(CODE)        (rtx_format[(int)(CODE)])
  5505.   
  5506. ! extern const char rtx_class[];
  5507.   #define GET_RTX_CLASS(CODE)        (rtx_class[(int)(CODE)])
  5508.   
  5509.   /* Common union for an element of an rtx.  */
  5510. ***************
  5511. *** 328,334 ****
  5512.   
  5513.   /* Names for REG_NOTE's in EXPR_LIST insn's.  */
  5514.   
  5515. ! extern char *reg_note_name[];
  5516.   #define GET_REG_NOTE_NAME(MODE) (reg_note_name[(int)(MODE)])
  5517.   
  5518.   /* The label-number of a code-label.  The assembler label
  5519. --- 328,334 ----
  5520.   
  5521.   /* Names for REG_NOTE's in EXPR_LIST insn's.  */
  5522.   
  5523. ! extern char *const reg_note_name[];
  5524.   #define GET_REG_NOTE_NAME(MODE) (reg_note_name[(int)(MODE)])
  5525.   
  5526.   /* The label-number of a code-label.  The assembler label
  5527. ***************
  5528. *** 396,402 ****
  5529.   
  5530.   /* Names for NOTE insn's other than line numbers.  */
  5531.   
  5532. ! extern char *note_insn_name[];
  5533.   #define GET_NOTE_INSN_NAME(NOTE_CODE) (note_insn_name[-(NOTE_CODE)])
  5534.   
  5535.   /* The name of a label, in case it corresponds to an explicit label
  5536. --- 396,402 ----
  5537.   
  5538.   /* Names for NOTE insn's other than line numbers.  */
  5539.   
  5540. ! extern char *const note_insn_name[];
  5541.   #define GET_NOTE_INSN_NAME(NOTE_CODE) (note_insn_name[-(NOTE_CODE)])
  5542.   
  5543.   /* The name of a label, in case it corresponds to an explicit label
  5544. diff -rc --new-file gcc-2.3.3-fsf/toplev.c gcc-2.3.3-amiga/toplev.c
  5545. *** gcc-2.3.3-fsf/toplev.c    Sun Nov 22 21:20:25 1992
  5546. --- gcc-2.3.3-amiga/toplev.c    Mon Nov 29 15:33:02 1993
  5547. ***************
  5548. *** 472,477 ****
  5549. --- 472,478 ----
  5550.     {"unroll-all-loops", &flag_unroll_all_loops, 1},
  5551.     {"writable-strings", &flag_writable_strings, 1},
  5552.     {"peephole", &flag_no_peephole, 0},
  5553. +   {"large-baserel", &flag_pic, 4},
  5554.     {"force-mem", &flag_force_mem, 1},
  5555.     {"force-addr", &flag_force_addr, 1},
  5556.     {"function-cse", &flag_no_function_cse, 0},
  5557. ***************
  5558. *** 489,494 ****
  5559. --- 490,496 ----
  5560.     {"schedule-insns2", &flag_schedule_insns_after_reload, 1},
  5561.     {"pic", &flag_pic, 1},
  5562.     {"PIC", &flag_pic, 2},
  5563. +   {"baserel", &flag_pic, 3},
  5564.     {"fast-math", &flag_fast_math, 1},
  5565.     {"common", &flag_no_common, 0},
  5566.     {"inhibit-size-directive", &flag_inhibit_size_directive, 1},
  5567. ***************
  5568. *** 1453,1458 ****
  5569. --- 1455,1463 ----
  5570.        FILE *asm_file;
  5571.        char *input_name;
  5572.   {
  5573. + #ifdef FILE_NAME_NONDIRECTORY
  5574. +   char *na = FILE_NAME_NONDIRECTORY (input_name);
  5575. + #else
  5576.     int len = strlen (input_name);
  5577.     char *na = input_name + len;
  5578.   
  5579. ***************
  5580. *** 1463,1468 ****
  5581. --- 1468,1474 ----
  5582.       break;
  5583.         na--;
  5584.       }
  5585. + #endif
  5586.   
  5587.   #ifdef ASM_OUTPUT_MAIN_SOURCE_FILENAME
  5588.     ASM_OUTPUT_MAIN_SOURCE_FILENAME (asm_file, na);
  5589. ***************
  5590. *** 3286,3291 ****
  5591. --- 3292,3298 ----
  5592.   
  5593.   #ifndef OS2
  5594.   #ifndef VMS
  5595. + #ifndef amigados
  5596.     if (flag_print_mem)
  5597.       {
  5598.         char *lim = (char *) sbrk (0);
  5599. ***************
  5600. *** 3300,3305 ****
  5601. --- 3307,3313 ----
  5602.         system ("ps v");
  5603.   #endif /* not USG */
  5604.       }
  5605. + #endif /* not amigados */
  5606.   #endif /* not VMS */
  5607.   #endif /* not OS2 */
  5608.   
  5609. diff -rc --new-file gcc-2.3.3-fsf/tree.c gcc-2.3.3-amiga/tree.c
  5610. *** gcc-2.3.3-fsf/tree.c    Thu Oct 22 12:00:22 1992
  5611. --- gcc-2.3.3-amiga/tree.c    Mon Nov 29 15:33:08 1993
  5612. ***************
  5613. *** 246,252 ****
  5614.   /* Unique id for next decl created.  */
  5615.   static int next_decl_uid;
  5616.   
  5617. ! extern char *mode_name[];
  5618.   
  5619.   void gcc_obstack_init ();
  5620.   static tree stabilize_reference_1 ();
  5621. --- 246,252 ----
  5622.   /* Unique id for next decl created.  */
  5623.   static int next_decl_uid;
  5624.   
  5625. ! extern char *const mode_name[];
  5626.   
  5627.   void gcc_obstack_init ();
  5628.   static tree stabilize_reference_1 ();
  5629.