1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00
freebsd/contrib/gcc
Daniel Eischen ee6e0476d2 Backout rev 1.10.
Requested by:	obrien
2003-09-01 05:31:33 +00:00
..
config Backout rev 1.10. 2003-09-01 05:31:33 +00:00
cp Merge FreeBSD modifications into gcc 3.3.1-release: 2003-08-22 03:18:02 +00:00
doc Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
f This commit was generated by cvs2svn to compensate for changes in r119256, 2003-08-22 02:56:07 +00:00
ginclude FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
objc Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
acconfig.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
aclocal.m4 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
alias.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ansidecl.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
attribs.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
basic-block.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
bb-reorder.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
bitmap.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
bitmap.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
builtin-attrs.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
builtin-types.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
builtins.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
builtins.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-aux-info.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-common.c Merge FreeBSD changes into GCC 3.3.1-prerelease. 2003-07-11 06:00:50 +00:00
c-common.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-common.h Merge FreeBSD modifications into gcc 3.3.1-pre: 2003-07-11 04:24:59 +00:00
c-config-lang.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-convert.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-decl.c Merge FreeBSD modifications into gcc 3.3.1-release: 2003-08-22 03:14:37 +00:00
c-dump.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-errors.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-format.c Merge FreeBSD modifications into gcc 3.3.1-prerelease: 2003-07-11 05:12:46 +00:00
c-lang.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-lex.c Merge FreeBSD modifications into gcc 3.3.1-prerelease: 2003-08-22 03:26:30 +00:00
c-lex.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
c-objc-common.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-opts.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-parse.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-pragma.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
c-pragma.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-pretty-print.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-pretty-print.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-semantics.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
c-tree.h FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
c-typeck.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
caller-save.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
calls.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
cccp.1
cfg.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cfganal.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cfgbuild.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cfgcleanup.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cfglayout.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cfglayout.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cfgloop.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cfgrtl.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
ChangeLog.0 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.1 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.2 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.3 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.4 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.5 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.6 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.7 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ChangeLog.lib Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
choose-temp.c Use the stock (3.1) file now. 2002-05-09 21:15:23 +00:00
collect2.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
collect2.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
combine.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
concat.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
conditions.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
config.gcc Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
config.guess Gcc 3.2.1 release virgin vendor import. (19-Nov-2002) 2002-12-04 15:42:16 +00:00
config.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
configure FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
configure.frag Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
configure.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
conflict.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
convert.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
convert.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
COPYING Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
COPYING.LIB Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
cp-demangle.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cplus-dem.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cpp.1
cppdefault.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
cppdefault.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cpperror.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cppexp.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
cppfiles.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cpphash.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cpphash.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cppinit.c Enable warn_system_heders by default. 2003-08-22 03:31:54 +00:00
cpplex.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cpplib.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cpplib.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cppmacro.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cppmain.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cppspec.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cpptrad.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
crtstuff.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cse.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cselib.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cselib.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
cstamp-h.in
dbxout.c Stock files. 2003-08-22 03:10:47 +00:00
dbxout.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
dbxstclass.h
debug.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
debug.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
defaults.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
demangle.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dependence.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
df.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
df.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
diagnostic.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
diagnostic.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
diagnostic.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
doloop.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dominance.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
doschk.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dummy-conditions.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dwarf2.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dwarf2asm.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dwarf2asm.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dwarf2out.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
dwarf2out.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
dwarf.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
dwarfout.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
dyn-string.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
dyn-string.h Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
emit-rtl.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
enquire.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
errors.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
errors.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
et-forest.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
et-forest.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
except.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
except.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
explow.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
expmed.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
expr.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
expr.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
fibheap.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
fibheap.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
final.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
fix-header.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
fixproto Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
flags.h FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
floatlib.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
flow.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
fold-const.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
fp-test.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
FREEBSD-deletelist Remove MIPS support. 2001-04-11 00:12:48 +00:00
FREEBSD-libiberty Import data for 3.0.2. 2002-05-10 05:21:15 +00:00
FREEBSD-upgrade Import data for 3.0.2. 2002-05-10 05:21:15 +00:00
FREEBSD-Xlist
FSFChangeLog Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
FSFChangeLog.10 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
FSFChangeLog.11 Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
function.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
function.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
future.options Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
gbl-ctors.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gcc.1 Remove bit about _THREAD_SAFE. deischen committed a change to stdio.h 2003-06-25 16:12:05 +00:00
gcc.c Merge FreeBSD modifications into gcc 3.3.1-prerelease: 2003-07-11 04:45:39 +00:00
gcc.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gccbug.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gccspec.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gcov-io.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gcov.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gcse.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
gdbinit.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gen-protos.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
genattr.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genattrtab.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genattrtab.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genautomata.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gencheck.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
gencodes.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genconditions.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genconfig.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genconstants.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
genemit.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genextract.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
genflags.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gengenrtl.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gengtype-lex.l Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gengtype-yacc.y Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gengtype.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gengtype.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genmultilib Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on October 9th 2002 20:15 EST. 2002-10-10 04:40:18 +00:00
genopinit.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genoutput.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
genpeep.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
genpreds.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
genrecog.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gensupport.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gensupport.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
getopt1.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
getopt.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
getopt.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
getpwd.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
getruntime.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ggc-callbacks.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
ggc-common.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ggc-none.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ggc-page.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ggc-simple.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ggc.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
glimits.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
global.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gmon.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
graph.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
graph.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gstab.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
gsyms.h
gsyslimits.h
gthr-aix.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
gthr-dce.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gthr-posix.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gthr-rtems.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gthr-single.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gthr-solaris.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gthr-vxworks.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gthr-win32.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
gthr.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
haifa-sched.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
halfpic.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
halfpic.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
hard-reg-set.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hash.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
hash.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
hashtab.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hashtab.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hashtable.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hashtable.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hex.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hooks.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hooks.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
hwint.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ifcvt.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
input.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
insn-addr.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
integrate.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
integrate.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
intl.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
intl.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
jump.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
langhooks-def.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
langhooks.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
langhooks.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
LANGUAGES Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
lbasename.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
lcm.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
libfuncs.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
libgcc2.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
libgcc2.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
libgcc-std.ver Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
libiberty.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
limitx.h
limity.h
line-map.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
line-map.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
lists.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
local-alloc.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
location.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
longlong.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
loop.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
loop.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
machmode.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
machmode.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
main.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
make-temp-file.c Merge choose-temp.c rev 1.2 (use /tmp 1st, and then /var/tmp) into GCC 3.1. 2002-05-14 00:33:44 +00:00
Makefile.in Stock files. 2003-08-22 03:10:47 +00:00
mbchar.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
mbchar.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
md5.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
md5.h Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
mips-tdump.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
mips-tfile.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
mkconfig.sh Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
mkdeps.c Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
mkdeps.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
mkheaders.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
mklibgcc.in Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
mkmap-flat.awk Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
mkmap-symver.awk Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
move-if-change Gcc 3.2.1 release virgin vendor import. (19-Nov-2002) 2002-12-04 15:42:16 +00:00
obstack.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
obstack.h Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
ONEWS Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
optabs.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
optabs.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
output.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
params.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
params.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
params.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
partition.c Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
partition.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
pexecute.c Merge rev 1.2 [_exit() over exit()] into the Gcc 3.1 prerelease. 2002-05-09 22:04:44 +00:00
physmem.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
predict.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
predict.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
predict.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
prefix.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
prefix.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
pretty-print.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
print-rtl.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
print-tree.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
profile.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
profile.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
protoize.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ra-build.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ra-colorize.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ra-debug.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ra-rewrite.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ra.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ra.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
read-rtl.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
README-fixinc Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
README.Portability Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
real.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
real.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
recog.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
recog.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
reg-stack.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
regclass.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
regmove.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
regrename.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
regs.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
reload1.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
reload.c FreeBSD uses stock versions of these GCC files. 2003-07-11 04:00:23 +00:00
reload.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
reorg.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
resource.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
resource.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
rtl-error.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
rtl.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
rtl.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
rtl.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
rtlanal.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
sbitmap.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
sbitmap.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
scan-decls.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
scan-types.sh Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
scan.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
scan.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
sched-deps.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
sched-ebb.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
sched-int.h Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
sched-rgn.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
sched-vis.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
sdbout.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
sdbout.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
SERVICE Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
sibcall.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
simplify-rtx.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
sort-protos
splay-tree.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
splay-tree.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ssa-ccp.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ssa-dce.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ssa.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
ssa.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
stab.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
stack.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
stmt.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
stor-layout.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
stringpool.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
symcat.h Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
sys-protos.h Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0. 2002-02-01 18:16:02 +00:00
sys-types.h
system.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
target-def.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
target.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
timevar.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
timevar.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
timevar.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tlink.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
toplev.c Enable warn_system_heders by default. 2003-08-22 03:31:54 +00:00
toplev.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tracer.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tradcif.y Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
tradcpp.c Gcc 3.2.2-release. 2003-02-10 05:41:50 +00:00
tradcpp.h Gcc 3.1.0 pre-release from the FSF anoncvs repo on 9-May-2002 15:57:15 EDT. 2002-05-09 20:02:13 +00:00
tree-dump.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tree-dump.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tree-inline.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
tree-inline.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tree.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tree.def Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tree.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
tsystem.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
typeclass.h
unroll.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
unwind-c.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
unwind-dw2-fde-darwin.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind-dw2-fde-glibc.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind-dw2-fde.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind-dw2-fde.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind-dw2.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind-pe.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind-sjlj.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
unwind.inc Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
varasm.c Gcc 3.3.1-release. 2003-08-22 02:56:07 +00:00
varray.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
varray.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
version.c Merge FreeBSD modifications into gcc 3.3.1-release: 2003-08-22 03:16:37 +00:00
version.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
vmsdbg.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
vmsdbgout.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
xcoffout.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
xcoffout.h Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00
xmemdup.c Gcc 3.3.1-pre as of 2003-07-11. 2003-07-11 03:40:53 +00:00

Copyright (C) 2000 Free Software Foundation, Inc.

This file is intended to contain a few notes about writing C code
within GCC so that it compiles without error on the full range of
compilers GCC needs to be able to compile on.

The problem is that many ISO-standard constructs are not accepted by
either old or buggy compilers, and we keep getting bitten by them.
This knowledge until know has been sparsely spread around, so I
thought I'd collect it in one useful place.  Please add and correct
any problems as you come across them.

I'm going to start from a base of the ISO C89 standard, since that is
probably what most people code to naturally.  Obviously using
constructs introduced after that is not a good idea.

The first section of this file deals strictly with portability issues,
the second with common coding pitfalls.


			Portability Issues
			==================

Unary +
-------

K+R C compilers and preprocessors have no notion of unary '+'.  Thus
the following code snippet contains 2 portability problems.

int x = +2;  /* int x = 2;  */
#if +1       /* #if 1  */
#endif


Pointers to void
----------------

K+R C compilers did not have a void pointer, and used char * as the
pointer to anything.  The macro PTR is defined as either void * or
char * depending on whether you have a standards compliant compiler or
a K+R one.  Thus

  free ((void *) h->value.expansion);

should be written

  free ((PTR) h->value.expansion);

Further, an initial investigation indicates that pointers to functions
returning void are okay.  Thus the example given by "Calling functions
through pointers to functions" below appears not to cause a problem.


String literals
---------------

Some SGI compilers choke on the parentheses in:-

const char string[] = ("A string");

This is unfortunate since this is what the GNU gettext macro N_
produces.  You need to find a different way to code it.

K+R C did not allow concatenation of string literals like

  "This is a " "single string literal".

Moreover, some compilers like MSVC++ have fairly low limits on the
maximum length of a string literal; 509 is the lowest we've come
across.  You may need to break up a long printf statement into many
smaller ones.


Empty macro arguments
---------------------

ISO C (6.8.3 in the 1990 standard) specifies the following:

If (before argument substitution) any argument consists of no
preprocessing tokens, the behavior is undefined.

This was relaxed by ISO C99, but some older compilers emit an error,
so code like

#define foo(x, y) x y
foo (bar, )

needs to be coded in some other way.


signed keyword
--------------

The signed keyword did not exist in K+R compilers; it was introduced
in ISO C89, so you cannot use it.  In both K+R and standard C,
unqualified char and bitfields may be signed or unsigned.  There is no
way to portably declare signed chars or signed bitfields.

All other arithmetic types are signed unless you use the 'unsigned'
qualifier.  For instance, it is safe to write

  short paramc;

instead of

  signed short paramc;

If you have an algorithm that depends on signed char or signed
bitfields, you must find another way to write it before it can be
integrated into GCC.


Function prototypes
-------------------

You need to provide a function prototype for every function before you
use it, and functions must be defined K+R style.  The function
prototype should use the PARAMS macro, which takes a single argument.
Therefore the parameter list must be enclosed in parentheses.  For
example,

int myfunc PARAMS ((double, int *));

int
myfunc (var1, var2)
     double var1;
     int *var2;
{
  ...
}

This implies that if the function takes no arguments, it should be
declared and defined as follows:

int myfunc PARAMS ((void));

int
myfunc ()
{
  ...
}

You also need to use PARAMS when referring to function protypes in
other circumstances, for example see "Calling functions through
pointers to functions" below.

Variable-argument functions are best described by example:-

void cpp_ice PARAMS ((cpp_reader *, const char *msgid, ...));

void
cpp_ice VPARAMS ((cpp_reader *pfile, const char *msgid, ...))
{
  VA_OPEN (ap, msgid);
  VA_FIXEDARG (ap, cpp_reader *, pfile);
  VA_FIXEDARG (ap, const char *, msgid);

  ...
  VA_CLOSE (ap);
}

See ansidecl.h for the definitions of the above macros and more.

One aspect of using K+R style function declarations, is you cannot
have arguments whose types are char, short, or float, since without
prototypes (ie, K+R rules), these types are promoted to int, int, and
double respectively.

Calling functions through pointers to functions
-----------------------------------------------

K+R C compilers require parentheses around the dereferenced function
pointer expression in the call, whereas ISO C relaxes the syntax.  For
example

typedef void (* cl_directive_handler) PARAMS ((cpp_reader *, const char *));
      *p->handler (pfile, p->arg);

needs to become

      (*p->handler) (pfile, p->arg);


Macros
------

The rules under K+R C and ISO C for achieving stringification and
token pasting are quite different.  Therefore some macros have been
defined which will get it right depending upon the compiler.

  CONCAT2(a,b) CONCAT3(a,b,c) and CONCAT4(a,b,c,d)

will paste the tokens passed as arguments.  You must not leave any
space around the commas.  Also,

  STRINGX(x)

will stringify an argument; to get the same result on K+R and ISO
compilers x should not have spaces around it.


Passing structures by value
---------------------------

Avoid passing structures by value, either to or from functions.  It
seems some K+R compilers handle this differently or not at all.


Enums
-----

In K+R C, you have to cast enum types to use them as integers, and
some compilers in particular give lots of warnings for using an enum
as an array index.


Bitfields
---------

See also "signed keyword" above.  In K+R C only unsigned int bitfields
were defined (i.e. unsigned char, unsigned short, unsigned long.
Using plain int/short/long was not allowed).


free and realloc
----------------

Some implementations crash upon attempts to free or realloc the null
pointer.  Thus if mem might be null, you need to write

  if (mem)
    free (mem);


Reserved Keywords
-----------------

K+R C has "entry" as a reserved keyword, so you should not use it for
your variable names.


Type promotions
---------------

K+R used unsigned-preserving rules for arithmetic expresssions, while
ISO uses value-preserving.  This means an unsigned char compared to an
int is done as an unsigned comparison in K+R (since unsigned char
promotes to unsigned) while it is signed in ISO (since all of the
values in unsigned char fit in an int, it promotes to int).

Trigraphs
---------

You weren't going to use them anyway, but trigraphs were not defined
in K+R C, and some otherwise ISO C compliant compilers do not accept
them.


Suffixes on Integer Constants
-----------------------------

K+R C did not accept a 'u' suffix on integer constants.  If you want
to declare a constant to be be unsigned, you must use an explicit
cast.

You should never use a 'l' suffix on integer constants ('L' is fine),
since it can easily be confused with the number '1'.


			Common Coding Pitfalls
			======================

errno
-----

errno might be declared as a macro.


Implicit int
------------

In C, the 'int' keyword can often be omitted from type declarations.
For instance, you can write

  unsigned variable;

as shorthand for

  unsigned int variable;

There are several places where this can cause trouble.  First, suppose
'variable' is a long; then you might think

  (unsigned) variable

would convert it to unsigned long.  It does not.  It converts to
unsigned int.  This mostly causes problems on 64-bit platforms, where
long and int are not the same size.

Second, if you write a function definition with no return type at
all:

  operate (a, b)
       int a, b;
  {
    ...
  }

that function is expected to return int, *not* void.  GCC will warn
about this.  K+R C has no problem with 'void' as a return type, so you
need not worry about that.

Implicit function declarations always have return type int.  So if you
correct the above definition to

  void
  operate (a, b)
       int a, b;
  ...

but operate() is called above its definition, you will get an error
about a "type mismatch with previous implicit declaration".  The cure
is to prototype all functions at the top of the file, or in an
appropriate header.

Char vs unsigned char vs int
----------------------------

In C, unqualified 'char' may be either signed or unsigned; it is the
implementation's choice.  When you are processing 7-bit ASCII, it does
not matter.  But when your program must handle arbitrary binary data,
or fully 8-bit character sets, you have a problem.  The most obvious
issue is if you have a look-up table indexed by characters.

For instance, the character '\341' in ISO Latin 1 is SMALL LETTER A
WITH ACUTE ACCENT.  In the proper locale, isalpha('\341') will be
true.  But if you read '\341' from a file and store it in a plain
char, isalpha(c) may look up character 225, or it may look up
character -31.  And the ctype table has no entry at offset -31, so
your program will crash.  (If you're lucky.)

It is wise to use unsigned char everywhere you possibly can.  This
avoids all these problems.  Unfortunately, the routines in <string.h>
take plain char arguments, so you have to remember to cast them back
and forth - or avoid the use of strxxx() functions, which is probably
a good idea anyway.

Another common mistake is to use either char or unsigned char to
receive the result of getc() or related stdio functions.  They may
return EOF, which is outside the range of values representable by
char.  If you use char, some legal character value may be confused
with EOF, such as '\377' (SMALL LETTER Y WITH UMLAUT, in Latin-1).
The correct choice is int.

A more subtle version of the same mistake might look like this:

  unsigned char pushback[NPUSHBACK];
  int pbidx;
  #define unget(c) (assert(pbidx < NPUSHBACK), pushback[pbidx++] = (c))
  #define get(c) (pbidx ? pushback[--pbidx] : getchar())
  ...
  unget(EOF);

which will mysteriously turn a pushed-back EOF into a SMALL LETTER Y
WITH UMLAUT.


Other common pitfalls
---------------------

o Expecting 'plain' char to be either sign or unsigned extending

o Shifting an item by a negative amount or by greater than or equal to
  the number of bits in a type (expecting shifts by 32 to be sensible
  has caused quite a number of bugs at least in the early days).

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

o Host vs. target floating point representation, including emitting NaNs
  and Infinities in a form that the assembler handles.

o qsort being an unstable sort function (unstable in the sense that
  multiple items that sort the same may be sorted in different orders
  by different qsort functions).

o Passing incorrect types to fprintf and friends.

o Adding a function declaration for a module declared in another file to
  a .c file instead of to a .h file.