gcc/gcc
Tobias Schlüter 6d1c50cce4 expr.c (gfc_check_assign): Add comment.
fortran/
* expr.c (gfc_check_assign): Add comment. Add new warning.
* trans-expr.c (gfc_conv_function_call): Correctly dereference
 result of pointer valued function when not in pointer assignment.

testsuite/
* gfortran.dg/assignment_1.f90: New test.

From-SVN: r86585
2004-08-26 00:07:32 +02:00
..
ada ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1. 2004-08-25 11:24:11 +00:00
config mips.md (reg): Renamed mode attribute from ccreg. 2004-08-25 19:35:05 +00:00
cp re PR middle-end/16693 (Bitwise AND is lost when used within a cast to an enum of the same precision) 2004-08-25 20:51:02 +00:00
doc install.texi: Document that libstdc++-v3 requires now automake 1.9.1. 2004-08-25 20:24:46 +00:00
fixinc Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
fortran expr.c (gfc_check_assign): Add comment. 2004-08-26 00:07:32 +02:00
ginclude
java tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
objc tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
po
testsuite expr.c (gfc_check_assign): Add comment. 2004-08-26 00:07:32 +02:00
treelang c-decl.c (c_init_decl_processing): Adjust build_common_tree_nodes call. 2004-08-24 16:39:43 +00:00
.cvsignore
ABOUT-GCC-NLS
aclocal.m4
alias.c alias.c (readonly_fields_p): Remove. 2004-08-18 11:32:04 -07:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
basic-block.h basic-block.h (BB_SET_PARTITION): Clear old value first. 2004-08-25 07:25:06 +00:00
bb-reorder.c Add more details to hot/cold partitioning comments and documentation. 2004-08-25 12:52:54 -07:00
bitmap.c
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
builtins.def
c-aux-info.c
c-common.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
c-common.def
c-common.h
c-config-lang.in
c-convert.c
c-cppbuiltin.c
c-decl.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
c-dump.c
c-errors.c
c-format.c
c-format.h
c-gimplify.c
c-incpath.c
c-incpath.h
c-lang.c
c-lex.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
c-objc-common.c
c-objc-common.h
c-opts.c
c-parse.in tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
c-pch.c
c-ppoutput.c
c-pragma.c
c-pragma.h
c-pretty-print.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
c-pretty-print.h
c-semantics.c
c-tree.h * c-tree.h (c_sizeof_nowarn): Remove. 2004-08-22 14:02:01 +01:00
c-typeck.c c-typeck.c (build_c_cast): In ObjC... 2004-08-25 20:38:53 +00:00
c.opt
caller-save.c
calls.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
cfg.c basic-block.h (BB_SET_PARTITION): Clear old value first. 2004-08-25 07:25:06 +00:00
cfganal.c basic-block.h (struct edge_def): Remove crossing_edge. 2004-08-19 00:32:41 +00:00
cfgbuild.c Add more details to hot/cold partitioning comments and documentation. 2004-08-25 12:52:54 -07:00
cfgcleanup.c Add more details to hot/cold partitioning comments and documentation. 2004-08-25 12:52:54 -07:00
cfgexpand.c re PR middle-end/17075 (miscompilation with tail calls in cfgexpand) 2004-08-22 17:02:55 -07:00
cfghooks.c
cfghooks.h
cfglayout.c Add more details to hot/cold partitioning comments and documentation. 2004-08-25 12:52:54 -07:00
cfglayout.h
cfgloop.c tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
cfgloop.h cfglayout.c (duplicate_insn_chain): Remove references to NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT. 2004-08-25 08:20:11 +00:00
cfgloopanal.c
cfgloopmanip.c tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
cfgrtl.c Add more details to hot/cold partitioning comments and documentation. 2004-08-25 12:52:54 -07:00
cgraph.c
cgraph.h
cgraphunit.c
ChangeLog tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +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
ChangeLog.lib
ChangeLog.tree-ssa
collect2.c Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
collect2.h Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
combine.c ppro.md (ppro_complex_insn): Add missing check for cpu==pentiumpro. 2004-08-22 16:26:03 +00:00
common.opt tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
conditions.h
config.build
config.gcc PR libstdc++/17005 (fix for HP-UX 11.11) 2004-08-25 17:49:58 +00:00
config.host
config.in linux64.h (DOT_SYMBOLS): Define. 2004-08-21 11:10:00 +09:30
configure linux64.h (DOT_SYMBOLS): Define. 2004-08-21 11:10:00 +09:30
configure.ac linux64.h (DOT_SYMBOLS): Define. 2004-08-21 11:10:00 +09:30
conflict.c
convert.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
convert.h
COPYING
COPYING.LIB
coretypes.h
coverage.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c cse.c (cse_around_loop, [...]): Remove. 2004-08-25 12:31:01 +00:00
cselib.c Makefile.in (OBJS-common): Add postreload-gcse.c. 2004-08-18 20:53:59 +00:00
cselib.h
cstamp-h.in
dbxout.c
dbxout.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h flags.h (enum debug_info_type): Remove DWARF_DEBUG. 2004-08-25 07:34:54 +00:00
df.c
df.h
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c dojump.c (do_jump <unordered_bcc>): Do not recursively call self with a TRUTH_ORIF_EXPR... 2004-08-18 16:39:40 +00:00
dominance.c
domwalk.c
domwalk.h
dummy-conditions.c
dwarf2.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c re PR debug/14492 (loc_descriptor_from_tree, in dwarf2out.c:9031) 2004-08-24 02:10:12 +00:00
dwarf2out.h
dwarf.h
emit-rtl.c emit-rtl.c (gen_const_mem): New. 2004-08-18 14:08:35 -07:00
emit-rtl.h
errors.c Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
errors.h Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
et-forest.c
et-forest.h
except.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
except.h
explow.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
expmed.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
expr.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
expr.h rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
final.c cfglayout.c (duplicate_insn_chain): Remove references to NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT. 2004-08-25 08:20:11 +00:00
fix-header.c Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
fixproto
flags.h flags.h (enum debug_info_type): Remove DWARF_DEBUG. 2004-08-25 07:34:54 +00:00
flow.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
fold-const.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
function.h
gbl-ctors.h
gcc.c Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
gcc.h Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
gccbug.in
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c Makefile.in (BUILD_ERRORS): Set to build-errors. 2004-08-23 11:57:02 +00:00
gcse.c Makefile.in (OBJS-common): Add postreload-gcse.c. 2004-08-18 20:53:59 +00:00
gdbinit.in
gen-protos.c
genattr.c
genattrtab.c
genattrtab.h
genautomata.c
gencheck.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-yacc.y
gengtype.c rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE. 2004-08-24 17:00:54 +00:00
gengtype.h
genmodes.c
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c
gensupport.h
ggc-common.c
ggc-none.c
ggc-page.c
ggc-zone.c ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE. 2004-08-24 00:46:11 +00:00
ggc.h
gimple-low.c
gimplify.c gimplify.c (lookup_tmp_var): Separate temporaries when not optimizing. 2004-08-25 18:11:12 +00:00
glimits.h
global.c
gmon.c
graph.c
graph.h
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-gnat.c
gthr-gnat.h
gthr-lynx.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
hard-reg-set.h
hooks.c defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. 2004-08-24 00:30:52 +00:00
hooks.h defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. 2004-08-24 00:30:52 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c Add more details to hot/cold partitioning comments and documentation. 2004-08-25 12:52:54 -07:00
input.h
insn-addr.h
insn-notes.def cfglayout.c (duplicate_insn_chain): Remove references to NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT. 2004-08-25 08:20:11 +00:00
integrate.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
integrate.h
intl.c
intl.h
jump.c cfglayout.c (duplicate_insn_chain): Remove references to NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT. 2004-08-25 08:20:11 +00:00
lambda-mat.c
lambda.h
langhooks-def.h langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove. 2004-08-19 21:34:37 +00:00
langhooks.c
langhooks.h langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove. 2004-08-19 21:34:37 +00:00
LANGUAGES
lcm.c
libada-mk.in
libfuncs.h
libgcc2.c
libgcc2.h
libgcc-darwin.ver
libgcc-std.ver
libgcov.c
limitx.h
limity.h
lists.c
local-alloc.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
longlong.h
loop-doloop.c
loop-init.c
loop-invariant.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
loop-iv.c rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
loop-unroll.c
loop-unswitch.c
loop.c cfglayout.c (duplicate_insn_chain): Remove references to NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT. 2004-08-25 08:20:11 +00:00
loop.h
machmode.def
machmode.h
main.c
Makefile.in Fix linux make profiledbootstrap. 2004-08-24 14:38:35 -07:00
mips-tdump.c
mips-tfile.c Makefile.in (PROTO_OBJS): Add errors.o. 2004-08-24 08:52:38 +00:00
mkconfig.sh
mkheaders.in
mklibgcc.in
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
modulo-sched.c basic-block.h (struct basic_block_def): Reorder fields to eliminate interior padding. 2004-08-24 16:46:32 +00:00
ONEWS
opt-functions.awk
opt-gather.awk
optabs.c defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove. 2004-08-19 22:24:56 +00:00
optabs.h
optc-gen.awk
opth-gen.awk
opts.c flags.h (enum debug_info_type): Remove DWARF_DEBUG. 2004-08-25 07:34:54 +00:00
opts.h
output.h Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
params.c
params.def tree.h (TYPE_CACHED_VALUES_P): New. 2004-08-19 10:36:07 +00:00
params.h tree.h (TYPE_CACHED_VALUES_P): New. 2004-08-19 10:36:07 +00:00
passes.c Add more details to hot/cold partitioning comments and documentation. 2004-08-25 12:52:54 -07:00
postreload-gcse.c Makefile.in (OBJS-common): Add postreload-gcse.c. 2004-08-18 20:53:59 +00:00
postreload.c postreload.c (reload_cse_move2add): Allow any condjump... 2004-08-20 09:59:34 +00:00
predict.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c Makefile.in (BUILD_PREFIX, [...]): Delete. 2004-08-16 23:05:04 +00:00
print-tree.c c-common.c (handle_used_attribute): Set DECL_PRESERVE_P. 2004-08-16 13:54:43 -07:00
profile.c
protoize.c Makefile.in (PROTO_OBJS): Add errors.o. 2004-08-24 08:52:38 +00:00
ra-build.c
ra-colorize.c
ra-debug.c
ra-rewrite.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
ra.c
ra.h
read-rtl.c read-rtl.c (map_value, [...]): New structures. 2004-08-23 05:55:50 +00:00
README-fixinc
README.Portability
real.c
real.h
recog.c
recog.h
reg-notes.def Fix typo reported by Kai Henningsen. 2004-08-23 22:14:07 -07:00
reg-stack.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
regclass.c * regclass.c (globalize_reg): Update call_really_used_regs. 2004-08-19 15:04:24 +01:00
regmove.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
regrename.c regrename.c (kill_value_regno): ANSIfy. 2004-08-20 12:37:10 -07:00
regs.h
reload1.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
reload.c reload.c (find_reloads_address): Make return value tri-state. 2004-08-22 22:09:12 +00:00
reload.h
reorg.c cfglayout.c (duplicate_insn_chain): Remove references to NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT. 2004-08-25 08:20:11 +00:00
resource.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
resource.h
rtl-error.c
rtl-profile.c
rtl.c insn-notes.def, [...]: New files. 2004-08-18 22:31:03 +00:00
rtl.def rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE. 2004-08-24 17:00:54 +00:00
rtl.h cse.c (cse_around_loop, [...]): Remove. 2004-08-25 12:31:01 +00:00
rtlanal.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
rtlhooks-def.h
rtlhooks.c
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c
sched-ebb.c
sched-int.h
sched-rgn.c basic-block.h (struct basic_block_def): Reorder fields to eliminate interior padding. 2004-08-24 16:46:32 +00:00
sched-vis.c
sdbout.c
sdbout.h
SERVICE
simplify-rtx.c
sort-protos
sreal.c
sreal.h
stab.def
stack.h
statistics.h
stmt.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
stor-layout.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
stringpool.c
stub-objc.c
sys-protos.h
sys-types.h
system.h defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. 2004-08-24 00:30:52 +00:00
target-def.h defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. 2004-08-24 00:30:52 +00:00
target.h defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. 2004-08-24 00:30:52 +00:00
targhooks.c Patch to fix -mcpu=G5 interface to EH runtime library. 2004-08-16 20:08:31 +00:00
targhooks.h Patch to fix -mcpu=G5 interface to EH runtime library. 2004-08-16 20:08:31 +00:00
timevar.c
timevar.def tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
timevar.h
tlink.c tlink.c (initial_cwd): New variable. 2004-08-25 20:51:19 +00:00
toplev.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
toplev.h Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
tracer.c
tree-alias-ander.c
tree-alias-ander.h
tree-alias-common.c
tree-alias-common.h
tree-alias-type.c
tree-alias-type.h
tree-browser.c
tree-browser.def
tree-cfg.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-chrec.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-chrec.h tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-complex.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-data-ref.c tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
tree-data-ref.h tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
tree-dfa.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-dump.c
tree-dump.h
tree-eh.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-flow-inline.h tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-flow.h tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
tree-gimple.c tree.h (struct tree_decl): Add gimple_formal_temp. 2004-08-18 00:46:33 -07:00
tree-gimple.h rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
tree-inline.c langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove. 2004-08-19 21:34:37 +00:00
tree-inline.h
tree-into-ssa.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-iterator.c
tree-iterator.h
tree-mudflap.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-mudflap.h
tree-nested.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-nomudflap.c
tree-nrv.c
tree-optimize.c tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
tree-outof-ssa.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-pass.h tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
tree-phinodes.c
tree-pretty-print.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-profile.c
tree-scalar-evolution.c tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
tree-scalar-evolution.h
tree-sra.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-alias.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-ccp.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-copy.c langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove. 2004-08-19 21:34:37 +00:00
tree-ssa-copyrename.c tree.h (struct tree_decl): Add gimple_formal_temp. 2004-08-18 00:46:33 -07:00
tree-ssa-dce.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-dom.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-dse.c
tree-ssa-forwprop.c
tree-ssa-live.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-loop-ivcanon.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-ssa-loop-manip.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-loop-niter.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree-ssa-loop.c tree-ssa-loop-ivcanon.c: New file. 2004-08-24 20:48:23 +00:00
tree-ssa-operands.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-operands.h tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssa-phiopt.c tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
tree-ssa-pre.c re PR tree-optimization/17111 (tree check ICE in value_insert_into_set_bitmap on inlining a memcmp-like function) 2004-08-20 16:48:00 +00:00
tree-ssa-threadupdate.c re PR middle-end/17044 (libgcc2.c:169: internal compiler error: Segmentation fault) 2004-08-24 20:59:34 +00:00
tree-ssa.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-ssanames.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-tailcall.c
tree-vectorizer.c tree-ssa-operands.h (struct ssa_operand_iterator_d): New. 2004-08-25 21:21:19 +00:00
tree-vectorizer.h tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
tree-vn.c
tree.c tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tree.def tree.h (TYPE_CACHED_VALUES_P): New. 2004-08-19 10:36:07 +00:00
tree.h tree.h (build_int_cst): New, sign extended constant. 2004-08-25 09:52:54 +00:00
tsystem.h
typeclass.h
unroll.c cfglayout.c (duplicate_insn_chain): Remove references to NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT. 2004-08-25 08:20:11 +00:00
unwind-c.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen to eliminate warning. 2004-08-19 21:41:32 +00:00
unwind-dw2-fde.h
unwind-dw2.c unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen to eliminate warning. 2004-08-19 21:41:32 +00:00
unwind-dw2.h
unwind-pe.h
unwind-sjlj.c
unwind.h
unwind.inc
value-prof.c
value-prof.h
var-tracking.c
varasm.c varasm.c (ecode_reg_name): Do nothing if the asmspec is empty. 2004-08-18 23:16:37 -07:00
varray.c Makefile.in (BUILD_PREFIX, [...]): Delete. 2004-08-16 23:05:04 +00:00
varray.h
vec.c
vec.h vec.h (VEC_lower_bound): New macro. 2004-08-19 19:24:58 +00:00
version.c Daily bump. 2004-08-25 00:16:16 +00:00
version.h
vmsdbg.h
vmsdbgout.c
web.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
xcoff.h
xcoffout.c
xcoffout.h

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.