gcc/gcc
Bryce McKinlay 260ba9ce68 class.c (make_local_function_alias): New function.
2004-08-18  Bryce McKinlay  <mckinlay@redhat.com>

	* class.c (make_local_function_alias): New function. Create local
	alias for public method DECL.
	(make_method_value): Use make_local_function_alias.
	* parse.y (craft_constructor): Don't special-case anonymous classes.
	Always set ctor_name to init_identifier_node.
	(lookup_method_invoke): Call layout_class_method when creating
	anonymous class constructor.

From-SVN: r86196
2004-08-18 18:57:03 +01:00
..
ada cuintp.c (UI_To_gnu): Be more conservative with build_int_cst call.s 2004-08-16 16:41:31 +00:00
config sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers from call_used_regs. 2004-08-18 18:44:28 +01:00
cp re PR c++/16246 (Incorrect template argument deduction) 2004-08-18 02:55:14 +00:00
doc rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
fixinc inclhack.def (stdio_va_list): Also fix com_err.h... 2004-08-14 21:52:08 +00:00
fortran * trans-types.c (gfc_sym_type): Use pointer types for optional args. 2004-08-18 13:08:08 +00:00
ginclude
java class.c (make_local_function_alias): New function. 2004-08-18 18:57:03 +01:00
objc objc-act.c (build_protocol_initializer): Fix build_int_cst usage. 2004-08-17 15:42:55 +00:00
po
testsuite tree.h (struct tree_decl): Add gimple_formal_temp. 2004-08-18 00:46:33 -07:00
treelang tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
.cvsignore
ABOUT-GCC-NLS
aclocal.m4 aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset... 2004-08-03 20:33:23 +00:00
alias.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
basic-block.h basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
bb-reorder.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
bitmap.c
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
builtins.def builtins.def (BUILT_IN_STACK_ALLOC): Remove. 2004-08-10 21:16:07 -07:00
c-aux-info.c
c-common.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
c-common.def
c-common.h c-common.h (STATEMENT_LIST_HAS_LABEL): New. 2004-08-11 21:09:57 -07:00
c-config-lang.in
c-convert.c
c-cppbuiltin.c c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and __UINTMAX_TYPE__. 2004-08-05 01:38:31 +01:00
c-decl.c c-decl.c (grokdeclarator): Allow for function definition where innermost declarator has attributes. 2004-08-16 21:35:21 +01:00
c-dump.c
c-errors.c
c-format.c
c-format.h
c-gimplify.c c-common.c (shorten_compare, [...]): Replace calls to build with calls to buildN. 2004-08-15 02:24:41 +00:00
c-incpath.c
c-incpath.h
c-lang.c Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h. 2004-08-15 21:47:32 +00:00
c-lex.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
c-objc-common.c Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h. 2004-08-15 21:47:32 +00:00
c-objc-common.h Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h. 2004-08-15 21:47:32 +00:00
c-opts.c re PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings) 2004-08-06 11:23:23 +00:00
c-parse.in tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
c-pch.c c-common.h (lang_post_pch_load): New variable. 2004-07-29 17:59:31 +00:00
c-ppoutput.c
c-pragma.c
c-pragma.h
c-pretty-print.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
c-pretty-print.h
c-semantics.c c-common.h (STATEMENT_LIST_HAS_LABEL): New. 2004-08-11 21:09:57 -07:00
c-tree.h
c-typeck.c Make unsafe vector float optimizations dependent on -ffast-math. 2004-08-16 17:00:50 -07:00
c.opt re PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings) 2004-08-06 11:23:23 +00:00
caller-save.c
calls.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
cfg.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
cfganal.c
cfgbuild.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
cfgcleanup.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
cfgexpand.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
cfghooks.c
cfghooks.h
cfglayout.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
cfglayout.h
cfgloop.c cfgloop.c (update_latch_info): Update dominator of the new block. 2004-07-29 17:47:31 +00:00
cfgloop.h rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
cfgloopanal.c
cfgloopmanip.c
cfgrtl.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
cgraph.c
cgraph.h
cgraphunit.c c-common.h (lang_post_pch_load): New variable. 2004-07-29 17:59:31 +00:00
ChangeLog sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers from call_used_regs. 2004-08-18 18:44:28 +01: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
collect2.h
combine.c rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
common.opt tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
conditions.h
config.build
config.gcc configure.in (arm*-*-eabi*): New target. 2004-08-11 02:50:14 +00:00
config.host
config.in
configure Makefile.in: Regenerate. 2004-08-17 07:27:16 +00:00
configure.ac Makefile.in: Regenerate. 2004-08-17 07:27:16 +00:00
conflict.c
convert.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
convert.h
COPYING
COPYING.LIB
coretypes.h tree.h (enum tls_model): Move ... 2004-07-28 23:36:41 +00:00
coverage.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
cselib.c
cselib.h
cstamp-h.in
dbxout.c dbxout.c (NO_DBX_FUNCTION_END): Default to zero. 2004-08-13 13:15:33 -07:00
dbxout.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07: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 cfgloop.c (update_latch_info): Update dominator of the new block. 2004-07-29 17:47:31 +00:00
domwalk.c
domwalk.h
dummy-conditions.c genpreds.c: Add capability to generate predicate bodies as well as function prototypes. 2004-08-12 07:49:00 +00:00
dwarf2.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh frame info. 2004-08-12 13:45:44 +00:00
dwarf2out.h
dwarf.h
emit-rtl.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
emit-rtl.h
errors.c Makefile.in (RTL_BASE_H, RTL_H): Correct. 2004-08-04 20:55:08 +00:00
errors.h
et-forest.c
et-forest.h
except.c Patch to fix -mcpu=G5 interface to EH runtime library. 2004-08-16 20:08:31 +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 Makefile.in: Regenerate. 2004-08-17 07:27:16 +00:00
expr.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
expr.h rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
final.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
fix-header.c
fixproto
flags.h
flow.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
fold-const.c re PR middle-end/17036 (ICE: (A >> N) & 1 ? (1 << N) : 0 where A of type unsigned int) 2004-08-17 07:40:22 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
function.h Makefile.in (GTFILES): Remove stmt.c 2004-08-09 07:14:17 +00:00
gbl-ctors.h
gcc.c gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii" Objective-C++ extensions. 2004-08-18 01:58:13 +00:00
gcc.h
gccbug.in
gccspec.c
gcov-dump.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcov-io.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcov-io.h gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcov-iov.c
gcov.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcse.c timevar.def (TV_CPROP1, [...]): New timers. 2004-08-09 16:58:42 +00:00
gdbinit.in * gdbinit.in: Reflect previous changes to rtunion_def. 2004-08-02 19:36:57 +00:00
gen-protos.c
genattr.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genattrtab.c genattrtab.c (insn_ent): Replace insn_code... 2004-08-13 16:43:04 +00:00
genattrtab.h
genautomata.c
gencheck.c
gencodes.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genconditions.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genconfig.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genconstants.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genemit.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genextract.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genflags.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
gengenrtl.c
gengtype-lex.l
gengtype-yacc.y
gengtype.c gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii" Objective-C++ extensions. 2004-08-18 01:58:13 +00:00
gengtype.h gengtype.h (options::info): Change type to const char *. 2004-08-02 12:48:49 +00:00
genmodes.c
genmultilib
genopinit.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genoutput.c genattrtab.c (insn_ent): Replace insn_code... 2004-08-13 16:43:04 +00:00
genpeep.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genpreds.c Makefile.in (insn-preds.o): Depend on TREE_H. 2004-08-13 12:11:35 -07:00
genrecog.c genattrtab.c (insn_ent): Replace insn_code... 2004-08-13 16:43:04 +00:00
gensupport.c genpreds.c: Add capability to generate predicate bodies as well as function prototypes. 2004-08-12 07:49:00 +00:00
gensupport.h genpreds.c: Add capability to generate predicate bodies as well as function prototypes. 2004-08-12 07:49:00 +00:00
ggc-common.c ggc-common.c (ggc_rlimit_bound): Don't check RSS limit. 2004-08-09 20:19:30 +00:00
ggc-none.c Makefile.in (RTL_BASE_H, RTL_H): Correct. 2004-08-04 20:55:08 +00:00
ggc-page.c
ggc-zone.c ggc-zone.c (struct alloc_zone): Add statistics counters. 2004-08-09 23:11:08 +00:00
ggc.h
gimple-low.c
gimplify.c tree.h (struct tree_decl): Add gimple_formal_temp. 2004-08-18 00:46:33 -07: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.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
gthr-gnat.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
gthr-lynx.h config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0. 2004-08-05 04:55:37 +00:00
gthr-posix.c
gthr-posix.h
gthr-rtems.h
gthr-single.h
gthr-solaris.h
gthr-vxworks.h
gthr-win32.h
gthr.h configure.in (arm*-*-eabi*): New target. 2004-08-11 02:50:14 +00:00
haifa-sched.c
hard-reg-set.h
hooks.c c-common.c (handle_used_attribute): Set DECL_PRESERVE_P. 2004-08-16 13:54:43 -07:00
hooks.h c-common.c (handle_used_attribute): Set DECL_PRESERVE_P. 2004-08-16 13:54:43 -07:00
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
input.h
insn-addr.h
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
lambda-mat.c lambda.h: Add matrix type, and prototypes for remainder of matrix and vector functions. 2004-08-10 20:43:05 +00:00
lambda.h lambda.h: Add matrix type, and prototypes for remainder of matrix and vector functions. 2004-08-10 20:43:05 +00:00
langhooks-def.h c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
langhooks.c c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
langhooks.h libiberty.h (XDELETE, [...]): Remove any const-qualification before disposal. 2004-08-02 16:45:52 +00:00
LANGUAGES
lcm.c
libada-mk.in
libfuncs.h
libgcc2.c gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
libgcc2.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
libgcc-darwin.ver
libgcc-std.ver
libgcov.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
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 expr.h (canonicalize_condition, [...]): Add an int argument. 2004-07-27 07:27:12 +00:00
loop.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
loop.h
machmode.def
machmode.h
main.c
Makefile.in Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkheaders.in re PR other/16842 (mkheaders can not find mkheaders.conf) 2004-07-31 17:44:43 -07:00
mklibgcc.in
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
modulo-sched.c common.opt (freschedule-modulo-scheduled-loops): New flag. 2004-08-08 21:35:53 +00:00
ONEWS
opt-functions.awk
opt-gather.awk
optabs.c Makefile.in: Regenerate. 2004-08-17 07:27:16 +00:00
optabs.h configure.in (arm*-*-eabi*): New target. 2004-08-11 02:50:14 +00:00
optc-gen.awk
opth-gen.awk
opts.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
opts.h
output.h Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
params.c
params.def params.def (PARAM_MIN_CROSSJUMP_INSNS): New. 2004-08-06 13:20:53 -04:00
params.h
passes.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
postreload.c rtl.def (NIL): Delete. 2004-08-18 17:05:14 +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 basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
protoize.c
ra-build.c ra-build.c (conflicts_between_webs): For webs that cross a call add conflicts to regs_invalidated_by_call. 2004-08-03 11:00:49 -04:00
ra-colorize.c ra.h (single_reg_in_regclass): Declare. 2004-07-29 10:49:22 -04:00
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 (single_reg_in_regclass): Declare. 2004-07-29 10:49:22 -04:00
ra.h ra.h (single_reg_in_regclass): Declare. 2004-07-29 10:49:22 -04:00
read-rtl.c rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
README-fixinc
README.Portability
real.c
real.h
recog.c explow.c (memory_address): Use memory_address_p. 2004-08-09 17:43:17 +00:00
recog.h genpreds.c: Add capability to generate predicate bodies as well as function prototypes. 2004-08-12 07:49:00 +00:00
reg-stack.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -07:00
regclass.c regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to ensure that call_used_regs is a superset of... 2004-08-17 13:29:04 +00:00
regmove.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
regrename.c explow.c (memory_address): Use memory_address_p. 2004-08-09 17:43:17 +00:00
regs.h
reload1.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
reload.c rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
reload.h
reorg.c
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 Makefile.in (BUILD_PREFIX, [...]): Delete. 2004-08-16 23:05:04 +00:00
rtl.def rtl.def (NIL): Delete. 2004-08-18 17:05:14 +00:00
rtl.h rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07: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 common.opt (freschedule-modulo-scheduled-loops): New flag. 2004-08-08 21:35:53 +00:00
sched-vis.c
sdbout.c
sdbout.h
SERVICE
simplify-rtx.c cfgexpand.c (tree_expand_cfg): Fix comment. 2004-07-27 19:09:32 +00:00
sort-protos
sreal.c
sreal.h
stab.def dbxout.c (dbxout_begin_prologue): New function. 2004-08-12 14:32:56 -07:00
stack.h
statistics.h
stmt.c rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
stor-layout.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
stringpool.c
stub-objc.c
sys-protos.h
sys-types.h
system.h
target-def.h target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove extraneous semicolon. 2004-08-16 14:53:21 -07:00
target.h c-common.c (handle_used_attribute): Set DECL_PRESERVE_P. 2004-08-16 13:54:43 -07: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-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
timevar.h
tlink.c c-common.h (lang_post_pch_load): New variable. 2004-07-29 17:59:31 +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-cfg.c (bsi_insert_before, [...]): Call modify_stmt after linking stmt into the program. 2004-08-10 18:31:26 +00:00
tree-chrec.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-chrec.h tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-complex.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +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 re PR tree-optimization/16867 (Inline array initializer miscompilation at -O) 2004-08-12 10:34:11 -04:00
tree-dump.c
tree-dump.h
tree-eh.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-flow-inline.h re PR tree-optimization/16867 (Inline array initializer miscompilation at -O) 2004-08-12 10:34:11 -04:00
tree-flow.h tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +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 Make return in memory explicit. 2004-08-07 13:40:10 -04:00
tree-inline.h re PR tree-optimization/15077 (ICE in make_decl_rtl when inlining tail recursive nested function) 2004-07-27 22:27:20 -04:00
tree-into-ssa.c tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions. 2004-08-04 14:37:38 -06:00
tree-iterator.c
tree-iterator.h
tree-mudflap.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-mudflap.h
tree-nested.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-nomudflap.c
tree-nrv.c
tree-optimize.c tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
tree-outof-ssa.c tree-cfg.c (bsi_insert_before, [...]): Call modify_stmt after linking stmt into the program. 2004-08-10 18:31:26 +00:00
tree-pass.h tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
tree-phinodes.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-pretty-print.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-profile.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
tree-scalar-evolution.c
tree-scalar-evolution.h
tree-sra.c re PR tree-optimization/17051 (ICE: internal compiler error: verify_ssa failed.for SSA_NAME: l_addr<D8610>_650) 2004-08-17 16:33:46 -07:00
tree-ssa-alias.c re PR tree-optimization/16867 (Inline array initializer miscompilation at -O) 2004-08-12 10:34:11 -04:00
tree-ssa-ccp.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-ssa-copy.c tree-ssa-alias.c (create_name_tags): Ignore pointers that don't have PT_VARS nor PT_MALLOC set. 2004-07-27 11:32:47 -04: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 re PR tree-optimization/16867 (Inline array initializer miscompilation at -O) 2004-08-12 10:34:11 -04:00
tree-ssa-dom.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-ssa-dse.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-forwprop.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-live.c tree.h (struct tree_decl): Add gimple_formal_temp. 2004-08-18 00:46:33 -07:00
tree-ssa-live.h Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-ssa-loop-ch.c tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions. 2004-08-04 14:37:38 -06:00
tree-ssa-loop-im.c tree-cfg.c (bsi_insert_before, [...]): Call modify_stmt after linking stmt into the program. 2004-08-10 18:31:26 +00:00
tree-ssa-loop-manip.c tree-ssa-loop-manip.c: New file. 2004-08-05 21:33:21 +00:00
tree-ssa-loop-niter.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree-ssa-loop.c tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +00:00
tree-ssa-operands.c re PR tree-optimization/16867 (Inline array initializer miscompilation at -O) 2004-08-12 10:34:11 -04:00
tree-ssa-operands.h tree-flow-inline.h (get_def_ops, [...]): Add operand structure reference. 2004-08-11 17:50:47 +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 tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-threadupdate.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-ssa.c tree-cfg.c (bsi_insert_before, [...]): Call modify_stmt after linking stmt into the program. 2004-08-10 18:31:26 +00:00
tree-ssanames.c tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions. 2004-08-04 14:37:38 -06:00
tree-tailcall.c * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL. 2004-08-10 20:56:58 -07:00
tree-vectorizer.c tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees. 2004-08-17 16:17:14 +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-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the hash function. 2004-08-10 17:57:41 +00:00
tree.c tree.h (build_int_cst): New. 2004-08-15 15:45:33 +00:00
tree.def expr.c (expand_expr_real_1): Remove. 2004-08-06 10:40:35 +00:00
tree.h rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. 2004-08-18 01:25:01 -07:00
tsystem.h
typeclass.h
unroll.c
unwind-c.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
unwind-dw2.c unwind-dw2.c (uw_install_context_1): Update target saved stack pointer. 2004-08-09 20:31:41 +00:00
unwind-dw2.h
unwind-pe.h
unwind-sjlj.c
unwind.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
unwind.inc
value-prof.c
value-prof.h
var-tracking.c
varasm.c Hot/cold partitioning update patch. 2004-08-18 09:22:08 -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: Comment improvements. 2004-08-15 20:00:28 +10:00
version.c Daily bump. 2004-08-18 00:16:20 +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.