2001-01-23 23:29:30 +01:00
|
|
|
/* Definitions of various defaults for tm.h macros.
|
alias.c, [...]: Update copyright.
* alias.c, basic-block.h, c-common.c, c-common.h,
c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
genautomata.c, genconditions.c, genemit.c, genflags.c,
gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
unwind.h, varray.c, varray.h: Update copyright.
From-SVN: r76302
2004-01-21 21:40:04 +01:00
|
|
|
Copyright (C) 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
Free Software Foundation, Inc.
|
1996-03-24 00:25:04 +01:00
|
|
|
Contributed by Ron Guilmette (rfg@monkeys.com)
|
1992-04-25 03:51:02 +02:00
|
|
|
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
This file is part of GCC.
|
1992-04-25 03:51:02 +02:00
|
|
|
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
GCC is free software; you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU General Public License as published by the Free
|
|
|
|
Software Foundation; either version 2, or (at your option) any later
|
|
|
|
version.
|
1992-04-25 03:51:02 +02:00
|
|
|
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
for more details.
|
1992-04-25 03:51:02 +02:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
along with GCC; see the file COPYING. If not, write to the Free
|
|
|
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
02111-1307, USA. */
|
1992-04-25 03:51:02 +02:00
|
|
|
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
#ifndef GCC_DEFAULTS_H
|
|
|
|
#define GCC_DEFAULTS_H
|
|
|
|
|
2002-07-21 23:59:03 +02:00
|
|
|
#ifndef GET_ENVIRONMENT
|
|
|
|
#define GET_ENVIRONMENT(VALUE, NAME) do { (VALUE) = getenv (NAME); } while (0)
|
|
|
|
#endif
|
|
|
|
|
2003-04-06 23:44:09 +02:00
|
|
|
#define obstack_chunk_alloc ((void *(*) (long)) xmalloc)
|
|
|
|
#define obstack_chunk_free ((void (*) (void *)) free)
|
|
|
|
#define OBSTACK_CHUNK_SIZE 0
|
|
|
|
#define gcc_obstack_init(OBSTACK) \
|
|
|
|
_obstack_begin ((OBSTACK), OBSTACK_CHUNK_SIZE, 0, \
|
|
|
|
obstack_chunk_alloc, \
|
|
|
|
obstack_chunk_free)
|
defaults.h (obstack_chunk_alloc, [...]): Default definition.
* defaults.h (obstack_chunk_alloc, obstack_chunk_free):
Default definition.
* gcse.c: Don't define obstack_chunk_free.
* collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
Don't define obstack macros.
cp:
* class.c, method.c, pt.c, search.c: Similarly.
From-SVN: r55665
2002-07-23 08:22:05 +02:00
|
|
|
|
2001-06-26 08:36:44 +02:00
|
|
|
/* Define default standard character escape sequences. */
|
|
|
|
#ifndef TARGET_BELL
|
|
|
|
# define TARGET_BELL 007
|
|
|
|
# define TARGET_BS 010
|
|
|
|
# define TARGET_CR 015
|
2004-04-14 16:32:55 +02:00
|
|
|
# define TARGET_DIGIT0 060
|
2001-06-27 08:55:29 +02:00
|
|
|
# define TARGET_ESC 033
|
2004-04-14 16:32:55 +02:00
|
|
|
# define TARGET_FF 014
|
|
|
|
# define TARGET_NEWLINE 012
|
|
|
|
# define TARGET_TAB 011
|
|
|
|
# define TARGET_VT 013
|
2001-06-26 08:36:44 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-16 19:23:00 +01:00
|
|
|
/* Store in OUTPUT a string (made with alloca) containing an
|
|
|
|
assembler-name for a local static variable or function named NAME.
|
1992-07-04 05:16:03 +02:00
|
|
|
LABELNO is an integer which is different for each call. */
|
|
|
|
|
2002-12-16 19:23:00 +01:00
|
|
|
#ifndef ASM_PN_FORMAT
|
|
|
|
# ifndef NO_DOT_IN_LABEL
|
|
|
|
# define ASM_PN_FORMAT "%s.%lu"
|
|
|
|
# else
|
|
|
|
# ifndef NO_DOLLAR_IN_LABEL
|
|
|
|
# define ASM_PN_FORMAT "%s$%lu"
|
|
|
|
# else
|
|
|
|
# define ASM_PN_FORMAT "__%s_%lu"
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif /* ! ASM_PN_FORMAT */
|
|
|
|
|
1992-07-04 05:16:03 +02:00
|
|
|
#ifndef ASM_FORMAT_PRIVATE_NAME
|
2002-12-16 19:23:00 +01:00
|
|
|
# define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
|
|
|
|
do { const char *const name_ = (NAME); \
|
2004-07-26 00:17:02 +02:00
|
|
|
char *const output_ = (OUTPUT) = \
|
|
|
|
(char *) alloca (strlen (name_) + 32); \
|
2002-12-16 19:23:00 +01:00
|
|
|
sprintf (output_, ASM_PN_FORMAT, name_, (unsigned long)(LABELNO)); \
|
1992-07-04 05:16:03 +02:00
|
|
|
} while (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* This is how to output an element of a case-vector that is absolute.
|
|
|
|
Some targets don't use this, but we have to define it anyway. */
|
|
|
|
|
|
|
|
#ifndef ASM_OUTPUT_ADDR_VEC_ELT
|
|
|
|
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
|
2004-01-18 22:25:06 +01:00
|
|
|
do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
|
2002-12-16 19:23:00 +01:00
|
|
|
(*targetm.asm_out.internal_label) (FILE, "L", (VALUE)); \
|
1992-07-04 05:16:03 +02:00
|
|
|
fputc ('\n', FILE); \
|
|
|
|
} while (0)
|
|
|
|
#endif
|
|
|
|
|
2004-01-16 02:44:06 +01:00
|
|
|
/* Choose a reasonable default for ASM_OUTPUT_ASCII. */
|
1992-04-25 03:51:02 +02:00
|
|
|
|
|
|
|
#ifndef ASM_OUTPUT_ASCII
|
|
|
|
#define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
|
|
|
|
do { \
|
|
|
|
FILE *_hide_asm_out_file = (MYFILE); \
|
2000-02-22 00:27:01 +01:00
|
|
|
const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \
|
1992-04-25 03:51:02 +02:00
|
|
|
int _hide_thissize = (MYLENGTH); \
|
|
|
|
{ \
|
|
|
|
FILE *asm_out_file = _hide_asm_out_file; \
|
2000-02-22 00:27:01 +01:00
|
|
|
const unsigned char *p = _hide_p; \
|
1992-04-25 03:51:02 +02:00
|
|
|
int thissize = _hide_thissize; \
|
|
|
|
int i; \
|
|
|
|
fprintf (asm_out_file, "\t.ascii \""); \
|
|
|
|
\
|
|
|
|
for (i = 0; i < thissize; i++) \
|
|
|
|
{ \
|
2001-10-11 05:16:15 +02:00
|
|
|
int c = p[i]; \
|
1992-04-25 03:51:02 +02:00
|
|
|
if (c == '\"' || c == '\\') \
|
|
|
|
putc ('\\', asm_out_file); \
|
2000-04-17 02:54:25 +02:00
|
|
|
if (ISPRINT(c)) \
|
1992-04-25 03:51:02 +02:00
|
|
|
putc (c, asm_out_file); \
|
|
|
|
else \
|
|
|
|
{ \
|
|
|
|
fprintf (asm_out_file, "\\%o", c); \
|
|
|
|
/* After an octal-escape, if a digit follows, \
|
|
|
|
terminate one string constant and start another. \
|
combine.c, [...]: consistently use "VAX", "VAXen", and "MicroVAX" in comments and documentation.
* combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
config/convex/convex.h, config/d30v/d30v.c,
config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
config/mips/mips.h, config/mn10200/mn10200.h,
config/mn10300/mn10300.h, config/pdp11/pdp11.md,
config/v850/v850.h, config/vax/openbsd.h,
config/vax/openbsd1.h, config/vax/ultrix.h,
config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
in comments and documentation.
From-SVN: r44589
2001-08-03 03:19:20 +02:00
|
|
|
The VAX assembler fails to stop reading the escape \
|
1992-04-25 03:51:02 +02:00
|
|
|
after three digits, so this is the only way we \
|
|
|
|
can get it to parse the data properly. */ \
|
2000-01-15 04:00:11 +01:00
|
|
|
if (i < thissize - 1 && ISDIGIT(p[i + 1])) \
|
1992-04-25 03:51:02 +02:00
|
|
|
fprintf (asm_out_file, "\"\n\t.ascii \""); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
fprintf (asm_out_file, "\"\n"); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
while (0)
|
|
|
|
#endif
|
1993-03-25 09:51:26 +01:00
|
|
|
|
1994-02-28 01:45:17 +01:00
|
|
|
/* This is how we tell the assembler to equate two values. */
|
|
|
|
#ifdef SET_ASM_OP
|
|
|
|
#ifndef ASM_OUTPUT_DEF
|
|
|
|
#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
|
2000-09-25 13:23:45 +02:00
|
|
|
do { fprintf ((FILE), "%s", SET_ASM_OP); \
|
1994-02-28 01:45:17 +01:00
|
|
|
assemble_name (FILE, LABEL1); \
|
|
|
|
fprintf (FILE, ","); \
|
|
|
|
assemble_name (FILE, LABEL2); \
|
|
|
|
fprintf (FILE, "\n"); \
|
|
|
|
} while (0)
|
|
|
|
#endif
|
|
|
|
#endif
|
1995-05-16 03:02:59 +02:00
|
|
|
|
alpha.h, [...] (ASM_OUTPUT_LABEL): Delete definition.
* alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
* defaults.h (ASM_OUTPUT_LABEL): Provide a default.
* doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
From-SVN: r55872
2002-07-30 14:34:31 +02:00
|
|
|
/* This is how to output the definition of a user-level label named
|
|
|
|
NAME, such as the label on a static function or variable NAME. */
|
|
|
|
|
|
|
|
#ifndef ASM_OUTPUT_LABEL
|
|
|
|
#define ASM_OUTPUT_LABEL(FILE,NAME) \
|
|
|
|
do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
|
|
|
|
#endif
|
|
|
|
|
2004-12-20 03:08:57 +01:00
|
|
|
/* Output the definition of a compiler-generated label named NAME. */
|
|
|
|
#ifndef ASM_OUTPUT_INTERNAL_LABEL
|
|
|
|
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,NAME) \
|
|
|
|
do { \
|
|
|
|
assemble_name_raw ((FILE), (NAME)); \
|
|
|
|
fputs (":\n", (FILE)); \
|
|
|
|
} while (0)
|
|
|
|
#endif
|
|
|
|
|
1996-09-21 12:35:12 +02:00
|
|
|
/* This is how to output a reference to a user-level label named NAME. */
|
|
|
|
|
|
|
|
#ifndef ASM_OUTPUT_LABELREF
|
1998-10-28 23:31:06 +01:00
|
|
|
#define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
|
1996-09-21 12:35:12 +02:00
|
|
|
#endif
|
|
|
|
|
2000-11-01 01:20:34 +01:00
|
|
|
/* Allow target to print debug info labels specially. This is useful for
|
|
|
|
VLIW targets, since debug info labels should go into the middle of
|
|
|
|
instruction bundles instead of breaking them. */
|
|
|
|
|
|
|
|
#ifndef ASM_OUTPUT_DEBUG_LABEL
|
|
|
|
#define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
|
2002-12-16 19:23:00 +01:00
|
|
|
(*targetm.asm_out.internal_label) (FILE, PREFIX, NUM)
|
2000-11-01 01:20:34 +01:00
|
|
|
#endif
|
|
|
|
|
2001-07-17 14:55:19 +02:00
|
|
|
/* This is how we tell the assembler that a symbol is weak. */
|
2001-07-18 22:43:40 +02:00
|
|
|
#ifndef ASM_OUTPUT_WEAK_ALIAS
|
|
|
|
#if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
|
2001-07-17 14:55:19 +02:00
|
|
|
#define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE) \
|
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
ASM_WEAKEN_LABEL (STREAM, NAME); \
|
|
|
|
if (VALUE) \
|
|
|
|
ASM_OUTPUT_DEF (STREAM, NAME, VALUE); \
|
|
|
|
} \
|
|
|
|
while (0)
|
|
|
|
#endif
|
2001-07-18 22:43:40 +02:00
|
|
|
#endif
|
2001-07-17 14:55:19 +02:00
|
|
|
|
defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, [...]): New default definitions of new macros.
* defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
* doc/tm.texi: Document them. Also document SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
* config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
config/cris/aout.h, config/i386/freebsd-aout.h,
config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
config/xtensa/elf.h, config/xtensa/linux.h:
Use the new macros.
Where possible, remove redundant definitions of SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
From-SVN: r55735
2002-07-25 07:14:23 +02:00
|
|
|
/* How to emit a .type directive. */
|
|
|
|
#ifndef ASM_OUTPUT_TYPE_DIRECTIVE
|
|
|
|
#if defined TYPE_ASM_OP && defined TYPE_OPERAND_FMT
|
|
|
|
#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE) \
|
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
fputs (TYPE_ASM_OP, STREAM); \
|
|
|
|
assemble_name (STREAM, NAME); \
|
|
|
|
fputs (", ", STREAM); \
|
|
|
|
fprintf (STREAM, TYPE_OPERAND_FMT, TYPE); \
|
|
|
|
putc ('\n', STREAM); \
|
|
|
|
} \
|
|
|
|
while (0)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* How to emit a .size directive. */
|
|
|
|
#ifndef ASM_OUTPUT_SIZE_DIRECTIVE
|
|
|
|
#ifdef SIZE_ASM_OP
|
|
|
|
#define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE) \
|
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
HOST_WIDE_INT size_ = (SIZE); \
|
|
|
|
fputs (SIZE_ASM_OP, STREAM); \
|
|
|
|
assemble_name (STREAM, NAME); \
|
2003-05-17 03:40:45 +02:00
|
|
|
fprintf (STREAM, ", " HOST_WIDE_INT_PRINT_DEC "\n", size_); \
|
defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, [...]): New default definitions of new macros.
* defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
* doc/tm.texi: Document them. Also document SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
* config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
config/cris/aout.h, config/i386/freebsd-aout.h,
config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
config/xtensa/elf.h, config/xtensa/linux.h:
Use the new macros.
Where possible, remove redundant definitions of SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
From-SVN: r55735
2002-07-25 07:14:23 +02:00
|
|
|
} \
|
|
|
|
while (0)
|
|
|
|
|
defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two arguments.
* defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
arguments. Always use ".-symbol" as expression argument.
* doc/tm.texi: Update to match. Document requirement for
".size symbol, .-symbol" to be acceptable to assembler.
* config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
config/i386/freebsd-aout.h, config/i386/sco5.h,
config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
From-SVN: r55820
2002-07-28 20:44:34 +02:00
|
|
|
#define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME) \
|
defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, [...]): New default definitions of new macros.
* defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
* doc/tm.texi: Document them. Also document SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
* config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
config/cris/aout.h, config/i386/freebsd-aout.h,
config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
config/xtensa/elf.h, config/xtensa/linux.h:
Use the new macros.
Where possible, remove redundant definitions of SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
From-SVN: r55735
2002-07-25 07:14:23 +02:00
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
fputs (SIZE_ASM_OP, STREAM); \
|
defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two arguments.
* defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
arguments. Always use ".-symbol" as expression argument.
* doc/tm.texi: Update to match. Document requirement for
".size symbol, .-symbol" to be acceptable to assembler.
* config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
config/i386/freebsd-aout.h, config/i386/sco5.h,
config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
From-SVN: r55820
2002-07-28 20:44:34 +02:00
|
|
|
assemble_name (STREAM, NAME); \
|
|
|
|
fputs (", .-", STREAM); \
|
|
|
|
assemble_name (STREAM, NAME); \
|
defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, [...]): New default definitions of new macros.
* defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
* doc/tm.texi: Document them. Also document SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
* config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
config/cris/aout.h, config/i386/freebsd-aout.h,
config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
config/xtensa/elf.h, config/xtensa/linux.h:
Use the new macros.
Where possible, remove redundant definitions of SIZE_ASM_OP,
TYPE_ASM_OP, and TYPE_OPERAND_FMT.
From-SVN: r55735
2002-07-25 07:14:23 +02:00
|
|
|
putc ('\n', STREAM); \
|
|
|
|
} \
|
|
|
|
while (0)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
1995-05-16 03:02:59 +02:00
|
|
|
/* This determines whether or not we support weak symbols. */
|
|
|
|
#ifndef SUPPORTS_WEAK
|
2002-03-01 07:00:38 +01:00
|
|
|
#if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
|
1995-05-16 03:02:59 +02:00
|
|
|
#define SUPPORTS_WEAK 1
|
|
|
|
#else
|
|
|
|
#define SUPPORTS_WEAK 0
|
|
|
|
#endif
|
|
|
|
#endif
|
1997-07-04 20:49:39 +02:00
|
|
|
|
2001-02-04 09:29:46 +01:00
|
|
|
/* This determines whether or not we support link-once semantics. */
|
|
|
|
#ifndef SUPPORTS_ONE_ONLY
|
|
|
|
#ifdef MAKE_DECL_ONE_ONLY
|
|
|
|
#define SUPPORTS_ONE_ONLY 1
|
|
|
|
#else
|
|
|
|
#define SUPPORTS_ONE_ONLY 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2004-06-04 01:15:01 +02:00
|
|
|
/* This determines whether weak symbols must be left out of a static
|
|
|
|
archive's table of contents. Defining this macro to be nonzero has
|
|
|
|
the consequence that certain symbols will not be made weak that
|
|
|
|
otherwise would be. The C++ ABI requires this macro to be zero;
|
c-common.c, [...]: Fix comment formatting.
* c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
vec.h: Fix comment formatting.
From-SVN: r87105
2004-09-05 18:05:06 +02:00
|
|
|
see the documentation. */
|
2004-06-04 01:15:01 +02:00
|
|
|
#ifndef TARGET_WEAK_NOT_IN_ARCHIVE_TOC
|
|
|
|
#define TARGET_WEAK_NOT_IN_ARCHIVE_TOC 0
|
2004-03-12 18:09:03 +01:00
|
|
|
#endif
|
|
|
|
|
c-typeck.c, [...]: Fix comment formatting.
* c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
From-SVN: r88102
2004-09-25 16:36:40 +02:00
|
|
|
/* This determines whether or not we need linkonce unwind information. */
|
2004-03-12 18:09:03 +01:00
|
|
|
#ifndef TARGET_USES_WEAK_UNWIND_INFO
|
|
|
|
#define TARGET_USES_WEAK_UNWIND_INFO 0
|
|
|
|
#endif
|
|
|
|
|
2002-09-13 00:34:08 +02:00
|
|
|
/* By default, there is no prefix on user-defined symbols. */
|
|
|
|
#ifndef USER_LABEL_PREFIX
|
|
|
|
#define USER_LABEL_PREFIX ""
|
|
|
|
#endif
|
|
|
|
|
1999-02-27 23:21:58 +01:00
|
|
|
/* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
|
2004-08-24 02:30:52 +02:00
|
|
|
provide a weak attribute. Else define it to nothing.
|
1999-02-27 23:21:58 +01:00
|
|
|
|
ansidecl.h: All logic from gcc/gansidecl.h moved here.
include:
* ansidecl.h: All logic from gcc/gansidecl.h moved here.
gcc:
* gansidecl.h: Delete file.
* configure.in: Change all refs to gansidecl.h to use
ansidecl.h. Adjust *_file_list so they know where ansidecl.h
lives.
* configure: Regenerate.
* Makefile.in (intl.o): Don't depend on gansidecl.h.
* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
Don't include gansidecl.h.
* intl.c, main.c, version.c, fixinc/fixlib.h,
fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
gansidecl.h.
gcc/java:
* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
on gansidecl.h.
* buffer.c, jvgenmain.c: Don't include gansidecl.h.
libiberty:
* make-temp-file.c (try): Inline.
From-SVN: r41069
2001-04-04 02:46:27 +02:00
|
|
|
This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
|
1999-02-27 23:21:58 +01:00
|
|
|
not available at that time.
|
|
|
|
|
|
|
|
Note, this is only for use by target files which we know are to be
|
|
|
|
compiled by GCC. */
|
|
|
|
#ifndef TARGET_ATTRIBUTE_WEAK
|
|
|
|
# if SUPPORTS_WEAK
|
|
|
|
# define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak))
|
|
|
|
# else
|
|
|
|
# define TARGET_ATTRIBUTE_WEAK
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2004-03-12 18:09:03 +01:00
|
|
|
/* Determines whether we may use common symbols to represent one-only
|
bb-reorder.c, [...]: Fix comment formatting.
* bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
formatting.
From-SVN: r82463
2004-05-30 20:32:31 +02:00
|
|
|
semantics (a.k.a. "vague linkage"). */
|
2004-03-12 18:09:03 +01:00
|
|
|
#ifndef USE_COMMON_FOR_ONE_ONLY
|
|
|
|
# define USE_COMMON_FOR_ONE_ONLY 1
|
|
|
|
#endif
|
|
|
|
|
2004-09-09 19:11:18 +02:00
|
|
|
/* By default we can assume that all global symbols are in one namespace,
|
|
|
|
across all shared libraries. */
|
|
|
|
#ifndef MULTIPLE_SYMBOL_SPACES
|
|
|
|
# define MULTIPLE_SYMBOL_SPACES 0
|
|
|
|
#endif
|
2004-03-12 18:09:03 +01:00
|
|
|
|
2001-01-15 04:33:56 +01:00
|
|
|
/* If the target supports init_priority C++ attribute, give
|
|
|
|
SUPPORTS_INIT_PRIORITY a nonzero value. */
|
|
|
|
#ifndef SUPPORTS_INIT_PRIORITY
|
|
|
|
#define SUPPORTS_INIT_PRIORITY 1
|
|
|
|
#endif /* SUPPORTS_INIT_PRIORITY */
|
|
|
|
|
2001-04-27 21:59:53 +02:00
|
|
|
/* If duplicate library search directories can be removed from a
|
|
|
|
linker command without changing the linker's semantics, give this
|
|
|
|
symbol a nonzero. */
|
|
|
|
#ifndef LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
|
|
|
|
#define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0
|
|
|
|
#endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */
|
|
|
|
|
1997-07-04 20:49:39 +02:00
|
|
|
/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
|
|
|
|
the rest of the DWARF 2 frame unwind support is also provided. */
|
1997-09-10 20:00:28 +02:00
|
|
|
#if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
|
|
|
|
#define DWARF2_UNWIND_INFO 1
|
1997-07-04 20:49:39 +02:00
|
|
|
#endif
|
1999-07-22 04:16:55 +02:00
|
|
|
|
2001-08-10 00:33:35 +02:00
|
|
|
/* If we have named sections, and we're using crtstuff to run ctors,
|
|
|
|
use them for registering eh frame information. */
|
2002-06-11 23:34:30 +02:00
|
|
|
#if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
|
|
|
|
&& !defined(EH_FRAME_IN_DATA_SECTION)
|
target.h (gcc_target): Add asm_out.named_section, section_type_flags, have_named_sections.
* target.h (gcc_target): Add asm_out.named_section,
section_type_flags, have_named_sections.
* target-def.h (TARGET_ASM_NAMED_SECTION): New.
(TARGET_HAVE_NAMED_SECTIONS): New.
(TARGET_SECTION_TYPE_FLAGS): New.
* Makefile.in (toplev.o): Depend on TARGET_H.
(varasm.o, dbxout.o): Likewise.
* c-common.c (decl_attributes): Check targetm.have_named_sections
instead of ifdef ASM_OUTPUT_SECTION_NAME.
* dbxout.c (dbxout_function_decl): Likewise.
(dbxout_function_end): Likewise.
* toplev.c (compile_file): Likewise.
* varasm.c (exception_section): Likewise.
* cp/decl2.c (finish_objects): Likewise.
* defaults.h (EH_FRAME_SECTION): Remove.
(EH_FRAME_SECTION_ASM_OP): Remove.
(EH_FRAME_SECTION_NAME): New.
(UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
(UNIQUE_SECTION_P): Remove.
* dwarf2out.c (SECTION_FORMAT): Remove.
(ASM_OUTPUT_SECTION): Remove.
(output_call_frame_info): Use named_section_flags.
(output_comp_unit, dwarf2out_start_source_file): Likewise.
(dwarf2out_end_source_file, dwarf2out_define): Likewise.
(dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
* varasm.c (in_eh_frame, eh_frame_section): Remove.
(named_section_flags): New.
(named_section): Use it and targetm.section_type_flags.
(resolve_unique_section): New.
(assemble_start_function): Use it.
(asm_emit_uninitialised, assemble_variable): Likewise.
(default_section_type_flags): New.
(default_no_named_section, default_elf_asm_named_section): New.
(default_coff_asm_named_section, default_pe_asm_named_section): New.
* output.h: Update varasm.c decls.
(SECTION_*): New flags.
* crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
(__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
* config/elfos.h (UNIQUE_SECTION_P): Remove.
* config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
* config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
* config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
* config/i386/i386-interix.h, config/i386/win32.h: Likewise.
* config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
* config/mips/elf.h, config/mips/elf64.h: Likewise.
* config/mips/iris6gld.h, config/mips/mips.h: Likewise.
* config/pa/pa64-hpux.h,
* config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
(TARGET_ASM_NAMED_SECTION): New.
* config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
* config/alpha/vms.h, config/arm/coff.h: Likewise.
* config/arm/conix-elf.h, config/arm/elf.h: Likewise.
* config/arm/linux-elf.h, config/arm/pe.h: Likewise.
* config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
* config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
* config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
* config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
* config/i386/sco5.h, config/i386/win32.h: Likewise.
* config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
* config/mcore/mcore.h, config/mips/elf.h: Likewise.
* config/mips/elf64.h, config/mips/iris6.h: Likewise.
* config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
* config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
* config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
* config/sparc/sysv4.h: Likewise.
* config/nextstep.h: Error until named sections implemented.
* config/a29k/a29k.c (a29k_asm_named_section): New.
* config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
(vms_section_type_flags, vms_asm_named_section): New.
* config/arm/arm.c (arm_elf_asm_named_section): New.
* config/avr/avr.c (asm_output_section_name): Remove.
* config/avr/avr-protos.h: Update.
* config/c4x/c4x.c (c4x_asm_named_section): New.
* config/h8300/h8300.c (h8300_asm_named_section): New.
* config/i386/i386.c (sco_asm_named_section): New.
* config/i386/winnt.c (SECTION_PE_SHARED): New.
(i386_pe_section_type_flags): New.
(i386_pe_asm_named_section): New.
* config/i386/i386-protos.h: Update.
* config/m68k/m68k.c (m68k_coff_asm_named_section): New.
* config/mcore/mcore.c (mcore_asm_named_section): New.
* config/mips/mips.c (iris6_asm_named_section): New.
* config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
instead of UNIQUE_SECTION_P.
* config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
(xcoff_asm_named_section): New.
* config/sh/sh.c (sh_asm_named_section): New.
* config/sparc/sparc.c (sparc_elf_asm_named_section): New.
* config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
* config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
(EH_FRAME_SECTION_NAME): New.
(EXCEPTION_SECTION): New.
* config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
(DEBUG_*_SECTION): Remove.
* config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
* config/mips/iris6.h (DEBUG_*_SECTION): Remove.
(EH_FRAME_SECTION_ASM_OP): Remove.
* doc/tm.texi (UNIQUE_SECTION_P): Remove.
(ASM_OUTPUT_SECTION_NAME): Remove.
(TARGET_ASM_NAMED_SECTION): New.
(TARGET_HAVE_NAMED_SECTIONS): New.
(TARGET_SECTION_TYPE_FLAGS): New.
(EH_FRAME_SECTION_ASM_OP): Remove.
(EH_FRAME_SECTION_NAME): New.
From-SVN: r44623
2001-08-04 03:31:41 +02:00
|
|
|
#ifndef EH_FRAME_SECTION_NAME
|
|
|
|
#define EH_FRAME_SECTION_NAME ".eh_frame"
|
|
|
|
#endif
|
1999-09-09 23:36:20 +02:00
|
|
|
#endif
|
|
|
|
|
2004-11-24 15:35:31 +01:00
|
|
|
/* On many systems, different EH table encodings are used under
|
|
|
|
difference circumstances. Some will require runtime relocations;
|
|
|
|
some will not. For those that do not require runtime relocations,
|
|
|
|
we would like to make the table read-only. However, since the
|
|
|
|
read-only tables may need to be combined with read-write tables
|
|
|
|
that do require runtime relocation, it is not safe to make the
|
|
|
|
tables read-only unless the linker will merge read-only and
|
|
|
|
read-write sections into a single read-write section. If your
|
|
|
|
linker does not have this ability, but your system is such that no
|
|
|
|
encoding used with non-PIC code will ever require a runtime
|
|
|
|
relocation, then you can define EH_TABLES_CAN_BE_READ_ONLY to 1 in
|
|
|
|
your target configuration file. */
|
|
|
|
#ifndef EH_TABLES_CAN_BE_READ_ONLY
|
|
|
|
#ifdef HAVE_LD_RO_RW_SECTION_MIXING
|
|
|
|
#define EH_TABLES_CAN_BE_READ_ONLY 1
|
|
|
|
#else
|
|
|
|
#define EH_TABLES_CAN_BE_READ_ONLY 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2001-08-09 01:33:51 +02:00
|
|
|
/* If we have named section and we support weak symbols, then use the
|
|
|
|
.jcr section for recording java classes which need to be registered
|
|
|
|
at program start-up time. */
|
|
|
|
#if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
|
|
|
|
#ifndef JCR_SECTION_NAME
|
|
|
|
#define JCR_SECTION_NAME ".jcr"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2004-12-13 17:03:40 +01:00
|
|
|
/* This decision to use a .jcr section can be overridden by defining
|
2004-12-13 07:57:13 +01:00
|
|
|
USE_JCR_SECTION to 0 in target file. This is necessary if target
|
|
|
|
can define JCR_SECTION_NAME but does not have crtstuff or
|
|
|
|
linker support for .jcr section. */
|
|
|
|
#ifndef TARGET_USE_JCR_SECTION
|
|
|
|
#ifdef JCR_SECTION_NAME
|
|
|
|
#define TARGET_USE_JCR_SECTION 1
|
|
|
|
#else
|
|
|
|
#define TARGET_USE_JCR_SECTION 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2000-01-06 15:29:08 +01:00
|
|
|
/* Number of hardware registers that go into the DWARF-2 unwind info.
|
|
|
|
If not defined, equals FIRST_PSEUDO_REGISTER */
|
|
|
|
|
|
|
|
#ifndef DWARF_FRAME_REGISTERS
|
|
|
|
#define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
|
|
|
|
#endif
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
|
2001-11-22 03:19:58 +01:00
|
|
|
/* How to renumber registers for dbx and gdb. If not defined, assume
|
|
|
|
no renumbering is necessary. */
|
|
|
|
|
|
|
|
#ifndef DBX_REGISTER_NUMBER
|
|
|
|
#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
|
|
|
|
#endif
|
|
|
|
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
/* Default sizes for base C types. If the sizes are different for
|
|
|
|
your target, you should override these values by defining the
|
|
|
|
appropriate symbols in your tm.h file. */
|
|
|
|
|
a29k.h, [...]: (BITS_PER_UNIT): Delete.
* a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
* defaults.h (BITS_PER_UNIT): Define.
* doc/tm.texi (BITS_PER_UNIT): Document default value.
From-SVN: r50235
2002-03-03 03:27:42 +01:00
|
|
|
#ifndef BITS_PER_UNIT
|
|
|
|
#define BITS_PER_UNIT 8
|
|
|
|
#endif
|
|
|
|
|
1750a.h, [...] (BITS_PER_WORD): Delete.
* 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
Delete.
* defaults.h (BITS_PER_WORD): Define.
* doc/tm.texi (BITS_PER_WORD): Document default value.
From-SVN: r50257
2002-03-03 16:40:44 +01:00
|
|
|
#ifndef BITS_PER_WORD
|
|
|
|
#define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
|
|
|
|
#endif
|
|
|
|
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
#ifndef CHAR_TYPE_SIZE
|
|
|
|
#define CHAR_TYPE_SIZE BITS_PER_UNIT
|
|
|
|
#endif
|
|
|
|
|
2002-05-03 14:09:35 +02:00
|
|
|
#ifndef BOOL_TYPE_SIZE
|
|
|
|
/* `bool' has size and alignment `1', on almost all platforms. */
|
|
|
|
#define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
|
|
|
|
#endif
|
|
|
|
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
#ifndef SHORT_TYPE_SIZE
|
|
|
|
#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INT_TYPE_SIZE
|
|
|
|
#define INT_TYPE_SIZE BITS_PER_WORD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LONG_TYPE_SIZE
|
|
|
|
#define LONG_TYPE_SIZE BITS_PER_WORD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LONG_LONG_TYPE_SIZE
|
|
|
|
#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WCHAR_TYPE_SIZE
|
|
|
|
#define WCHAR_TYPE_SIZE INT_TYPE_SIZE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FLOAT_TYPE_SIZE
|
|
|
|
#define FLOAT_TYPE_SIZE BITS_PER_WORD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DOUBLE_TYPE_SIZE
|
|
|
|
#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LONG_DOUBLE_TYPE_SIZE
|
|
|
|
#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
|
|
|
|
#endif
|
|
|
|
|
1750a.h, [...] (POINTER_SIZE): Delete.
* 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
* defaults.h (POINTER_SIZE): Define.
* doc/tm.texi (POINTER_SIZE): Document default.
From-SVN: r50634
2002-03-12 06:28:21 +01:00
|
|
|
/* Width in bits of a pointer. Mind the value of the macro `Pmode'. */
|
|
|
|
#ifndef POINTER_SIZE
|
|
|
|
#define POINTER_SIZE BITS_PER_WORD
|
|
|
|
#endif
|
|
|
|
|
2001-02-13 21:17:45 +01:00
|
|
|
#ifndef PIC_OFFSET_TABLE_REGNUM
|
|
|
|
#define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
|
|
|
|
#endif
|
|
|
|
|
2004-08-06 04:03:29 +02:00
|
|
|
#ifndef TARGET_DLLIMPORT_DECL_ATTRIBUTES
|
|
|
|
#define TARGET_DLLIMPORT_DECL_ATTRIBUTES 0
|
|
|
|
#endif
|
|
|
|
|
2004-08-04 21:37:19 +02:00
|
|
|
#ifndef TARGET_DECLSPEC
|
2004-08-06 04:03:29 +02:00
|
|
|
#if TARGET_DLLIMPORT_DECL_ATTRIBUTES
|
2004-08-04 21:37:19 +02:00
|
|
|
/* If the target supports the "dllimport" attribute, users are
|
|
|
|
probably used to the "__declspec" syntax. */
|
|
|
|
#define TARGET_DECLSPEC 1
|
|
|
|
#else
|
|
|
|
#define TARGET_DECLSPEC 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2001-02-07 19:58:07 +01:00
|
|
|
/* By default, the preprocessor should be invoked the same way in C++
|
|
|
|
as in C. */
|
|
|
|
#ifndef CPLUSPLUS_CPP_SPEC
|
|
|
|
#ifdef CPP_SPEC
|
|
|
|
#define CPLUSPLUS_CPP_SPEC CPP_SPEC
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2001-03-18 22:38:33 +01:00
|
|
|
#ifndef ACCUMULATE_OUTGOING_ARGS
|
|
|
|
#define ACCUMULATE_OUTGOING_ARGS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Supply a default definition for PUSH_ARGS. */
|
|
|
|
#ifndef PUSH_ARGS
|
|
|
|
#ifdef PUSH_ROUNDING
|
|
|
|
#define PUSH_ARGS !ACCUMULATE_OUTGOING_ARGS
|
|
|
|
#else
|
|
|
|
#define PUSH_ARGS 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2003-06-30 15:16:26 +02:00
|
|
|
/* Decide whether a function's arguments should be processed
|
|
|
|
from first to last or from last to first.
|
|
|
|
|
|
|
|
They should if the stack and args grow in opposite directions, but
|
|
|
|
only if we have push insns. */
|
|
|
|
|
|
|
|
#ifdef PUSH_ROUNDING
|
|
|
|
|
|
|
|
#ifndef PUSH_ARGS_REVERSED
|
|
|
|
#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
|
|
|
|
#define PUSH_ARGS_REVERSED PUSH_ARGS
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PUSH_ARGS_REVERSED
|
|
|
|
#define PUSH_ARGS_REVERSED 0
|
|
|
|
#endif
|
|
|
|
|
2001-08-12 03:46:15 +02:00
|
|
|
/* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
|
|
|
|
STACK_BOUNDARY is required. */
|
|
|
|
#ifndef PREFERRED_STACK_BOUNDARY
|
|
|
|
#define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
|
|
|
|
#endif
|
|
|
|
|
2004-09-03 19:22:40 +02:00
|
|
|
#ifndef TARGET_DEFAULT_PACK_STRUCT
|
|
|
|
#define TARGET_DEFAULT_PACK_STRUCT 0
|
|
|
|
#endif
|
|
|
|
|
2001-09-21 18:58:22 +02:00
|
|
|
/* By default, the C++ compiler will use function addresses in the
|
2002-09-22 16:09:34 +02:00
|
|
|
vtable entries. Setting this nonzero tells the compiler to use
|
2001-09-21 18:58:22 +02:00
|
|
|
function descriptors instead. The value of this macro says how
|
2004-08-24 02:30:52 +02:00
|
|
|
many words wide the descriptor is (normally 2). It is assumed
|
2001-09-21 18:58:22 +02:00
|
|
|
that the address of a function descriptor may be treated as a
|
|
|
|
pointer to a function. */
|
|
|
|
#ifndef TARGET_VTABLE_USES_DESCRIPTORS
|
|
|
|
#define TARGET_VTABLE_USES_DESCRIPTORS 0
|
|
|
|
#endif
|
|
|
|
|
2002-06-14 02:50:34 +02:00
|
|
|
/* By default, the vtable entries are void pointers, the so the alignment
|
|
|
|
is the same as pointer alignment. The value of this macro specifies
|
|
|
|
the alignment of the vtable entry in bits. It should be defined only
|
2002-09-08 14:47:27 +02:00
|
|
|
when special alignment is necessary. */
|
2002-06-14 02:50:34 +02:00
|
|
|
#ifndef TARGET_VTABLE_ENTRY_ALIGN
|
|
|
|
#define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* There are a few non-descriptor entries in the vtable at offsets below
|
|
|
|
zero. If these entries must be padded (say, to preserve the alignment
|
|
|
|
specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
|
|
|
|
words in each data entry. */
|
|
|
|
#ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
|
|
|
|
#define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
|
|
|
|
#endif
|
|
|
|
|
2004-04-09 00:31:23 +02:00
|
|
|
/* Decide whether it is safe to use a local alias for a virtual function
|
|
|
|
when constructing thunks. */
|
|
|
|
#ifndef TARGET_USE_LOCAL_THUNK_ALIAS_P
|
|
|
|
#ifdef ASM_OUTPUT_DEF
|
|
|
|
#define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 1
|
|
|
|
#else
|
|
|
|
#define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2001-05-12 08:03:20 +02:00
|
|
|
/* Select a format to encode pointers in exception handling data. We
|
|
|
|
prefer those that result in fewer dynamic relocations. Assume no
|
|
|
|
special support here and encode direct references. */
|
|
|
|
#ifndef ASM_PREFERRED_EH_DATA_FORMAT
|
|
|
|
#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) DW_EH_PE_absptr
|
|
|
|
#endif
|
|
|
|
|
2001-05-12 12:41:21 +02:00
|
|
|
/* By default, the C++ compiler will use the lowest bit of the pointer
|
|
|
|
to function to indicate a pointer-to-member-function points to a
|
|
|
|
virtual member function. However, if FUNCTION_BOUNDARY indicates
|
|
|
|
function addresses aren't always even, the lowest bit of the delta
|
|
|
|
field will be used. */
|
|
|
|
#ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
|
|
|
|
#define TARGET_PTRMEMFUNC_VBIT_LOCATION \
|
|
|
|
(FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
|
|
|
|
? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
|
|
|
|
#endif
|
|
|
|
|
2001-11-20 11:16:09 +01:00
|
|
|
#ifndef DEFAULT_GDB_EXTENSIONS
|
|
|
|
#define DEFAULT_GDB_EXTENSIONS 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* If more than one debugging type is supported, you must define
|
2004-08-25 09:34:54 +02:00
|
|
|
PREFERRED_DEBUGGING_TYPE to choose the default. */
|
2001-11-20 11:16:09 +01:00
|
|
|
|
2004-08-25 09:34:54 +02:00
|
|
|
#if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) \
|
|
|
|
+ defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO) \
|
|
|
|
+ defined (VMS_DEBUGGING_INFO))
|
2001-11-20 11:16:09 +01:00
|
|
|
#ifndef PREFERRED_DEBUGGING_TYPE
|
2004-08-25 09:34:54 +02:00
|
|
|
#error You must define PREFERRED_DEBUGGING_TYPE
|
2001-11-20 11:16:09 +01:00
|
|
|
#endif /* no PREFERRED_DEBUGGING_TYPE */
|
2004-08-25 09:34:54 +02:00
|
|
|
|
|
|
|
/* If only one debugging format is supported, define PREFERRED_DEBUGGING_TYPE
|
|
|
|
here so other code needn't care. */
|
|
|
|
#elif defined DBX_DEBUGGING_INFO
|
2001-11-20 11:16:09 +01:00
|
|
|
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
|
2004-08-25 09:34:54 +02:00
|
|
|
|
|
|
|
#elif defined SDB_DEBUGGING_INFO
|
2001-11-20 11:16:09 +01:00
|
|
|
#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
|
2004-08-25 09:34:54 +02:00
|
|
|
|
|
|
|
#elif defined DWARF2_DEBUGGING_INFO
|
2001-11-20 11:16:09 +01:00
|
|
|
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
|
2004-08-25 09:34:54 +02:00
|
|
|
|
|
|
|
#elif defined VMS_DEBUGGING_INFO
|
2001-12-02 15:38:07 +01:00
|
|
|
#define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
|
2004-08-25 09:34:54 +02:00
|
|
|
|
|
|
|
#elif defined XCOFF_DEBUGGING_INFO
|
2001-11-20 11:16:09 +01:00
|
|
|
#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
|
|
|
|
|
2004-08-25 09:34:54 +02:00
|
|
|
#else
|
|
|
|
/* No debugging format is supported by this target. */
|
2001-11-20 11:16:09 +01:00
|
|
|
#define PREFERRED_DEBUGGING_TYPE NO_DEBUG
|
|
|
|
#endif
|
|
|
|
|
real.h (UNKNOWN_FLOAT_FORMAT, [...]): Move ...
* real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
* defaults.h: ... here.
* config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
From-SVN: r57336
2002-09-20 08:36:36 +02:00
|
|
|
/* Define codes for all the float formats that we know of. */
|
|
|
|
#define UNKNOWN_FLOAT_FORMAT 0
|
|
|
|
#define IEEE_FLOAT_FORMAT 1
|
|
|
|
#define VAX_FLOAT_FORMAT 2
|
|
|
|
#define IBM_FLOAT_FORMAT 3
|
|
|
|
#define C4X_FLOAT_FORMAT 4
|
|
|
|
|
|
|
|
/* Default to IEEE float if not specified. Nearly all machines use it. */
|
|
|
|
#ifndef TARGET_FLOAT_FORMAT
|
|
|
|
#define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
|
|
|
|
#endif
|
|
|
|
|
2004-10-12 21:28:56 +02:00
|
|
|
/* Some macros can be defined by the backend in either a mode-dependent
|
|
|
|
or mode-independent form. The compiler proper should only use the
|
|
|
|
mode-dependent form, providing VOIDmode when the mode is unknown.
|
|
|
|
We can't poison the macros because the backend may reference them. */
|
|
|
|
|
|
|
|
#ifndef REGNO_MODE_OK_FOR_BASE_P
|
|
|
|
#define REGNO_MODE_OK_FOR_BASE_P(REGNO, MODE) REGNO_OK_FOR_BASE_P (REGNO)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef REG_MODE_OK_FOR_BASE_P
|
|
|
|
#define REG_MODE_OK_FOR_BASE_P(REG, MODE) REG_OK_FOR_BASE_P (REG)
|
|
|
|
#endif
|
|
|
|
|
2001-12-17 17:46:11 +01:00
|
|
|
/* Determine the register class for registers suitable to be the base
|
|
|
|
address register in a MEM. Allow the choice to be dependent upon
|
|
|
|
the mode of the memory access. */
|
|
|
|
#ifndef MODE_BASE_REG_CLASS
|
|
|
|
#define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
|
|
|
|
#endif
|
|
|
|
|
2004-10-12 21:28:56 +02:00
|
|
|
/* Some machines require a different base register class if the index
|
|
|
|
is a register. By default, assume that a base register is acceptable. */
|
|
|
|
#ifndef MODE_BASE_REG_REG_CLASS
|
|
|
|
#define MODE_BASE_REG_REG_CLASS(MODE) MODE_BASE_REG_CLASS(MODE)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef REGNO_MODE_OK_FOR_REG_BASE_P
|
|
|
|
#define REGNO_MODE_OK_FOR_REG_BASE_P(REGNO, MODE) REGNO_MODE_OK_FOR_BASE_P (REGNO, MODE)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef REG_MODE_OK_FOR_REG_BASE_P
|
|
|
|
#define REG_MODE_OK_FOR_REG_BASE_P(REGNO, MODE) REG_MODE_OK_FOR_BASE_P (REGNO, MODE)
|
|
|
|
#endif
|
|
|
|
|
defaults.h (LARGEST_EXPONENT_IS_NORMAL, [...]): New.
* defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
(MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
LARGEST_EXPONENT_IS_NORMAL for the given mode.
(MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
* real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
(ediv, emul, eldexp, esqrt): Likewise.
(etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
(e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
(saturate): New function.
(toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
(make_nan): Use a saturation value instead of a NaN if
LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
* fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
(unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
(_fpmul_parts, _fpdiv_parts): Only round to nearest if
!ROUND_TOWARDS_ZERO.
* doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
(ROUND_TOWARDS_ZERO): Document.
From-SVN: r50569
2002-03-11 12:13:45 +01:00
|
|
|
#ifndef LARGEST_EXPONENT_IS_NORMAL
|
|
|
|
#define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ROUND_TOWARDS_ZERO
|
|
|
|
#define ROUND_TOWARDS_ZERO 0
|
|
|
|
#endif
|
|
|
|
|
defaults.h (MODE_HAS_NANS, [...]): New.
* defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
(MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
* flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
(HONOR_SIGN_DEPENDENT_ROUNDING): New.
* builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
* c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
unless x and y could be infinite.
(expand_unordered_cmp): New, mostly split from expand_tree_builtin.
Check that the common type of both arguments is a real, even for
targets without unordered comparisons. Allow an integer argument
to be compared against a real.
(expand_tree_builtin): Use expand_unordered_cmp.
* combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
* cse.c (fold_rtx): Likewise. Fix indentation.
* fold-const.c (fold_real_zero_addition_p): New.
(fold): Use it, and the new HONOR_... macros.
* ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
* jump.c (reversed_comparison_code_parts): After searching for
the true comparison mode, use HONOR_NANS to decide whether it
can be safely reversed.
(reverse_condition_maybe_unordered): Remove IEEE check.
* simplify-rtx.c (simplify_binary_operation): Use the new macros
to decide which simplifications are valid. Allow the following
simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
and (a - -b) to (a + b).
(simplify_relational_operation): Use HONOR_NANS.
* doc/tm.texi: Document the MODE_HAS_... macros.
From-SVN: r50401
2002-03-07 12:37:16 +01:00
|
|
|
#ifndef MODE_HAS_NANS
|
defaults.h (LARGEST_EXPONENT_IS_NORMAL, [...]): New.
* defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
(MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
LARGEST_EXPONENT_IS_NORMAL for the given mode.
(MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
* real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
(ediv, emul, eldexp, esqrt): Likewise.
(etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
(e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
(saturate): New function.
(toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
(make_nan): Use a saturation value instead of a NaN if
LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
* fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
(unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
(_fpmul_parts, _fpdiv_parts): Only round to nearest if
!ROUND_TOWARDS_ZERO.
* doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
(ROUND_TOWARDS_ZERO): Document.
From-SVN: r50569
2002-03-11 12:13:45 +01:00
|
|
|
#define MODE_HAS_NANS(MODE) \
|
|
|
|
(FLOAT_MODE_P (MODE) \
|
|
|
|
&& TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
|
|
|
|
&& !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
|
defaults.h (MODE_HAS_NANS, [...]): New.
* defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
(MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
* flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
(HONOR_SIGN_DEPENDENT_ROUNDING): New.
* builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
* c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
unless x and y could be infinite.
(expand_unordered_cmp): New, mostly split from expand_tree_builtin.
Check that the common type of both arguments is a real, even for
targets without unordered comparisons. Allow an integer argument
to be compared against a real.
(expand_tree_builtin): Use expand_unordered_cmp.
* combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
* cse.c (fold_rtx): Likewise. Fix indentation.
* fold-const.c (fold_real_zero_addition_p): New.
(fold): Use it, and the new HONOR_... macros.
* ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
* jump.c (reversed_comparison_code_parts): After searching for
the true comparison mode, use HONOR_NANS to decide whether it
can be safely reversed.
(reverse_condition_maybe_unordered): Remove IEEE check.
* simplify-rtx.c (simplify_binary_operation): Use the new macros
to decide which simplifications are valid. Allow the following
simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
and (a - -b) to (a + b).
(simplify_relational_operation): Use HONOR_NANS.
* doc/tm.texi: Document the MODE_HAS_... macros.
From-SVN: r50401
2002-03-07 12:37:16 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MODE_HAS_INFINITIES
|
defaults.h (LARGEST_EXPONENT_IS_NORMAL, [...]): New.
* defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
(MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
LARGEST_EXPONENT_IS_NORMAL for the given mode.
(MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
* real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
(ediv, emul, eldexp, esqrt): Likewise.
(etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
(e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
(saturate): New function.
(toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
(make_nan): Use a saturation value instead of a NaN if
LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
* fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
(unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
(_fpmul_parts, _fpdiv_parts): Only round to nearest if
!ROUND_TOWARDS_ZERO.
* doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
(ROUND_TOWARDS_ZERO): Document.
From-SVN: r50569
2002-03-11 12:13:45 +01:00
|
|
|
#define MODE_HAS_INFINITIES(MODE) \
|
|
|
|
(FLOAT_MODE_P (MODE) \
|
|
|
|
&& TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
|
|
|
|
&& !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
|
defaults.h (MODE_HAS_NANS, [...]): New.
* defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
(MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
* flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
(HONOR_SIGN_DEPENDENT_ROUNDING): New.
* builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
* c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
unless x and y could be infinite.
(expand_unordered_cmp): New, mostly split from expand_tree_builtin.
Check that the common type of both arguments is a real, even for
targets without unordered comparisons. Allow an integer argument
to be compared against a real.
(expand_tree_builtin): Use expand_unordered_cmp.
* combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
* cse.c (fold_rtx): Likewise. Fix indentation.
* fold-const.c (fold_real_zero_addition_p): New.
(fold): Use it, and the new HONOR_... macros.
* ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
* jump.c (reversed_comparison_code_parts): After searching for
the true comparison mode, use HONOR_NANS to decide whether it
can be safely reversed.
(reverse_condition_maybe_unordered): Remove IEEE check.
* simplify-rtx.c (simplify_binary_operation): Use the new macros
to decide which simplifications are valid. Allow the following
simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
and (a - -b) to (a + b).
(simplify_relational_operation): Use HONOR_NANS.
* doc/tm.texi: Document the MODE_HAS_... macros.
From-SVN: r50401
2002-03-07 12:37:16 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MODE_HAS_SIGNED_ZEROS
|
|
|
|
#define MODE_HAS_SIGNED_ZEROS(MODE) \
|
|
|
|
(FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
|
defaults.h (LARGEST_EXPONENT_IS_NORMAL, [...]): New.
* defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
(MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
LARGEST_EXPONENT_IS_NORMAL for the given mode.
(MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
* real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
(ediv, emul, eldexp, esqrt): Likewise.
(etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
(e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
(saturate): New function.
(toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
(make_nan): Use a saturation value instead of a NaN if
LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
* fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
(unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
(_fpmul_parts, _fpdiv_parts): Only round to nearest if
!ROUND_TOWARDS_ZERO.
* doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
(ROUND_TOWARDS_ZERO): Document.
From-SVN: r50569
2002-03-11 12:13:45 +01:00
|
|
|
#define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE) \
|
|
|
|
(FLOAT_MODE_P (MODE) \
|
|
|
|
&& TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
|
|
|
|
&& !ROUND_TOWARDS_ZERO)
|
defaults.h (MODE_HAS_NANS, [...]): New.
* defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
(MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
* flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
(HONOR_SIGN_DEPENDENT_ROUNDING): New.
* builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
* c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
unless x and y could be infinite.
(expand_unordered_cmp): New, mostly split from expand_tree_builtin.
Check that the common type of both arguments is a real, even for
targets without unordered comparisons. Allow an integer argument
to be compared against a real.
(expand_tree_builtin): Use expand_unordered_cmp.
* combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
* cse.c (fold_rtx): Likewise. Fix indentation.
* fold-const.c (fold_real_zero_addition_p): New.
(fold): Use it, and the new HONOR_... macros.
* ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
* jump.c (reversed_comparison_code_parts): After searching for
the true comparison mode, use HONOR_NANS to decide whether it
can be safely reversed.
(reverse_condition_maybe_unordered): Remove IEEE check.
* simplify-rtx.c (simplify_binary_operation): Use the new macros
to decide which simplifications are valid. Allow the following
simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
and (a - -b) to (a + b).
(simplify_relational_operation): Use HONOR_NANS.
* doc/tm.texi: Document the MODE_HAS_... macros.
From-SVN: r50401
2002-03-07 12:37:16 +01:00
|
|
|
#endif
|
|
|
|
|
target.h (init_libfuncs): New hook.
* target.h (init_libfuncs): New hook.
* target-def.h: Default TARGET_INIT_BUILTINS and
TARGET_INIT_LIBFUNCS to hook_void_void. Add
TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
* builtins.c (default_init_builtins): Delete.
* expr.h (default_init_builtins): Delete prototype.
* doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
and UMODDI3_LIBCALL,
* Makefile.in (optabs.o): Depends on target.h.
* defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
* optabs.c: Include target.h.
(prepare_float_lib_cmp): No need for #ifdef around use of
FLOAT_LIB_COMPARE_RETURNS_BOOL.
(set_optab_libfunc): New function.
(init_optabs): Delete use of all *_LIBCALL defines.
Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
* optabs.h: Prototype set_optab_libfunc.
* config.gcc: Remove all references to pa/long_double.h,
ia64/hpux_longdouble.h, and gofast.h.
(mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
* config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
* config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
* config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
* config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
* config/sparc/sparc.c, config/vax/vax.c:
Provide a definition for TARGET_INIT_LIBFUNCS. Where
necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
* config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
* config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
* config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
* config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
* config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
* config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
* config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
* config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
* config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
* config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
* config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
* config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
* config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 0.
* config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 1.
* config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 0.
* config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
Define US_SOFTWARE_GOFAST.
* config/vax/vax.h: Default TARGET_ELF to 0.
* config/vax/elf.h: Redefine TARGET_ELF to 1.
* config/gofast.h: Don't define any macros here. Provide one
static function, gofast_maybe_init_libfuncs, which does what
INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
is already defined. Do not clear negation libfuncs. Do
not mess with HFmode, XFmode, or TFmode libfuncs.
* config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
From-SVN: r72009
2003-10-02 02:44:29 +02:00
|
|
|
#ifndef FLOAT_LIB_COMPARE_RETURNS_BOOL
|
|
|
|
#define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) false
|
|
|
|
#endif
|
|
|
|
|
c-common.c, [...]: Fix comment typos.
* c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
value-prof.c: Fix comment typos. Follow spelling conventions.
From-SVN: r87288
2004-09-10 12:44:48 +02:00
|
|
|
/* True if the targets integer-comparison functions return { 0, 1, 2
|
2004-08-11 04:50:14 +02:00
|
|
|
} to indicate { <, ==, > }. False if { -1, 0, 1 } is used
|
|
|
|
instead. The libgcc routines are biased. */
|
|
|
|
#ifndef TARGET_LIB_INT_CMP_BIASED
|
|
|
|
#define TARGET_LIB_INT_CMP_BIASED (true)
|
|
|
|
#endif
|
|
|
|
|
2003-03-21 18:19:34 +01:00
|
|
|
/* If FLOAT_WORDS_BIG_ENDIAN is not defined in the header files,
|
|
|
|
then the word-endianness is the same as for integers. */
|
real.c, real.h: Rewrite from scratch.
gcc/
* real.c, real.h: Rewrite from scratch.
* Makefile.in (simplify-rtx.o): Depend on TREE_H.
(paranoia): New target.
* builtins.c (fold_builtin_inf): Use new real.h interface.
* c-common.c (builtin_define_with_hex_fp_value): Likewise.
* c-lex.c (interpret_float): Likewise.
* emit-rtl.c (gen_lowpart_common): Likewise.
* optabs.c (expand_float): Use real_2expN.
* config/ia64/ia64.md (divsi3, udivsi3): Likewise.
* defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
(FLOAT_WORDS_BIG_ENDIAN): New.
* cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
directly to REAL_VALUE_NEGATIVE.
* loop.c (canonicalize_condition): Likewise.
* simplify-rtx.c: Include tree.h.
(simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
with floating-point result modes.
* toplev.c (backend_init): Call init_real_once.
* fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
* tree.c (build_real): Likewise.
* config/alpha/alpha.c, config/vax/vax.c (float_strings,
float_values, inited_float_values, check_float_value): Remove.
* config/alpha/alpha.h, config/m68hc11/m68hc11.h,
config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
* doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
gcc/f/
* target.c (ffetarget_real1): Don't pass FFETARGET_ATOF_
directly to ffetarget_make_real1.
(ffetarget_real2): Similarly.
* target.h (ffetarget_cvt_r1_to_rv_, ffetarget_cvt_rv_to_r2_,
ffetarget_cvt_r2_to_rv_): Use new real.h interface and simplify.
gcc/java/
* jcf-parse.c (get_constant): Runtime check for IEEE format;
use new real.h interface.
* jcf-write.c (find_constant_index): Use new real.h interface.
* lex.c (IS_ZERO): Use REAL_VALUES_EQUAL.
contrib/
* paranoia.cc: New file.
From-SVN: r57198
2002-09-16 18:36:39 +02:00
|
|
|
#ifndef FLOAT_WORDS_BIG_ENDIAN
|
|
|
|
#define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
Makefile.in (USER_H): Add ginclude/float.h.
* Makefile.in (USER_H): Add ginclude/float.h.
(FLOAT_H): Remove.
(stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
(mostlyclean): Don't remove float.h intermediate files.
(distclean): Don't remove float.h.
* config.gcc: Remove all float_format references.
* configure.in (float_format, float_h_file): Remove.
* c-common.c: Include tree-inline.h.
(builtin_define_with_int_value): New.
(builtin_define_type_precision): Use it.
(builtin_define_float_constants): New.
(cb_register_builtins): Use it. Define __FLT_RADIX__ and
__FLT_EVAL_METHOD__.
* defaults.h (TARGET_FLT_EVAL_METHOD): New.
* config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
* config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
* doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
(TARGET_FLT_EVAL_METHOD): New.
* config/float-c4x.h, config/float-i128.h, config/float-i32.h,
config/float-i386.h, config/float-i64.h, config/float-m68k.h,
config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
* ginclude/float.h: New.
From-SVN: r56769
2002-09-03 22:21:35 +02:00
|
|
|
#ifndef TARGET_FLT_EVAL_METHOD
|
|
|
|
#define TARGET_FLT_EVAL_METHOD 0
|
|
|
|
#endif
|
|
|
|
|
invoke.texi (-malign-double): Re-add lost warning.
* invoke.texi (-malign-double): Re-add lost warning.
* i386-protos.h (x86_output_mi_thunk): Declare.
* unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
* i386.c (x86_output_mi_thunk): ... here; handle 64bits.
* dwarf2out.c (output_call_frame_info): Do not skip unwind info
when flag_asynchronous_unwind_tables is set.
* flags.h (flag_reorder_functions): Declare.
* function.c (prepare_function_start): Initialize frequnecy.
* params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New paramters.
* Makefile.in (predict.o): Add dependency on target.h and params.h
* defaults.h (HOT_TEXT_SECTION_NAME,
UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
* predict.c (choose_function_section): New function.
(estimate_bb_frequencies): Use it.
* toplev.c (flag_reorder_functions): New global variable.
(lang_independent_options): New.
(parse_options_and_default_flags): Set.
* varasm.c (assemble_start_function): Bypass functdion alignment
for never executed functions.
* invoke.texi (-freorder-blocks, -freorder-functions): Document.
(param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
* tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
Document.
Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
* predict.c: Inlude profile.h
(MIN_COUNT): Rename to MIN_COUNT_FRACTION
(maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
Use the information about maximal counter in the program.
Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
* basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
probably_never_executed_bb_p): New functions.
* cfgcleanup.c (outgoing_edges_match): Use them.
* predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
(maybe_hot_bb_p, probably_cold_bb_p,
probably_never_executed_bb_p): New functions.
* function.h (function): Add new field function_frequency.
* predict.c (compute_function_frequency): New function.
(estimate_probability): Call it.
From-SVN: r53478
2002-05-15 11:00:30 +02:00
|
|
|
#ifndef HOT_TEXT_SECTION_NAME
|
2004-04-14 01:31:10 +02:00
|
|
|
#define HOT_TEXT_SECTION_NAME ".text.hot"
|
invoke.texi (-malign-double): Re-add lost warning.
* invoke.texi (-malign-double): Re-add lost warning.
* i386-protos.h (x86_output_mi_thunk): Declare.
* unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
* i386.c (x86_output_mi_thunk): ... here; handle 64bits.
* dwarf2out.c (output_call_frame_info): Do not skip unwind info
when flag_asynchronous_unwind_tables is set.
* flags.h (flag_reorder_functions): Declare.
* function.c (prepare_function_start): Initialize frequnecy.
* params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New paramters.
* Makefile.in (predict.o): Add dependency on target.h and params.h
* defaults.h (HOT_TEXT_SECTION_NAME,
UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
* predict.c (choose_function_section): New function.
(estimate_bb_frequencies): Use it.
* toplev.c (flag_reorder_functions): New global variable.
(lang_independent_options): New.
(parse_options_and_default_flags): Set.
* varasm.c (assemble_start_function): Bypass functdion alignment
for never executed functions.
* invoke.texi (-freorder-blocks, -freorder-functions): Document.
(param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
* tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
Document.
Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
* predict.c: Inlude profile.h
(MIN_COUNT): Rename to MIN_COUNT_FRACTION
(maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
Use the information about maximal counter in the program.
Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
* basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
probably_never_executed_bb_p): New functions.
* cfgcleanup.c (outgoing_edges_match): Use them.
* predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
(maybe_hot_bb_p, probably_cold_bb_p,
probably_never_executed_bb_p): New functions.
* function.h (function): Add new field function_frequency.
* predict.c (compute_function_frequency): New function.
(estimate_probability): Call it.
From-SVN: r53478
2002-05-15 11:00:30 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
|
2004-04-14 01:31:10 +02:00
|
|
|
#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text.unlikely"
|
invoke.texi (-malign-double): Re-add lost warning.
* invoke.texi (-malign-double): Re-add lost warning.
* i386-protos.h (x86_output_mi_thunk): Declare.
* unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
* i386.c (x86_output_mi_thunk): ... here; handle 64bits.
* dwarf2out.c (output_call_frame_info): Do not skip unwind info
when flag_asynchronous_unwind_tables is set.
* flags.h (flag_reorder_functions): Declare.
* function.c (prepare_function_start): Initialize frequnecy.
* params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New paramters.
* Makefile.in (predict.o): Add dependency on target.h and params.h
* defaults.h (HOT_TEXT_SECTION_NAME,
UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
* predict.c (choose_function_section): New function.
(estimate_bb_frequencies): Use it.
* toplev.c (flag_reorder_functions): New global variable.
(lang_independent_options): New.
(parse_options_and_default_flags): Set.
* varasm.c (assemble_start_function): Bypass functdion alignment
for never executed functions.
* invoke.texi (-freorder-blocks, -freorder-functions): Document.
(param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
* tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
Document.
Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
* predict.c: Inlude profile.h
(MIN_COUNT): Rename to MIN_COUNT_FRACTION
(maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
Use the information about maximal counter in the program.
Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
* basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
probably_never_executed_bb_p): New functions.
* cfgcleanup.c (outgoing_edges_match): Use them.
* predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
(maybe_hot_bb_p, probably_cold_bb_p,
probably_never_executed_bb_p): New functions.
* function.h (function): Add new field function_frequency.
* predict.c (compute_function_frequency): New function.
(estimate_probability): Call it.
From-SVN: r53478
2002-05-15 11:00:30 +02:00
|
|
|
#endif
|
|
|
|
|
basic-block.h (struct edge_def): Add new field, crossing_edge.
2004-04-09 Caroline Tice <ctice@apple.com>
* basic-block.h (struct edge_def): Add new field, crossing_edge.
(struct basic_block_def): Add new field, partition.
(UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
definitions.
(partition_hot_cold_basic_blocks): Add extern function
declaration.
* bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
include statements.
(N_ROUNDS): Increase the maximum number of rounds by 1.
(branch_threshold): Add array value for new round.
(exec_threshold): Add array value for new round.
(push_to_next_round_p): New function.
(add_unlikely_executed_notes): New function.
(find_rarely_executed_basic_blocks_and_crossing_edges): New function.
(mark_bb_for_unlikely_executed_section): New function.
(add_labels_and_missing_jumps): New function.
(add_reg_crossing_jump_notes): New function.
(fix_up_fall_thru_edges): New function.
(find_jump_block): New function.
(fix_crossing_conditional_branches): New function.
(fix_crossing_unconditional_branches): New function.
(fix_edges_for_rarely_executed_code): New function.
(partition_hot_cold_basic_blocks): New function.
(find_traces): Add an extra round for partitioning hot/cold
basic blocks.
(find_traces_1_round): Add a parameter. Modify to push all cold blocks,
and only cold blocks, into the last (extra) round of collecting traces.
(better_edge_p): Add a parameter. Modify to favor non-crossing edges
over crossing edges.
(bb_to_key): Add code to correctly identify cold blocks when
doing partitioning.
(connect_traces): Modify to connect all the non-cold traces first, then
go back and connect up all the cold traces.
(reorder_basic_blocks): Add call to add_unlikely_executed_notes.
* cfg.c (entry_exit_blocks): Add initialization for partition field in
entry and exit blocks.
* cfgbuild.c (make_edges): Update current_function_has_computed_jump
if we are doing hot/cold partitioning.
* cfgcleanup.c (cfglayout.h): Add new include statement.
(try_simplify_condjump): Modify to not attempt on blocks with jumps
that cross section boundaries.
(try_forward_edges): Likewise.
(merge_blocks_move_predecessor_nojumps): Likewise.
(merge_blocks_move_successor_nojumps): Likewise.
(merge_blocks_move): Likewise.
(try_crossjump_to_edge): Modify to not attempt after we have done
the block partitioning.
(try_crossjump_bb): Modify to not attempt on blocks with jumps that
cross section boundaries.
(try_optimize_cfg): Likewise.
* cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
jumps that cross section boundaries.
* cfglayout.c (flags.h): Add new include statement.
(update_unlikely_executed_notes): New function.
(fixup_reorder_chain): Add code so when a new jumping basic block is
added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
updated appropriately.
(duplicate_insn_chain): Add code to duplicate the new NOTE insn
introduced by this optimization.
* cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
extern function declaration.
* cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
list of notes that can be deleted.
(create_basic_block_structure): Add initialization for partition field.
(rtl_can_merge_blocks): Modify to test blocks for jumps that cross
section boundaries.
(try_redirect_by_replacing_jump): Modify to not attempt on jumps that
cross section boundaries.
(commit_one_edge_insertion): Add code so newly created basic block
ends up in correct (hot or cold) section. Modify to disallow
insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
(rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
crosses section boundaries.
(cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
cross section boundaries.
(force_nonfallthru_and_redirect): Modify to make sure new basic block
ends up in correct section, with correct notes attached.
* common.opt (freorder-blocks-and-partition): Add new flag for this
optimization.
* dbxout.c (dbx_function_end): Add code to make sure scope labels at
the end of functions are written into the correct (hot or cold)
section.
(dbx_source_file): Add code so writing debug file information
doesn't incorrectly change sections.
* defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
in partitioning hot/cold basic blocks into separate sections.
(SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
section partitioning.
(HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
conditional branches can span all of memory.
(HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
unconditional branches can span all of memory.
* final.c (scan_ahead_for_unlikely_executed_note): New function.
(final_scan_insn): Add code to check for NOTE instruction indicating
whether basic block belongs in hot or cold section, and to make sure
the current basic block is being written to the appropriate section.
Also added code to ensure that jump table basic blocks end up in the
correct section.
* flags.h (flag_reorder_blocks_and_partition): New flag.
* ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
one of the branches has a jump that crosses between sections.
(find_if_case_2): Likewise.
(ifcvt): Modify to not attempt to mark loop exit edges after
hot/cold partitioning has occurred.
* opts.c (decode_options): Code to handle new flag,
flag_reorder_blocks_and_partition; also to turn it off if
flag_exceptions is on.
(common_handle_option): Code to handle new flag,
flag_reorder_blocks_and_partition.
* output.h (unlikely_text_section): New extern function declaration.
(in_unlikely_text_section): New extern function declaration.
* passes.c (rest_of_handle_stack_regs): Add
flag_reorder_blocks_and_partition as an 'or' condition for calling
reorder_basic_blocks.
(rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
as an 'or' condition for calling reorder_basic_blocks.
(rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
* print-rtl.c (print_rtx): Add code for handling new note,
NOTE_INSN_UNLIKELY_EXECUTED_CODE
* rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
(REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
cross between section boundaries.
* rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
indicating the basic block containing it belongs in the cold section.
(REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
between hot and cold sections.
* toplev.c (flag_reorder_blocks_and_partition): Add code to
initialize this flag, and to tie it to the command-line option
freorder-blocks-and-partition.
* varasm.c (cfglayout.h): Add new include statement.
(unlikely_section_label_printed): New global variable, used for
determining when to output section name labels for cold sections.
(in_section): Add in_unlikely_executed_text to enum data structure.
(text_section): Modify code to use SECTION_FORMAT_STRING and
NORMAL_TEXT_SECTION_NAME macros.
(unlikely_text_section): New function.
(in_unlikely_text_section): New function.
(function_section): Add code to make sure beginning of function is
written into correct section (hot or cold).
(assemble_start_function): Add code to make sure stuff is written to
the correct section.
(assemble_zeros): Add in_unlikely_text_section as an 'or' condition
to an if statement that was checking 'in_text_section'.
(assemble_variable): Add 'in_unlikely_text_section' as an 'or'
condition to an if statement that was checking 'in_text_section'.
(default_section_type_flags_1): Add check: if in cold section
flags = SECTION_CODE.
* config/darwin.c (darwin_asm_named_section): Modify to use
SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
* config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
specifically for the i386.
(HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
* config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
text string to something more informative.
(NORMAL_TEXT_SECTION_NAME): Add new definition.
(SECTION_FORMAT_STRING): Add new definition.
* config/rs6000/rs6000.c (rs6000_assemble_integer): Add
'!in_unlikely_text_section' as an 'and' condition to an if statement
that was already checking '!in_text_section'.
* config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
sure these are properly defined for linux on ppc.
* doc/invoke.texi (freorder-blocks-and-partition): Add documentation
for this new flag.
* doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
reg_note.
* doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
these new macros.
From-SVN: r80564
2004-04-09 21:57:47 +02:00
|
|
|
#ifndef HAS_LONG_COND_BRANCH
|
|
|
|
#define HAS_LONG_COND_BRANCH 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAS_LONG_UNCOND_BRANCH
|
|
|
|
#define HAS_LONG_UNCOND_BRANCH 0
|
|
|
|
#endif
|
|
|
|
|
2004-08-17 18:17:14 +02:00
|
|
|
#ifndef UNITS_PER_SIMD_WORD
|
|
|
|
#define UNITS_PER_SIMD_WORD 0
|
|
|
|
#endif
|
|
|
|
|
2002-06-07 19:14:56 +02:00
|
|
|
/* Determine whether __cxa_atexit, rather than atexit, is used to
|
2002-09-08 14:47:27 +02:00
|
|
|
register C++ destructors for local statics and global objects. */
|
2002-06-07 19:14:56 +02:00
|
|
|
#ifndef DEFAULT_USE_CXA_ATEXIT
|
|
|
|
#define DEFAULT_USE_CXA_ATEXIT 0
|
|
|
|
#endif
|
|
|
|
|
2002-08-14 12:04:51 +02:00
|
|
|
/* Determine whether extra constraint letter should be handled
|
|
|
|
via address reload (like 'o'). */
|
|
|
|
#ifndef EXTRA_MEMORY_CONSTRAINT
|
defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
* defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
(EXTRA_ADDRESS_CONSTRAINT): Likewise.
(CONSTRAINT_LEN): Provide default definition.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
(EXTRA_CONSTRAINT_STR): Likewise.
(REG_CLASS_FROM_CONSTRAINT): Define.
* genoutput.c (check_constraint_len, constraint_len): New functions.
(validate_insn_alternatives): Check CONSTRAINT_LEN for each
constraint / modifier.
(gen_insn): Call check_constraint_len.
* local-alloc.c (block_alloc): Update to use new macros / pass
second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
* ra-build.c (handle_asm_insn): Likewise.
* recog.c (asm_operand_ok, preprocess_constraints): Likewise.
(constrain_operands, peep2_find_free_register): Likewise.
* regclass.c (record_operand_costs, record_reg_classes): Likewise.
* regmove.c (find_matches): Likewise.
* reload.c (push_secondary_reload, find_reloads): Likewise.
(alternative_allows_memconst): Likewise.
* reload1.c (maybe_fix_stack_asms): Likewise.
(reload_cse_simplify_operands): Likewise.
* stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
* doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
(EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
* config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
From-SVN: r61119
2003-01-09 18:28:49 +01:00
|
|
|
#define EXTRA_MEMORY_CONSTRAINT(C,STR) 0
|
2002-08-14 12:04:51 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Determine whether extra constraint letter should be handled
|
|
|
|
as an address (like 'p'). */
|
|
|
|
#ifndef EXTRA_ADDRESS_CONSTRAINT
|
defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
* defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
(EXTRA_ADDRESS_CONSTRAINT): Likewise.
(CONSTRAINT_LEN): Provide default definition.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
(EXTRA_CONSTRAINT_STR): Likewise.
(REG_CLASS_FROM_CONSTRAINT): Define.
* genoutput.c (check_constraint_len, constraint_len): New functions.
(validate_insn_alternatives): Check CONSTRAINT_LEN for each
constraint / modifier.
(gen_insn): Call check_constraint_len.
* local-alloc.c (block_alloc): Update to use new macros / pass
second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
* ra-build.c (handle_asm_insn): Likewise.
* recog.c (asm_operand_ok, preprocess_constraints): Likewise.
(constrain_operands, peep2_find_free_register): Likewise.
* regclass.c (record_operand_costs, record_reg_classes): Likewise.
* regmove.c (find_matches): Likewise.
* reload.c (push_secondary_reload, find_reloads): Likewise.
(alternative_allows_memconst): Likewise.
* reload1.c (maybe_fix_stack_asms): Likewise.
(reload_cse_simplify_operands): Likewise.
* stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
* doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
(EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
* config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
From-SVN: r61119
2003-01-09 18:28:49 +01:00
|
|
|
#define EXTRA_ADDRESS_CONSTRAINT(C,STR) 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* When a port defines CONSTRAINT_LEN, it should use DEFAULT_CONSTRAINT_LEN
|
|
|
|
for all the characters that it does not want to change, so things like the
|
|
|
|
'length' of a digit in a matching constraint is an implementation detail,
|
|
|
|
and not part of the interface. */
|
|
|
|
#define DEFAULT_CONSTRAINT_LEN(C,STR) 1
|
|
|
|
|
|
|
|
#ifndef CONSTRAINT_LEN
|
|
|
|
#define CONSTRAINT_LEN(C,STR) DEFAULT_CONSTRAINT_LEN (C, STR)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (CONST_OK_FOR_LETTER_P) && ! defined (CONST_OK_FOR_CONSTRAINT_P)
|
|
|
|
#define CONST_OK_FOR_CONSTRAINT_P(VAL,C,STR) CONST_OK_FOR_LETTER_P (VAL, C)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (CONST_DOUBLE_OK_FOR_LETTER_P) && ! defined (CONST_DOUBLE_OK_FOR_CONSTRAINT_P)
|
|
|
|
#define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(OP,C,STR) \
|
|
|
|
CONST_DOUBLE_OK_FOR_LETTER_P (OP, C)
|
|
|
|
#endif
|
|
|
|
|
2003-06-16 12:53:22 +02:00
|
|
|
#ifndef REG_CLASS_FROM_CONSTRAINT
|
defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
* defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
(EXTRA_ADDRESS_CONSTRAINT): Likewise.
(CONSTRAINT_LEN): Provide default definition.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
(EXTRA_CONSTRAINT_STR): Likewise.
(REG_CLASS_FROM_CONSTRAINT): Define.
* genoutput.c (check_constraint_len, constraint_len): New functions.
(validate_insn_alternatives): Check CONSTRAINT_LEN for each
constraint / modifier.
(gen_insn): Call check_constraint_len.
* local-alloc.c (block_alloc): Update to use new macros / pass
second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
* ra-build.c (handle_asm_insn): Likewise.
* recog.c (asm_operand_ok, preprocess_constraints): Likewise.
(constrain_operands, peep2_find_free_register): Likewise.
* regclass.c (record_operand_costs, record_reg_classes): Likewise.
* regmove.c (find_matches): Likewise.
* reload.c (push_secondary_reload, find_reloads): Likewise.
(alternative_allows_memconst): Likewise.
* reload1.c (maybe_fix_stack_asms): Likewise.
(reload_cse_simplify_operands): Likewise.
* stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
* doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
(EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
* config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
From-SVN: r61119
2003-01-09 18:28:49 +01:00
|
|
|
#define REG_CLASS_FROM_CONSTRAINT(C,STR) REG_CLASS_FROM_LETTER (C)
|
2003-06-16 12:53:22 +02:00
|
|
|
#endif
|
defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
* defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
(EXTRA_ADDRESS_CONSTRAINT): Likewise.
(CONSTRAINT_LEN): Provide default definition.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
(EXTRA_CONSTRAINT_STR): Likewise.
(REG_CLASS_FROM_CONSTRAINT): Define.
* genoutput.c (check_constraint_len, constraint_len): New functions.
(validate_insn_alternatives): Check CONSTRAINT_LEN for each
constraint / modifier.
(gen_insn): Call check_constraint_len.
* local-alloc.c (block_alloc): Update to use new macros / pass
second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
* ra-build.c (handle_asm_insn): Likewise.
* recog.c (asm_operand_ok, preprocess_constraints): Likewise.
(constrain_operands, peep2_find_free_register): Likewise.
* regclass.c (record_operand_costs, record_reg_classes): Likewise.
* regmove.c (find_matches): Likewise.
* reload.c (push_secondary_reload, find_reloads): Likewise.
(alternative_allows_memconst): Likewise.
* reload1.c (maybe_fix_stack_asms): Likewise.
(reload_cse_simplify_operands): Likewise.
* stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
* doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
(CONST_OK_FOR_CONSTRAINT_P): Likewise.
(CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
(EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
* config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
From-SVN: r61119
2003-01-09 18:28:49 +01:00
|
|
|
|
|
|
|
#if defined (EXTRA_CONSTRAINT) && ! defined (EXTRA_CONSTRAINT_STR)
|
|
|
|
#define EXTRA_CONSTRAINT_STR(OP, C,STR) EXTRA_CONSTRAINT (OP, C)
|
2002-08-14 12:04:51 +02:00
|
|
|
#endif
|
|
|
|
|
2003-06-27 14:40:13 +02:00
|
|
|
#ifndef REGISTER_MOVE_COST
|
|
|
|
#define REGISTER_MOVE_COST(m, x, y) 2
|
|
|
|
#endif
|
|
|
|
|
builtins.c (DEF_BUILTIN): Accept 10 arguments.
* builtins.c (DEF_BUILTIN): Accept 10 arguments.
(implicit_built_in_decls): New global array.
(mathfn_built_in): New global function.
(fold_trunc_transparent_mathfn): New static function
(expand_builtin_strstr, expand_bultin_strchr,
expand_builtin_strpbrk, expand_builtin_strcpy,
expand_builtin_strncpy, expand_bultin_strcmp,
expand_bultin_strncat, expand_builtin_fputs): Use
implicint_built_in_decls.
(fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
* builtins.def: Fix comments.
(DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
(DEF_C99_C90RES_BULTIN): New.
(*f, *l builtins): Update.
* c-common.c (DEF_BUILTIN): Initialize implicit array.
(c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
* convert.c (strip_float_extensions): New global function.
* tree.h (DEF_BUILTIN): Accept 10 arguments.
(implicit_built_in_decls, mathfn_built_in, strip_float_extension):
Declare.
* java/builtins.c (define_builtin): Handle implicit.
(DEF_BUILTIN): Update.
* tm.texi (TARGET_C99_FUNCTIONS): Document.
* defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
* config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
when using glibc2.
From-SVN: r61738
2003-01-24 23:07:01 +01:00
|
|
|
/* Determine whether the the entire c99 runtime
|
|
|
|
is present in the runtime library. */
|
|
|
|
#ifndef TARGET_C99_FUNCTIONS
|
|
|
|
#define TARGET_C99_FUNCTIONS 0
|
|
|
|
#endif
|
|
|
|
|
2003-02-05 23:37:54 +01:00
|
|
|
/* Indicate that CLZ and CTZ are undefined at zero. */
|
2004-08-24 02:30:52 +02:00
|
|
|
#ifndef CLZ_DEFINED_VALUE_AT_ZERO
|
2003-02-05 23:37:54 +01:00
|
|
|
#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
|
|
|
|
#endif
|
2004-08-24 02:30:52 +02:00
|
|
|
#ifndef CTZ_DEFINED_VALUE_AT_ZERO
|
2003-02-05 23:37:54 +01:00
|
|
|
#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
|
|
|
|
#endif
|
|
|
|
|
2003-06-14 23:47:45 +02:00
|
|
|
/* Provide a default value for STORE_FLAG_VALUE. */
|
|
|
|
#ifndef STORE_FLAG_VALUE
|
|
|
|
#define STORE_FLAG_VALUE 1
|
|
|
|
#endif
|
|
|
|
|
2003-07-09 02:58:58 +02:00
|
|
|
/* This macro is used to determine what the largest unit size that
|
|
|
|
move_by_pieces can use is. */
|
|
|
|
|
|
|
|
/* MOVE_MAX_PIECES is the number of bytes at a time which we can
|
|
|
|
move efficiently, as opposed to MOVE_MAX which is the maximum
|
|
|
|
number of bytes we can move with a single instruction. */
|
|
|
|
|
|
|
|
#ifndef MOVE_MAX_PIECES
|
|
|
|
#define MOVE_MAX_PIECES MOVE_MAX
|
|
|
|
#endif
|
|
|
|
|
2003-10-07 21:48:23 +02:00
|
|
|
#ifndef STACK_POINTER_OFFSET
|
|
|
|
#define STACK_POINTER_OFFSET 0
|
|
|
|
#endif
|
|
|
|
|
2003-12-09 04:34:07 +01:00
|
|
|
#ifndef LOCAL_REGNO
|
|
|
|
#define LOCAL_REGNO(REGNO) 0
|
|
|
|
#endif
|
|
|
|
|
2003-12-16 01:06:36 +01:00
|
|
|
/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
|
|
|
|
the stack pointer does not matter. The value is tested only in
|
|
|
|
functions that have frame pointers. */
|
|
|
|
#ifndef EXIT_IGNORE_STACK
|
|
|
|
#define EXIT_IGNORE_STACK 0
|
|
|
|
#endif
|
|
|
|
|
2004-01-19 04:08:14 +01:00
|
|
|
/* Assume that case vectors are not pc-relative. */
|
|
|
|
#ifndef CASE_VECTOR_PC_RELATIVE
|
|
|
|
#define CASE_VECTOR_PC_RELATIVE 0
|
|
|
|
#endif
|
|
|
|
|
2004-05-13 08:41:07 +02:00
|
|
|
/* Assume that trampolines need function alignment. */
|
|
|
|
#ifndef TRAMPOLINE_ALIGNMENT
|
|
|
|
#define TRAMPOLINE_ALIGNMENT FUNCTION_BOUNDARY
|
|
|
|
#endif
|
|
|
|
|
2004-02-21 01:39:05 +01:00
|
|
|
/* Register mappings for target machines without register windows. */
|
|
|
|
#ifndef INCOMING_REGNO
|
|
|
|
#define INCOMING_REGNO(N) (N)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OUTGOING_REGNO
|
|
|
|
#define OUTGOING_REGNO(N) (N)
|
|
|
|
#endif
|
|
|
|
|
2004-02-21 19:41:48 +01:00
|
|
|
#ifndef SHIFT_COUNT_TRUNCATED
|
|
|
|
#define SHIFT_COUNT_TRUNCATED 0
|
|
|
|
#endif
|
|
|
|
|
defaults.h (LEGITIMIZE_ADDRESS): Provide a default definition.
* defaults.h (LEGITIMIZE_ADDRESS): Provide a default
definition.
* config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
config/h8300/h8300.h, config/ia64/ia64.h,
config/mcore/mcore.h, config/mmix/mmix.h,
config/ns32k/ns32k.h, config/pdp11/pdp11.h,
config/stormy16/stormy16.h, config/v850/v850.h,
config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
* doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
definition.
From-SVN: r79066
2004-03-07 21:23:32 +01:00
|
|
|
#ifndef LEGITIMIZE_ADDRESS
|
|
|
|
#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
|
|
|
|
#endif
|
|
|
|
|
2004-08-04 01:37:34 +02:00
|
|
|
#ifndef LEGITIMATE_PIC_OPERAND_P
|
|
|
|
#define LEGITIMATE_PIC_OPERAND_P(X) 1
|
|
|
|
#endif
|
|
|
|
|
2004-03-15 19:51:53 +01:00
|
|
|
#ifndef REVERSIBLE_CC_MODE
|
|
|
|
#define REVERSIBLE_CC_MODE(MODE) 0
|
|
|
|
#endif
|
|
|
|
|
2004-08-18 04:27:18 +02:00
|
|
|
/* Biggest alignment supported by the object file format of this machine. */
|
|
|
|
#ifndef MAX_OFILE_ALIGNMENT
|
|
|
|
#define MAX_OFILE_ALIGNMENT BIGGEST_ALIGNMENT
|
|
|
|
#endif
|
|
|
|
|
2001-05-26 03:31:47 +02:00
|
|
|
#endif /* ! GCC_DEFAULTS_H */
|