home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-07 | 177.2 KB | 5,856 lines |
- diff -rc --new-file gcc-2.3.3-fsf/Makefile.in gcc-2.3.3-amiga/Makefile.in
- *** gcc-2.3.3-fsf/Makefile.in Fri Dec 25 07:07:58 1992
- --- gcc-2.3.3-amiga/Makefile.in Sat Feb 5 18:36:26 1994
- ***************
- *** 58,64 ****
- AR_FLAGS = rc
- SHELL = /bin/sh
- # on sysV, define this as cp.
- ! INSTALL = install -c
- # These permit overriding just for certain files.
- INSTALL_PROGRAM = $(INSTALL)
- INSTALL_DATA = $(INSTALL)
- --- 58,64 ----
- AR_FLAGS = rc
- SHELL = /bin/sh
- # on sysV, define this as cp.
- ! INSTALL = cp
- # These permit overriding just for certain files.
- INSTALL_PROGRAM = $(INSTALL)
- INSTALL_DATA = $(INSTALL)
- ***************
- *** 133,138 ****
- --- 133,145 ----
- # Common prefix for installation directories.
- # NOTE: This directory must exist when you start installation.
- prefix = /usr/local
- + # Directory in which to put localized header files. On the systems with
- + # gcc as the native cc, `local_prefix' may not be `prefix' which is
- + # `/usr'. Similar considerations apply for toolkits located on non-writable
- + # storage, such as CD-ROM, where we need a completely separate place to put
- + # local include files.
- + # NOTE: local_prefix *should not* default from prefix.
- + local_prefix = /usr/local
- # Directory in which to put host dependent programs and libraries
- exec_prefix = $(prefix)
- # Directory in which to put the executable for the command `gcc'
- ***************
- *** 482,489 ****
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgcc gcc.o version.o $(LIBS)
-
- # Dump a specs file to make -B./ read these specs over installed ones.
- ! specs: xgcc
- ! ./xgcc -dumpspecs > specs
-
- # We do want to create an executable named `xgcc', so we can use it to
- # compile libgcc2.a.
- --- 489,496 ----
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgcc gcc.o version.o $(LIBS)
-
- # Dump a specs file to make -B./ read these specs over installed ones.
- ! specs: xgcc xgccv
- ! ./$(XGCC) -dumpspecs > specs
-
- # We do want to create an executable named `xgcc', so we can use it to
- # compile libgcc2.a.
- ***************
- *** 659,666 ****
- then (cd tmpcopy; $(AR) x ../$(LIBGCC1)); \
- else true; \
- fi
- ! (cd tmpcopy; $(AR) x ../$(LIBGCC2))
- ! (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
- rm -rf tmpcopy
- -if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
- # Actually build it in tmplibgcc.a, then rename at end,
- --- 666,676 ----
- then (cd tmpcopy; $(AR) x ../$(LIBGCC1)); \
- else true; \
- fi
- ! # the cd .. make sure there's no lock left on tmpcopy (this is actually a
- ! # bug in ixemul.library, but I can't get around it currently because it
- ! # involves an OS bug which is beyond my capabilities to fix...)
- ! (cd tmpcopy; $(AR) x ../$(LIBGCC2) ; cd ..; /c/wait 2)
- ! (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o; cd ..; /c/wait 2)
- rm -rf tmpcopy
- -if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
- # Actually build it in tmplibgcc.a, then rename at end,
- ***************
- *** 677,686 ****
- cd objc; \
- $(MAKE) -f $${srcdir1}/objc/Makefile libobjc.a \
- srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
- ! GCC_FOR_TARGET="$${thisdir1}/xgcc -B$${thisdir1}/" \
- GCC_CFLAGS="$(GCC_CFLAGS)"
- -rm -f libobjc.a
- ! ln objc/libobjc.a . >/dev/null 2>&1 || cp objc/libobjc.a .
- -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
-
- # This is used by objc/Makefile if the user runs that directly.
- --- 687,696 ----
- cd objc; \
- $(MAKE) -f $${srcdir1}/objc/Makefile libobjc.a \
- srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
- ! GCC_FOR_TARGET="$${thisdir1}/$(XGCC) -B$${thisdir1}/" \
- GCC_CFLAGS="$(GCC_CFLAGS)"
- -rm -f libobjc.a
- ! cp objc/libobjc.a . >/dev/null 2>&1 || cp objc/libobjc.a .
- -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
-
- # This is used by objc/Makefile if the user runs that directly.
- ***************
- *** 690,696 ****
- cd objc; \
- $(MAKE) -f $$srcdir1/objc/Makefile libobjc.a \
- srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
- ! GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
- GCC_CFLAGS="$(GCC_CFLAGS)"
-
- # Compile two additional files that are linked with every program
- --- 700,706 ----
- cd objc; \
- $(MAKE) -f $$srcdir1/objc/Makefile libobjc.a \
- srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
- ! GCC_FOR_TARGET="$$thisdir1/$(XGCC) -B$$thisdir1/" \
- GCC_CFLAGS="$(GCC_CFLAGS)"
-
- # Compile two additional files that are linked with every program
- ***************
- *** 772,778 ****
- # To make a configuration always use collect2, set USE_COLLECT2 to ld.
- ld: collect2
- rm -f ld
- ! ln collect2 ld
-
- collect2 : collect2.o version.o $(LIBDEPS)
- # Don't try modifying collect2 (aka ld) in place--it might be linking this.
- --- 782,788 ----
- # To make a configuration always use collect2, set USE_COLLECT2 to ld.
- ld: collect2
- rm -f ld
- ! cp collect2 ld
-
- collect2 : collect2.o version.o $(LIBDEPS)
- # Don't try modifying collect2 (aka ld) in place--it might be linking this.
- ***************
- *** 1157,1163 ****
- # Making the preprocessor
- cpp: cccp
- -rm -f cpp
- ! ln cccp cpp
- cccp: cccp.o cexp.o version.o $(LIBDEPS)
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
- cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
- --- 1167,1173 ----
- # Making the preprocessor
- cpp: cccp
- -rm -f cpp
- ! cp cccp cpp
- cccp: cccp.o cexp.o version.o $(LIBDEPS)
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
- cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
- ***************
- *** 1170,1176 ****
- $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
- -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
- ! -DLOCAL_INCLUDE_DIR=\"$(prefix)/include\" \
- -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
- -DTOOLDIR=\"$(tooldir)/\" \
- -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
- --- 1180,1186 ----
- $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
- -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
- ! -DLOCAL_INCLUDE_DIR=\"$(local_prefix)/include\" \
- -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
- -DTOOLDIR=\"$(tooldir)/\" \
- -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
- ***************
- *** 1357,1363 ****
-
- # Copy the files of native compiler into directories where they will be run.
- install-native: install-common install-libgcc $(INSTALL_HEADERS) \
- ! install-man
-
- # Copy the files of cross compiler into directories where they will be run.
- install-cross: install-common install-common-headers \
- --- 1367,1373 ----
-
- # Copy the files of native compiler into directories where they will be run.
- install-native: install-common install-libgcc $(INSTALL_HEADERS) \
- ! install-man $(INSTALL_EXTRA_PARTS)
-
- # Copy the files of cross compiler into directories where they will be run.
- install-cross: install-common install-common-headers \
- ***************
- *** 1490,1496 ****
- rm -f $(bindir)/gcc; \
- $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
- rm -f $(bindir)/gcc-$(target)-1; \
- ! ln $(bindir)/gcc $(bindir)/gcc-$(target)-1; \
- mv $(bindir)/gcc-$(target)-1 $(bindir)/gcc-$(target); \
- fi
- # Install protoize if it was compiled.
- --- 1500,1506 ----
- rm -f $(bindir)/gcc; \
- $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
- rm -f $(bindir)/gcc-$(target)-1; \
- ! cp $(bindir)/gcc $(bindir)/gcc-$(target)-1; \
- mv $(bindir)/gcc-$(target)-1 $(bindir)/gcc-$(target); \
- fi
- # Install protoize if it was compiled.
- ***************
- *** 1707,1723 ****
- mkdir tmp/config
- mkdir tmp/objc
- for file in *[0-9a-zA-Z+]; do \
- ! ln $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
- done
- cd config; \
- for file in *[0-9a-zA-Z+]; do \
- ! ln $$file ../tmp/config >/dev/null 2>&1 || cp $$file ../tmp/config; \
- done
- cd objc; \
- for file in *[0-9a-zA-Z+]; do \
- ! ln $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
- done
- ! ln .gdbinit tmp
- mv tmp gcc-$(version)
- # Get rid of everything we don't want in the distribution.
- cd gcc-$(version); make -f Makefile.in extraclean
- --- 1717,1733 ----
- mkdir tmp/config
- mkdir tmp/objc
- for file in *[0-9a-zA-Z+]; do \
- ! cp $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
- done
- cd config; \
- for file in *[0-9a-zA-Z+]; do \
- ! cp $$file ../tmp/config >/dev/null 2>&1 || cp $$file ../tmp/config; \
- done
- cd objc; \
- for file in *[0-9a-zA-Z+]; do \
- ! cp $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
- done
- ! cp .gdbinit tmp
- mv tmp gcc-$(version)
- # Get rid of everything we don't want in the distribution.
- cd gcc-$(version); make -f Makefile.in extraclean
- ***************
- *** 1730,1746 ****
- # in the intended test directory to make it a suitable test directory.
- # THIS IS OBSOLETE; use the -srcdir operand in configure instead.
- maketest:
- ! ln -s $(DIR)/*.[chy] .
- ! ln -s $(DIR)/configure .
- ! ln -s $(DIR)/*.def .
- -rm -f =*
- ! ln -s $(DIR)/.gdbinit .
- ! ln -s $(DIR)/$(FIXINCLUDES) .
- ! -ln -s $(DIR)/bison.simple .
- ! ln -s $(DIR)/config .
- ! ln -s $(DIR)/move-if-change .
- # The then and else were swapped to avoid a problem on Ultrix.
- ! if [ ! -f Makefile ] ; then ln -s $(DIR)/Makefile .; else false; fi
- -rm tm.h aux-output.c config.h md
- make clean
- # You must then run config to set up for compilation.
- --- 1740,1756 ----
- # in the intended test directory to make it a suitable test directory.
- # THIS IS OBSOLETE; use the -srcdir operand in configure instead.
- maketest:
- ! cp $(DIR)/*.[chy] .
- ! cp $(DIR)/configure .
- ! cp $(DIR)/*.def .
- -rm -f =*
- ! cp $(DIR)/.gdbinit .
- ! cp $(DIR)/$(FIXINCLUDES) .
- ! -cp $(DIR)/bison.simple .
- ! cp $(DIR)/config .
- ! cp $(DIR)/move-if-change .
- # The then and else were swapped to avoid a problem on Ultrix.
- ! if [ ! -f Makefile ] ; then cp $(DIR)/Makefile .; else false; fi
- -rm tm.h aux-output.c config.h md
- make clean
- # You must then run config to set up for compilation.
- ***************
- *** 1756,1772 ****
- # To prevent `make install' from compiling alloca.o and then relinking cc1
- # because alloca.o is newer, we permit these recursive makes to compile
- # alloca.o. Then cc1 is newer, so it won't have to be relinked.
- ! $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
- $(MAKE) stage2
- ! $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
-
- bootstrap2: force
- ! $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
- $(MAKE) stage2
- ! $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
-
- bootstrap3: force
- ! $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
-
- # Compare the object files in the current directory with those in the
- # stage2 directory.
- --- 1766,1782 ----
- # To prevent `make install' from compiling alloca.o and then relinking cc1
- # because alloca.o is newer, we permit these recursive makes to compile
- # alloca.o. Then cc1 is newer, so it won't have to be relinked.
- ! $(MAKE) CC="stage1/$(XGCC) -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
- $(MAKE) stage2
- ! $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
-
- bootstrap2: force
- ! $(MAKE) CC="stage1/$(XGCC) -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
- $(MAKE) stage2
- ! $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
-
- bootstrap3: force
- ! $(MAKE) CC="stage2/$(XGCC) -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
-
- # Compare the object files in the current directory with those in the
- # stage2 directory.
- ***************
- *** 1789,1816 ****
- -rm -f tmp-foo*
-
- # Copy the object files from a particular stage into a subdirectory.
- ! stage1: force
- -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
- -mv $(STAGESTUFF) stage1
- -rm -f stage1/libgcc.a
- -cp libgcc.a stage1
- -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libgcc.a; else true; fi
-
- ! stage2: force
- -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
- -mv $(STAGESTUFF) stage2
- -rm -f stage2/libgcc.a
- -cp libgcc.a stage2
- -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libgcc.a; else true; fi
-
- ! stage3: force
- -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
- -mv $(STAGESTUFF) stage3
- -rm -f stage3/libgcc.a
- -cp libgcc.a stage3
- -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libgcc.a; else true; fi
-
- ! stage4: force
- -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
- -mv $(STAGESTUFF) stage4
- -rm -f stage4/libgcc.a
- --- 1799,1826 ----
- -rm -f tmp-foo*
-
- # Copy the object files from a particular stage into a subdirectory.
- ! stage1: force $(EXTRA_STAGE1_TARGETS)
- -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
- -mv $(STAGESTUFF) stage1
- -rm -f stage1/libgcc.a
- -cp libgcc.a stage1
- -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libgcc.a; else true; fi
-
- ! stage2: force $(EXTRA_STAGE2_TARGETS)
- -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
- -mv $(STAGESTUFF) stage2
- -rm -f stage2/libgcc.a
- -cp libgcc.a stage2
- -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libgcc.a; else true; fi
-
- ! stage3: force $(EXTRA_STAGE3_TARGETS)
- -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
- -mv $(STAGESTUFF) stage3
- -rm -f stage3/libgcc.a
- -cp libgcc.a stage3
- -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libgcc.a; else true; fi
-
- ! stage4: force $(EXTRA_STAGE4_TARGETS)
- -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
- -mv $(STAGESTUFF) stage4
- -rm -f stage4/libgcc.a
- diff -rc --new-file gcc-2.3.3-fsf/c-parse.c gcc-2.3.3-amiga/c-parse.c
- *** gcc-2.3.3-fsf/c-parse.c Wed Oct 7 20:19:19 1992
- --- gcc-2.3.3-amiga/c-parse.c Sat Feb 5 14:49:23 1994
- ***************
- *** 1,5 ****
-
- ! /* A Bison parser, made from c-parse.y */
-
- #define YYBISON 1 /* Identify Bison output. */
-
- --- 1,6 ----
-
- ! /* A Bison parser, made from c-parse.y with Bison version GNU Bison version 1.22
- ! */
-
- #define YYBISON 1 /* Identify Bison output. */
-
- ***************
- *** 132,140 ****
- --- 133,143 ----
-
- #include <stdio.h>
-
- + #ifndef __cplusplus
- #ifndef __STDC__
- #define const
- #endif
- + #endif
-
-
-
- ***************
- *** 178,183 ****
- --- 181,187 ----
- 60, 61, 62, 63, 64, 65, 66, 67
- };
-
- + #if YYDEBUG != 0
- static const short yyprhs[] = { 0,
- 0, 1, 3, 4, 7, 8, 12, 14, 16, 22,
- 26, 31, 36, 39, 42, 45, 48, 50, 51, 52,
- ***************
- *** 333,338 ****
- --- 337,344 ----
- 89, 0
- };
-
- + #endif
- +
- #if YYDEBUG != 0
- static const short yyrline[] = { 0,
- 209, 213, 222, 224, 224, 225, 227, 229, 230, 240,
- ***************
- *** 350,375 ****
- 742, 745, 758, 761, 765, 767, 775, 776, 777, 781,
- 783, 789, 790, 791, 794, 796, 799, 801, 804, 807,
- 813, 818, 820, 826, 831, 833, 840, 843, 848, 850,
- ! 855, 860, 870, 881, 899, 901, 905, 907, 909, 915,
- ! 918, 921, 925, 930, 932, 934, 936, 940, 957, 961,
- ! 978, 985, 987, 992, 995, 1000, 1002, 1004, 1006, 1014,
- ! 1020, 1022, 1024, 1026, 1032, 1038, 1040, 1042, 1044, 1046,
- ! 1049, 1054, 1058, 1061, 1063, 1065, 1067, 1070, 1072, 1075,
- ! 1078, 1081, 1084, 1088, 1090, 1093, 1095, 1099, 1102, 1107,
- ! 1109, 1111, 1125, 1131, 1136, 1141, 1146, 1150, 1152, 1156,
- ! 1160, 1164, 1173, 1175, 1180, 1183, 1187, 1190, 1194, 1197,
- ! 1200, 1203, 1207, 1210, 1214, 1218, 1220, 1222, 1224, 1226,
- ! 1228, 1230, 1232, 1240, 1242, 1243, 1246, 1248, 1251, 1254,
- ! 1265, 1267, 1272, 1274, 1277, 1291, 1294, 1297, 1299, 1304,
- ! 1309, 1317, 1322, 1325, 1338, 1346, 1350, 1354, 1358, 1364,
- ! 1368, 1373, 1375, 1386, 1389, 1394, 1399, 1402, 1410, 1412,
- ! 1422, 1432, 1433, 1441, 1444, 1456, 1460, 1476, 1483, 1492,
- ! 1494, 1499, 1504, 1508, 1512, 1523, 1530, 1537, 1544, 1555,
- ! 1559, 1566, 1590, 1618, 1633, 1644, 1647, 1651, 1654, 1659,
- ! 1661, 1664, 1666, 1670, 1675, 1678, 1684, 1689, 1694, 1696,
- ! 1705, 1706, 1712, 1714, 1719, 1721, 1725, 1728, 1734, 1737,
- ! 1739, 1741, 1743, 1750, 1755, 1760, 1762, 1771, 1774, 1779,
- ! 1782
- };
-
- static const char * const yytname[] = { "$","error","$illegal.","IDENTIFIER",
- --- 356,381 ----
- 742, 745, 758, 761, 765, 767, 775, 776, 777, 781,
- 783, 789, 790, 791, 794, 796, 799, 801, 804, 807,
- 813, 818, 820, 826, 831, 833, 840, 843, 848, 850,
- ! 855, 867, 877, 888, 906, 908, 912, 914, 916, 922,
- ! 925, 928, 932, 937, 939, 941, 943, 947, 964, 968,
- ! 985, 992, 994, 999, 1002, 1007, 1009, 1011, 1013, 1021,
- ! 1027, 1029, 1031, 1033, 1039, 1045, 1047, 1049, 1051, 1053,
- ! 1056, 1061, 1065, 1068, 1070, 1072, 1074, 1077, 1079, 1082,
- ! 1085, 1088, 1091, 1095, 1097, 1100, 1102, 1106, 1109, 1114,
- ! 1116, 1118, 1132, 1138, 1143, 1148, 1153, 1157, 1159, 1163,
- ! 1167, 1171, 1180, 1182, 1187, 1190, 1194, 1197, 1201, 1204,
- ! 1207, 1210, 1214, 1217, 1221, 1225, 1227, 1229, 1231, 1233,
- ! 1235, 1237, 1239, 1247, 1249, 1250, 1253, 1255, 1258, 1261,
- ! 1272, 1274, 1279, 1281, 1284, 1298, 1301, 1304, 1306, 1311,
- ! 1316, 1324, 1329, 1332, 1345, 1353, 1357, 1361, 1365, 1371,
- ! 1375, 1380, 1382, 1393, 1396, 1401, 1406, 1409, 1417, 1419,
- ! 1429, 1439, 1440, 1448, 1451, 1463, 1467, 1483, 1490, 1499,
- ! 1501, 1506, 1511, 1515, 1519, 1530, 1537, 1544, 1551, 1562,
- ! 1566, 1573, 1597, 1625, 1640, 1651, 1654, 1658, 1661, 1666,
- ! 1668, 1671, 1673, 1677, 1682, 1685, 1691, 1696, 1701, 1703,
- ! 1712, 1713, 1719, 1721, 1726, 1728, 1732, 1735, 1741, 1744,
- ! 1746, 1748, 1750, 1757, 1762, 1767, 1769, 1778, 1781, 1786,
- ! 1789
- };
-
- static const char * const yytname[] = { "$","error","$illegal.","IDENTIFIER",
- ***************
- *** 1078,1084 ****
- 50, 51
- };
- /* -*-C-*- Note some compilers choke on comments on `#line' lines. */
- ! #line 3 "bison.simple"
-
- /* Skeleton output parser for bison,
- Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
- --- 1084,1090 ----
- 50, 51
- };
- /* -*-C-*- Note some compilers choke on comments on `#line' lines. */
- ! #line 3 "/usr/lib/bison.simple"
-
- /* Skeleton output parser for bison,
- Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
- ***************
- *** 1102,1108 ****
- #ifdef __GNUC__
- #define alloca __builtin_alloca
- #else /* not GNU C. */
- ! #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__)
- #include <alloca.h>
- #else /* not sparc */
- #if defined (MSDOS) && !defined (__TURBOC__)
- --- 1108,1114 ----
- #ifdef __GNUC__
- #define alloca __builtin_alloca
- #else /* not GNU C. */
- ! #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
- #include <alloca.h>
- #else /* not sparc */
- #if defined (MSDOS) && !defined (__TURBOC__)
- ***************
- *** 1111,1116 ****
- --- 1117,1132 ----
- #if defined(_AIX)
- #include <malloc.h>
- #pragma alloca
- + #else /* not MSDOS, __TURBOC__, or _AIX */
- + #ifdef __hpux
- + #ifdef __cplusplus
- + extern "C" {
- + void *alloca (unsigned int);
- + };
- + #else /* not __cplusplus */
- + void *alloca ();
- + #endif /* not __cplusplus */
- + #endif /* __hpux */
- #endif /* not _AIX */
- #endif /* not MSDOS, or __TURBOC__ */
- #endif /* not sparc. */
- ***************
- *** 1204,1209 ****
- --- 1220,1230 ----
- #ifndef YYMAXDEPTH
- #define YYMAXDEPTH 10000
- #endif
- +
- + /* Prevent warning if -Wstrict-prototypes. */
- + #ifdef __GNUC__
- + int yyparse (void);
- + #endif
-
- #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
- #define __yy_bcopy(FROM,TO,COUNT) __builtin_memcpy(TO,FROM,COUNT)
- ***************
- *** 1244,1250 ****
- #endif
- #endif
-
- ! #line 169 "bison.simple"
- int
- yyparse()
- {
- --- 1265,1271 ----
- #endif
- #endif
-
- ! #line 184 "/usr/lib/bison.simple"
- int
- yyparse()
- {
- ***************
- *** 1253,1259 ****
- register short *yyssp;
- register YYSTYPE *yyvsp;
- int yyerrstatus; /* number of tokens to shift before error messages enabled */
- ! int yychar1; /* lookahead token as an internal (translated) token number */
-
- short yyssa[YYINITDEPTH]; /* the state stack */
- YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
- --- 1274,1280 ----
- register short *yyssp;
- register YYSTYPE *yyvsp;
- int yyerrstatus; /* number of tokens to shift before error messages enabled */
- ! int yychar1 = 0; /* lookahead token as an internal (translated) token number */
-
- short yyssa[YYINITDEPTH]; /* the state stack */
- YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
- ***************
- *** 1300,1306 ****
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- ! so that they stay on the same level as the state stack. */
-
- yyssp = yyss - 1;
- yyvsp = yyvs;
- --- 1321,1328 ----
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- ! so that they stay on the same level as the state stack.
- ! The wasted elements are never initialized. */
-
- yyssp = yyss - 1;
- yyvsp = yyvs;
- ***************
- *** 1331,1343 ****
- #ifdef yyoverflow
- /* Each stack pointer address is followed by the size of
- the data in use in that stack, in bytes. */
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- - #ifdef YYLSP_NEEDED
- &yyls1, size * sizeof (*yylsp),
- - #endif
- &yystacksize);
-
- yyss = yyss1; yyvs = yyvs1;
- #ifdef YYLSP_NEEDED
- --- 1353,1372 ----
- #ifdef yyoverflow
- /* Each stack pointer address is followed by the size of
- the data in use in that stack, in bytes. */
- + #ifdef YYLSP_NEEDED
- + /* This used to be a conditional around just the two extra args,
- + but that might be undefined if yyoverflow is a macro. */
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yyls1, size * sizeof (*yylsp),
- &yystacksize);
- + #else
- + yyoverflow("parser stack overflow",
- + &yyss1, size * sizeof (*yyssp),
- + &yyvs1, size * sizeof (*yyvsp),
- + &yystacksize);
- + #endif
-
- yyss = yyss1; yyvs = yyvs1;
- #ifdef YYLSP_NEEDED
- ***************
- *** 1383,1388 ****
- --- 1412,1418 ----
- fprintf(stderr, "Entering state %d\n", yystate);
- #endif
-
- + goto yybackup;
- yybackup:
-
- /* Do appropriate processing given the current state. */
- ***************
- *** 1497,1503 ****
- /* Do a reduction. yyn is the number of a rule to reduce with. */
- yyreduce:
- yylen = yyr2[yyn];
- ! yyval = yyvsp[1-yylen]; /* implement default value of the action */
-
- #if YYDEBUG != 0
- if (yydebug)
- --- 1527,1534 ----
- /* Do a reduction. yyn is the number of a rule to reduce with. */
- yyreduce:
- yylen = yyr2[yyn];
- ! if (yylen > 0)
- ! yyval = yyvsp[1-yylen]; /* implement default value of the action */
-
- #if YYDEBUG != 0
- if (yydebug)
- ***************
- *** 1507,1513 ****
- fprintf (stderr, "Reducing via rule %d (line %d), ",
- yyn, yyrline[yyn]);
-
- ! /* Print the symboles being reduced, and their result. */
- for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
- fprintf (stderr, "%s ", yytname[yyrhs[i]]);
- fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
- --- 1538,1544 ----
- fprintf (stderr, "Reducing via rule %d (line %d), ",
- yyn, yyrline[yyn]);
-
- ! /* Print the symbols being reduced, and their result. */
- for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
- fprintf (stderr, "%s ", yytname[yyrhs[i]]);
- fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
- ***************
- *** 2210,2222 ****
- break;}
- case 151:
- #line 856 "c-parse.y"
- ! { if (strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "packed"))
- warning ("`%s' attribute directive ignored",
- IDENTIFIER_POINTER (yyvsp[0].ttype));
- yyval.ttype = yyvsp[0].ttype; ;
- break;}
- case 152:
- ! #line 861 "c-parse.y"
- { /* If not "mode (m)", then issue warning. */
- if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "mode") != 0)
- {
- --- 2241,2260 ----
- break;}
- case 151:
- #line 856 "c-parse.y"
- ! {
- ! #ifdef HANDLE_ATTRIBUTE0
- ! /* give the function a chance to validate further attributes */
- ! if (HANDLE_ATTRIBUTE0 (IDENTIFIER_POINTER (yyvsp[0].ttype)) ||
- ! strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "packed"))
- ! #else
- ! if (strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "packed"))
- ! #endif
- warning ("`%s' attribute directive ignored",
- IDENTIFIER_POINTER (yyvsp[0].ttype));
- yyval.ttype = yyvsp[0].ttype; ;
- break;}
- case 152:
- ! #line 868 "c-parse.y"
- { /* If not "mode (m)", then issue warning. */
- if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "mode") != 0)
- {
- ***************
- *** 2228,2234 ****
- yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
- break;}
- case 153:
- ! #line 871 "c-parse.y"
- { /* if not "aligned(n)", then issue warning */
- if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "aligned") != 0
- || TREE_CODE (yyvsp[-1].ttype) != INTEGER_CST)
- --- 2266,2272 ----
- yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
- break;}
- case 153:
- ! #line 878 "c-parse.y"
- { /* if not "aligned(n)", then issue warning */
- if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "aligned") != 0
- || TREE_CODE (yyvsp[-1].ttype) != INTEGER_CST)
- ***************
- *** 2241,2247 ****
- yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
- break;}
- case 154:
- ! #line 882 "c-parse.y"
- { /* if not "format(...)", then issue warning */
- if (strcmp (IDENTIFIER_POINTER (yyvsp[-7].ttype), "format") != 0
- || TREE_CODE (yyvsp[-3].ttype) != INTEGER_CST
- --- 2279,2285 ----
- yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype, NULL_TREE); ;
- break;}
- case 154:
- ! #line 889 "c-parse.y"
- { /* if not "format(...)", then issue warning */
- if (strcmp (IDENTIFIER_POINTER (yyvsp[-7].ttype), "format") != 0
- || TREE_CODE (yyvsp[-3].ttype) != INTEGER_CST
- ***************
- *** 2259,2320 ****
- NULL_TREE); ;
- break;}
- case 156:
- ! #line 902 "c-parse.y"
- { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, NULL_TREE);
- if (pedantic)
- pedwarn ("ANSI C forbids empty initializer braces"); ;
- break;}
- case 157:
- ! #line 906 "c-parse.y"
- { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
- break;}
- case 158:
- ! #line 908 "c-parse.y"
- { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
- break;}
- case 159:
- ! #line 910 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 160:
- ! #line 917 "c-parse.y"
- { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
- break;}
- case 161:
- ! #line 919 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
- break;}
- case 162:
- ! #line 922 "c-parse.y"
- { yyval.ttype = build_tree_list (tree_cons (yyvsp[-4].ttype, NULL_TREE,
- build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
- yyvsp[0].ttype); ;
- break;}
- case 163:
- ! #line 926 "c-parse.y"
- { yyval.ttype = tree_cons (tree_cons (yyvsp[-4].ttype, NULL_TREE,
- build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
- yyvsp[0].ttype,
- yyvsp[-7].ttype); ;
- break;}
- case 164:
- ! #line 931 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 165:
- ! #line 933 "c-parse.y"
- { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-5].ttype); ;
- break;}
- case 166:
- ! #line 935 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 167:
- ! #line 937 "c-parse.y"
- { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
- break;}
- case 168:
- ! #line 942 "c-parse.y"
- { push_c_function_context ();
- if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
- {
- --- 2297,2358 ----
- NULL_TREE); ;
- break;}
- case 156:
- ! #line 909 "c-parse.y"
- { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, NULL_TREE);
- if (pedantic)
- pedwarn ("ANSI C forbids empty initializer braces"); ;
- break;}
- case 157:
- ! #line 913 "c-parse.y"
- { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
- break;}
- case 158:
- ! #line 915 "c-parse.y"
- { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
- break;}
- case 159:
- ! #line 917 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 160:
- ! #line 924 "c-parse.y"
- { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
- break;}
- case 161:
- ! #line 926 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
- break;}
- case 162:
- ! #line 929 "c-parse.y"
- { yyval.ttype = build_tree_list (tree_cons (yyvsp[-4].ttype, NULL_TREE,
- build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
- yyvsp[0].ttype); ;
- break;}
- case 163:
- ! #line 933 "c-parse.y"
- { yyval.ttype = tree_cons (tree_cons (yyvsp[-4].ttype, NULL_TREE,
- build_tree_list (yyvsp[-2].ttype, NULL_TREE)),
- yyvsp[0].ttype,
- yyvsp[-7].ttype); ;
- break;}
- case 164:
- ! #line 938 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 165:
- ! #line 940 "c-parse.y"
- { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-5].ttype); ;
- break;}
- case 166:
- ! #line 942 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 167:
- ! #line 944 "c-parse.y"
- { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
- break;}
- case 168:
- ! #line 949 "c-parse.y"
- { push_c_function_context ();
- if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
- {
- ***************
- *** 2325,2336 ****
- store_parm_decls (); ;
- break;}
- case 169:
- ! #line 957 "c-parse.y"
- { finish_function (1);
- pop_c_function_context (); ;
- break;}
- case 170:
- ! #line 963 "c-parse.y"
- { push_c_function_context ();
- if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
- {
- --- 2363,2374 ----
- store_parm_decls (); ;
- break;}
- case 169:
- ! #line 964 "c-parse.y"
- { finish_function (1);
- pop_c_function_context (); ;
- break;}
- case 170:
- ! #line 970 "c-parse.y"
- { push_c_function_context ();
- if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
- {
- ***************
- *** 2341,2622 ****
- store_parm_decls (); ;
- break;}
- case 171:
- ! #line 978 "c-parse.y"
- { finish_function (1);
- pop_c_function_context (); ;
- break;}
- case 174:
- ! #line 994 "c-parse.y"
- { yyval.ttype = yyvsp[-1].ttype; ;
- break;}
- case 175:
- ! #line 996 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 176:
- ! #line 1001 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 177:
- ! #line 1003 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 178:
- ! #line 1005 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 180:
- ! #line 1016 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 181:
- ! #line 1021 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 182:
- ! #line 1023 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 183:
- ! #line 1025 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 185:
- ! #line 1034 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 186:
- ! #line 1039 "c-parse.y"
- { yyval.ttype = yyvsp[-1].ttype; ;
- break;}
- case 187:
- ! #line 1041 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 188:
- ! #line 1043 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 189:
- ! #line 1045 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 191:
- ! #line 1051 "c-parse.y"
- { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
- /* Start scope of tag before parsing components. */
- ;
- break;}
- case 192:
- ! #line 1055 "c-parse.y"
- { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
- /* Really define the structure. */
- ;
- break;}
- case 193:
- ! #line 1059 "c-parse.y"
- { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
- yyvsp[-1].ttype); ;
- break;}
- case 194:
- ! #line 1062 "c-parse.y"
- { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
- break;}
- case 195:
- ! #line 1064 "c-parse.y"
- { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
- break;}
- case 196:
- ! #line 1066 "c-parse.y"
- { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
- break;}
- case 197:
- ! #line 1068 "c-parse.y"
- { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
- yyvsp[-1].ttype); ;
- break;}
- case 198:
- ! #line 1071 "c-parse.y"
- { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
- break;}
- case 199:
- ! #line 1073 "c-parse.y"
- { yyvsp[0].itype = suspend_momentary ();
- yyval.ttype = start_enum (yyvsp[-1].ttype); ;
- break;}
- case 200:
- ! #line 1076 "c-parse.y"
- { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
- resume_momentary (yyvsp[-4].itype); ;
- break;}
- case 201:
- ! #line 1079 "c-parse.y"
- { yyvsp[0].itype = suspend_momentary ();
- yyval.ttype = start_enum (NULL_TREE); ;
- break;}
- case 202:
- ! #line 1082 "c-parse.y"
- { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
- resume_momentary (yyvsp[-4].itype); ;
- break;}
- case 203:
- ! #line 1085 "c-parse.y"
- { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
- break;}
- case 207:
- ! #line 1096 "c-parse.y"
- { if (pedantic) pedwarn ("comma at end of enumerator list"); ;
- break;}
- case 208:
- ! #line 1101 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype; ;
- break;}
- case 209:
- ! #line 1103 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
- pedwarn ("no semicolon at end of struct or union"); ;
- break;}
- case 210:
- ! #line 1108 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 211:
- ! #line 1110 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
- break;}
- case 212:
- ! #line 1112 "c-parse.y"
- { if (pedantic)
- pedwarn ("extra semicolon in struct or union specified"); ;
- break;}
- case 213:
- ! #line 1127 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- current_declspecs = TREE_VALUE (declspec_stack);
- declspec_stack = TREE_CHAIN (declspec_stack);
- resume_momentary (yyvsp[-1].itype); ;
- break;}
- case 214:
- ! #line 1132 "c-parse.y"
- { if (pedantic)
- pedwarn ("ANSI C forbids member declarations with no members");
- shadow_tag(yyvsp[0].ttype);
- yyval.ttype = NULL_TREE; ;
- break;}
- case 215:
- ! #line 1137 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- current_declspecs = TREE_VALUE (declspec_stack);
- declspec_stack = TREE_CHAIN (declspec_stack);
- resume_momentary (yyvsp[-1].itype); ;
- break;}
- case 216:
- ! #line 1142 "c-parse.y"
- { if (pedantic)
- pedwarn ("ANSI C forbids member declarations with no members");
- shadow_tag(yyvsp[0].ttype);
- yyval.ttype = NULL_TREE; ;
- break;}
- case 217:
- ! #line 1147 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 219:
- ! #line 1153 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 220:
- ! #line 1158 "c-parse.y"
- { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE);
- decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
- break;}
- case 221:
- ! #line 1162 "c-parse.y"
- { yyval.ttype = grokfield (yyvsp[-5].filename, yyvsp[-4].lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype);
- decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
- break;}
- case 222:
- ! #line 1165 "c-parse.y"
- { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
- break;}
- case 224:
- ! #line 1176 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
- break;}
- case 225:
- ! #line 1182 "c-parse.y"
- { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 226:
- ! #line 1184 "c-parse.y"
- { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 227:
- ! #line 1189 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 228:
- ! #line 1191 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 229:
- ! #line 1196 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 231:
- ! #line 1202 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 232:
- ! #line 1204 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
- break;}
- case 233:
- ! #line 1209 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 234:
- ! #line 1211 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
- break;}
- case 235:
- ! #line 1216 "c-parse.y"
- { yyval.ttype = yyvsp[-1].ttype; ;
- break;}
- case 236:
- ! #line 1219 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 237:
- ! #line 1221 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 238:
- ! #line 1223 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 239:
- ! #line 1225 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 240:
- ! #line 1227 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 241:
- ! #line 1229 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 242:
- ! #line 1231 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
- break;}
- case 243:
- ! #line 1233 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
- break;}
- case 250:
- ! #line 1255 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- pushlevel (0);
- clear_last_expr ();
- --- 2379,2660 ----
- store_parm_decls (); ;
- break;}
- case 171:
- ! #line 985 "c-parse.y"
- { finish_function (1);
- pop_c_function_context (); ;
- break;}
- case 174:
- ! #line 1001 "c-parse.y"
- { yyval.ttype = yyvsp[-1].ttype; ;
- break;}
- case 175:
- ! #line 1003 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 176:
- ! #line 1008 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 177:
- ! #line 1010 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 178:
- ! #line 1012 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 180:
- ! #line 1023 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 181:
- ! #line 1028 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 182:
- ! #line 1030 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 183:
- ! #line 1032 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 185:
- ! #line 1041 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 186:
- ! #line 1046 "c-parse.y"
- { yyval.ttype = yyvsp[-1].ttype; ;
- break;}
- case 187:
- ! #line 1048 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 188:
- ! #line 1050 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 189:
- ! #line 1052 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 191:
- ! #line 1058 "c-parse.y"
- { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
- /* Start scope of tag before parsing components. */
- ;
- break;}
- case 192:
- ! #line 1062 "c-parse.y"
- { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
- /* Really define the structure. */
- ;
- break;}
- case 193:
- ! #line 1066 "c-parse.y"
- { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
- yyvsp[-1].ttype); ;
- break;}
- case 194:
- ! #line 1069 "c-parse.y"
- { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
- break;}
- case 195:
- ! #line 1071 "c-parse.y"
- { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
- break;}
- case 196:
- ! #line 1073 "c-parse.y"
- { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
- break;}
- case 197:
- ! #line 1075 "c-parse.y"
- { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
- yyvsp[-1].ttype); ;
- break;}
- case 198:
- ! #line 1078 "c-parse.y"
- { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
- break;}
- case 199:
- ! #line 1080 "c-parse.y"
- { yyvsp[0].itype = suspend_momentary ();
- yyval.ttype = start_enum (yyvsp[-1].ttype); ;
- break;}
- case 200:
- ! #line 1083 "c-parse.y"
- { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
- resume_momentary (yyvsp[-4].itype); ;
- break;}
- case 201:
- ! #line 1086 "c-parse.y"
- { yyvsp[0].itype = suspend_momentary ();
- yyval.ttype = start_enum (NULL_TREE); ;
- break;}
- case 202:
- ! #line 1089 "c-parse.y"
- { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
- resume_momentary (yyvsp[-4].itype); ;
- break;}
- case 203:
- ! #line 1092 "c-parse.y"
- { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
- break;}
- case 207:
- ! #line 1103 "c-parse.y"
- { if (pedantic) pedwarn ("comma at end of enumerator list"); ;
- break;}
- case 208:
- ! #line 1108 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype; ;
- break;}
- case 209:
- ! #line 1110 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
- pedwarn ("no semicolon at end of struct or union"); ;
- break;}
- case 210:
- ! #line 1115 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 211:
- ! #line 1117 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
- break;}
- case 212:
- ! #line 1119 "c-parse.y"
- { if (pedantic)
- pedwarn ("extra semicolon in struct or union specified"); ;
- break;}
- case 213:
- ! #line 1134 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- current_declspecs = TREE_VALUE (declspec_stack);
- declspec_stack = TREE_CHAIN (declspec_stack);
- resume_momentary (yyvsp[-1].itype); ;
- break;}
- case 214:
- ! #line 1139 "c-parse.y"
- { if (pedantic)
- pedwarn ("ANSI C forbids member declarations with no members");
- shadow_tag(yyvsp[0].ttype);
- yyval.ttype = NULL_TREE; ;
- break;}
- case 215:
- ! #line 1144 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- current_declspecs = TREE_VALUE (declspec_stack);
- declspec_stack = TREE_CHAIN (declspec_stack);
- resume_momentary (yyvsp[-1].itype); ;
- break;}
- case 216:
- ! #line 1149 "c-parse.y"
- { if (pedantic)
- pedwarn ("ANSI C forbids member declarations with no members");
- shadow_tag(yyvsp[0].ttype);
- yyval.ttype = NULL_TREE; ;
- break;}
- case 217:
- ! #line 1154 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 219:
- ! #line 1160 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 220:
- ! #line 1165 "c-parse.y"
- { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE);
- decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
- break;}
- case 221:
- ! #line 1169 "c-parse.y"
- { yyval.ttype = grokfield (yyvsp[-5].filename, yyvsp[-4].lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype);
- decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
- break;}
- case 222:
- ! #line 1172 "c-parse.y"
- { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
- break;}
- case 224:
- ! #line 1183 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
- break;}
- case 225:
- ! #line 1189 "c-parse.y"
- { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 226:
- ! #line 1191 "c-parse.y"
- { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 227:
- ! #line 1196 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 228:
- ! #line 1198 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 229:
- ! #line 1203 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 231:
- ! #line 1209 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 232:
- ! #line 1211 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
- break;}
- case 233:
- ! #line 1216 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 234:
- ! #line 1218 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
- break;}
- case 235:
- ! #line 1223 "c-parse.y"
- { yyval.ttype = yyvsp[-1].ttype; ;
- break;}
- case 236:
- ! #line 1226 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 237:
- ! #line 1228 "c-parse.y"
- { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 238:
- ! #line 1230 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 239:
- ! #line 1232 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 240:
- ! #line 1234 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
- break;}
- case 241:
- ! #line 1236 "c-parse.y"
- { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
- break;}
- case 242:
- ! #line 1238 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
- break;}
- case 243:
- ! #line 1240 "c-parse.y"
- { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
- break;}
- case 250:
- ! #line 1262 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- pushlevel (0);
- clear_last_expr ();
- ***************
- *** 2625,2636 ****
- ;
- break;}
- case 252:
- ! #line 1268 "c-parse.y"
- { if (pedantic)
- pedwarn ("ANSI C forbids label declarations"); ;
- break;}
- case 255:
- ! #line 1279 "c-parse.y"
- { tree link;
- for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link))
- {
- --- 2663,2674 ----
- ;
- break;}
- case 252:
- ! #line 1275 "c-parse.y"
- { if (pedantic)
- pedwarn ("ANSI C forbids label declarations"); ;
- break;}
- case 255:
- ! #line 1286 "c-parse.y"
- { tree link;
- for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link))
- {
- ***************
- *** 2641,2676 ****
- ;
- break;}
- case 256:
- ! #line 1293 "c-parse.y"
- {;
- break;}
- case 258:
- ! #line 1298 "c-parse.y"
- { yyval.ttype = convert (void_type_node, integer_zero_node); ;
- break;}
- case 259:
- ! #line 1300 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_end_bindings (getdecls (), 1, 0);
- yyval.ttype = poplevel (1, 1, 0);
- pop_momentary (); ;
- break;}
- case 260:
- ! #line 1305 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_end_bindings (getdecls (), kept_level_p (), 0);
- yyval.ttype = poplevel (kept_level_p (), 0, 0);
- pop_momentary (); ;
- break;}
- case 261:
- ! #line 1310 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_end_bindings (getdecls (), kept_level_p (), 0);
- yyval.ttype = poplevel (kept_level_p (), 0, 0);
- pop_momentary (); ;
- break;}
- case 264:
- ! #line 1327 "c-parse.y"
- { emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0);
- yyvsp[-3].itype = stmt_count;
- --- 2679,2714 ----
- ;
- break;}
- case 256:
- ! #line 1300 "c-parse.y"
- {;
- break;}
- case 258:
- ! #line 1305 "c-parse.y"
- { yyval.ttype = convert (void_type_node, integer_zero_node); ;
- break;}
- case 259:
- ! #line 1307 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_end_bindings (getdecls (), 1, 0);
- yyval.ttype = poplevel (1, 1, 0);
- pop_momentary (); ;
- break;}
- case 260:
- ! #line 1312 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_end_bindings (getdecls (), kept_level_p (), 0);
- yyval.ttype = poplevel (kept_level_p (), 0, 0);
- pop_momentary (); ;
- break;}
- case 261:
- ! #line 1317 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_end_bindings (getdecls (), kept_level_p (), 0);
- yyval.ttype = poplevel (kept_level_p (), 0, 0);
- pop_momentary (); ;
- break;}
- case 264:
- ! #line 1334 "c-parse.y"
- { emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0);
- yyvsp[-3].itype = stmt_count;
- ***************
- *** 2679,2685 ****
- position_after_white_space (); ;
- break;}
- case 265:
- ! #line 1340 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
- /* See comment in `while' alternative, above. */
- --- 2717,2723 ----
- position_after_white_space (); ;
- break;}
- case 265:
- ! #line 1347 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
- /* See comment in `while' alternative, above. */
- ***************
- *** 2688,2718 ****
- position_after_white_space (); ;
- break;}
- case 266:
- ! #line 1347 "c-parse.y"
- { expand_loop_continue_here (); ;
- break;}
- case 267:
- ! #line 1351 "c-parse.y"
- { yyval.filename = input_filename; ;
- break;}
- case 268:
- ! #line 1355 "c-parse.y"
- { yyval.lineno = lineno; ;
- break;}
- case 269:
- ! #line 1360 "c-parse.y"
- { ;
- break;}
- case 270:
- ! #line 1365 "c-parse.y"
- { ;
- break;}
- case 271:
- ! #line 1370 "c-parse.y"
- { ;
- break;}
- case 273:
- ! #line 1376 "c-parse.y"
- { int next;
- position_after_white_space ();
- next = getc (finput);
- --- 2726,2756 ----
- position_after_white_space (); ;
- break;}
- case 266:
- ! #line 1354 "c-parse.y"
- { expand_loop_continue_here (); ;
- break;}
- case 267:
- ! #line 1358 "c-parse.y"
- { yyval.filename = input_filename; ;
- break;}
- case 268:
- ! #line 1362 "c-parse.y"
- { yyval.lineno = lineno; ;
- break;}
- case 269:
- ! #line 1367 "c-parse.y"
- { ;
- break;}
- case 270:
- ! #line 1372 "c-parse.y"
- { ;
- break;}
- case 271:
- ! #line 1377 "c-parse.y"
- { ;
- break;}
- case 273:
- ! #line 1383 "c-parse.y"
- { int next;
- position_after_white_space ();
- next = getc (finput);
- ***************
- *** 2722,2762 ****
- ;
- break;}
- case 274:
- ! #line 1388 "c-parse.y"
- { stmt_count++; ;
- break;}
- case 275:
- ! #line 1390 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- c_expand_expr_stmt (yyvsp[-1].ttype);
- clear_momentary (); ;
- break;}
- case 276:
- ! #line 1395 "c-parse.y"
- { expand_start_else ();
- yyvsp[-1].itype = stmt_count;
- position_after_white_space (); ;
- break;}
- case 277:
- ! #line 1399 "c-parse.y"
- { expand_end_cond ();
- if (extra_warnings && stmt_count == yyvsp[-3].itype)
- warning ("empty body in an else-statement"); ;
- break;}
- case 278:
- ! #line 1403 "c-parse.y"
- { expand_end_cond ();
- if (extra_warnings && stmt_count == yyvsp[0].itype)
- warning_with_file_and_line (if_stmt_file, if_stmt_line,
- "empty body in an if-statement"); ;
- break;}
- case 279:
- ! #line 1411 "c-parse.y"
- { expand_end_cond (); ;
- break;}
- case 280:
- ! #line 1413 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
- /* The emit_nop used to come before emit_line_note,
- --- 2760,2800 ----
- ;
- break;}
- case 274:
- ! #line 1395 "c-parse.y"
- { stmt_count++; ;
- break;}
- case 275:
- ! #line 1397 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- c_expand_expr_stmt (yyvsp[-1].ttype);
- clear_momentary (); ;
- break;}
- case 276:
- ! #line 1402 "c-parse.y"
- { expand_start_else ();
- yyvsp[-1].itype = stmt_count;
- position_after_white_space (); ;
- break;}
- case 277:
- ! #line 1406 "c-parse.y"
- { expand_end_cond ();
- if (extra_warnings && stmt_count == yyvsp[-3].itype)
- warning ("empty body in an else-statement"); ;
- break;}
- case 278:
- ! #line 1410 "c-parse.y"
- { expand_end_cond ();
- if (extra_warnings && stmt_count == yyvsp[0].itype)
- warning_with_file_and_line (if_stmt_file, if_stmt_line,
- "empty body in an if-statement"); ;
- break;}
- case 279:
- ! #line 1418 "c-parse.y"
- { expand_end_cond (); ;
- break;}
- case 280:
- ! #line 1420 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
- /* The emit_nop used to come before emit_line_note,
- ***************
- *** 2768,2774 ****
- emit_nop (); ;
- break;}
- case 281:
- ! #line 1423 "c-parse.y"
- { /* Don't start the loop till we have succeeded
- in parsing the end test. This is to make sure
- that we end every loop we start. */
- --- 2806,2812 ----
- emit_nop (); ;
- break;}
- case 281:
- ! #line 1430 "c-parse.y"
- { /* Don't start the loop till we have succeeded
- in parsing the end test. This is to make sure
- that we end every loop we start. */
- ***************
- *** 2779,2789 ****
- position_after_white_space (); ;
- break;}
- case 282:
- ! #line 1432 "c-parse.y"
- { expand_end_loop (); ;
- break;}
- case 283:
- ! #line 1435 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_exit_loop_if_false (NULL_PTR,
- truthvalue_conversion (yyvsp[-2].ttype));
- --- 2817,2827 ----
- position_after_white_space (); ;
- break;}
- case 282:
- ! #line 1439 "c-parse.y"
- { expand_end_loop (); ;
- break;}
- case 283:
- ! #line 1442 "c-parse.y"
- { emit_line_note (input_filename, lineno);
- expand_exit_loop_if_false (NULL_PTR,
- truthvalue_conversion (yyvsp[-2].ttype));
- ***************
- *** 2791,2802 ****
- clear_momentary (); ;
- break;}
- case 284:
- ! #line 1442 "c-parse.y"
- { expand_end_loop ();
- clear_momentary (); ;
- break;}
- case 285:
- ! #line 1446 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- /* See comment in `while' alternative, above. */
- --- 2829,2840 ----
- clear_momentary (); ;
- break;}
- case 284:
- ! #line 1449 "c-parse.y"
- { expand_end_loop ();
- clear_momentary (); ;
- break;}
- case 285:
- ! #line 1453 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- /* See comment in `while' alternative, above. */
- ***************
- *** 2809,2820 ****
- ;
- break;}
- case 286:
- ! #line 1458 "c-parse.y"
- { yyvsp[0].lineno = lineno;
- yyval.filename = input_filename; ;
- break;}
- case 287:
- ! #line 1461 "c-parse.y"
- {
- /* Start the loop. Doing this after parsing
- all the expressions ensures we will end the loop. */
- --- 2847,2858 ----
- ;
- break;}
- case 286:
- ! #line 1465 "c-parse.y"
- { yyvsp[0].lineno = lineno;
- yyval.filename = input_filename; ;
- break;}
- case 287:
- ! #line 1468 "c-parse.y"
- {
- /* Start the loop. Doing this after parsing
- all the expressions ensures we will end the loop. */
- ***************
- *** 2831,2837 ****
- yyvsp[-2].filename = input_filename; ;
- break;}
- case 288:
- ! #line 1476 "c-parse.y"
- { /* Emit the increment expression, with a line number. */
- emit_line_note (yyvsp[-4].filename, yyvsp[-5].lineno);
- expand_loop_continue_here ();
- --- 2869,2875 ----
- yyvsp[-2].filename = input_filename; ;
- break;}
- case 288:
- ! #line 1483 "c-parse.y"
- { /* Emit the increment expression, with a line number. */
- emit_line_note (yyvsp[-4].filename, yyvsp[-5].lineno);
- expand_loop_continue_here ();
- ***************
- *** 2841,2847 ****
- expand_end_loop (); ;
- break;}
- case 289:
- ! #line 1484 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- c_expand_start_case (yyvsp[-1].ttype);
- --- 2879,2885 ----
- expand_end_loop (); ;
- break;}
- case 289:
- ! #line 1491 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- c_expand_start_case (yyvsp[-1].ttype);
- ***************
- *** 2851,2888 ****
- position_after_white_space (); ;
- break;}
- case 290:
- ! #line 1492 "c-parse.y"
- { expand_end_case (yyvsp[-3].ttype);
- pop_momentary (); ;
- break;}
- case 291:
- ! #line 1495 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- if ( ! expand_exit_something ())
- error ("break statement not within loop or switch"); ;
- break;}
- case 292:
- ! #line 1500 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- if (! expand_continue_loop (NULL_PTR))
- error ("continue statement not within a loop"); ;
- break;}
- case 293:
- ! #line 1505 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- c_expand_return (NULL_TREE); ;
- break;}
- case 294:
- ! #line 1509 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
- c_expand_return (yyvsp[-1].ttype); ;
- break;}
- case 295:
- ! #line 1513 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno);
- STRIP_NOPS (yyvsp[-2].ttype);
- --- 2889,2926 ----
- position_after_white_space (); ;
- break;}
- case 290:
- ! #line 1499 "c-parse.y"
- { expand_end_case (yyvsp[-3].ttype);
- pop_momentary (); ;
- break;}
- case 291:
- ! #line 1502 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- if ( ! expand_exit_something ())
- error ("break statement not within loop or switch"); ;
- break;}
- case 292:
- ! #line 1507 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- if (! expand_continue_loop (NULL_PTR))
- error ("continue statement not within a loop"); ;
- break;}
- case 293:
- ! #line 1512 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
- c_expand_return (NULL_TREE); ;
- break;}
- case 294:
- ! #line 1516 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
- c_expand_return (yyvsp[-1].ttype); ;
- break;}
- case 295:
- ! #line 1520 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno);
- STRIP_NOPS (yyvsp[-2].ttype);
- ***************
- *** 2894,2900 ****
- error ("argument of `asm' is not a constant string"); ;
- break;}
- case 296:
- ! #line 1524 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-9].filename, yyvsp[-8].lineno);
- c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE,
- --- 2932,2938 ----
- error ("argument of `asm' is not a constant string"); ;
- break;}
- case 296:
- ! #line 1531 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-9].filename, yyvsp[-8].lineno);
- c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE,
- ***************
- *** 2902,2908 ****
- input_filename, lineno); ;
- break;}
- case 297:
- ! #line 1531 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-11].filename, yyvsp[-10].lineno);
- c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
- --- 2940,2946 ----
- input_filename, lineno); ;
- break;}
- case 297:
- ! #line 1538 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-11].filename, yyvsp[-10].lineno);
- c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
- ***************
- *** 2910,2916 ****
- input_filename, lineno); ;
- break;}
- case 298:
- ! #line 1539 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno);
- c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
- --- 2948,2954 ----
- input_filename, lineno); ;
- break;}
- case 298:
- ! #line 1546 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno);
- c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
- ***************
- *** 2918,2924 ****
- input_filename, lineno); ;
- break;}
- case 299:
- ! #line 1545 "c-parse.y"
- { tree decl;
- stmt_count++;
- emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
- --- 2956,2962 ----
- input_filename, lineno); ;
- break;}
- case 299:
- ! #line 1552 "c-parse.y"
- { tree decl;
- stmt_count++;
- emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
- ***************
- *** 2931,2943 ****
- ;
- break;}
- case 300:
- ! #line 1556 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- expand_computed_goto (convert (ptr_type_node, yyvsp[-1].ttype)); ;
- break;}
- case 302:
- ! #line 1567 "c-parse.y"
- { register tree value = check_case_value (yyvsp[-1].ttype);
- register tree label
- = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
- --- 2969,2981 ----
- ;
- break;}
- case 300:
- ! #line 1563 "c-parse.y"
- { stmt_count++;
- emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
- expand_computed_goto (convert (ptr_type_node, yyvsp[-1].ttype)); ;
- break;}
- case 302:
- ! #line 1574 "c-parse.y"
- { register tree value = check_case_value (yyvsp[-1].ttype);
- register tree label
- = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
- ***************
- *** 2963,2969 ****
- position_after_white_space (); ;
- break;}
- case 303:
- ! #line 1591 "c-parse.y"
- { register tree value1 = check_case_value (yyvsp[-3].ttype);
- register tree value2 = check_case_value (yyvsp[-1].ttype);
- register tree label
- --- 3001,3007 ----
- position_after_white_space (); ;
- break;}
- case 303:
- ! #line 1598 "c-parse.y"
- { register tree value1 = check_case_value (yyvsp[-3].ttype);
- register tree value2 = check_case_value (yyvsp[-1].ttype);
- register tree label
- ***************
- *** 2993,2999 ****
- position_after_white_space (); ;
- break;}
- case 304:
- ! #line 1619 "c-parse.y"
- {
- tree duplicate;
- register tree label
- --- 3031,3037 ----
- position_after_white_space (); ;
- break;}
- case 304:
- ! #line 1626 "c-parse.y"
- {
- tree duplicate;
- register tree label
- ***************
- *** 3010,3016 ****
- position_after_white_space (); ;
- break;}
- case 305:
- ! #line 1634 "c-parse.y"
- { tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
- stmt_count++;
- emit_nop ();
- --- 3048,3054 ----
- position_after_white_space (); ;
- break;}
- case 305:
- ! #line 1641 "c-parse.y"
- { tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
- stmt_count++;
- emit_nop ();
- ***************
- *** 3019,3069 ****
- position_after_white_space (); ;
- break;}
- case 306:
- ! #line 1646 "c-parse.y"
- { emit_line_note (input_filename, lineno); ;
- break;}
- case 307:
- ! #line 1648 "c-parse.y"
- { emit_line_note (input_filename, lineno); ;
- break;}
- case 308:
- ! #line 1653 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 310:
- ! #line 1660 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 313:
- ! #line 1667 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 314:
- ! #line 1672 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 315:
- ! #line 1677 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
- break;}
- case 316:
- ! #line 1679 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
- break;}
- case 317:
- ! #line 1685 "c-parse.y"
- { pushlevel (0);
- clear_parm_order ();
- declare_parm_level (0); ;
- break;}
- case 318:
- ! #line 1689 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- parmlist_tags_warning ();
- poplevel (0, 0, 0); ;
- break;}
- case 320:
- ! #line 1697 "c-parse.y"
- { tree parm;
- if (pedantic)
- pedwarn ("ANSI C forbids forward parameter declarations");
- --- 3057,3107 ----
- position_after_white_space (); ;
- break;}
- case 306:
- ! #line 1653 "c-parse.y"
- { emit_line_note (input_filename, lineno); ;
- break;}
- case 307:
- ! #line 1655 "c-parse.y"
- { emit_line_note (input_filename, lineno); ;
- break;}
- case 308:
- ! #line 1660 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 310:
- ! #line 1667 "c-parse.y"
- { yyval.ttype = NULL_TREE; ;
- break;}
- case 313:
- ! #line 1674 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
- break;}
- case 314:
- ! #line 1679 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
- break;}
- case 315:
- ! #line 1684 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
- break;}
- case 316:
- ! #line 1686 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
- break;}
- case 317:
- ! #line 1692 "c-parse.y"
- { pushlevel (0);
- clear_parm_order ();
- declare_parm_level (0); ;
- break;}
- case 318:
- ! #line 1696 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- parmlist_tags_warning ();
- poplevel (0, 0, 0); ;
- break;}
- case 320:
- ! #line 1704 "c-parse.y"
- { tree parm;
- if (pedantic)
- pedwarn ("ANSI C forbids forward parameter declarations");
- ***************
- *** 3073,3146 ****
- clear_parm_order (); ;
- break;}
- case 321:
- ! #line 1705 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype; ;
- break;}
- case 322:
- ! #line 1707 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
- break;}
- case 323:
- ! #line 1713 "c-parse.y"
- { yyval.ttype = get_parm_info (0); ;
- break;}
- case 324:
- ! #line 1715 "c-parse.y"
- { yyval.ttype = get_parm_info (0);
- if (pedantic)
- pedwarn ("ANSI C requires a named argument before `...'");
- ;
- break;}
- case 325:
- ! #line 1720 "c-parse.y"
- { yyval.ttype = get_parm_info (1); ;
- break;}
- case 326:
- ! #line 1722 "c-parse.y"
- { yyval.ttype = get_parm_info (0); ;
- break;}
- case 327:
- ! #line 1727 "c-parse.y"
- { push_parm_decl (yyvsp[0].ttype); ;
- break;}
- case 328:
- ! #line 1729 "c-parse.y"
- { push_parm_decl (yyvsp[0].ttype); ;
- break;}
- case 329:
- ! #line 1736 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
- break;}
- case 330:
- ! #line 1738 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
- break;}
- case 331:
- ! #line 1740 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 332:
- ! #line 1742 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
- break;}
- case 333:
- ! #line 1744 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 334:
- ! #line 1751 "c-parse.y"
- { pushlevel (0);
- clear_parm_order ();
- declare_parm_level (1); ;
- break;}
- case 335:
- ! #line 1755 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- parmlist_tags_warning ();
- poplevel (0, 0, 0); ;
- break;}
- case 337:
- ! #line 1763 "c-parse.y"
- { tree t;
- for (t = yyvsp[-1].ttype; t; t = TREE_CHAIN (t))
- if (TREE_VALUE (t) == NULL_TREE)
- --- 3111,3184 ----
- clear_parm_order (); ;
- break;}
- case 321:
- ! #line 1712 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype; ;
- break;}
- case 322:
- ! #line 1714 "c-parse.y"
- { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
- break;}
- case 323:
- ! #line 1720 "c-parse.y"
- { yyval.ttype = get_parm_info (0); ;
- break;}
- case 324:
- ! #line 1722 "c-parse.y"
- { yyval.ttype = get_parm_info (0);
- if (pedantic)
- pedwarn ("ANSI C requires a named argument before `...'");
- ;
- break;}
- case 325:
- ! #line 1727 "c-parse.y"
- { yyval.ttype = get_parm_info (1); ;
- break;}
- case 326:
- ! #line 1729 "c-parse.y"
- { yyval.ttype = get_parm_info (0); ;
- break;}
- case 327:
- ! #line 1734 "c-parse.y"
- { push_parm_decl (yyvsp[0].ttype); ;
- break;}
- case 328:
- ! #line 1736 "c-parse.y"
- { push_parm_decl (yyvsp[0].ttype); ;
- break;}
- case 329:
- ! #line 1743 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
- break;}
- case 330:
- ! #line 1745 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
- break;}
- case 331:
- ! #line 1747 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 332:
- ! #line 1749 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
- break;}
- case 333:
- ! #line 1751 "c-parse.y"
- { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
- break;}
- case 334:
- ! #line 1758 "c-parse.y"
- { pushlevel (0);
- clear_parm_order ();
- declare_parm_level (1); ;
- break;}
- case 335:
- ! #line 1762 "c-parse.y"
- { yyval.ttype = yyvsp[0].ttype;
- parmlist_tags_warning ();
- poplevel (0, 0, 0); ;
- break;}
- case 337:
- ! #line 1770 "c-parse.y"
- { tree t;
- for (t = yyvsp[-1].ttype; t; t = TREE_CHAIN (t))
- if (TREE_VALUE (t) == NULL_TREE)
- ***************
- *** 3148,3171 ****
- yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
- break;}
- case 338:
- ! #line 1773 "c-parse.y"
- { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
- break;}
- case 339:
- ! #line 1775 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
- break;}
- case 340:
- ! #line 1781 "c-parse.y"
- { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
- break;}
- case 341:
- ! #line 1783 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
- break;}
- }
- /* the action file gets copied in in place of this dollarsign */
- ! #line 440 "bison.simple"
-
- yyvsp -= yylen;
- yyssp -= yylen;
- --- 3186,3209 ----
- yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
- break;}
- case 338:
- ! #line 1780 "c-parse.y"
- { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
- break;}
- case 339:
- ! #line 1782 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
- break;}
- case 340:
- ! #line 1788 "c-parse.y"
- { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
- break;}
- case 341:
- ! #line 1790 "c-parse.y"
- { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
- break;}
- }
- /* the action file gets copied in in place of this dollarsign */
- ! #line 465 "/usr/lib/bison.simple"
-
- yyvsp -= yylen;
- yyssp -= yylen;
- ***************
- *** 3235,3241 ****
- int x, count;
-
- count = 0;
- ! for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- size += strlen(yytname[x]) + 15, count++;
- msg = (char *) malloc(size + 15);
- --- 3273,3281 ----
- int x, count;
-
- count = 0;
- ! /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
- ! for (x = (yyn < 0 ? -yyn : 0);
- ! x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- size += strlen(yytname[x]) + 15, count++;
- msg = (char *) malloc(size + 15);
- ***************
- *** 3246,3252 ****
- if (count < 5)
- {
- count = 0;
- ! for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- {
- strcat(msg, count == 0 ? ", expecting `" : " or `");
- --- 3286,3293 ----
- if (count < 5)
- {
- count = 0;
- ! for (x = (yyn < 0 ? -yyn : 0);
- ! x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- {
- strcat(msg, count == 0 ? ", expecting `" : " or `");
- ***************
- *** 3266,3271 ****
- --- 3307,3313 ----
- yyerror("parse error");
- }
-
- + goto yyerrlab1;
- yyerrlab1: /* here on error raised explicitly by an action */
-
- if (yyerrstatus == 3)
- ***************
- *** 3357,3361 ****
- yystate = yyn;
- goto yynewstate;
- }
- ! #line 1786 "c-parse.y"
-
- --- 3399,3403 ----
- yystate = yyn;
- goto yynewstate;
- }
- ! #line 1793 "c-parse.y"
-
- diff -rc --new-file gcc-2.3.3-fsf/c-parse.y gcc-2.3.3-amiga/c-parse.y
- *** gcc-2.3.3-fsf/c-parse.y Wed Oct 7 20:19:01 1992
- --- gcc-2.3.3-amiga/c-parse.y Mon Nov 29 15:31:02 1993
- ***************
- *** 853,859 ****
-
- attrib
- : IDENTIFIER
- ! { if (strcmp (IDENTIFIER_POINTER ($1), "packed"))
- warning ("`%s' attribute directive ignored",
- IDENTIFIER_POINTER ($1));
- $$ = $1; }
- --- 853,866 ----
-
- attrib
- : IDENTIFIER
- ! {
- ! #ifdef HANDLE_ATTRIBUTE0
- ! /* give the function a chance to validate further attributes */
- ! if (HANDLE_ATTRIBUTE0 (IDENTIFIER_POINTER ($1)) ||
- ! strcmp (IDENTIFIER_POINTER ($1), "packed"))
- ! #else
- ! if (strcmp (IDENTIFIER_POINTER ($1), "packed"))
- ! #endif
- warning ("`%s' attribute directive ignored",
- IDENTIFIER_POINTER ($1));
- $$ = $1; }
- diff -rc --new-file gcc-2.3.3-fsf/cccp.c gcc-2.3.3-amiga/cccp.c
- *** gcc-2.3.3-fsf/cccp.c Wed Dec 16 04:25:36 1992
- --- gcc-2.3.3-amiga/cccp.c Mon Nov 29 15:31:13 1993
- ***************
- *** 39,44 ****
- --- 39,60 ----
- #include "config.h"
- #endif /* not EMACS */
-
- + #ifdef amigados
- + /* Since cpp uses alloca to store all its read files, this is quite deadly
- + on a system with non-automatic stackgrowth like amigados, so we better
- + turn it off now. Normally alloca is #defined to __builtin_alloca, so
- + undefining it causes an external alloca to be used.
- +
- + Note that it's not wise to generally inhibit __builtin_alloca, since
- + using the generic emulator entitels a serious (!) speed penalty, and
- + it's bad enough that we have to live with it in cccp, don't make cc1
- + unbearably slow as well... */
- +
- + #undef alloca
- +
- + static int amigados_abs_filename ();
- + #endif
- +
- #ifndef STANDARD_INCLUDE_DIR
- #define STANDARD_INCLUDE_DIR "/usr/include"
- #endif
- ***************
- *** 180,186 ****
- --- 196,206 ----
- extern char *version_string;
- extern struct tm *localtime ();
- extern int sys_nerr;
- +
- + #ifndef HAVE_STRERROR
- extern char *sys_errlist[];
- + #define strerror(err) sys_errlist[err]
- + #endif
-
- #ifndef errno
- extern int errno;
- ***************
- *** 1672,1682 ****
- --- 1692,1706 ----
- char *p = in_fname;
- char *p1 = p;
- /* Discard all directory prefixes from P. */
- + #ifdef FILE_NAME_NONDIRECTORY
- + p = FILE_NAME_NONDIRECTORY (p);
- + #else
- while (*p1) {
- if (*p1 == '/')
- p = p1 + 1;
- p1++;
- }
- + #endif
- /* Output P, but remove known suffixes. */
- len = strlen (p);
- if (p[len - 2] == '.' && p[len - 1] == 'c')
- ***************
- *** 3393,3399 ****
-
- if (!no_output && already_output == 0
- && (kt->pass_thru
- ! || (kt->type == T_DEFINE
- && (dump_macros == dump_names
- || dump_macros == dump_definitions)))) {
- int len;
- --- 3417,3423 ----
-
- if (!no_output && already_output == 0
- && (kt->pass_thru
- ! || ((kt->type == T_DEFINE || kt->type == T_UNDEF)
- && (dump_macros == dump_names
- || dump_macros == dump_definitions)))) {
- int len;
- ***************
- *** 3725,3730 ****
- --- 3749,3766 ----
- search_start = dsp;
- #ifndef VMS
- ep = rindex (nam, '/');
- +
- + #ifdef amigados
- + /* amigados uses unix-style directory-filename separation, but
- + has VMS-style logicals as well */
- +
- + if (ep == NULL)
- + {
- + ep = rindex (nam, ':');
- + /* a ':' is part of the directory name, a '/' isn't ! */
- + if (ep != NULL) ep++;
- + }
- + #endif /* amigados */
- #else /* VMS */
- ep = rindex (nam, ']');
- if (ep == NULL) ep = rindex (nam, '>');
- ***************
- *** 3800,3806 ****
- --- 3836,3846 ----
-
- /* If specified file name is absolute, just open it. */
-
- + #ifndef amigados
- if (*fbeg == '/') {
- + #else
- + if (amigados_abs_filename (fbeg, flen)) {
- + #endif
- strncpy (fname, fbeg, flen);
- fname[flen] = 0;
- if (redundant_include_p (fname))
- ***************
- *** 3823,3828 ****
- --- 3863,3872 ----
- if (searchptr->fname[0] == 0)
- continue;
- strcpy (fname, searchptr->fname);
- +
- + #ifdef amigados
- + if (fname[strlen (fname) - 1] != ':')
- + #endif
- strcat (fname, "/");
- fname[strlen (fname) + flen] = 0;
- } else {
- ***************
- *** 7637,7643 ****
- fprintf (stderr, "%s:%d: ", ip->nominal_fname, ip->lineno);
-
- if (errno < sys_nerr)
- ! fprintf (stderr, "%s: %s\n", name, sys_errlist[errno]);
- else
- fprintf (stderr, "%s: undocumented I/O error\n", name);
-
- --- 7681,7687 ----
- fprintf (stderr, "%s:%d: ", ip->nominal_fname, ip->lineno);
-
- if (errno < sys_nerr)
- ! fprintf (stderr, "%s: %s\n", name, strerror (errno));
- else
- fprintf (stderr, "%s: undocumented I/O error\n", name);
-
- ***************
- *** 8538,8546 ****
- perror_with_name (name)
- char *name;
- {
- fprintf (stderr, "%s: ", progname);
- ! if (errno < sys_nerr)
- ! fprintf (stderr, "%s: %s\n", name, sys_errlist[errno]);
- else
- fprintf (stderr, "%s: undocumented I/O error\n", name);
- errors++;
- --- 8582,8592 ----
- perror_with_name (name)
- char *name;
- {
- + int error = errno;
- +
- fprintf (stderr, "%s: ", progname);
- ! if (error < sys_nerr)
- ! fprintf (stderr, "%s: %s\n", name, strerror (error));
- else
- fprintf (stderr, "%s: undocumented I/O error\n", name);
- errors++;
- ***************
- *** 8916,8918 ****
- --- 8962,8988 ----
- return dst;
- }
- #endif /* VMS */
- +
- +
- + #ifdef amigados
- +
- + /* This function returns whether the LEN characters long filename FNAME
- + is an absolute path specification. */
- +
- + static int
- + amigados_abs_filename (fname, len)
- + char *fname;
- + int len;
- + {
- + /* we're using ixemul.library, which treats `/foo' as `foo:', so
- + fname[0] is to be considered absolute as well */
- + if (fname[0] == '/')
- + return 1;
- +
- + /* else do an index() on fname, but one which is limited to len characters */
- + while (*fname && *fname != ':' && len)
- + fname++, len--;
- +
- + return *fname == ':';
- + }
- + #endif /* amigados */
- diff -rc --new-file gcc-2.3.3-fsf/config/amigados.c gcc-2.3.3-amiga/config/amigados.c
- *** gcc-2.3.3-fsf/config/amigados.c Thu Jan 1 00:00:00 1970
- --- gcc-2.3.3-amiga/config/amigados.c Mon Nov 29 15:31:17 1993
- ***************
- *** 0 ****
- --- 1,158 ----
- + /* Definitions of target machine for GNU compiler. amiga 68000/68020 version.
- + Copyright (C) 1992 Free Software Foundation, Inc.
- + Contributed by Markus M. Wild (wild@amiga.physik.unizh.ch).
- +
- + This file is part of GNU CC.
- +
- + GNU CC is free software; you can redistribute it and/or modify
- + it under the terms of the GNU General Public License as published by
- + the Free Software Foundation; either version 2, or (at your option)
- + any later version.
- +
- + GNU CC is distributed in the hope that it will be useful,
- + but WITHOUT ANY WARRANTY; without even the implied warranty of
- + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + GNU General Public License for more details.
- +
- + You should have received a copy of the GNU General Public License
- + along with GNU CC; see the file COPYING. If not, write to
- + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- + #include "m68k.c"
- +
- + /* Does operand (which is a symbolic_operand) live in text space? If
- + so SYMBOL_REF_FLAG, which is set by ENCODE_SECTION_INFO, will be true.
- +
- + This function is used in base relative code generation. */
- +
- + int
- + read_only_operand (operand)
- + rtx operand;
- + {
- + if (GET_CODE (operand) == CONST)
- + operand = XEXP (XEXP (operand, 0), 0);
- + if (GET_CODE (operand) == SYMBOL_REF)
- + return SYMBOL_REF_FLAG (operand) || CONSTANT_POOL_ADDRESS_P (operand);
- + return 1;
- + }
- +
- +
- + /* the rest of the file is to implement AmigaDOS specific keywords some day.
- + The approach used so far used __attribute__ for this, but this required
- + changes to c-parse.y as well as if we'd use the common keywords used
- + on commercial AmigaDOS C-compilers as well. So in the future I'll probably
- + switch to __saveds and __interrupt keywords as well.
- +
- + The rest of this file is currently ignored, because it's no longer
- + working with the current gcc version. */
- +
- + #if not_yet_working
- +
- + #include "tree.h"
- +
- + struct attribute {
- + tree ident;
- + int saveds : 1,
- + interrupt : 1;
- + };
- +
- +
- + static struct attribute *a_tab = 0;
- + static int a_index, a_size;
- +
- + void
- + add_attr_entry (attr)
- + struct attribute *attr;
- + {
- + if (! a_tab)
- + {
- + a_size = 10;
- + a_index = 0;
- + a_tab = (struct attribute *) xmalloc (a_size * sizeof (struct attribute));
- + }
- +
- + if (a_index == a_size)
- + {
- + a_size <<= 1;
- + a_tab = (struct attribute *) xrealloc (a_tab, a_size * sizeof (struct attribute));
- + }
- +
- + a_tab[a_index++] = *attr;
- + }
- +
- +
- + void
- + attr_do_saveds (function_ident)
- + tree function_ident;
- + {
- + struct attribute attr, *a;
- + int i;
- +
- + for (i = 0, a = a_tab; i < a_index; i++, a++)
- + if (a->ident == function_ident)
- + {
- + a->saveds = 1;
- + return;
- + }
- +
- + /* create a new entry for this function */
- + attr.ident = function_ident;
- + attr.saveds = 1;
- + attr.interrupt = 0;
- + add_attr_entry (&attr);
- + }
- +
- + void
- + attr_do_interrupt (function_ident)
- + tree function_ident;
- + {
- + struct attribute attr, *a;
- + int i;
- +
- + for (i = 0, a = a_tab; i < a_index; i++, a++)
- + if (a->ident == function_ident)
- + {
- + /* __interrupt implies __saveds */
- + a->saveds = 1;
- + a->interrupt = 1;
- + return;
- + }
- +
- + /* create a new entry for this function */
- + attr.ident = function_ident;
- + attr.saveds = 1;
- + attr.interrupt = 1;
- + add_attr_entry (&attr);
- + }
- +
- + int
- + attr_does_saveds (function_name)
- + char *function_name;
- + {
- + tree ident = get_identifier (function_name);
- + struct attribute *attr;
- + int i;
- +
- + for (i = 0, attr = a_tab; i < a_index; i++, attr++)
- + if (attr->ident == ident)
- + return attr->saveds;
- +
- + return 0;
- + }
- +
- + int
- + attr_does_interrupt (function_name)
- + char *function_name;
- + {
- + tree ident = get_identifier (function_name);
- + struct attribute *attr;
- + int i;
- +
- + for (i = 0, attr = a_tab; i < a_index; i++, attr++)
- + if (attr->ident == ident)
- + return attr->interrupt;
- +
- + return 0;
- + }
- +
- + #endif
- diff -rc --new-file gcc-2.3.3-fsf/config/amigados.h gcc-2.3.3-amiga/config/amigados.h
- *** gcc-2.3.3-fsf/config/amigados.h Thu Jan 1 00:00:00 1970
- --- gcc-2.3.3-amiga/config/amigados.h Mon Nov 29 15:31:21 1993
- ***************
- *** 0 ****
- --- 1,388 ----
- + /* Definitions of target machine for GNU compiler. amiga 68000/68020 version.
- + Copyright (C) 1992 Free Software Foundation, Inc.
- + Contributed by Markus M. Wild (wild@amiga.physik.unizh.ch).
- +
- + This file is part of GNU CC.
- +
- + GNU CC is free software; you can redistribute it and/or modify
- + it under the terms of the GNU General Public License as published by
- + the Free Software Foundation; either version 2, or (at your option)
- + any later version.
- +
- + GNU CC is distributed in the hope that it will be useful,
- + but WITHOUT ANY WARRANTY; without even the implied warranty of
- + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + GNU General Public License for more details.
- +
- + You should have received a copy of the GNU General Public License
- + along with GNU CC; see the file COPYING. If not, write to
- + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- + #include "m68k.h"
- +
- + /* See m68k.h for bits in TARGET_DEFAULT.
- + 0 means 68000, no hardware fpu (68881/68882/68040).
- + 7 means 68020 (or higher) with hardware fpu. */
- +
- + #ifndef TARGET_DEFAULT
- + #define TARGET_DEFAULT 0
- + #endif
- +
- + /* Define __HAVE_68881__ in preprocessor according to the -m flags.
- + This will control the use of inline 68881 insns in certain macros.
- + Also inform the program which CPU this is for. */
- +
- + #if TARGET_DEFAULT & 02
- +
- + /* -m68881 is the default */
- + #define CPP_SPEC \
- + "%{!msoft-float:-D__HAVE_68881__ }\
- + %{!ansi:%{m68000:-Dmc68010}%{mc68000:-Dmc68010}%{!mc68000:%{!m68000:-Dmc68020}}}"
- +
- + #else
- +
- + /* -msoft-float is the default, assume -mc68000 as well */
- + #define CPP_SPEC \
- + "%{m68881:-D__HAVE_68881__ }\
- + %{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
- +
- + #endif
- +
- + /* -m68000 requires special flags to the assembler. */
- +
- + #if TARGET_DEFAULT & 01
- +
- + #define ASM_SPEC \
- + "%{m68000:-mc68010}%{mc68000:-mc68010}%{!mc68000:%{!m68000:-mc68020}} %{msmall-code:-l} "
- +
- + #else
- +
- + #define ASM_SPEC \
- + "%{m68020:-mc68020}%{mc68020:-mc68020}%{!mc68020:%{!m68020:-mc68010}} %{msmall-code:-l} "
- +
- + #endif
- +
- + /* amiga/amigados are the new "standard" defines for the Amiga, MCH_AMIGA
- + * was used before and is included for compatibility reasons */
- +
- + #define CPP_PREDEFINES "-Dmc68000 -Damiga -Damigados -DMCH_AMIGA -DAMIGA"
- +
- + /* Choose the right startup file, depending on whether we use base relative
- + code, base relative code with automatic relocation (-resident), or plain
- + crt0.o.
- +
- + Profiling is currently only available for plain startup.
- + mcrt0.o does not (yet) exist. */
- +
- + #define STARTFILE_SPEC \
- + "%{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}}}}"
- +
- +
- + /* Automatically search libamiga.a for AmigaDOS specific functions. Note
- + that we first search the standard C library to resolve as much as
- + possible from there, since it has names that are duplicated in libamiga.a
- + which we *don't* want from there. Then search the standard C library
- + again to resolve any references that libamiga.a might have generated.
- + This may only be a temporary solution since it might be better to simply
- + remove the things from libamiga.a that should be pulled in from libc.a
- + instead, which would eliminate the first reference to libc.a. */
- +
- + #define LIB_SPEC "%{!p:%{!pg:-lc -lamiga -lc}}%{p:-lc_p -lamiga -lc_p}%{pg:-lc_p -lamiga -lc_p}"
- +
- + /* if debugging, tell the linker to output amiga-hunk symbols *and* a BSD
- + compatible debug hunk (which will probably change in the future, it's not
- + tremendously useful in its current state). */
- +
- + #define LINK_SPEC "%{g:-amiga-debug-hunk} %{fbaserel:-databss-together} %{resident:-databss-together -datadata-reloc -f libb} "
- +
- + #define CC1_SPEC "%{resident:-fbaserel} "
- +
- + #define CC1PLUS_SPEC "%{resident:-fbaserel} "
- +
- + /* Omit frame pointer at high optimization levels. (This doesn't hurt, since
- + GDB doesn't work under AmigaDOS at the moment anyway..) */
- +
- + #define OPTIMIZATION_OPTIONS(OPTIMIZE) \
- + { \
- + if (OPTIMIZE >= 2) \
- + flag_omit_frame_pointer = 1; \
- + }
- +
- + /* provide a dummy entry for the small-code switch. This is currently only
- + needed by the assembler (explanations: m68k.h), but will be used by cc1
- + to output 16bit pc-relative code later. */
- +
- + #undef TARGET_SWITCHES
- + #define TARGET_SWITCHES \
- + { { "68020", 5}, \
- + { "c68020", 5}, \
- + { "68881", 2}, \
- + { "bitfield", 4}, \
- + { "68000", -5}, \
- + { "c68000", -5}, \
- + { "soft-float", -0102}, \
- + { "nobitfield", -4}, \
- + { "rtd", 8}, \
- + { "nortd", -8}, \
- + { "short", 040}, \
- + { "noshort", -040}, \
- + { "fpa", 0100}, \
- + { "nofpa", -0100}, \
- + { "sky", 0200}, \
- + { "nosky", -0200}, \
- + { "68040", 0407}, \
- + { "68030", -01400}, \
- + { "68030", 7}, \
- + { "68040-only", 01000}, \
- + { "small-code", 0 }, \
- + { "", TARGET_DEFAULT}}
- +
- + /* Every structure or union's size must be a multiple of 2 bytes. */
- +
- + #define STRUCTURE_SIZE_BOUNDARY 16
- +
- + /* This is (almost;-)) BSD, so it wants DBX format. */
- +
- + #define DBX_DEBUGGING_INFO
- +
- + /* Allow folding division by zero. */
- + #define REAL_INFINITY
- +
- + /* This is how to output an assembler line defining a `double' constant. */
- +
- + #undef ASM_OUTPUT_DOUBLE
- + #define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
- + { \
- + if (REAL_VALUE_ISINF (VALUE)) \
- + fprintf (FILE, "\t.double 0r%s99e999\n", (VALUE) > 0 ? "" : "-"); \
- + else if (isnan (VALUE)) \
- + { \
- + union { double d; long l[2];} t; \
- + t.d = (VALUE); \
- + fprintf (FILE, "\t.long 0x%lx\n\t.long 0x%lx\n", t.l[0], t.l[1]); \
- + } \
- + else \
- + fprintf (FILE, "\t.double 0r%.17g\n", VALUE); \
- + }
- +
- + /* This is how to output an assembler line defining a `float' constant. */
- +
- + #undef ASM_OUTPUT_FLOAT
- + #define ASM_OUTPUT_FLOAT(FILE,VALUE) \
- + { \
- + if (REAL_VALUE_ISINF (VALUE)) \
- + fprintf (FILE, "\t.single 0r%s99e999\n", (VALUE) > 0 ? "" : "-"); \
- + else if (isnan (VALUE)) \
- + { \
- + union { float f; long l;} t; \
- + t.f = (VALUE); \
- + fprintf (FILE, "\t.long 0x%lx\n", t.l); \
- + } \
- + else \
- + fprintf (FILE, "\t.single 0r%.9g\n", VALUE); \
- + }
- +
- + /* This is how to output an assembler lines defining floating operands.
- + There's no way to output a NaN's fraction, so we lose it. */
- +
- + #undef ASM_OUTPUT_FLOAT_OPERAND
- + #define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \
- + (REAL_VALUE_ISINF ((VALUE)) \
- + ? asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
- + : (VALUE) == -0.0 \
- + ? asm_fprintf (FILE, "%I0r-0.0") \
- + : asm_fprintf (FILE, "%I0r%.9g", (VALUE)))
- +
- + #undef ASM_OUTPUT_DOUBLE_OPERAND
- + #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \
- + (REAL_VALUE_ISINF ((VALUE)) \
- + ? asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
- + : (VALUE) == -0.0 \
- + ? asm_fprintf (FILE, "%I0r-0.0") \
- + : asm_fprintf (FILE, "%I0r%.17g", (VALUE)))
- +
- +
- + /* use A5 as framepointer instead of A6, this makes A6 available as a
- + general purpose register, and can thus be used without problems in
- + direct library calls. */
- +
- + #undef FRAME_POINTER_REGNUM
- + #define FRAME_POINTER_REGNUM 13
- + #undef ARG_POINTER_REGNUM
- + #define ARG_POINTER_REGNUM 13
- +
- + /* we use A4 for this, not A5, which is the framepointer */
- + #undef PIC_OFFSET_TABLE_REGNUM
- + #define PIC_OFFSET_TABLE_REGNUM 12
- +
- + /* setup a default shell return value for those (gazillion..) programs that
- + (inspite of ANSI-C) declare main() to be void (or even VOID...) and thus
- + cause the shell to randomly caugh upon executing such programs (contrary
- + to Unix, AmigaDOS scripts are terminated with an error if a program returns
- + with an error code above the `error' or even `failure' level
- + (which is configurable with the FAILAT command) */
- +
- + #define DEFAULT_MAIN_RETURN c_expand_return (integer_zero_node)
- +
- + /* we do have an ansi-compliant c-library ;-) */
- + #define HAVE_VPRINTF
- + #define HAVE_VFPRINTF
- + #define HAVE_PUTENV
- + #define HAVE_STRERROR
- + #define HAVE_ATEXIT
- +
- + /* given that symbolic_operand(X), return TRUE if no special
- + base relative relocation is necessary */
- +
- + #define LEGITIMATE_BASEREL_OPERAND_P(X) \
- + (flag_pic >= 3 && read_only_operand (X))
- +
- + #undef LEGITIMATE_PIC_OPERAND_P
- + #define LEGITIMATE_PIC_OPERAND_P(X) \
- + (! symbolic_operand (X, VOIDmode) || LEGITIMATE_BASEREL_OPERAND_P (X))
- +
- +
- + /* Define this macro if references to a symbol must be treated
- + differently depending on something about the variable or
- + function named by the symbol (such as what section it is in).
- +
- + The macro definition, if any, is executed immediately after the
- + rtl for DECL or other node is created.
- + The value of the rtl will be a `mem' whose address is a
- + `symbol_ref'.
- +
- + The usual thing for this macro to do is to a flag in the
- + `symbol_ref' (such as `SYMBOL_REF_FLAG') or to store a modified
- + name string in the `symbol_ref' (if one bit is not enough
- + information).
- +
- + On the Amiga we use this to indicate if a symbol is in text or
- + data space. */
- +
- + #define ENCODE_SECTION_INFO(DECL)\
- + do \
- + { \
- + if (TREE_CODE (DECL) == FUNCTION_DECL) \
- + SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1; \
- + else \
- + { \
- + rtx rtl = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd' \
- + ? TREE_CST_RTL (DECL) : DECL_RTL (DECL)); \
- + if (RTX_UNCHANGING_P (rtl) && !MEM_VOLATILE_P (rtl)) \
- + SYMBOL_REF_FLAG (XEXP (rtl, 0)) = 1; \
- + } \
- + } \
- + while (0)
- +
- + #undef SELECT_RTX_SECTION
- + #define SELECT_RTX_SECTION(MODE, X) readonly_data_section ();
- +
- + /* according to varasm.c, RELOC referrs *only* to whether constants (!)
- + are addressed by address. This doesn't matter in baserelative code,
- + so we allow (inspite of flag_pic) readonly_data_section() in that
- + case */
- +
- + #undef SELECT_SECTION
- + #define SELECT_SECTION(DECL, RELOC) \
- + { \
- + if (TREE_CODE (DECL) == STRING_CST) \
- + { \
- + if (! flag_writable_strings) \
- + readonly_data_section (); \
- + else \
- + data_section (); \
- + } \
- + else if (TREE_CODE (DECL) == VAR_DECL) \
- + { \
- + if ((flag_pic && flag_pic < 3 && RELOC) \
- + || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL)) \
- + data_section (); \
- + else \
- + readonly_data_section (); \
- + } \
- + else \
- + readonly_data_section (); \
- + }
- +
- +
- +
- + #if not_yet_working
- +
- + /* starting support for amiga specific keywords
- + * --------------------------------------------
- + */
- +
- + /* validate attributes that don't take a parameter. Currently we support
- + * __attribute__ (saveds) and __attribute__ (interrupt)
- + */
- + #define HANDLE_ATTRIBUTE0(attr) \
- + (strcmp(attr, "saveds") != 0 && strcmp(attr, "interrupt") != 0)
- +
- + /* (c-common.c)
- + * install additional attributes
- + */
- + #define HANDLE_EXTRA_ATTRIBUTES(a) \
- + if (TREE_VALUE (a) != 0 \
- + && TREE_CODE (TREE_VALUE (a)) == IDENTIFIER_NODE \
- + && TREE_VALUE (a) == get_identifier ("saveds")) \
- + { \
- + if (TREE_CODE (decl) != FUNCTION_DECL) \
- + { \
- + warning_with_decl (decl, \
- + "saveds attribute specified for non-function `%s'"); \
- + return; \
- + } \
- + \
- + attr_do_saveds (DECL_NAME (decl)); \
- + } \
- + else if (TREE_VALUE (a) != 0 \
- + && TREE_CODE (TREE_VALUE (a)) == IDENTIFIER_NODE \
- + && TREE_VALUE (a) == get_identifier ("interrupt")) \
- + { \
- + if (TREE_CODE (decl) != FUNCTION_DECL) \
- + { \
- + warning_with_decl (decl, \
- + "saveds attribute specified for non-function `%s'"); \
- + return; \
- + } \
- + \
- + attr_do_interrupt (DECL_NAME (decl)); \
- + } \
- +
- +
- + #define PROLOGUE_EXTRA_SAVE(mask) \
- + { extern char *current_function_name; \
- + /* saveds makes the function preserve d1/a0/a1 as well */ \
- + if (attr_does_saveds (current_function_name)) \
- + mask |= 0x40c0; } \
- +
- +
- + #define EPILOGUE_EXTRA_RESTORE(mask, nregs) \
- + { extern char *current_function_name; \
- + /* restore those extra registers */ \
- + if (attr_does_saveds (current_function_name)) \
- + { \
- + mask |= 0x0302; \
- + nregs += 3; \
- + } } \
- +
- +
- + #define EPILOGUE_EXTRA_BARRIER_KLUDGE(stream) \
- + { extern char *current_function_name; \
- + /* PLEASE Help! how is this done cleaner?? */ \
- + if (attr_does_saveds (current_function_name)) \
- + { \
- + fprintf (stderr, \
- + "warning: couldn't cleanup `saveds'-stack in `%s'.\n"); \
- + fprintf (stderr, \
- + " this is only ok, if the function never returns!\n"); \
- + } } \
- +
- +
- + #define EPILOGUE_EXTRA_TEST(stream) \
- + { extern char *current_function_name; \
- + /* with the interrupt-attribute, we have to set the cc before rts */ \
- + if (attr_does_interrupt (current_function_name)) \
- + asm_fprintf (stream, "\ttstl %s\n", reg_names[0]); } \
- +
- + #endif
- diff -rc --new-file gcc-2.3.3-fsf/config/m68k.c gcc-2.3.3-amiga/config/m68k.c
- *** gcc-2.3.3-fsf/config/m68k.c Fri Oct 30 01:00:58 1992
- --- gcc-2.3.3-amiga/config/m68k.c Mon Nov 29 15:31:26 1993
- ***************
- *** 60,66 ****
-
- finalize_pic ()
- {
- ! if (flag_pic && current_function_uses_pic_offset_table)
- emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
- }
-
- --- 60,66 ----
-
- finalize_pic ()
- {
- ! if (flag_pic && (flag_pic < 3) && current_function_uses_pic_offset_table)
- emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
- }
-
- ***************
- *** 180,185 ****
- --- 180,188 ----
- mask &= ~ (1 << (15 - FRAME_POINTER_REGNUM));
- num_saved_regs--;
- }
- + #ifdef PROLOGUE_EXTRA_SAVE
- + PROLOGUE_EXTRA_SAVE (mask);
- + #endif
-
- #if NEED_PROBE
- fprintf (stream, "\ttstl sp@(%d)\n", NEED_PROBE - num_saved_regs * 4);
- ***************
- *** 213,219 ****
- asm_fprintf (stream, "\tmoveml %0I0x%x,%Rsp@-\n", mask);
- #endif
- }
- ! if (flag_pic && current_function_uses_pic_offset_table)
- {
- #ifdef MOTOROLA
- asm_fprintf (stream, "\t%Omove.l %0I__GLOBAL_OFFSET_TABLE_, %s\n",
- --- 216,222 ----
- asm_fprintf (stream, "\tmoveml %0I0x%x,%Rsp@-\n", mask);
- #endif
- }
- ! if (flag_pic && (flag_pic < 3) && current_function_uses_pic_offset_table)
- {
- #ifdef MOTOROLA
- asm_fprintf (stream, "\t%Omove.l %0I__GLOBAL_OFFSET_TABLE_, %s\n",
- ***************
- *** 281,286 ****
- --- 284,292 ----
- /* Output just a no-op so that debuggers don't get confused
- about which function the pc is in at this address. */
- asm_fprintf (stream, "\tnop\n");
- + #ifdef EPILOGUE_EXTRA_BARRIER_KLUDGE
- + EPILOGUE_EXTRA_BARRIER_KLUDGE(stream);
- + #endif
- return;
- }
-
- ***************
- *** 311,316 ****
- --- 317,325 ----
- nregs++;
- mask |= 1 << regno;
- }
- + #ifdef EPILOGUE_EXTRA_RESTORE
- + EPILOGUE_EXTRA_RESTORE(mask, nregs);
- + #endif
- offset = foffset + nregs * 4;
- if (offset + fsize >= 0x8000
- && frame_pointer_needed
- ***************
- *** 513,518 ****
- --- 522,530 ----
- #endif
- }
- }
- + #ifdef EPILOGUE_EXTRA_TEST
- + EPILOGUE_EXTRA_TEST(stream);
- + #endif
- if (current_function_pops_args)
- asm_fprintf (stream, "\trtd %0I%d\n", current_function_pops_args);
- else
- ***************
- *** 803,817 ****
- /* First handle a simple SYMBOL_REF or LABEL_REF */
- if (GET_CODE (orig) == SYMBOL_REF || GET_CODE (orig) == LABEL_REF)
- {
- if (reg == 0)
- abort ();
-
- ! pic_ref = gen_rtx (MEM, Pmode,
- ! gen_rtx (PLUS, Pmode,
- ! pic_offset_table_rtx, orig));
- current_function_uses_pic_offset_table = 1;
- RTX_UNCHANGING_P (pic_ref) = 1;
- emit_move_insn (reg, pic_ref);
- return reg;
- }
- else if (GET_CODE (orig) == CONST)
- --- 815,839 ----
- /* First handle a simple SYMBOL_REF or LABEL_REF */
- if (GET_CODE (orig) == SYMBOL_REF || GET_CODE (orig) == LABEL_REF)
- {
- + #ifdef LEGITIMATE_BASEREL_OPERAND_P
- + if (LEGITIMATE_BASEREL_OPERAND_P (orig))
- + return orig;
- + #endif
- +
- if (reg == 0)
- abort ();
-
- ! if (flag_pic >= 3)
- ! pic_ref = gen_rtx (PLUS, Pmode, pic_offset_table_rtx, orig);
- ! else
- ! pic_ref = gen_rtx (MEM, Pmode,
- ! gen_rtx (PLUS, Pmode,
- ! pic_offset_table_rtx, orig));
- !
- current_function_uses_pic_offset_table = 1;
- RTX_UNCHANGING_P (pic_ref) = 1;
- emit_move_insn (reg, pic_ref);
- +
- return reg;
- }
- else if (GET_CODE (orig) == CONST)
- ***************
- *** 840,845 ****
- --- 862,868 ----
- pic_ref = gen_rtx (PLUS, Pmode, base, orig);
- /* Likewise, should we set special REG_NOTEs here? */
- }
- +
- return pic_ref;
- }
-
- ***************
- *** 1887,1892 ****
- --- 1910,1919 ----
- fprintf (file, ":w");
- if ((flag_pic == 2) && (breg == pic_offset_table_rtx))
- fprintf (file, ":l");
- + if ((flag_pic == 3) && (breg == pic_offset_table_rtx))
- + fprintf (file, ":W");
- + if ((flag_pic == 4) && (breg == pic_offset_table_rtx))
- + fprintf (file, ":L");
- }
- if (addr != 0 && ireg != 0)
- {
- diff -rc --new-file gcc-2.3.3-fsf/config/m68k.h gcc-2.3.3-amiga/config/m68k.h
- *** gcc-2.3.3-fsf/config/m68k.h Tue Nov 24 22:01:03 1992
- --- gcc-2.3.3-amiga/config/m68k.h Mon Nov 29 15:31:31 1993
- ***************
- *** 327,335 ****
- #ifndef SUPPORT_SUN_FPA
-
- #define CONDITIONAL_REGISTER_USAGE \
- ! { \
- ! if (flag_pic) \
- ! fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
- }
-
- #else /* defined SUPPORT_SUN_FPA */
- --- 327,338 ----
- #ifndef SUPPORT_SUN_FPA
-
- #define CONDITIONAL_REGISTER_USAGE \
- ! { \
- ! if (flag_pic) \
- ! fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
- ! /* prevent saving/restoring of the base reg */ \
- ! if (flag_pic == 3) \
- ! call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
- }
-
- #else /* defined SUPPORT_SUN_FPA */
- diff -rc --new-file gcc-2.3.3-fsf/config/m68k.md gcc-2.3.3-amiga/config/m68k.md
- *** gcc-2.3.3-fsf/config/m68k.md Mon Nov 23 22:47:27 1992
- --- gcc-2.3.3-amiga/config/m68k.md Mon Nov 29 15:31:38 1993
- ***************
- *** 704,716 ****
- {
- if (flag_pic && symbolic_operand (operands[1], SImode))
- {
- ! /* The source is an address which requires PIC relocation.
- ! Call legitimize_pic_address with the source, mode, and a relocation
- ! register (a new pseudo, or the final destination if reload_in_progress
- ! is set). Then fall through normally */
- ! extern rtx legitimize_pic_address();
- ! rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode);
- ! operands[1] = legitimize_pic_address (operands[1], SImode, temp);
- }
- }")
-
- --- 704,721 ----
- {
- if (flag_pic && symbolic_operand (operands[1], SImode))
- {
- ! #ifdef LEGITIMATE_BASEREL_OPERAND_P
- ! if (flag_pic < 3 || !LEGITIMATE_BASEREL_OPERAND_P (operands[1]))
- ! #endif
- ! {
- ! /* The source is an address which requires PIC relocation.
- ! Call legitimize_pic_address with the source, mode, and a relocation
- ! register (a new pseudo, or the final destination if reload_in_progress
- ! is set). Then fall through normally */
- ! extern rtx legitimize_pic_address();
- ! rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode);
- ! operands[1] = legitimize_pic_address (operands[1], SImode, temp);
- ! }
- }
- }")
-
- ***************
- *** 1711,1718 ****
-
- /* These insns can result from reloads to access
- stack slots over 64k from the frame pointer. */
- ! if (GET_CODE (operands[2]) == CONST_INT
- ! && INTVAL (operands[2]) + 0x8000 >= (unsigned) 0x10000)
- return \"move%.l %2,%0\;add%.l %1,%0\";
- #ifdef SGS
- if (GET_CODE (operands[2]) == REG)
- --- 1716,1724 ----
-
- /* These insns can result from reloads to access
- stack slots over 64k from the frame pointer. */
- ! if (((GET_CODE (operands[2]) == CONST_INT
- ! && INTVAL (operands[2]) + 0x8000 >= (unsigned) 0x10000))
- ! || (flag_pic == 4 && operands[1] == pic_offset_table_rtx))
- return \"move%.l %2,%0\;add%.l %1,%0\";
- #ifdef SGS
- if (GET_CODE (operands[2]) == REG)
- ***************
- *** 4651,4657 ****
- ""
- "
- {
- ! if (flag_pic && GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF)
- operands[0] = gen_rtx (MEM, GET_MODE (operands[0]),
- force_reg (Pmode, XEXP (operands[0], 0)));
- }")
- --- 4657,4663 ----
- ""
- "
- {
- ! if (flag_pic && flag_pic < 3 && GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF)
- operands[0] = gen_rtx (MEM, GET_MODE (operands[0]),
- force_reg (Pmode, XEXP (operands[0], 0)));
- }")
- ***************
- *** 4662,4668 ****
- (match_operand:SI 1 "general_operand" "g"))]
- ;; Operand 1 not really used on the m68000.
-
- ! "! flag_pic"
- "*
- #ifdef MOTOROLA
- return \"jsr %0\";
- --- 4668,4674 ----
- (match_operand:SI 1 "general_operand" "g"))]
- ;; Operand 1 not really used on the m68000.
-
- ! "(! flag_pic || flag_pic >= 3)"
- "*
- #ifdef MOTOROLA
- return \"jsr %0\";
- ***************
- *** 4677,4683 ****
- (match_operand:SI 1 "general_operand" "g"))]
- ;; Operand 1 not really used on the m68000.
-
- ! "flag_pic"
- "*
- return \"jsr %0\";
- ")
- --- 4683,4689 ----
- (match_operand:SI 1 "general_operand" "g"))]
- ;; Operand 1 not really used on the m68000.
-
- ! "(flag_pic && flag_pic < 3)"
- "*
- return \"jsr %0\";
- ")
- ***************
- *** 4693,4699 ****
- ""
- "
- {
- ! if (flag_pic && GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF)
- operands[1] = gen_rtx (MEM, GET_MODE (operands[1]),
- force_reg (Pmode, XEXP (operands[1], 0)));
- }")
- --- 4699,4705 ----
- ""
- "
- {
- ! if (flag_pic && flag_pic < 3 && GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF)
- operands[1] = gen_rtx (MEM, GET_MODE (operands[1]),
- force_reg (Pmode, XEXP (operands[1], 0)));
- }")
- ***************
- *** 4704,4710 ****
- (call (match_operand:QI 1 "memory_operand" "o")
- (match_operand:SI 2 "general_operand" "g")))]
- ;; Operand 2 not really used on the m68000.
- ! "! flag_pic"
- "*
- #ifdef MOTOROLA
- return \"jsr %1\";
- --- 4710,4716 ----
- (call (match_operand:QI 1 "memory_operand" "o")
- (match_operand:SI 2 "general_operand" "g")))]
- ;; Operand 2 not really used on the m68000.
- ! "(! flag_pic || flag_pic >= 3)"
- "*
- #ifdef MOTOROLA
- return \"jsr %1\";
- ***************
- *** 4719,4725 ****
- (call (match_operand:QI 1 "memory_operand" "o")
- (match_operand:SI 2 "general_operand" "g")))]
- ;; Operand 2 not really used on the m68000.
- ! "flag_pic"
- "*
- return \"jsr %1\";
- ")
- --- 4725,4731 ----
- (call (match_operand:QI 1 "memory_operand" "o")
- (match_operand:SI 2 "general_operand" "g")))]
- ;; Operand 2 not really used on the m68000.
- ! "(flag_pic && flag_pic < 3)"
- "*
- return \"jsr %1\";
- ")
- diff -rc --new-file gcc-2.3.3-fsf/config/t-amigados gcc-2.3.3-amiga/config/t-amigados
- *** gcc-2.3.3-fsf/config/t-amigados Thu Jan 1 00:00:00 1970
- --- gcc-2.3.3-amiga/config/t-amigados Sat Feb 5 14:15:26 1994
- ***************
- *** 0 ****
- --- 1,180 ----
- + # Makefile fragment for amigados target.
- +
- + # We generate two additional things:
- + #
- + # libb/libgcc.a
- + # A base relative version of libgcc.a which is used when compiling and
- + # linking with the '-resident' option.
- + #
- + # xgccv
- + # A forking gcc instead of one calling ssytem(). This makes it less
- + # system conformant (can't ^C it when started from make), while
- + # providing increased functionality (-pipe option).
- +
- + # Use the vfork'ing version of gcc by default, so that the -pipe option can
- + # get tested. To use the regular version just do "make XGCC=gcc".
- +
- + XGCC = xgccv -pipe
- + GCC_FOR_TARGET = ./$(XGCC) -B./
- +
- + # Build residentable versions of the gcc executables by default. Use
- + # "make RESIDENT=" to build non-residentable versions.
- +
- + RESIDENT = -resident
- +
- + # The standard additional target flags for the compiler.
- +
- + T_CFLAGS = $(RESIDENT)
- +
- + # Allow the user to override the default target optimizations with gcc, or
- + # if the target compiler is not gcc and doesn't understand -O<N>.
- +
- + T_OPTIMISE = -O2
- +
- + # Each compilation environment (Manx, Dice, GCC, SAS/C, etc) provides its
- + # own equivalent of the UNIX /usr/include tree. For gcc, the standard
- + # headers are in /gnu/include and system specific headers are in
- + # /gnu/os-include. Use these paths for fixincludes.
- +
- + SYSTEM_HEADER_DIR = /gnu/include
- + OTHER_FIXINCLUDES_DIRS = /gnu/os-include
- +
- + # We don't need a libgcc1, it's all in ixemul.library
- +
- + LIBGCC1 = libgcc1.null
- +
- + # Flags to use when compiling the normal version of libgcc.a.
- + # Don't compile with debugging, as long as there is no debugger.
- + # Explicitly leave out the -resident compilation flag and don't use T_CFLAGS.
- +
- + LIBGCC2_CFLAGS = $(T_OPTIMIZE) $(INTERNAL_CFLAGS) $(X_CFLAGS) $(CFLAGS) \
- + $(CROSS_GCC_CFLAGS)
- +
- + # Flags to use when compiling the base relative version of libgcc.a.
- + # Don't compile with debugging, as long as there is no debugger.
- + # Explicitly force -resident in the compilation flags and don't use T_CFLAGS.
- +
- + LIBBGCC2_CFLAGS = $(T_OPTIMIZE) $(INTERNAL_CFLAGS) $(X_CFLAGS) $(CFLAGS) \
- + $(CROSS_GCC_CFLAGS) -resident
- +
- + # Build the base relative library.
- + # It is later copied into /gnu/lib/gcc-lib/amigados/<version>/libb/libgcc.a,
- + # whereas libgcc.a is copied into /gnu/lib/gcc-lib/amigados/<version>/libgcc.a.
- + # It doesn't work very well to define one of the EXTRA_* macros to contain
- + # libb/libgcc.a, particularly for doing "make stageN" or "make install".
- +
- + GCC_PARTS=$(GCC_PASSES) libgcc.a libb/libgcc.a $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
- +
- + INSTALL_EXTRA_PARTS = install-libbgcc install-gccv
- +
- + # This includes the knowledge that target amigados doesn't need libgcc1.a
- +
- + libb/libgcc.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(LIB2FUNCS_EXTRA) \
- + longlong.h gbl-ctors.h config.status
- + # Actually build it in tmplibbgcc.a, then rename at end,
- + # so that libb/libgcc.a itself remains nonexistent if compilation is aborted.
- + -rm -f tmplibbgcc.a
- + # -e causes any failing command to make this rule fail.
- + # -e doesn't work in certain shells, so we test $$? as well.
- + set -e; \
- + for name in $(LIB2FUNCS); \
- + do \
- + echo $${name}; \
- + $(GCC_FOR_TARGET) $(LIBBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
- + $(srcdir)/libgcc2.c -o $${name}.o; \
- + if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
- + $(AR) $(AR_FLAGS) tmplibbgcc.a $${name}.o; \
- + rm -f $${name}.o; \
- + done
- + # Some shells crash when a loop has no items.
- + # So make sure there is always at least one--`..'.
- + # Then ignore it.
- + # We don't use -e here because there are if statements
- + # that should not make the command give up when the if condition is false.
- + # Instead, we test for failure after each command where it matters.
- + -for file in .. $(LIB2FUNCS_EXTRA); \
- + do \
- + if [ x$${file} != x.. ]; then \
- + name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
- + echo $${name}; \
- + if [ $${name}.asm = $${file} ]; then \
- + cp $${file} $${name}.s; file=$${name}.s; \
- + if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
- + else true; fi; \
- + $(GCC_FOR_TARGET) $(LIBBGCC2_CFLAGS) $(INCLUDES) -c $${file}; \
- + if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
- + $(AR) $(AR_FLAGS) tmplibbgcc.a $${name}.o; \
- + rm -f $${name}.[so]; \
- + else true; \
- + fi; \
- + done
- + -if $(RANLIB_TEST) ; then $(RANLIB) tmplibbgcc.a; else true; fi
- + -if [ -d libb ] ; then true ; else mkdir libb ; fi
- + mv tmplibbgcc.a libb/libgcc.a
- +
- + install-libbgcc: libb/libgcc.a install-dir
- + -if [ -d $(libsubdir)/libb ] ; then true ; else mkdir $(libsubdir)/libb ; fi
- + -if [ -f libb/libgcc.a ] ; then \
- + rm -f $(libsubdir)/libb/libgcc.a; \
- + $(INSTALL_DATA) libb/libgcc.a $(libsubdir)/libb/libgcc.a; \
- + if $(RANLIB_TEST) ; then \
- + (cd $(libsubdir)/libb; $(RANLIB) libgcc.a); else true; fi; \
- + chmod a-x $(libsubdir)/libb/libgcc.a; \
- + else true; fi
- +
- +
- + # The default gcc (xgcc) is built without -DAMIGADOS_FORK_GCC. This gcc (xgccv)
- + # is built with AMIGADOS_FORK_GCC defined, so that it can use '-pipe'. We
- + # don't want to define EXTRA_PASSES to xgccv because that will cause xgccv
- + # to be installed in $(libsubdir), so instead we use the default GCC_PASSES
- + # and add xgccv to it.
- +
- + GCC_PASSES = xgcc xgccv cc1 cpp $(EXTRA_PASSES)
- +
- + xgccv: xgccv.o version.o $(LIBDEPS)
- + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgccv xgccv.o version.o $(LIBS)
- +
- + xgccv.o: gcc.c $(CONFIG_H) gvarargs.h obstack.h
- + $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- + -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
- + -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
- + -DDEFAULT_TARGET_MACHINE=\"$(target)\" \
- + -DTOOLDIR=\"$(tooldir)/\" \
- + -DAMIGADOS_FORK_GCC \
- + -c `echo $(srcdir)/gcc.c | sed 's,^\./,,'` -o xgccv.o
- +
- + install-gccv: xgccv
- + rm -f $(bindir)/gccv
- + $(INSTALL_PROGRAM) xgccv $(bindir)/gccv
- +
- + # When making one of the stage<N> dirs, we need to make a libb subdir for
- + # it, and copy libbgcc.a there as libgcc.a.
- +
- + EXTRA_STAGE1_TARGETS = stage1-libb
- + EXTRA_STAGE2_TARGETS = stage2-libb
- + EXTRA_STAGE3_TARGETS = stage3-libb
- + EXTRA_STAGE4_TARGETS = stage4-libb
- +
- + stage1-libb:
- + -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
- + -if [ -d stage1/libb ] ; then true ; else mkdir stage1/libb ; fi
- + -cp libb/libgcc.a stage1/libb/libgcc.a
- + -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libb/libgcc.a; else true; fi
- +
- + stage2-libb:
- + -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
- + -if [ -d stage2/libb ] ; then true ; else mkdir stage2/libb ; fi
- + -cp libb/libgcc.a stage2/libb/libgcc.a
- + -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libb/libgcc.a; else true; fi
- +
- + stage3-libb:
- + -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
- + -if [ -d stage3/libb ] ; then true ; else mkdir stage3/libb ; fi
- + -cp libb/libgcc.a stage3/libb/libgcc.a
- + -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libb/libgcc.a; else true; fi
- +
- + stage4-libb:
- + -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
- + -if [ -d stage4/libb ] ; then true ; else mkdir stage4/libb ; fi
- + -cp libb/libgcc.a stage4/libb/libgcc.a
- + -if $(RANLIB_TEST) ; then $(RANLIB) stage4/libb/libgcc.a; else true; fi
- diff -rc --new-file gcc-2.3.3-fsf/config/x-amigados gcc-2.3.3-amiga/config/x-amigados
- *** gcc-2.3.3-fsf/config/x-amigados Thu Jan 1 00:00:00 1970
- --- gcc-2.3.3-amiga/config/x-amigados Mon Nov 29 15:31:46 1993
- ***************
- *** 0 ****
- --- 1,36 ----
- + # Note: It doesn't do any good to try to define prefix or local_prefix
- + # in the host overrides because configure will just change them back.
- + # You either have to give an appropriate option to configure or live with
- + # an Amiga specific patch to configure. See the note in configure. -fnf
- +
- + # Building under amigados almost certainly requires an already working gcc.
- + # Use gccv, which is a gcc compiled with AMIGADOS_FORK_GCC so "-pipe" will
- + # work and get exercised. To bootstrap with the regular gcc just do
- + # "make CC=gcc"
- +
- + CC = gccv -pipe
- +
- + # Allow the user to override the default host optimization with gcc, or if the
- + # host compiler is not gcc and doesn't understand -O<N>.
- +
- + X_OPTIMIZE = -O2
- +
- + # The standard additional host flags for the compiler.
- +
- + X_CFLAGS = $(X_OPTIMIZE)
- +
- + # Man pages get a wierd suffix...
- +
- + manext = .0
- +
- + # We really shouldn't specify CFLAGS from here, but there's no other way
- + # to get rid of the `-g' indoctrinated by Makefile.in. Note this becomes
- + # part of both the host compilation CFLAGS and the target compilation
- + # CFLAGS.
- +
- + CFLAGS =
- +
- + # Ranlib does exist, but may not be in a path where the default RANLIB_TEST
- + # expects it, so just force it to true.
- +
- + RANLIB_TEST = true
- diff -rc --new-file gcc-2.3.3-fsf/config/xm-amigados.h gcc-2.3.3-amiga/config/xm-amigados.h
- *** gcc-2.3.3-fsf/config/xm-amigados.h Thu Jan 1 00:00:00 1970
- --- gcc-2.3.3-amiga/config/xm-amigados.h Sat Feb 5 14:01:29 1994
- ***************
- *** 0 ****
- --- 1,215 ----
- + /* Configuration for GNU C-compiler for Commodore Amiga, running AmigaDOS.
- + Copyright (C) 1992 Free Software Foundation, Inc.
- + Contributed by Markus M. Wild (wild@amiga.physik.unizh.ch).
- +
- + This file is part of GNU CC.
- +
- + GNU CC is free software; you can redistribute it and/or modify
- + it under the terms of the GNU General Public License as published by
- + the Free Software Foundation; either version 2, or (at your option)
- + any later version.
- +
- + GNU CC is distributed in the hope that it will be useful,
- + but WITHOUT ANY WARRANTY; without even the implied warranty of
- + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + GNU General Public License for more details.
- +
- + You should have received a copy of the GNU General Public License
- + along with GNU CC; see the file COPYING. If not, write to
- + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- + /* first include the generic header, then modify some parts.. */
- +
- + #include "xm-m68k.h"
- +
- + /* Amiga specific headers, such as from the Native Developer Update kits,
- + go in SYSTEM_INCLUDE_DIR. STANDARD_INCLUDE_DIR is the equivalent of
- + Unix "/usr/include". All other include paths are set in Makefile. */
- +
- + #define SYSTEM_INCLUDE_DIR "/gnu/os-include"
- + #define STANDARD_INCLUDE_DIR "/gnu/include"
- +
- + /* Fork one piped subcommand. SEARCH_FLAG is the system call to use
- + (either execv or execvp). ARGV is the arg vector to use.
- + NOT_LAST is nonzero if this is not the last subcommand
- + (i.e. its output should be piped to the next one.) */
- +
- + #ifndef AMIGADOS_FORK_GCC
- +
- + /* This version uses a more or less amigados-conformant way of running a
- + program (in the context of the parent). If you want to use -pipe however,
- + you'll have to use the vfork() version afterwards. */
- +
- + #define PEXECUTE(SEARCH_FLAG,PROGRAM,ARGV,NOT_LAST) \
- + ({char *_argline; \
- + int _arglinelength, _i; \
- + \
- + for (_i = 1, _arglinelength=0; ARGV[_i]; ++_i) \
- + _arglinelength += strlen(ARGV[_i]) + 1; \
- + \
- + _arglinelength += strlen(PROGRAM) + 1; \
- + \
- + if (!(_argline = (char *)alloca(_arglinelength))) \
- + pfatal_with_name ("alloca"); \
- + \
- + strcpy(_argline, PROGRAM); \
- + for (_i = 1; ARGV[_i]; ++_i) \
- + { \
- + strcat(_argline, " "); \
- + strcat(_argline, ARGV[_i]); \
- + } \
- + \
- + ssystem(_argline); }) \
- +
- + #define PEXECUTE_RESULT(STATUS, COMMAND) \
- + ({ STATUS = COMMAND.pid; })
- +
- + #else
- +
- + /* the vfork() version. This one has the drawback, that gcc is not
- + interruptible when started from make, since ixemul.library doesn't yet
- + propagate ^C to subprocesses. */
- +
- + #define PEXECUTE(SEARCH_FLAG,PROGRAM,ARGV,NOT_LAST) \
- + ({int (*_func)() = (SEARCH_FLAG ? execv : execvp); \
- + int _pid; \
- + int _pdes[2]; \
- + int _input_desc = last_pipe_input; \
- + int _output_desc = STDOUT_FILE_NO; \
- + int _retries, _sleep_interval, _result; \
- + \
- + /* If this isn't the last process, make a pipe for its output, \
- + and record it as waiting to be the input to the next process. */ \
- + \
- + if (NOT_LAST) \
- + { \
- + if (pipe (_pdes) < 0) \
- + pfatal_with_name ("pipe"); \
- + _output_desc = _pdes[WRITE_PORT]; \
- + last_pipe_input = _pdes[READ_PORT]; \
- + } \
- + else \
- + last_pipe_input = STDIN_FILE_NO; \
- + \
- + /* Fork a subprocess; wait and retry if it fails. */ \
- + _sleep_interval = 1; \
- + for (_retries = 0; _retries < 4; _retries++) \
- + { \
- + _pid = vfork (); \
- + if (_pid >= 0) \
- + break; \
- + sleep (_sleep_interval); \
- + _sleep_interval *= 2; \
- + } \
- + \
- + switch (_pid) \
- + { \
- + case -1: \
- + pfatal_with_name ("vfork"); \
- + /* NOTREACHED */ \
- + _result = 0; \
- + break; \
- + \
- + case 0: /* child */ \
- + /* Move the input and output pipes into place, if nec. */ \
- + if (_input_desc != STDIN_FILE_NO) \
- + { \
- + close (STDIN_FILE_NO); \
- + dup (_input_desc); \
- + close (_input_desc); \
- + } \
- + if (_output_desc != STDOUT_FILE_NO) \
- + { \
- + close (STDOUT_FILE_NO); \
- + dup (_output_desc); \
- + close (_output_desc); \
- + } \
- + \
- + /* Close the parent's descs that aren't wanted here. */ \
- + if (last_pipe_input != STDIN_FILE_NO) \
- + close (last_pipe_input); \
- + \
- + /* Exec the program. */ \
- + (*_func) (PROGRAM, ARGV); \
- + perror_exec (PROGRAM); \
- + exit (-1); \
- + /* NOTREACHED */ \
- + _result = 0; \
- + break; \
- + \
- + default: \
- + /* In the parent, after forking. \
- + Close the descriptors that we made for this child. */ \
- + if (_input_desc != STDIN_FILE_NO) \
- + close (_input_desc); \
- + if (_output_desc != STDOUT_FILE_NO) \
- + close (_output_desc); \
- + \
- + /* Return child's process number. */ \
- + _result = _pid; \
- + break; \
- + } \
- + _result; }) \
- +
- + #define PEXECUTE_RESULT(STATUS, COMMAND) \
- + ({ wait (& STATUS); })
- +
- + #endif /* AMIGADOS_FORK_GCC */
- +
- + /* the following macros are stolen more or less from xm-vms.h ... */
- +
- + /* This macro is used to help compare filenames in cp-lex.c.
- +
- + We also need to make sure that the names are all lower case, because
- + we must be able to compare filenames to determine if a file implements
- + a class. */
- +
- + #define FILE_NAME_NONDIRECTORY(C) \
- + ({ \
- + extern char *rindex(); \
- + char * pnt_ = (C), * pnt1_; \
- + pnt1_ = pnt_ - 1; \
- + while (*++pnt1_) \
- + if ((*pnt1_ >= 'A' && *pnt1_ <= 'Z')) *pnt1_ |= 0x20; \
- + pnt1_ = rindex (pnt_, '/'); \
- + pnt1_ = (pnt1_ == 0 ? rindex (pnt_, ':') : pnt1_); \
- + (pnt1_ == 0 ? pnt_ : pnt1_ + 1); \
- + })
- +
- + /* Macro to generate the name of the cross reference file. The standard
- + one does not work, since it was written assuming that the conventions
- + of a unix style filesystem will work on the host system.
- +
- + Contrary to VMS, I'm using the original unix filename, there's no reason
- + not to use this under AmigaDOS. */
- +
- + #define XREF_FILE_NAME(BUFF, NAME) \
- + s = FILE_NAME_NONDIRECTORY (NAME); \
- + if (s == NAME) sprintf(BUFF, ".%s.gxref", NAME); \
- + else { \
- + unsigned char ch = *s; /* could be Latin1 char.. */ \
- + /* temporary: cut the filename from the directory */\
- + *s = 0; \
- + sprintf (BUFF, "%s.%c%s.gxref", NAME, ch, s+1); \
- + /* and restore the filename */ \
- + *s = ch; \
- + } \
- +
- + /* Macro that is used in cp-xref.c to determine whether a file name is
- + absolute or not.
- +
- + This checks for both, '/' as first character, since we're running under
- + ixemul.library which provides for this unix'ism, and for the usual
- + logical-terminator, ':', somewhere in the filename. */
- +
- + #define FILE_NAME_ABSOLUTE_P(NAME) (NAME[0] == '/' || index(NAME, ':'))
- +
- + /* the colon conflicts with the name space of logicals */
- +
- + #define PATH_SEPARATOR ','
- +
- + /* AmigaDOS handles rename(2) *much* better than any link(2)/unlink(2)
- + hacks. It's actually the inverse case as on Unix. rename(2) was always
- + there, link(2) is new with OS 2.0 */
- +
- + #define HAVE_rename 1
- diff -rc --new-file gcc-2.3.3-fsf/configure gcc-2.3.3-amiga/configure
- *** gcc-2.3.3-fsf/configure Mon Dec 21 07:58:23 1992
- --- gcc-2.3.3-amiga/configure Sat Feb 5 14:04:47 1994
- ***************
- *** 28,33 ****
- --- 28,34 ----
- # --build=TARGET specifies configuration of machine you are
- # using to compile GCC.
- # --prefix=DIR specifies directory to install in.
- + # --local-prefix=DIR specifies directory to put local ./include in.
- # --exec-prefix=DIR specifies directory to install executables in.
- # --with-gnu-ld arrange to work with GNU ld.
- # --with-gnu-as arrange to work with GAS.
- ***************
- *** 52,65 ****
-
- host=
-
- ! # Default prefix to /usr/local.
- ! prefix=/usr/local
- # Default is to let the Makefile set exec_prefix from $(prefix)
- exec_prefix='$(prefix)'
-
- remove=rm
- ! hard_link=ln
- ! symbolic_link='ln -s'
- copy=cp
-
- # Record all the arguments, to write them in config.status.
- --- 53,79 ----
-
- host=
-
- ! # Note: For AmigaDOS we want this to default to /gnu unless we specify
- ! # otherwise to configure. Changing it in Makefile.in or config/m68k/x-amigados
- ! # is ineffective since configure will always change them back in the final
- ! # generated Makefile, so we have to go to the root of the problem, which is
- ! # here. -fnf
- ! # Default prefix to /gnu.
- ! prefix=/gnu
- ! # local_prefix specifies where to find the directory /usr/local/include
- ! # We don't use $(prefix) for this
- ! # because we always want GCC to search /usr/local/include
- ! # even if GCC is installed somewhere other than /usr/local.
- ! # Think THREE TIMES before specifying any other value for this!
- ! # DO NOT make this use $prefix!
- ! # Note: See AmigaDOS note above for this AmigaDOS specific change. -fnf
- ! local_prefix=/local
- # Default is to let the Makefile set exec_prefix from $(prefix)
- exec_prefix='$(prefix)'
-
- remove=rm
- ! hard_link=cp
- ! symbolic_link=cp
- copy=cp
-
- # Record all the arguments, to write them in config.status.
- ***************
- *** 97,102 ****
- --- 111,120 ----
- prefix=$arg
- next_arg=
- ;;
- + --local-prefix)
- + local_prefix=$arg
- + next_arg=
- + ;;
- --exec-prefix)
- exec_prefix=$arg
- next_arg=
- ***************
- *** 133,138 ****
- --- 151,165 ----
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=`echo $arg | sed 's/-*p[a-z]*=//'`
- ;;
- + -local-prefix | --local-prefix | --local-prefi | --local-pref | --local-pre \
- + | --local-pr | --local-p | --local- | --local | --loc | --lo | --l)
- + next_arg=--local-prefix
- + ;;
- + -local-prefix=* | --local-prefix=* | --local-prefi=* | --local-pref=* \
- + | --local-pre=* | --local-pr=* | --local-p=* | --local-=* | --local=* \
- + | --loc=* | --lo=* | --l=*)
- + local_prefix=`echo $arg | sed 's/-*l[-a-z]*=//'`
- + ;;
- -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \
- | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
- next_arg=--exec-prefix
- ***************
- *** 185,191 ****
- srcdir=..
- fi
- fi
- !
- if [ ! -r ${srcdir}/tree.c ]
- then
- if [ x$srcdirdefaulted = x ]
- --- 212,218 ----
- srcdir=..
- fi
- fi
- ! srcdir=../gcc-2.3.3-amiga #Hack
- if [ ! -r ${srcdir}/tree.c ]
- then
- if [ x$srcdirdefaulted = x ]
- ***************
- *** 210,216 ****
-
- echo "\
- Usage: `basename $progname` [--host=HOST] [--build=BUILD]
- ! [--prefix=DIR] [--exec-pref=DIR]
- [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--nfp] TARGET" 1>&2
- echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
- if [ -r config.status ]
- --- 237,243 ----
-
- echo "\
- Usage: `basename $progname` [--host=HOST] [--build=BUILD]
- ! [--prefix=DIR] [--local-pref=DIR] [--exec-pref=DIR]
- [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--nfp] TARGET" 1>&2
- echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
- if [ -r config.status ]
- ***************
- *** 476,481 ****
- --- 503,515 ----
- fixincludes=fixinc.svr4
- broken_install=yes
- ;;
- + m68k-*-amigados)
- + xm_file=xm-amigados.h
- + out_file=amigados.c
- + tm_file=amigados.h
- + tmake_file=t-amigados
- + xmake_file=x-amigados
- + ;;
- m68k-cbm-sysv4*) # Commodore variant of V.4.
- tm_file=amix.h
- xm_file=xm-amix.h
- ***************
- *** 1272,1284 ****
-
- # Remove all formfeeds, since some Makes get confused by them.
- # Also arrange to give the variables `target', `host_xmake_file',
- ! # `tmake_file', `prefix', `exec_prefix' and `FIXINCLUDES'
- # values in the Makefile from the values they have in this script.
- rm -f Makefile.xx
- sed -e "s///" -e "s/^target=.*$/target=${target}/" \
- -e "s|^xmake_file=.*$|xmake_file=${host_xmake_file}|" \
- -e "s|^tmake_file=.*$|tmake_file=${tmake_file}|" \
- -e "s|^prefix[ ]*=.*|prefix = $prefix|" \
- -e "s|^exec_prefix[ ]*=.*|exec_prefix = $exec_prefix|" \
- -e "s|^FIXINCLUDES[ ]*=.*|FIXINCLUDES = $fixincludes|" \
- Makefile.tem > Makefile.xx
- --- 1306,1319 ----
-
- # Remove all formfeeds, since some Makes get confused by them.
- # Also arrange to give the variables `target', `host_xmake_file',
- ! # `tmake_file', `prefix', `local_prefix', `exec_prefix', `FIXINCLUDES'
- # values in the Makefile from the values they have in this script.
- rm -f Makefile.xx
- sed -e "s///" -e "s/^target=.*$/target=${target}/" \
- -e "s|^xmake_file=.*$|xmake_file=${host_xmake_file}|" \
- -e "s|^tmake_file=.*$|tmake_file=${tmake_file}|" \
- -e "s|^prefix[ ]*=.*|prefix = $prefix|" \
- + -e "s|^local_prefix[ ]*=.*|local_prefix = $local_prefix|" \
- -e "s|^exec_prefix[ ]*=.*|exec_prefix = $exec_prefix|" \
- -e "s|^FIXINCLUDES[ ]*=.*|FIXINCLUDES = $fixincludes|" \
- Makefile.tem > Makefile.xx
- diff -rc --new-file gcc-2.3.3-fsf/expr.c gcc-2.3.3-amiga/expr.c
- *** gcc-2.3.3-fsf/expr.c Sun Dec 20 07:16:15 1992
- --- gcc-2.3.3-amiga/expr.c Mon Nov 29 15:32:03 1993
- ***************
- *** 1977,1982 ****
- --- 1977,1988 ----
-
- argvec = (struct arg *) alloca (nargs * sizeof (struct arg));
-
- + /* how would you do this RIGHT ?? fake a DECL node? dunno... */
- + #ifdef ENCODE_SECTION_INFO
- + /* mark it as a function (to be in the text section that is) */
- + SYMBOL_REF_FLAG (fun) = 1;
- + #endif
- +
- INIT_CUMULATIVE_ARGS (args_so_far, (tree)0, fun);
-
- args_size.constant = 0;
- diff -rc --new-file gcc-2.3.3-fsf/gcc.c gcc-2.3.3-amiga/gcc.c
- *** gcc-2.3.3-fsf/gcc.c Tue Dec 8 13:32:53 1992
- --- gcc-2.3.3-amiga/gcc.c Sat Feb 5 14:30:53 1994
- ***************
- *** 104,110 ****
- --- 104,114 ----
- extern char *getenv ();
-
- extern int errno, sys_nerr;
- + #ifndef HAVE_STRERROR
- + /* provide a cheap strerror() emulator for those that don't have it */
- extern char *sys_errlist[];
- + #define strerror(err) sys_errlist[err]
- + #endif
-
- extern int execv (), execvp ();
-
- ***************
- *** 917,923 ****
- --- 921,929 ----
- #endif /* !defined STANDARD_EXEC_PREFIX */
-
- static char *standard_exec_prefix = STANDARD_EXEC_PREFIX;
- + #ifndef amigados
- static char *standard_exec_prefix_1 = "/usr/lib/gcc/";
- + #endif
- #ifdef MD_EXEC_PREFIX
- static char *md_exec_prefix = MD_EXEC_PREFIX;
- #endif
- ***************
- *** 933,940 ****
- --- 939,948 ----
- static char *md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1;
- #endif
- static char *standard_startfile_prefix = STANDARD_STARTFILE_PREFIX;
- + #ifndef amigados
- static char *standard_startfile_prefix_1 = "/lib/";
- static char *standard_startfile_prefix_2 = "/usr/lib/";
- + #endif
-
- /* Clear out the vector of arguments (after a command is executed). */
-
- ***************
- *** 1126,1142 ****
- #endif
- if (base == (char *)0)
- {
- if (access ("/usr/tmp", R_OK | W_OK) == 0)
- base = "/usr/tmp/";
- else
- base = "/tmp/";
- }
- }
-
- len = strlen (base);
- ! temp_filename = xmalloc (len + sizeof("/ccXXXXXX"));
- strcpy (temp_filename, base);
- ! if (len > 0 && temp_filename[len-1] != '/')
- temp_filename[len++] = '/';
- strcpy (temp_filename + len, "ccXXXXXX");
-
- --- 1134,1158 ----
- #endif
- if (base == (char *)0)
- {
- + #ifdef amigados
- + base = "ram:";
- + #else
- if (access ("/usr/tmp", R_OK | W_OK) == 0)
- base = "/usr/tmp/";
- else
- base = "/tmp/";
- + #endif
- }
- }
-
- len = strlen (base);
- ! temp_filename = xmalloc (len + sizeof("/ccXXXXXX") + 1);
- strcpy (temp_filename, base);
- ! if (len > 0 && temp_filename[len-1] != '/'
- ! #ifdef amigados
- ! && temp_filename[len-1] != ':'
- ! #endif
- ! )
- temp_filename[len++] = '/';
- strcpy (temp_filename + len, "ccXXXXXX");
-
- ***************
- *** 1210,1215 ****
- --- 1226,1232 ----
- int suffix_len = (machine_suffix) ? strlen (machine_suffix) : 0;
- int first_time = TRUE;
- struct prefix_list *pprefix;
- + char path_sep[] = { PATH_SEPARATOR, 0 };
-
- obstack_grow (&collect_obstack, env_var, strlen (env_var));
-
- ***************
- *** 1220,1226 ****
- if (machine_suffix)
- {
- if (!first_time)
- ! obstack_grow (&collect_obstack, ":", 1);
-
- first_time = FALSE;
- obstack_grow (&collect_obstack, pprefix->prefix, len);
- --- 1237,1243 ----
- if (machine_suffix)
- {
- if (!first_time)
- ! obstack_grow (&collect_obstack, path_sep, 1);
-
- first_time = FALSE;
- obstack_grow (&collect_obstack, pprefix->prefix, len);
- ***************
- *** 1230,1236 ****
- if (just_machine_suffix && pprefix->require_machine_suffix == 2)
- {
- if (!first_time)
- ! obstack_grow (&collect_obstack, ":", 1);
-
- first_time = FALSE;
- obstack_grow (&collect_obstack, pprefix->prefix, len);
- --- 1247,1253 ----
- if (just_machine_suffix && pprefix->require_machine_suffix == 2)
- {
- if (!first_time)
- ! obstack_grow (&collect_obstack, path_sep, 1);
-
- first_time = FALSE;
- obstack_grow (&collect_obstack, pprefix->prefix, len);
- ***************
- *** 1240,1246 ****
- if (!pprefix->require_machine_suffix)
- {
- if (!first_time)
- ! obstack_grow (&collect_obstack, ":", 1);
-
- first_time = FALSE;
- obstack_grow (&collect_obstack, pprefix->prefix, len);
- --- 1257,1263 ----
- if (!pprefix->require_machine_suffix)
- {
- if (!first_time)
- ! obstack_grow (&collect_obstack, path_sep, 1);
-
- first_time = FALSE;
- obstack_grow (&collect_obstack, pprefix->prefix, len);
- ***************
- *** 1273,1279 ****
-
- /* Determine the filename to execute (special case for absolute paths). */
-
- ! if (*name == '/')
- {
- if (access (name, mode))
- {
- --- 1290,1300 ----
-
- /* Determine the filename to execute (special case for absolute paths). */
-
- ! if (*name == '/'
- ! #ifdef amigados
- ! || index (name, ':')
- ! #endif
- ! )
- {
- if (access (name, mode))
- {
- ***************
- *** 1479,1484 ****
- --- 1500,1506 ----
- NOT_LAST is nonzero if this is not the last subcommand
- (i.e. its output should be piped to the next one.) */
-
- + #ifndef PEXECUTE
- #ifndef OS2
- #ifdef __MSDOS__
-
- ***************
- *** 1625,1630 ****
- --- 1647,1653 ----
- return (search_flag ? spawnv : spawnvp) (1, program, argv);
- }
- #endif /* not OS2 */
- + #endif /* !defined (PEXECUTE) */
-
- /* Execute the command specified by the arguments on the current line of spec.
- When using pipes, this includes several piped-together commands
- ***************
- *** 1719,1727 ****
- --- 1742,1756 ----
- {
- char *string = commands[i].argv[0];
-
- + #ifdef PEXECUTE
- + commands[i].pid = PEXECUTE (string != commands[i].prog,
- + string, commands[i].argv,
- + i + 1 < n_commands);
- + #else
- commands[i].pid = pexecute (string != commands[i].prog,
- string, commands[i].argv,
- i + 1 < n_commands);
- + #endif
-
- if (string != commands[i].prog)
- free (string);
- ***************
- *** 1742,1752 ****
- --- 1771,1785 ----
- int pid;
- char *prog;
-
- + #ifdef PEXECUTE_RESULT
- + pid = PEXECUTE_RESULT (status, commands[i]);
- + #else /* PEXECUTE_RESULT */
- #ifdef __MSDOS__
- status = pid = commands[i].pid;
- #else
- pid = wait (&status);
- #endif
- + #endif /* PEXECUTE_RESULT */
- if (pid < 0)
- abort ();
-
- ***************
- *** 1853,1858 ****
- --- 1886,1892 ----
- if (*endp == PATH_SEPARATOR || *endp == 0)
- {
- strncpy (nstore, startp, endp-startp);
- + #ifndef amigados
- if (endp == startp)
- {
- strcpy (nstore, "./");
- ***************
- *** 1864,1869 ****
- --- 1898,1912 ----
- }
- else
- nstore[endp-startp] = 0;
- + #else
- + if (endp[-1] != '/' && endp[-1] != ':')
- + {
- + nstore[endp-startp] = '/';
- + nstore[endp-startp+1] = 0;
- + }
- + else
- + nstore[endp-startp] = 0;
- + #endif
- add_prefix (&exec_prefix, nstore, 0, 0, NULL_PTR);
- if (*endp == 0)
- break;
- ***************
- *** 1886,1891 ****
- --- 1929,1935 ----
- if (*endp == PATH_SEPARATOR || *endp == 0)
- {
- strncpy (nstore, startp, endp-startp);
- + #ifndef amigados
- if (endp == startp)
- {
- strcpy (nstore, "./");
- ***************
- *** 1897,1902 ****
- --- 1941,1955 ----
- }
- else
- nstore[endp-startp] = 0;
- + #else
- + if (endp[-1] != '/' && endp[-1] != ':')
- + {
- + nstore[endp-startp] = '/';
- + nstore[endp-startp+1] = 0;
- + }
- + else
- + nstore[endp-startp] = 0;
- + #endif
- add_prefix (&startfile_prefix, nstore, 0, 0, NULL_PTR);
- /* Make separate list of dirs that came from LIBRARY_PATH. */
- add_prefix (&library_prefix, nstore, 0, 0, NULL_PTR);
- ***************
- *** 1922,1927 ****
- --- 1975,1981 ----
- if (*endp == PATH_SEPARATOR || *endp == 0)
- {
- strncpy (nstore, startp, endp-startp);
- + #ifndef amigados
- if (endp == startp)
- {
- strcpy (nstore, "./");
- ***************
- *** 1933,1938 ****
- --- 1987,2001 ----
- }
- else
- nstore[endp-startp] = 0;
- + #else
- + if (endp[-1] != '/' && endp[-1] != ':')
- + {
- + nstore[endp-startp] = '/';
- + nstore[endp-startp+1] = 0;
- + }
- + else
- + nstore[endp-startp] = 0;
- + #endif
- add_prefix (&startfile_prefix, nstore, 0, 0, NULL_PTR);
- /* Make separate list of dirs that came from LIBRARY_PATH. */
- add_prefix (&library_prefix, nstore, 0, 0, NULL_PTR);
- ***************
- *** 2135,2144 ****
- --- 2198,2211 ----
- /* Use 2 as fourth arg meaning try just the machine as a suffix,
- as well as trying the machine and the version. */
- add_prefix (&exec_prefix, standard_exec_prefix, 0, 2, NULL_PTR);
- + #ifndef amigados
- add_prefix (&exec_prefix, standard_exec_prefix_1, 0, 2, NULL_PTR);
- + #endif
-
- add_prefix (&startfile_prefix, standard_exec_prefix, 0, 1, NULL_PTR);
- + #ifndef amigados
- add_prefix (&startfile_prefix, standard_exec_prefix_1, 0, 1, NULL_PTR);
- + #endif
-
- /* More prefixes are enabled in main, after we read the specs file
- and determine whether this is cross-compilation or not. */
- ***************
- *** 3357,3366 ****
- --- 3424,3435 ----
-
- add_prefix (&startfile_prefix, standard_startfile_prefix, 0, 0,
- NULL_PTR);
- + #ifndef amigados
- add_prefix (&startfile_prefix, standard_startfile_prefix_1, 0, 0,
- NULL_PTR);
- add_prefix (&startfile_prefix, standard_startfile_prefix_2, 0, 0,
- NULL_PTR);
- + #endif
- #if 0 /* Can cause surprises, and one can use -B./ instead. */
- add_prefix (&startfile_prefix, "./", 0, 1, NULL_PTR);
- #endif
- ***************
- *** 3433,3442 ****
- --- 3502,3515 ----
- register char *p;
- int len;
-
- + #ifdef FILE_NAME_NONDIRECTORY
- + input_basename = FILE_NAME_NONDIRECTORY (input_filename);
- + #else
- input_basename = input_filename;
- for (p = input_filename; *p; p++)
- if (*p == '/')
- input_basename = p + 1;
- + #endif
-
- /* Find a suffix starting with the last period,
- and set basename_length to exclude that suffix. */
- ***************
- *** 3675,3681 ****
- char *s;
-
- if (errno < sys_nerr)
- ! s = concat ("%s: ", sys_errlist[errno], "");
- else
- s = "cannot open %s";
- fatal (s, name);
- --- 3748,3754 ----
- char *s;
-
- if (errno < sys_nerr)
- ! s = concat ("%s: ", strerror (errno), "");
- else
- s = "cannot open %s";
- fatal (s, name);
- ***************
- *** 3688,3694 ****
- char *s;
-
- if (errno < sys_nerr)
- ! s = concat ("%s: ", sys_errlist[errno], "");
- else
- s = "cannot open %s";
- error (s, name);
- --- 3761,3767 ----
- char *s;
-
- if (errno < sys_nerr)
- ! s = concat ("%s: ", strerror (errno), "");
- else
- s = "cannot open %s";
- error (s, name);
- ***************
- *** 3702,3708 ****
-
- if (errno < sys_nerr)
- s = concat ("installation problem, cannot exec %s: ",
- ! sys_errlist[errno], "");
- else
- s = "installation problem, cannot exec %s";
- error (s, name);
- --- 3775,3781 ----
-
- if (errno < sys_nerr)
- s = concat ("installation problem, cannot exec %s: ",
- ! strerror (errno), "");
- else
- s = "installation problem, cannot exec %s";
- error (s, name);
- diff -rc --new-file gcc-2.3.3-fsf/genconfig.c gcc-2.3.3-amiga/genconfig.c
- *** gcc-2.3.3-fsf/genconfig.c Tue Oct 13 04:11:48 1992
- --- gcc-2.3.3-amiga/genconfig.c Mon Nov 29 15:32:15 1993
- ***************
- *** 303,310 ****
- --- 303,318 ----
- printf ("/* Generated automatically by the program `genconfig'\n\
- from the machine description file `md'. */\n\n");
-
- + #ifdef amigados
- + /* this constant probably better be 14 in general, or a cross compiling
- + host might choke on some amigados header files... */
- +
- + /* Allow at least 14 operands for the sake of asm constructs. */
- + max_recog_operands = 14;
- + #else
- /* Allow at least 10 operands for the sake of asm constructs. */
- max_recog_operands = 9; /* We will add 1 later. */
- + #endif
- max_dup_operands = 1;
-
- /* Read the machine description. */
- diff -rc --new-file gcc-2.3.3-fsf/gstdarg.h gcc-2.3.3-amiga/gstdarg.h
- *** gcc-2.3.3-fsf/gstdarg.h Mon Nov 30 23:06:24 1992
- --- gcc-2.3.3-amiga/gstdarg.h Mon Nov 29 15:32:19 1993
- ***************
- *** 138,141 ****
- --- 138,147 ----
-
- #endif /* __GNUC__ */
- #endif /* not _ANSI_STDARG_H_ */
- + #ifdef amigados
- + # ifndef _VA_LIST
- + # define _VA_LIST
- + typedef __gnuc_va_list va_list;
- + # endif
- + #endif /* amigados */
- #endif /* not _STDARG_H */
- diff -rc --new-file gcc-2.3.3-fsf/gstddef.h gcc-2.3.3-amiga/gstddef.h
- *** gcc-2.3.3-fsf/gstddef.h Sun Nov 22 22:03:34 1992
- --- gcc-2.3.3-amiga/gstddef.h Mon Nov 29 15:32:23 1993
- ***************
- *** 2,7 ****
- --- 2,47 ----
- #ifndef _STDDEF_H_
- #ifndef _ANSI_STDDEF_H
-
- + #ifdef amigados
- +
- + /* GNU libc has special support in this file, 4.3bsd-net2 libc deserves that
- + just as well. The system headers are ANSI compliant, the used compiler IS
- + gcc, so it's really ok to use the system header, no reason to hassle
- + with a jungle of ifdefs. Besides, amigados is only defined if compiling
- + with host=amigados, it doesn't apply if compiling with target=amigados
- + on a different host with possibly different system headers. Same thing
- + would apply to gstdarg.h and gvarargs.h, but those headers are more
- + easily fixable than this one and I'm sick of writing the same comment
- + there as well. MW
- +
- + Include the contents of <stddef.h> inline rather than with a #include,
- + to avoid infinite include recursion when this file is installed in
- + gcc's include directory as stddef.h. (fnf) */
- +
- + #define _STDDEF_H_
- +
- + #include <machine/ansi.h>
- +
- + typedef _PTRDIFF_T_ ptrdiff_t;
- +
- + #ifdef _SIZE_T_
- + typedef _SIZE_T_ size_t;
- + #undef _SIZE_T_
- + #endif
- +
- + #ifdef _WCHAR_T_
- + typedef _WCHAR_T_ wchar_t;
- + #undef _WCHAR_T_
- + #endif
- +
- + #ifndef NULL
- + #define NULL 0
- + #endif
- +
- + #define offsetof(type, member) ((size_t)(&((type *)0)->member))
- +
- + #else /* not amigados */
- +
- /* Any one of these symbols __need_* means that GNU libc
- wants us just to define one data type. So don't define
- the symbols that indicate this file's entire job has been done. */
- ***************
- *** 146,151 ****
- --- 186,193 ----
- #ifndef __WCHAR_TYPE__
- #define __WCHAR_TYPE__ int
- #endif
- +
- + #endif /* not amigados */
- #ifdef __GNUG__
- /* In C++, wchar_t is a distinct basic type,
- and we can expect __wchar_t to be defined by cc1plus. */
- diff -rc --new-file gcc-2.3.3-fsf/gvarargs.h gcc-2.3.3-amiga/gvarargs.h
- *** gcc-2.3.3-fsf/gvarargs.h Mon Nov 30 23:07:12 1992
- --- gcc-2.3.3-amiga/gvarargs.h Mon Nov 29 15:32:27 1993
- ***************
- *** 136,142 ****
- #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____)
- /* The macro _VA_LIST is used in SCO Unix 3.2. */
- #ifndef _VA_LIST
- ! #if !(defined (__BSD_NET2__) || defined (____386BSD____))
- #define _VA_LIST_
- #endif
- #define _VA_LIST
- --- 136,142 ----
- #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____)
- /* The macro _VA_LIST is used in SCO Unix 3.2. */
- #ifndef _VA_LIST
- ! #if !(defined (__BSD_NET2__) || defined (____386BSD____) || defined (__amigados__))
- #define _VA_LIST_
- #endif
- #define _VA_LIST
- ***************
- *** 151,155 ****
- --- 151,162 ----
- #ifdef _BSD_VA_LIST
- #undef _BSD_VA_LIST
- #endif
- +
- + #ifdef amigados
- + # ifndef _VA_LIST
- + # define _VA_LIST
- + typedef __gnuc_va_list va_list;
- + # endif
- + #endif /* amigados */
-
- #endif /* __GNUC__ */
- diff -rc --new-file gcc-2.3.3-fsf/machmode.h gcc-2.3.3-amiga/machmode.h
- *** gcc-2.3.3-fsf/machmode.h Sun Aug 2 02:59:22 1992
- --- gcc-2.3.3-amiga/machmode.h Mon Nov 29 15:32:31 1993
- ***************
- *** 83,89 ****
-
- /* Get the name of mode MODE as a string. */
-
- ! extern char *mode_name[];
- #define GET_MODE_NAME(MODE) (mode_name[(int)(MODE)])
-
- enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC,
- --- 83,89 ----
-
- /* Get the name of mode MODE as a string. */
-
- ! extern char * const mode_name[];
- #define GET_MODE_NAME(MODE) (mode_name[(int)(MODE)])
-
- enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC,
- ***************
- *** 92,108 ****
- /* Get the general kind of object that mode MODE represents
- (integer, floating, complex, etc.) */
-
- ! extern enum mode_class mode_class[];
- #define GET_MODE_CLASS(MODE) (mode_class[(int)(MODE)])
-
- /* Get the size in bytes of an object of mode MODE. */
-
- ! extern int mode_size[];
- #define GET_MODE_SIZE(MODE) (mode_size[(int)(MODE)])
-
- /* Get the size in bytes of the basic parts of an object of mode MODE. */
-
- ! extern int mode_unit_size[];
- #define GET_MODE_UNIT_SIZE(MODE) (mode_unit_size[(int)(MODE)])
-
- /* Get the number of units in the object. */
- --- 92,108 ----
- /* Get the general kind of object that mode MODE represents
- (integer, floating, complex, etc.) */
-
- ! extern const enum mode_class mode_class[];
- #define GET_MODE_CLASS(MODE) (mode_class[(int)(MODE)])
-
- /* Get the size in bytes of an object of mode MODE. */
-
- ! extern const int mode_size[];
- #define GET_MODE_SIZE(MODE) (mode_size[(int)(MODE)])
-
- /* Get the size in bytes of the basic parts of an object of mode MODE. */
-
- ! extern const int mode_unit_size[];
- #define GET_MODE_UNIT_SIZE(MODE) (mode_unit_size[(int)(MODE)])
-
- /* Get the number of units in the object. */
- ***************
- *** 124,130 ****
-
- /* Get the next wider natural mode (eg, QI -> HI -> SI -> DI -> TI). */
-
- ! extern enum machine_mode mode_wider_mode[];
- #define GET_MODE_WIDER_MODE(MODE) (mode_wider_mode[(int)(MODE)])
-
- /* Return the mode for data of a given size SIZE and mode class CLASS.
- --- 124,130 ----
-
- /* Get the next wider natural mode (eg, QI -> HI -> SI -> DI -> TI). */
-
- ! extern const enum machine_mode mode_wider_mode[];
- #define GET_MODE_WIDER_MODE(MODE) (mode_wider_mode[(int)(MODE)])
-
- /* Return the mode for data of a given size SIZE and mode class CLASS.
- diff -rc --new-file gcc-2.3.3-fsf/objc/Makefile gcc-2.3.3-amiga/objc/Makefile
- *** gcc-2.3.3-fsf/objc/Makefile Tue Nov 3 10:32:47 1992
- --- gcc-2.3.3-amiga/objc/Makefile Mon Nov 29 15:32:33 1993
- ***************
- *** 40,46 ****
-
- core.o: core.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
- hash.o: hash.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
- ! object.o: object.m object.h $(OBJC_H)
- $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
-
- mostlyclean:
- --- 40,46 ----
-
- core.o: core.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
- hash.o: hash.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
- ! object.o: $(srcdir)/objc/object.m $(srcdir)/objc/object.h $(OBJC_H)
- $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
-
- mostlyclean:
- diff -rc --new-file gcc-2.3.3-fsf/print-tree.c gcc-2.3.3-amiga/print-tree.c
- *** gcc-2.3.3-fsf/print-tree.c Sat Oct 24 00:09:26 1992
- --- gcc-2.3.3-amiga/print-tree.c Mon Nov 29 15:32:37 1993
- ***************
- *** 24,30 ****
-
- extern char **tree_code_name;
-
- ! extern char *mode_name[];
-
- void print_node ();
- void indent_to ();
- --- 24,30 ----
-
- extern char **tree_code_name;
-
- ! extern char *const mode_name[];
-
- void print_node ();
- void indent_to ();
- diff -rc --new-file gcc-2.3.3-fsf/protoize.c gcc-2.3.3-amiga/protoize.c
- *** gcc-2.3.3-fsf/protoize.c Tue Dec 22 07:21:04 1992
- --- gcc-2.3.3-amiga/protoize.c Mon Nov 29 15:32:46 1993
- ***************
- *** 78,84 ****
- --- 78,87 ----
- #undef getopt
-
- extern int errno;
- + #ifndef HAVE_STRERROR
- extern char *sys_errlist[];
- + #define strerror(err) sys_errlist[err]
- + #endif
- extern char *version_string;
-
- /* Systems which are compatible only with POSIX 1003.1-1988 (but *not*
- ***************
- *** 776,783 ****
- --- 779,791 ----
- {
- struct default_include *p;
-
- + #ifdef FILE_NAME_ABSOLUTE_P
- + if (! FILE_NAME_ABSOLUTE_P (path))
- + abort ();
- + #else
- if (path[0] != '/')
- abort (); /* Must be an absolutized filename. */
- + #endif
-
- for (p = include_defaults; p->fname; p++)
- if (!strncmp (path, p->fname, strlen (p->fname))
- ***************
- *** 1204,1210 ****
- --- 1212,1222 ----
- {
- const char *src_p;
-
- + #ifdef FILE_NAME_ABSOLUTE_P
- + if (! FILE_NAME_ABSOLUTE_P (rel_filename))
- + #else
- if (rel_filename[0] != '/')
- + #endif
- {
- src_p = cwd2;
- while (*endp++ = *src_p++)
- ***************
- *** 1406,1412 ****
- if (my_stat (filename, &stat_buf) == -1)
- {
- fprintf (stderr, "%s: %s: can't get status: %s\n",
- ! pname, shortpath (NULL, filename), sys_errlist[errno]);
- stat_buf.st_mtime = (time_t) -1;
- }
- }
- --- 1418,1424 ----
- if (my_stat (filename, &stat_buf) == -1)
- {
- fprintf (stderr, "%s: %s: can't get status: %s\n",
- ! pname, shortpath (NULL, filename), strerror (errno));
- stat_buf.st_mtime = (time_t) -1;
- }
- }
- ***************
- *** 1467,1472 ****
- --- 1479,1503 ----
- return ++q;
- }
-
- + /* Use this macro to advance a char * over the filename part in a line
- + read from an aux-info file. */
- +
- + #ifndef amigados
- + /* Version for file systems where the colon has no special meaning */
- + #define ADVANCE_PAST_FILENAME(CP) \
- + while (* (CP) != ':') (CP)++
- + #else
- + /* Have to heuristically decide whether the colon is part of the filename
- + or whether it serves to delimit the filename from the line number. If
- + it's the latter case, then the character following the colon *must*
- + be a digit. Note that this heuristic fails if the filename starts
- + with a digit. */
- + #define ADVANCE_PAST_FILENAME(CP) \
- + while ((CP)[0] != ':' || !isdigit ((CP)[1])) \
- + (CP)++;
- + #endif
- +
- +
- /* Given a line from an aux info file, and a time at which the aux info
- file it came from was created, check to see if the item described in
- the line comes from a file which has been modified since the aux info
- ***************
- *** 1488,1495 ****
- {
- const char *filename_start = p = l + 3;
-
- ! while (*p != ':')
- ! p++;
- filename = (char *) alloca ((size_t) (p - filename_start) + 1);
- strncpy (filename, filename_start, (size_t) (p - filename_start));
- filename[p-filename_start] = '\0';
- --- 1519,1525 ----
- {
- const char *filename_start = p = l + 3;
-
- ! ADVANCE_PAST_FILENAME (p);
- filename = (char *) alloca ((size_t) (p - filename_start) + 1);
- strncpy (filename, filename_start, (size_t) (p - filename_start));
- filename[p-filename_start] = '\0';
- ***************
- *** 1546,1553 ****
- const char *filename_start = p = l + 3;
- char *filename;
-
- ! while (*p != ':')
- ! p++;
- filename = (char *) alloca ((size_t) (p - filename_start) + 1);
- strncpy (filename, filename_start, (size_t) (p - filename_start));
- filename[p-filename_start] = '\0';
- --- 1576,1582 ----
- const char *filename_start = p = l + 3;
- char *filename;
-
- ! ADVANCE_PAST_FILENAME (p);
- filename = (char *) alloca ((size_t) (p - filename_start) + 1);
- strncpy (filename, filename_start, (size_t) (p - filename_start));
- filename[p-filename_start] = '\0';
- ***************
- *** 2000,2006 ****
- if (child_pid == -1)
- {
- fprintf (stderr, "%s: could not fork process: %s\n",
- ! pname, sys_errlist[errno]);
- return 0;
- }
-
- --- 2029,2035 ----
- if (child_pid == -1)
- {
- fprintf (stderr, "%s: could not fork process: %s\n",
- ! pname, strerror (errno));
- return 0;
- }
-
- ***************
- *** 2028,2034 ****
- if (wait (&wait_status) == -1)
- {
- fprintf (stderr, "%s: wait failed: %s\n",
- ! pname, sys_errlist[errno]);
- return 0;
- }
- if ((wait_status & 0x7F) != 0)
- --- 2057,2063 ----
- if (wait (&wait_status) == -1)
- {
- fprintf (stderr, "%s: wait failed: %s\n",
- ! pname, strerror (errno));
- return 0;
- }
- if ((wait_status & 0x7F) != 0)
- ***************
- *** 2055,2061 ****
- write (f, ": ", 2);
- write (f, compile_params[0], strlen (compile_params[0]));
- write (f, ": ", 2);
- ! write (f, sys_errlist[e], strlen (sys_errlist[e]));
- write (f, "\n", 1);
- _exit (1);
- }
- --- 2084,2090 ----
- write (f, ": ", 2);
- write (f, compile_params[0], strlen (compile_params[0]));
- write (f, ": ", 2);
- ! write (f, strerror (e), strlen (strerror (e)));
- write (f, "\n", 1);
- _exit (1);
- }
- ***************
- *** 2115,2121 ****
- {
- fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
- errors++;
- return;
- }
- --- 2144,2150 ----
- {
- fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
- errors++;
- return;
- }
- ***************
- *** 2143,2149 ****
- {
- fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
- errors++;
- return;
- }
- --- 2172,2178 ----
- {
- fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
- errors++;
- return;
- }
- ***************
- *** 2158,2164 ****
- {
- fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
- errors++;
- return;
- }
- --- 2187,2193 ----
- {
- fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
- errors++;
- return;
- }
- ***************
- *** 2185,2191 ****
- {
- fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
- pname, shortpath (NULL, base_source_filename),
- ! sys_errlist[errno]);
- errors++;
- return;
- }
- --- 2214,2220 ----
- {
- fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
- pname, shortpath (NULL, base_source_filename),
- ! strerror (errno));
- errors++;
- return;
- }
- ***************
- *** 2206,2212 ****
- {
- fprintf (stderr, "%s: can't open aux info file `%s' for reading: %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
- return;
- }
-
- --- 2235,2241 ----
- {
- fprintf (stderr, "%s: can't open aux info file `%s' for reading: %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
- return;
- }
-
- ***************
- *** 2222,2228 ****
- {
- fprintf (stderr, "%s: error reading aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
- free (aux_info_base);
- close (aux_info_file);
- return;
- --- 2251,2257 ----
- {
- fprintf (stderr, "%s: error reading aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
- free (aux_info_base);
- close (aux_info_file);
- return;
- ***************
- *** 2234,2240 ****
- {
- fprintf (stderr, "%s: error closing aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
- free (aux_info_base);
- close (aux_info_file);
- return;
- --- 2263,2269 ----
- {
- fprintf (stderr, "%s: error closing aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
- free (aux_info_base);
- close (aux_info_file);
- return;
- ***************
- *** 2248,2254 ****
- if (my_unlink (aux_info_filename) == -1)
- fprintf (stderr, "%s: can't delete aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
-
- /* Save a pointer into the first line of the aux_info file which
- contains the filename of the directory from which the compiler
- --- 2277,2283 ----
- if (my_unlink (aux_info_filename) == -1)
- fprintf (stderr, "%s: can't delete aux info file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
-
- /* Save a pointer into the first line of the aux_info file which
- contains the filename of the directory from which the compiler
- ***************
- *** 2260,2266 ****
- {
- char *p = aux_info_base;
-
- ! while (*p != ':')
- p++;
- p++;
- while (*p == ' ')
- --- 2289,2297 ----
- {
- char *p = aux_info_base;
-
- ! /* have to make sure at least one space is following the colon to make
- ! sure the colon is not part of the filename */
- ! while (*p != ':' && p[1] != ' ')
- p++;
- p++;
- while (*p == ' ')
- ***************
- *** 2274,2280 ****
- --- 2305,2315 ----
- continue;
- aux_info_second_line = p;
- aux_info_relocated_name = 0;
- + #ifdef FILE_NAME_ABSOLUTE_P
- + if (! FILE_NAME_ABSOLUTE_P (invocation_filename))
- + #else
- if (invocation_filename[0] != '/')
- + #endif
- {
- /* INVOCATION_FILENAME is relative;
- append it to BASE_SOURCE_FILENAME's dir. */
- ***************
- *** 2314,2320 ****
- {
- fprintf (stderr, "%s: can't delete file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! sys_errlist[errno]);
- return;
- }
- goto start_over;
- --- 2349,2355 ----
- {
- fprintf (stderr, "%s: can't delete file `%s': %s\n",
- pname, shortpath (NULL, aux_info_filename),
- ! strerror (errno));
- return;
- }
- goto start_over;
- ***************
- *** 2362,2368 ****
- #ifndef UNPROTOIZE
-
- /* Check an individual filename for a .c suffix. If the filename has this
- ! suffix, rename the file such that its suffix is changed to .C. This
- function implements the -C option. */
-
- static void
- --- 2397,2403 ----
- #ifndef UNPROTOIZE
-
- /* Check an individual filename for a .c suffix. If the filename has this
- ! suffix, rename the file such that its suffix is changed to .cc. This
- function implements the -C option. */
-
- static void
- ***************
- *** 2371,2377 ****
- {
- const char *filename = hp->symbol;
- int last_char_index = strlen (filename) - 1;
- ! char *const new_filename = (char *) alloca (strlen (filename) + 1);
-
- /* Note that we don't care here if the given file was converted or not. It
- is possible that the given file was *not* converted, simply because there
- --- 2406,2412 ----
- {
- const char *filename = hp->symbol;
- int last_char_index = strlen (filename) - 1;
- ! char *const new_filename = (char *) alloca (strlen (filename) + 2);
-
- /* Note that we don't care here if the given file was converted or not. It
- is possible that the given file was *not* converted, simply because there
- ***************
- *** 2383,2395 ****
- return;
-
- strcpy (new_filename, filename);
- ! new_filename[last_char_index] = 'C';
-
- if (my_link (filename, new_filename) == -1)
- {
- fprintf (stderr, "%s: warning: can't link file `%s' to `%s': %s\n",
- pname, shortpath (NULL, filename),
- ! shortpath (NULL, new_filename), sys_errlist[errno]);
- errors++;
- return;
- }
- --- 2418,2447 ----
- return;
-
- strcpy (new_filename, filename);
- ! strcat (new_filename + last_char_index, "cc");
-
- + /* use rename(2) if available !! Update config files to include HAVE_rename
- + if the used OS provides it. Advantages are: it's atomic, it's one
- + system call compared to two. */
- +
- + #ifdef HAVE_rename
- + /* if the mentioned systems (POSIX 1003.1-1988) have rename(2), this has
- + to be changed to `my_rename' as well. */
- +
- + if (rename (filename, new_filename) == -1)
- + {
- + fprintf (stderr, "%s: warning: can't rename file `%s' to `%s': %s\n",
- + pname, shortpath (NULL, filename),
- + shortpath (NULL, new_filename), strerror (errno));
- + errors++;
- + return;
- + }
- + #else
- if (my_link (filename, new_filename) == -1)
- {
- fprintf (stderr, "%s: warning: can't link file `%s' to `%s': %s\n",
- pname, shortpath (NULL, filename),
- ! shortpath (NULL, new_filename), strerror (errno));
- errors++;
- return;
- }
- ***************
- *** 2397,2406 ****
- if (my_unlink (filename) == -1)
- {
- fprintf (stderr, "%s: warning: can't delete file `%s': %s\n",
- ! pname, shortpath (NULL, filename), sys_errlist[errno]);
- errors++;
- return;
- }
- }
-
- #endif /* !defined (UNPROTOIZE) */
- --- 2449,2459 ----
- if (my_unlink (filename) == -1)
- {
- fprintf (stderr, "%s: warning: can't delete file `%s': %s\n",
- ! pname, shortpath (NULL, filename), strerror (errno));
- errors++;
- return;
- }
- + #endif
- }
-
- #endif /* !defined (UNPROTOIZE) */
- ***************
- *** 4093,4099 ****
- if (my_stat ((char *)convert_filename, &stat_buf) == -1)
- {
- fprintf (stderr, "%s: can't get status for file `%s': %s\n",
- ! pname, shortpath (NULL, convert_filename), sys_errlist[errno]);
- return;
- }
- orig_size = stat_buf.st_size;
- --- 4146,4152 ----
- if (my_stat ((char *)convert_filename, &stat_buf) == -1)
- {
- fprintf (stderr, "%s: can't get status for file `%s': %s\n",
- ! pname, shortpath (NULL, convert_filename), strerror (errno));
- return;
- }
- orig_size = stat_buf.st_size;
- ***************
- *** 4128,4134 ****
- {
- fprintf (stderr, "%s: can't open file `%s' for reading: %s\n",
- pname, shortpath (NULL, convert_filename),
- ! sys_errlist[errno]);
- return;
- }
-
- --- 4181,4187 ----
- {
- fprintf (stderr, "%s: can't open file `%s' for reading: %s\n",
- pname, shortpath (NULL, convert_filename),
- ! strerror (errno));
- return;
- }
-
- ***************
- *** 4141,4147 ****
- close (input_file);
- fprintf (stderr, "\n%s: error reading input file `%s': %s\n",
- pname, shortpath (NULL, convert_filename),
- ! sys_errlist[errno]);
- return;
- }
-
- --- 4194,4200 ----
- close (input_file);
- fprintf (stderr, "\n%s: error reading input file `%s': %s\n",
- pname, shortpath (NULL, convert_filename),
- ! strerror (errno));
- return;
- }
-
- ***************
- *** 4174,4180 ****
- {
- fprintf (stderr, "%s: can't create/open clean file `%s': %s\n",
- pname, shortpath (NULL, clean_filename),
- ! sys_errlist[errno]);
- return;
- }
-
- --- 4227,4233 ----
- {
- fprintf (stderr, "%s: can't create/open clean file `%s': %s\n",
- pname, shortpath (NULL, clean_filename),
- ! strerror (errno));
- return;
- }
-
- ***************
- *** 4182,4188 ****
-
- if (write (clean_file, new_clean_text_base, clean_size) != clean_size)
- fprintf (stderr, "%s: error writing file `%s': %s\n",
- ! pname, shortpath (NULL, clean_filename), sys_errlist[errno]);
-
- close (clean_file);
- }
- --- 4235,4241 ----
-
- if (write (clean_file, new_clean_text_base, clean_size) != clean_size)
- fprintf (stderr, "%s: error writing file `%s': %s\n",
- ! pname, shortpath (NULL, clean_filename), strerror (errno));
-
- close (clean_file);
- }
- ***************
- *** 4285,4291 ****
- pname,
- shortpath (NULL, convert_filename),
- shortpath (NULL, new_filename),
- ! sys_errlist[errno]);
- return;
- }
- }
- --- 4338,4344 ----
- pname,
- shortpath (NULL, convert_filename),
- shortpath (NULL, new_filename),
- ! strerror (errno));
- return;
- }
- }
- ***************
- *** 4294,4300 ****
- if (my_unlink (convert_filename) == -1)
- {
- fprintf (stderr, "%s: can't delete file `%s': %s\n",
- ! pname, shortpath (NULL, convert_filename), sys_errlist[errno]);
- return;
- }
-
- --- 4347,4353 ----
- if (my_unlink (convert_filename) == -1)
- {
- fprintf (stderr, "%s: can't delete file `%s': %s\n",
- ! pname, shortpath (NULL, convert_filename), strerror (errno));
- return;
- }
-
- ***************
- *** 4307,4313 ****
- {
- fprintf (stderr, "%s: can't create/open output file `%s': %s\n",
- pname, shortpath (NULL, convert_filename),
- ! sys_errlist[errno]);
- return;
- }
-
- --- 4360,4366 ----
- {
- fprintf (stderr, "%s: can't create/open output file `%s': %s\n",
- pname, shortpath (NULL, convert_filename),
- ! strerror (errno));
- return;
- }
-
- ***************
- *** 4319,4325 ****
- if (write (output_file, repl_text_base, out_size) != out_size)
- fprintf (stderr, "%s: error writing file `%s': %s\n",
- pname, shortpath (NULL, convert_filename),
- ! sys_errlist[errno]);
- }
-
- close (output_file);
- --- 4372,4378 ----
- if (write (output_file, repl_text_base, out_size) != out_size)
- fprintf (stderr, "%s: error writing file `%s': %s\n",
- pname, shortpath (NULL, convert_filename),
- ! strerror (errno));
- }
-
- close (output_file);
- ***************
- *** 4336,4342 ****
- /* The cast avoids an erroneous warning on AIX. */
- if (my_chmod ((char *)convert_filename, stat_buf.st_mode) == -1)
- fprintf (stderr, "%s: can't change mode of file `%s': %s\n",
- ! pname, shortpath (NULL, convert_filename), sys_errlist[errno]);
-
- /* Note: We would try to change the owner and group of the output file
- to match those of the input file here, except that may not be a good
- --- 4389,4395 ----
- /* The cast avoids an erroneous warning on AIX. */
- if (my_chmod ((char *)convert_filename, stat_buf.st_mode) == -1)
- fprintf (stderr, "%s: can't change mode of file `%s': %s\n",
- ! pname, shortpath (NULL, convert_filename), strerror (errno));
-
- /* Note: We would try to change the owner and group of the output file
- to match those of the input file here, except that may not be a good
- ***************
- *** 4479,4485 ****
- if (!cwd_buffer)
- {
- fprintf (stderr, "%s: cannot get working directory: %s\n",
- ! pname, sys_errlist[errno]);
- exit (1);
- }
-
- --- 4532,4538 ----
- if (!cwd_buffer)
- {
- fprintf (stderr, "%s: cannot get working directory: %s\n",
- ! pname, strerror (errno));
- exit (1);
- }
-
- diff -rc --new-file gcc-2.3.3-fsf/rtl.c gcc-2.3.3-amiga/rtl.c
- *** gcc-2.3.3-fsf/rtl.c Sat Sep 19 19:33:11 1992
- --- gcc-2.3.3-amiga/rtl.c Mon Nov 29 15:32:52 1993
- ***************
- *** 49,55 ****
-
- #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) NAME ,
-
- ! char *rtx_name[] = {
- #include "rtl.def" /* rtl expressions are documented here */
- };
-
- --- 49,55 ----
-
- #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) NAME ,
-
- ! char * const rtx_name[] = {
- #include "rtl.def" /* rtl expressions are documented here */
- };
-
- ***************
- *** 60,66 ****
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) NAME,
-
- ! char *mode_name[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def"
-
- #ifdef EXTRA_CC_MODES
- --- 60,66 ----
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) NAME,
-
- ! char * const mode_name[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def"
-
- #ifdef EXTRA_CC_MODES
- ***************
- *** 76,82 ****
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) CLASS,
-
- ! enum mode_class mode_class[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def"
- };
-
- --- 76,82 ----
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) CLASS,
-
- ! const enum mode_class mode_class[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def"
- };
-
- ***************
- *** 87,93 ****
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) SIZE,
-
- ! int mode_size[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def"
- };
-
- --- 87,93 ----
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) SIZE,
-
- ! const int mode_size[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def"
- };
-
- ***************
- *** 98,104 ****
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) UNIT,
-
- ! int mode_unit_size[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def" /* machine modes are documented here */
- };
-
- --- 98,104 ----
-
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) UNIT,
-
- ! const int mode_unit_size[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def" /* machine modes are documented here */
- };
-
- ***************
- *** 111,117 ****
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) \
- (enum machine_mode) WIDER,
-
- ! enum machine_mode mode_wider_mode[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def" /* machine modes are documented here */
- };
-
- --- 111,117 ----
- #define DEF_MACHMODE(SYM, NAME, CLASS, SIZE, UNIT, WIDER) \
- (enum machine_mode) WIDER,
-
- ! const enum machine_mode mode_wider_mode[(int) MAX_MACHINE_MODE] = {
- #include "machmode.def" /* machine modes are documented here */
- };
-
- ***************
- *** 130,136 ****
- rtx's of that code. The sequence is a C string in which
- each character describes one operand. */
-
- ! char *rtx_format[] = {
- /* "*" undefined.
- can cause a warning message
- "0" field is unused (or used in a phase-dependent manner)
- --- 130,136 ----
- rtx's of that code. The sequence is a C string in which
- each character describes one operand. */
-
- ! char *const rtx_format[] = {
- /* "*" undefined.
- can cause a warning message
- "0" field is unused (or used in a phase-dependent manner)
- ***************
- *** 161,167 ****
- /* Indexed by rtx code, gives a character representing the "class" of
- that rtx code. See rtl.def for documentation on the defined classes. */
-
- ! char rtx_class[] = {
- #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) CLASS,
- #include "rtl.def" /* rtl expressions are defined here */
- #undef DEF_RTL_EXPR
- --- 161,167 ----
- /* Indexed by rtx code, gives a character representing the "class" of
- that rtx code. See rtl.def for documentation on the defined classes. */
-
- ! const char rtx_class[] = {
- #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) CLASS,
- #include "rtl.def" /* rtl expressions are defined here */
- #undef DEF_RTL_EXPR
- ***************
- *** 169,175 ****
-
- /* Names for kinds of NOTEs and REG_NOTEs. */
-
- ! char *note_insn_name[] = { "NOTE_INSN_FUNCTION_BEG", "NOTE_INSN_DELETED",
- "NOTE_INSN_BLOCK_BEG", "NOTE_INSN_BLOCK_END",
- "NOTE_INSN_LOOP_BEG", "NOTE_INSN_LOOP_END",
- "NOTE_INSN_FUNCTION_END", "NOTE_INSN_SETJMP",
- --- 169,176 ----
-
- /* Names for kinds of NOTEs and REG_NOTEs. */
-
- ! char * const note_insn_name[] =
- ! { "NOTE_INSN_FUNCTION_BEG", "NOTE_INSN_DELETED",
- "NOTE_INSN_BLOCK_BEG", "NOTE_INSN_BLOCK_END",
- "NOTE_INSN_LOOP_BEG", "NOTE_INSN_LOOP_END",
- "NOTE_INSN_FUNCTION_END", "NOTE_INSN_SETJMP",
- ***************
- *** 177,183 ****
- "NOTE_INSN_PROLOGUE_END", "NOTE_INSN_EPILOGUE_BEG",
- "NOTE_INSN_DELETED_LABEL"};
-
- ! char *reg_note_name[] = { "", "REG_DEAD", "REG_INC", "REG_EQUIV", "REG_WAS_0",
- "REG_EQUAL", "REG_RETVAL", "REG_LIBCALL",
- "REG_NONNEG", "REG_NO_CONFLICT", "REG_UNUSED",
- "REG_CC_SETTER", "REG_CC_USER", "REG_LABEL",
- --- 178,185 ----
- "NOTE_INSN_PROLOGUE_END", "NOTE_INSN_EPILOGUE_BEG",
- "NOTE_INSN_DELETED_LABEL"};
-
- ! char * const reg_note_name[] =
- ! { "", "REG_DEAD", "REG_INC", "REG_EQUIV", "REG_WAS_0",
- "REG_EQUAL", "REG_RETVAL", "REG_LIBCALL",
- "REG_NONNEG", "REG_NO_CONFLICT", "REG_UNUSED",
- "REG_CC_SETTER", "REG_CC_USER", "REG_LABEL",
- diff -rc --new-file gcc-2.3.3-fsf/rtl.h gcc-2.3.3-amiga/rtl.h
- *** gcc-2.3.3-fsf/rtl.h Sun Dec 13 01:42:19 1992
- --- gcc-2.3.3-amiga/rtl.h Mon Nov 29 15:32:56 1993
- ***************
- *** 42,54 ****
- extern int rtx_length[];
- #define GET_RTX_LENGTH(CODE) (rtx_length[(int)(CODE)])
-
- ! extern char *rtx_name[];
- #define GET_RTX_NAME(CODE) (rtx_name[(int)(CODE)])
-
- ! extern char *rtx_format[];
- #define GET_RTX_FORMAT(CODE) (rtx_format[(int)(CODE)])
-
- ! extern char rtx_class[];
- #define GET_RTX_CLASS(CODE) (rtx_class[(int)(CODE)])
-
- /* Common union for an element of an rtx. */
- --- 42,54 ----
- extern int rtx_length[];
- #define GET_RTX_LENGTH(CODE) (rtx_length[(int)(CODE)])
-
- ! extern char * const rtx_name[];
- #define GET_RTX_NAME(CODE) (rtx_name[(int)(CODE)])
-
- ! extern char * const rtx_format[];
- #define GET_RTX_FORMAT(CODE) (rtx_format[(int)(CODE)])
-
- ! extern const char rtx_class[];
- #define GET_RTX_CLASS(CODE) (rtx_class[(int)(CODE)])
-
- /* Common union for an element of an rtx. */
- ***************
- *** 328,334 ****
-
- /* Names for REG_NOTE's in EXPR_LIST insn's. */
-
- ! extern char *reg_note_name[];
- #define GET_REG_NOTE_NAME(MODE) (reg_note_name[(int)(MODE)])
-
- /* The label-number of a code-label. The assembler label
- --- 328,334 ----
-
- /* Names for REG_NOTE's in EXPR_LIST insn's. */
-
- ! extern char *const reg_note_name[];
- #define GET_REG_NOTE_NAME(MODE) (reg_note_name[(int)(MODE)])
-
- /* The label-number of a code-label. The assembler label
- ***************
- *** 396,402 ****
-
- /* Names for NOTE insn's other than line numbers. */
-
- ! extern char *note_insn_name[];
- #define GET_NOTE_INSN_NAME(NOTE_CODE) (note_insn_name[-(NOTE_CODE)])
-
- /* The name of a label, in case it corresponds to an explicit label
- --- 396,402 ----
-
- /* Names for NOTE insn's other than line numbers. */
-
- ! extern char *const note_insn_name[];
- #define GET_NOTE_INSN_NAME(NOTE_CODE) (note_insn_name[-(NOTE_CODE)])
-
- /* The name of a label, in case it corresponds to an explicit label
- diff -rc --new-file gcc-2.3.3-fsf/toplev.c gcc-2.3.3-amiga/toplev.c
- *** gcc-2.3.3-fsf/toplev.c Sun Nov 22 21:20:25 1992
- --- gcc-2.3.3-amiga/toplev.c Mon Nov 29 15:33:02 1993
- ***************
- *** 472,477 ****
- --- 472,478 ----
- {"unroll-all-loops", &flag_unroll_all_loops, 1},
- {"writable-strings", &flag_writable_strings, 1},
- {"peephole", &flag_no_peephole, 0},
- + {"large-baserel", &flag_pic, 4},
- {"force-mem", &flag_force_mem, 1},
- {"force-addr", &flag_force_addr, 1},
- {"function-cse", &flag_no_function_cse, 0},
- ***************
- *** 489,494 ****
- --- 490,496 ----
- {"schedule-insns2", &flag_schedule_insns_after_reload, 1},
- {"pic", &flag_pic, 1},
- {"PIC", &flag_pic, 2},
- + {"baserel", &flag_pic, 3},
- {"fast-math", &flag_fast_math, 1},
- {"common", &flag_no_common, 0},
- {"inhibit-size-directive", &flag_inhibit_size_directive, 1},
- ***************
- *** 1453,1458 ****
- --- 1455,1463 ----
- FILE *asm_file;
- char *input_name;
- {
- + #ifdef FILE_NAME_NONDIRECTORY
- + char *na = FILE_NAME_NONDIRECTORY (input_name);
- + #else
- int len = strlen (input_name);
- char *na = input_name + len;
-
- ***************
- *** 1463,1468 ****
- --- 1468,1474 ----
- break;
- na--;
- }
- + #endif
-
- #ifdef ASM_OUTPUT_MAIN_SOURCE_FILENAME
- ASM_OUTPUT_MAIN_SOURCE_FILENAME (asm_file, na);
- ***************
- *** 3286,3291 ****
- --- 3292,3298 ----
-
- #ifndef OS2
- #ifndef VMS
- + #ifndef amigados
- if (flag_print_mem)
- {
- char *lim = (char *) sbrk (0);
- ***************
- *** 3300,3305 ****
- --- 3307,3313 ----
- system ("ps v");
- #endif /* not USG */
- }
- + #endif /* not amigados */
- #endif /* not VMS */
- #endif /* not OS2 */
-
- diff -rc --new-file gcc-2.3.3-fsf/tree.c gcc-2.3.3-amiga/tree.c
- *** gcc-2.3.3-fsf/tree.c Thu Oct 22 12:00:22 1992
- --- gcc-2.3.3-amiga/tree.c Mon Nov 29 15:33:08 1993
- ***************
- *** 246,252 ****
- /* Unique id for next decl created. */
- static int next_decl_uid;
-
- ! extern char *mode_name[];
-
- void gcc_obstack_init ();
- static tree stabilize_reference_1 ();
- --- 246,252 ----
- /* Unique id for next decl created. */
- static int next_decl_uid;
-
- ! extern char *const mode_name[];
-
- void gcc_obstack_init ();
- static tree stabilize_reference_1 ();
-