gcc/gcc
Sebastian Pop 4619c7017f Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
* Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
	* tree-pretty-print.c: Include tree-chrec.h.
	(dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
	and POLYNOMIAL_CHREC nodes.

From-SVN: r84826
2004-07-16 17:55:47 +00:00
..
ada [multiple changes] 2004-07-15 22:34:43 +02:00
config * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi). 2004-07-16 17:13:40 +02:00
cp undo reversion 2004-07-16 13:11:06 -04:00
doc dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
fixinc
fortran re PR fortran/16404 (should reject invalid code with -pedantic -std=f95 ? (x8)) 2004-07-16 02:57:43 +02:00
ginclude
java * Fix for g++/15861 2004-07-15 17:33:01 +00:00
objc langhooks.h (estimate_num_insns, [...]): Remove hooks. 2004-07-11 10:53:06 +01:00
po
testsuite re PR fortran/16404 (should reject invalid code with -pedantic -std=f95 ? (x8)) 2004-07-16 02:57:43 +02:00
treelang langhooks.h (estimate_num_insns, [...]): Remove hooks. 2004-07-11 10:53:06 +01:00
.cvsignore
ABOUT-GCC-NLS
COPYING
COPYING.LIB
ChangeLog Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h. 2004-07-16 17:55:47 +00:00
ChangeLog.0
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11 Rotate ChangeLog 2004-07-01 12:47:14 +00:00
ChangeLog.lib
ChangeLog.tree-ssa
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES * LANGUAGES: Remove obsolete information. 2004-07-11 12:54:14 +01:00
Makefile.in Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h. 2004-07-16 17:55:47 +00:00
ONEWS
README-fixinc
README.Portability
SERVICE
aclocal.m4
alias.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
basic-block.h Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
bb-reorder.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
bitmap.c
bitmap.h
bt-load.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
builtin-attrs.def
builtin-types.def builtin-types.def (BT_UINT): Rename from BT_UNSIGNED. 2004-07-09 16:04:33 -07:00
builtins.c builtins.c (expand_builtin_stpcpy): Do not create temporary reg with VOIDmode. 2004-07-16 17:19:20 +00:00
builtins.def builtin-types.def (BT_UINT): Rename from BT_UNSIGNED. 2004-07-09 16:04:33 -07:00
c-aux-info.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-common.c re PR tree-optimization/16437 (New c-torture failures after bitfield patch) 2004-07-11 10:45:39 +01:00
c-common.def
c-common.h md.texi (Processor pipeline description): Mention that the old pipeline description is deprecated. 2004-07-09 22:42:43 +00:00
c-config-lang.in
c-convert.c
c-cppbuiltin.c
c-decl.c * Fix for g++/15861 2004-07-15 17:33:01 +00:00
c-dump.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-errors.c
c-format.c re PR c/1027 (slightly misleading printf format warning) 2004-07-01 09:52:33 +01:00
c-gimplify.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-incpath.c
c-incpath.h
c-lang.c langhooks.h (estimate_num_insns, [...]): Remove hooks. 2004-07-11 10:53:06 +01:00
c-lex.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-objc-common.c c-decl.c (static_ctors, [...]): Make static. 2004-07-08 19:50:17 +00:00
c-opts.c c-opts.c (c_common_post_options): Force unit-at-a-time mode on when we have more than one input file. 2004-07-09 21:30:35 +00:00
c-parse.in Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-pch.c
c-ppoutput.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-pragma.c
c-pragma.h
c-pretty-print.c c-pretty-print.c (pp_c_postfix_expression): Fix pasto. 2004-07-01 17:51:54 +00:00
c-pretty-print.h
c-semantics.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-tree.h c-decl.c (static_ctors, [...]): Make static. 2004-07-08 19:50:17 +00:00
c-typeck.c c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION instead of EXPR_LOCUS in a boolean context... 2004-07-14 11:47:14 -07:00
c.opt
caller-save.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
calls.c calls.c (expand_call): Fix typo in comment. 2004-07-14 23:50:30 +00:00
cfg.c
cfganal.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cfgbuild.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cfgcleanup.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cfgexpand.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cfghooks.c
cfghooks.h
cfglayout.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cfglayout.h
cfgloop.c tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
cfgloop.h cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
cfgloopanal.c
cfgloopmanip.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cfgrtl.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cgraph.c
cgraph.h * Fix for g++/15861 2004-07-15 17:33:01 +00:00
cgraphunit.c * Fix for g++/15861 2004-07-15 17:33:01 +00:00
collect2.c * collect2.c (main): Handle --no-demangle and --demangle flags. 2004-07-13 10:19:14 -07:00
collect2.h
combine.c combine.c (simplify_set): match the mode of the constant 0 with the tested operand to match the compare... 2004-07-15 21:16:21 +00:00
common.opt tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
conditions.h
config.build
config.gcc config.gcc: Add sh-*-symbianelf target. 2004-07-12 08:45:00 +00:00
config.host
config.in system.h: Prototype getpagesize if missing. 2004-07-08 16:05:29 -07:00
configure configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo. 2004-07-13 08:57:13 +02:00
configure.ac configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo. 2004-07-13 08:57:13 +02:00
conflict.c
convert.c
convert.h
coretypes.h
coverage.c * Fix for g++/15861 2004-07-15 17:33:01 +00:00
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cselib.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cselib.h
cstamp-h.in
dbxout.c tree.h (TYPE_BINFO_OFFSET, [...]): Remove. 2004-07-07 10:21:04 +00:00
dbxout.h
ddg.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
ddg.h
debug.c
debug.h
defaults.h
df.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
df.h
diagnostic.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
diagnostic.def
diagnostic.h
dojump.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
dominance.c dominance.c (struct dom_info): Add fake_exit_edge. 2004-07-14 11:27:19 -07:00
domwalk.c
domwalk.h
dummy-conditions.c
dwarf.h
dwarf2.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
dwarf2out.h
emit-rtl.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
except.h dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
explow.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
expmed.c expmed.c (expand_sdiv_pow2): New function to expand signed division by a positive power of two... 2004-07-14 13:50:39 +00:00
expr.c expr.c (expand_assignment): Reenable bitfield += optimizations. 2004-07-15 02:09:00 +02:00
expr.h expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
final.c dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
fix-header.c
fixproto
flags.h flags.h: Delete redundant prototypes that are being generated in options.h from common.opt. 2004-07-10 02:06:36 +00:00
flow.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
fold-const.c fold-const.c (fold): Canonicalize X + -C as X - C for floating point additions... 2004-07-11 21:56:37 +00:00
fp-test.c
function.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
function.h expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
gbl-ctors.h
gcc.c gcc.c (STANDARD_STARTFILE_PREFIX_1): Define. 2004-07-01 23:55:22 +00:00
gcc.h
gccbug.in libf2c: Removed. 2004-07-15 16:52:49 +00:00
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c
gcse.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
gdbinit.in
gen-protos.c
genattr.c
genattrtab.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
genattrtab.h
genautomata.c genautomata.c (add_vect): Speedup by using integers as bit-vectors for walking through the comb_vect and... 2004-07-16 10:12:11 +02:00
gencheck.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l input.h: If USE_MAPPED_LOCATION... 2004-07-14 17:02:30 -07:00
gengtype-yacc.y
gengtype.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
gengtype.h
genmodes.c
genmultilib
genopinit.c builtins.c: Rename movstr*, except for movstrict*, to movmem* and clrstr* to clrmem*. 2004-07-07 19:25:01 +00:00
genoutput.c
genpeep.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
genpreds.c
genrecog.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
gensupport.c
gensupport.h
ggc-common.c
ggc-none.c
ggc-page.c
ggc-zone.c
ggc.h
gimple-low.c gimple-low.c (lower_function_body): Don't reset_block_changes here. 2004-07-01 21:53:37 -07:00
gimplify.c re PR middle-end/15885 (wrong va_start warning (and code)) 2004-07-15 17:50:51 -04:00
glimits.h
global.c re PR rtl-optimization/15921 (gcc.c-torture/compile/920501-4.c fails on powerpc-*) 2004-07-12 18:01:44 +00:00
gmon.c
graph.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
graph.h
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-gnat.c
gthr-gnat.h
gthr-posix.c
gthr-posix.h
gthr-rtems.h
gthr-single.h
gthr-solaris.h
gthr-vxworks.h
gthr-win32.h
gthr.h
haifa-sched.c md.texi (Processor pipeline description): Mention that the old pipeline description is deprecated. 2004-07-09 22:42:43 +00:00
hard-reg-set.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c rtlanal.c (insn_rtx_cost): New function, moved and renamed from combine.c's combine_insn_cost. 2004-07-11 14:37:57 +00:00
input.h input.h: If USE_MAPPED_LOCATION... 2004-07-14 17:02:30 -07:00
insn-addr.h
integrate.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
integrate.h
intl.c
intl.h
jump.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
lambda.h Makefile.in (OBJS-common): Add tree-data-ref.o. 2004-07-13 16:43:32 +00:00
langhooks-def.h langhooks.h (estimate_num_insns, [...]): Remove hooks. 2004-07-11 10:53:06 +01:00
langhooks.c langhooks.h (estimate_num_insns, [...]): Remove hooks. 2004-07-11 10:53:06 +01:00
langhooks.h langhooks.h (estimate_num_insns, [...]): Remove hooks. 2004-07-11 10:53:06 +01:00
lcm.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
libada-mk.in
libfuncs.h c-decl.c, [...]: Don't check TARGET_MEM_FUNCTIONS. 2004-07-05 20:49:20 +01:00
libgcc-darwin.ver
libgcc-std.ver
libgcc2.c
libgcc2.h
libgcov.c
limitx.h
limity.h
lists.c
local-alloc.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
longlong.h
loop-doloop.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
loop-init.c
loop-invariant.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
loop-iv.c re PR rtl-optimization/16001 (unable to find a register to spill in class `AREG' (-O2 -funroll-loops)) 2004-07-11 02:52:54 +00:00
loop-unroll.c
loop-unswitch.c
loop.c loop.c (check_insn_for_givs): Restore check for code labels that was accidentally deleted by a recent checkin. 2004-07-15 08:55:15 -06:00
loop.h
machmode.def
machmode.h
main.c
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkheaders.in
mklibgcc.in
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
modulo-sched.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
opt-functions.awk
opt-gather.awk
optabs.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
optabs.h builtins.c: Rename movstr*, except for movstrict*, to movmem* and clrstr* to clrmem*. 2004-07-07 19:25:01 +00:00
optc-gen.awk
opth-gen.awk
opts.c dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
opts.h c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
output.h explow.c (optimize_save_area_alloca): Do not accept parameters. 2004-07-08 07:42:02 +00:00
params.c
params.def tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
params.h
passes.c dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
postreload.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
predict.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
predict.def
predict.h
prefix.c prefix.c (lookup_key): Cast buffer to LPBYTE. 2004-06-30 11:45:58 -07:00
prefix.h
pretty-print.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
pretty-print.h
print-rtl.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
print-tree.c * print-tree.c (print_node): Fix casts last change. 2004-07-15 00:33:01 -07:00
profile.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
protoize.c
ra-build.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
ra-colorize.c
ra-debug.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
ra-rewrite.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
ra.c
ra.h
read-rtl.c
real.c
real.h
recog.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
recog.h
reg-stack.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
regclass.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
regmove.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
regrename.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
regs.h
reload.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
reload.h
reload1.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
reorg.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
resource.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
resource.h
rtl-error.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
rtl-profile.c
rtl.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
rtl.def expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
rtl.h rtlanal.c (insn_rtx_cost): New function, moved and renamed from combine.c's combine_insn_cost. 2004-07-11 14:37:57 +00:00
rtlanal.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
rtlhooks-def.h
rtlhooks.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
sched-ebb.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
sched-int.h
sched-rgn.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
sched-vis.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:21:54 -07:00
sdbout.c tree.h (TYPE_BINFO_OFFSET, [...]): Remove. 2004-07-07 10:21:04 +00:00
sdbout.h
simplify-rtx.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
sort-protos
sreal.c
sreal.h
stab.def
stack.h
statistics.h
stmt.c c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION instead of EXPR_LOCUS in a boolean context... 2004-07-14 11:47:14 -07:00
stor-layout.c builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD. 2004-07-09 18:52:53 -07:00
stringpool.c
stub-objc.c
sys-protos.h
sys-types.h
system.h target.h (struct gcc_target): Add calls.pass_by_reference. 2004-07-13 23:24:27 -07:00
target-def.h dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
target.h dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
targhooks.c dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
targhooks.h dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
timevar.c
timevar.def tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
timevar.h
tlink.c
toplev.c Conditionally compile support for --enable-mapped_location. 2004-06-30 10:58:21 -07:00
toplev.h toplev.h (NO_FRONT_END_DIAG, [...]): Define. 2004-07-06 23:42:45 +01:00
tracer.c
tree-alias-ander.c
tree-alias-ander.h
tree-alias-common.c ifcvt.c, [...]: Fix comment typos. 2004-07-02 00:51:01 +00:00
tree-alias-common.h
tree-alias-type.c
tree-alias-type.h
tree-browser.c
tree-browser.def
tree-cfg.c tree-cfg.c (find_taken_edge): Statically compute the truth value of a predicate comparing an SSA_NAME to itself. 2004-07-12 11:38:25 -04:00
tree-chrec.c cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
tree-chrec.h Makefile.in (OBJS-common): Add tree-chrec.o. 2004-06-30 15:37:42 +00:00
tree-complex.c
tree-data-ref.c Makefile.in (OBJS-common): Add tree-data-ref.o. 2004-07-13 16:43:32 +00:00
tree-data-ref.h Makefile.in (OBJS-common): Add tree-data-ref.o. 2004-07-13 16:43:32 +00:00
tree-dfa.c tree-dfa.c (make_rename_temp): *Really* work just like create_tmp_var if called while outside SSA form. 2004-07-14 13:36:29 +00:00
tree-dump.c tree.h (TYPE_BINFO_OFFSET, [...]): Remove. 2004-07-07 10:21:04 +00:00
tree-dump.h
tree-eh.c builtins.c (fold_builtin_fputs): Don't bother converting the return type to integer_type_node... 2004-07-11 18:14:48 +00:00
tree-flow-inline.h cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
tree-flow.h tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
tree-gimple.c tree-gimple.c (is_gimple_reg_rhs, [...]): New fns. 2004-07-14 14:16:48 -04:00
tree-gimple.h tree-gimple.c (is_gimple_reg_rhs, [...]): New fns. 2004-07-14 14:16:48 -04:00
tree-inline.c tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS regardless of DECL_LANG_SPECIFIC being present or not. 2004-07-07 22:03:43 +00:00
tree-inline.h c-decl.c (grokdeclarator): Don't frob current_function_decl around variable_size. 2004-07-02 17:15:50 -07:00
tree-into-ssa.c tree-ssa-loop-ch.c: New file. 2004-06-30 21:11:28 +00:00
tree-iterator.c
tree-iterator.h
tree-mudflap.c * Fix for g++/15861 2004-07-15 17:33:01 +00:00
tree-mudflap.h tree-mudflap.c: Include cgraph.h. 2004-07-05 18:12:47 +00:00
tree-nested.c tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro. 2004-07-05 12:39:15 -04:00
tree-nomudflap.c
tree-nrv.c
tree-optimize.c tree-optimize.c (execute_todo): Flush DUMP_FILE before verification. 2004-07-13 16:39:09 -04:00
tree-outof-ssa.c
tree-pass.h tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
tree-phinodes.c
tree-pretty-print.c Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h. 2004-07-16 17:55:47 +00:00
tree-profile.c
tree-scalar-evolution.c cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
tree-scalar-evolution.h cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
tree-sra.c re PR tree-optimization/16383 (internal compiler error: in generate_element_copy, at tree-sra.c:1466) 2004-07-11 10:41:52 -07:00
tree-ssa-alias.c re PR tree-optimization/16443 (ICE during linux kernel compilation) 2004-07-13 16:51:02 -04:00
tree-ssa-ccp.c builtins.c (fold_builtin_fputs): Don't bother converting the return type to integer_type_node... 2004-07-11 18:14:48 +00:00
tree-ssa-copy.c tree-flow-inline.h (may_propagate_copy): Move... 2004-07-07 13:16:00 -07:00
tree-ssa-copyrename.c
tree-ssa-dce.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-ssa-dom.c tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look through any value-preserving cast. 2004-07-07 17:03:08 -07:00
tree-ssa-dse.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-ssa-forwprop.c
tree-ssa-live.c
tree-ssa-live.h
tree-ssa-loop-ch.c tree-ssa-loop-ch.c: New file. 2004-06-30 21:11:28 +00:00
tree-ssa-loop-im.c tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
tree-ssa-loop-niter.c tree-scalar-evolution.c: New file. 2004-07-09 03:19:14 +00:00
tree-ssa-loop.c tree-ssa-loop-im.c: New file. 2004-07-10 04:57:58 +00:00
tree-ssa-operands.c tree-ssa-operands.c (get_expr_operands): Use a switch. 2004-07-15 19:26:47 -07:00
tree-ssa-operands.h tree-ssa-loop-ch.c: New file. 2004-06-30 21:11:28 +00:00
tree-ssa-phiopt.c
tree-ssa-pre.c tree-ssa-pre.c (init_pre): Connect infinite loops to exit. 2004-07-16 04:24:43 +00:00
tree-ssa.c re PR c/2511 (-pedantic not warning about bitfield overflow) 2004-07-08 09:45:05 +01:00
tree-ssanames.c
tree-tailcall.c re PR tree-optimization/16461 (ICE: expected ssa_name, have integer_cst in independent_of_stmt_p, at tree-tailcall.c:210) 2004-07-13 01:03:21 +00:00
tree-vn.c tree-ssa-pre.c (phi_trans_add): Use is_gimple_min_invariant to check for constants. 2004-06-30 07:06:28 -04:00
tree.c input.h: If USE_MAPPED_LOCATION... 2004-07-14 17:02:30 -07:00
tree.def except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
tree.h Makefile.in (OBJS-common): Add tree-data-ref.o. 2004-07-13 16:43:32 +00:00
tsystem.h
typeclass.h
unroll.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
unwind-c.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c Index: gcc/ChangeLog 2004-07-01 04:09:07 +00:00
unwind-dw2.h Index: gcc/ChangeLog 2004-07-01 04:09:07 +00:00
unwind-pe.h
unwind-sjlj.c
unwind.h
unwind.inc
value-prof.c
value-prof.h
var-tracking.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
varasm.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
varray.c
varray.h
vec.c * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument. 2004-07-09 20:58:00 +00:00
vec.h vec.h (VEC_address): New function. 2004-07-16 01:15:43 +00:00
version.c Daily bump. 2004-07-16 00:16:13 +00:00
version.h
vmsdbg.h
vmsdbgout.c
web.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
xcoff.h
xcoffout.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
xcoffout.h xcoffout.h (DBX_FINISH_SYMBOL): Fix typo. 2004-07-06 11:37:55 -04:00

README.Portability

Copyright (C) 2000, 2003 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 C90 standard, since that is
probably what most people code to naturally.  Obviously using
constructs introduced after that is not a good idea.

For the complete coding style conventions used in GCC, please read
http://gcc.gnu.org/codingconventions.html


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

Irix6 "cc -n32" and OSF4 "cc" have problems with constant string
initializers with parens around it, e.g.

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.

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.


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);


Trigraphs
---------

You weren't going to use them anyway, but some otherwise ISO C
compliant compilers do not accept trigraphs.


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

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 (int a, int b)
  {
    ...
  }

that function is expected to return int, *not* void.  GCC will warn
about this.

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

  void
  operate (int a, int 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.