aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m68hc11
AgeCommit message (Collapse)Author
2002-10-16gcc/rth
* real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments. Bound DIGITS by the available buffer size. (real_to_hexadecimal): Likewise. * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes. (REAL_VALUE_TO_DECIMAL): Remove. * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c, sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c, config/i370/i370.h, config/i386/i386.c, config/i960/i960.c, config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h, config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c, config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to use real_to_decimal directly, and with the proper arguments. * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove. gcc/cp/ * error.c (dump_expr): Use real_to_decimal directly, and with the new arguments. gcc/f/ * target.h (ffetarget_print_real1, ffetarget_print_real2): Use real_to_decimal directly, and with the new arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58187 138bc75d-0d04-0410-961f-82ee72b054a4
2002-09-16 * m68hc11.md (addhi_sp): Fix uninitialized variable bug.ghazi
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57202 138bc75d-0d04-0410-961f-82ee72b054a4
2002-09-16gcc/rth
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57198 138bc75d-0d04-0410-961f-82ee72b054a4
2002-09-14 * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetableciceron
memory operand when source is 0 (K constraint). ("movsi_internal"): Likewise. ("movdf_internal"): Likewise. ("movsf_internal"): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57136 138bc75d-0d04-0410-961f-82ee72b054a4
2002-09-04 * real.c (ereal_to_decimal): Add digits parameter.rth
* real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter. * c-pretty-print.c (pp_c_real_literal): Update call. * print-rtl.c (print_rtx): Likewise. * print-tree.c (print_node_brief, print_node): Likewise. * sched-vis.c (print_value): Likewise. * config/arc/arc.c (arc_print_operand): Likewise. * config/c4x/c4x.c (c4x_print_operand): Likewise. * config/i370/i370.h (PRINT_OPERAND): Likewise. * config/i386/i386.c (print_operand): Likewise. * config/i960/i960.c (i960_print_operand): Likewise. * config/ip2k/ip2k.c (asm_output_float): Likewise. * config/m32r/m32r.c (m32r_print_operand): Likewise. * config/m68hc11/m68hc11.c (print_operand): Likewise. * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise. * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise. * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise. * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise. * config/mips/mips.c (print_operand): Likewise. * config/ns32k/ns32k.c (print_operand): Likewise. * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise. * config/vax/vax.h (PRINT_OPERAND): Likewise. * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs. * f/target.h (ffetarget_print_real1, ffetarget_print_real2): Update call to REAL_VALUE_TO_DECIMAL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56798 138bc75d-0d04-0410-961f-82ee72b054a4
2002-08-20 * arc.c (output_shift): Use stdio instead of asm_fprintf.ghazi
* arm.c (thumb_output_function_prologue): Likewise. * avr.c (print_operand): Likewise. * c4x.c (c4x_print_operand): Likewise. * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE, ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise. * cris.c (cris_target_asm_function_prologue, cris_asm_output_mi_thunk): Likewise. * h8300.c (print_operand): Likewise. * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise. * ip2k.c (print_operand): Likewise. Fix format specifier. * m68hc11.c (asm_print_register, print_operand, print_operand_address): Use stdio instead of asm_fprintf. (print_operand_address): Fix format specifier. * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of asm_fprintf. * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise. * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise. * m68k.c (m68k_output_function_prologue, m68k_output_function_epilogue, print_operand): Likewise. * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label): Likewise. Fix format specifier. * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise. * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise. * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56472 138bc75d-0d04-0410-961f-82ee72b054a4
2002-08-14 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.ciceron
* config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now. (LIBGCC2_CFLAGS): Compile with -mrelax. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56285 138bc75d-0d04-0410-961f-82ee72b054a4
2002-08-14 * doc/invoke.texi: Document -minmax for 68HC12.ciceron
* config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX. ("uminqi3"): Likewise. ("uminhi3", "umaxhi3"): Likewise. * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define. (TARGET_MIN_MAX): Define. (TARGET_SWITCHES): New option -minmax/-mnominmax. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56284 138bc75d-0d04-0410-961f-82ee72b054a4
2002-08-14 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.ciceron
(MULTILIB_OPTIONS): Must also generate for -mlong-calls. * config/m68hc11/larith.asm: Put a mode for ELF ABI flags. (ret, declare, farsym): New gas macros. (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3, ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc' and declare the symbol far when compiled with -mlong-calls. (__far_trampoline): New for 68HC12 trampoline code to invoke a far handler using jsr/bsr. * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags. (jsr): New macro to transform a 'jsr' into a 'call'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56282 138bc75d-0d04-0410-961f-82ee72b054a4
2002-08-14 * doc/invoke.texi: Document -mlong-calls for 68HC12.ciceron
* config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when -mlong-calls is specified. (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt assembler directives. (TARGET_LONG_CALL, MASK_LONG_CALL): Declare. (TARGET_SWITCHES): Add -mlong-calls options. (current_function_far): Declare. * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take into account the page register saved on the stack. (m68hc11_override_options): Take into account -mlong-calls option. (m68hc11_asm_file_start): Put a mode for the ELF flags ABI. * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc if the function is going to be in 68HC12 banked memory (-mlong-calls). ("*return_16bit"): Likewise. ("*return_void"): Likewise. ("call", "call_value"): Use call for a far function call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56275 138bc75d-0d04-0410-961f-82ee72b054a4
2002-08-01 * toplev.c (parse_options_and_default_flags): Don't setrth
flag_reorder_blocks for -Os. * config/avr/avr.c (avr_optimization_options): Remove. * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove. * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove. * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55958 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-31 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.ghazi
* defaults.h (ASM_GLOBALIZE_LABEL): Provide a default. * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55891 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-30 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,ghazi
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55872 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-22 PR target/6744ciceron
* config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace ASM_OPERANDS instructions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55659 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-22 PR target/7361ciceron
* config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept constant addresses only on 68HC12. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55658 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-17 * cpplib.c (do_sccs): Handle #sccs on all systems.neil
* system.h (SCCS_DIRECTIVE): Poison. * config/darwin.h, config/freebsd.h, config/netbsd.h, config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h, config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h, config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h, config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h, config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h, config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h: Remove all references to SCCS_DIRECTIVE. * doc/cpp.texi, doc/tm.texi: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55542 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-16 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.hubicka
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55500 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-16 * ginclude/varargs.h: Replace with stub which issues #error.zack
* ginclude/stdarg.h: __builtin_stdarg_start is renamed __builtin_va_start. * builtins.def (BUILT_IN_VARARGS_START): Delete. (BUILT_IN_VA_START): New. * builtins.c (expand_builtin_va_start): Eliminate first argument and code to implement pre-ISO varargs. (std_expand_builtin_va_start): Ignore first argument; it is always 1. (expand_builtin): Handle BUILT_IN_VA_START and BUILT_IN_STDARG_START identically. Delete BUILT_IN_VARARGS_START case. * function.c (assign_parms): Delete hide_last_arg and all its uses. (mark_varargs): Delete function. * function.h (struct function): Delete 'varargs' bit. (current_function_varargs): Delete macro. * tree.h: Don't declare mark_varargs. * c-decl.c (c_function_varargs, c_mark_varargs): Delete. (c_expand_body): Don't call mark_varargs. * c-objc-common.c: Handle BUILT_IN_VA_START and BUILT_IN_STDARG_START identically. Delete BUILT_IN_VARARGS_START case. * c-tree.h: Don't declare c_mark_varargs. * c-parse.in: Remove grammar rules for '&...' (which has been commented out since before 2.7.2) and for '...' in K+R argument declarations. * builtins.c, function.c, integrate.c, sibcall.c, config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h, config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c, config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c, config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h, config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h, config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c, config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.c: Delete all references to current_function_varargs, and code predicated on that flag. * config/alpha/alpha.c (alpha_va_start), config/arc/arc.c (arc_va_start), config/i386/i386.c (ix86_va_start), config/mips/mips.c (mips_va_start), config/mn10300/mn10300.c (mn10300_va_start), config/rs6000/rs6000.c (rs6000_va_start), config/s390/s390.c (s390_va_start), config/sh/sh.c (sh_va_start), Ignore first argument; it is always 1. * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start. * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start. * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c: Delete m68hc11_va_start. * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h: No need to define EXPAND_BUILTIN_VA_START. * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Remove references to GCC-provided <varargs.h>. testsuite: * c-torture/execute/991216-3.c, c-torture/execute/strct-varg-1.c, c-torture/execute/va-arg-7.c, c-torture/execute/va-arg-8.c, c-torture/execute/va-arg-15.c, c-torture/execute/va-arg-16.c, c-torture/execute/va-arg-17.c, c-torture/execute/va-arg-19.c: Convert to use <stdarg.h>. * c-torture/execute/va-arg-3.c, c-torture/execute/va-arg-3.x: Delete. * gcc.dg/va-arg-2.c: New. * lib/gcc.exp, lib/objc.exp: Remove code to set -DNO_VARARGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55472 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-12 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only forciceron
the scratch register. ("*movhi2_push"): Accept Z_REG because a split pattern can make use of it, forbid reload to use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55425 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-05 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocatingciceron
QI mode registers in soft registers. ("zero_extendqihi2"): Do not take into account soft registers for register allocation (use '*' constraint). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55274 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-05 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we knowciceron
it is dead. ("*ashrsi3"): Likewise. ("*lshrsi3"): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55270 138bc75d-0d04-0410-961f-82ee72b054a4
2002-07-05 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimizeciceron
address computation and memory moves. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55267 138bc75d-0d04-0410-961f-82ee72b054a4
2002-06-28 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint tociceron
avoid the auto increment addressing modes. ("*subsi3"): Likewise. (split for add/sub on address): For 68HC12 push the value on the stack and do the operation with a pop. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55083 138bc75d-0d04-0410-961f-82ee72b054a4
2002-06-28 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.ciceron
* config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options): Declare. * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New, do not reorder basic blocks at the end when optimizing for size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55079 138bc75d-0d04-0410-961f-82ee72b054a4
2002-06-28 * config/m68hc11/m68hc11.c (autoinc_mode): New function.ciceron
(m68hc11_make_autoinc_notes): New function. (m68hc11_split_move): Be very cautious when spliting a move with auto increment/decrement modes because this may result in incompatible directions; add REG_INC notes to the resulting insn for CSE reg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55076 138bc75d-0d04-0410-961f-82ee72b054a4
2002-06-28 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constantciceron
can be a valid address. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55073 138bc75d-0d04-0410-961f-82ee72b054a4
2002-06-12 * c-common.c (builtin_define_type_max): New.rth
(cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__. From Joseph S. Myers: * glimits.h: Rewrite to expect the double underscore definitions from the compiler. * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h, config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h, config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h, config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h, config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h, config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__, __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54544 138bc75d-0d04-0410-961f-82ee72b054a4
2002-06-04Merge from pch-branch up to tag pch-commit-20020603.geoffk
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54232 138bc75d-0d04-0410-961f-82ee72b054a4
2002-05-19 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,rth
FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison. * toplev.c (display_help): Kill -a -ax help. * config/1750a/1750a.h, config/alpha/alpha.h, config/clipper/clipper.h, config/dsp16xx/dsp16xx.h, config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h, config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h: (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill. * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill. * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill. * config/i386/i386-protos.h (ix86_output_block_profiler): Kill. (ix86_output_function_block_profiler): Kill. * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill. (m68hc11_function_block_profiler): Kill. * config/m68hc11/m68hc11-protos.h: Update. * config/m88k/m88k.c (output_block_profiler): Kill. (output_function_block_profiler): Kill. * config/m88k/m88k-protos.h: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53617 138bc75d-0d04-0410-961f-82ee72b054a4
2002-05-19 * system.h (ENCODE_SECTION_INFO): Poison it.rth
* target-def.h (TARGET_ENCODE_SECTION_INFO): New. * target.h (encode_section_info): New. * varasm.c (make_decl_rtl, output_constant_def): Use it. * hooks.c (hook_tree_int_void): New. * hooks.h: Declare it. * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c, config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h, config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h, config/mcore/mcore-protos.h, config/mcore/mcore.c, config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000-protos.h, config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c, config/stormy16/stormy16.h: Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO referencing existing function. Make function static. * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c, config/arc/arc.h, config/arm/arm.c, config/arm/arm.h, config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c, config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c, config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c, config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c, config/pa/pa.h, config/romp/romp.c, config/romp/romp.h, config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c, config/s390/s390.h, config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h, config/vax/vax.c, config/vax/vms.h, config/xtensa/xtensa.c, config/xtensa/xtensa.h: Move ENCODE_SECTION_INFO to out-of-line function and add TARGET_ENCODE_SECTION_INFO. * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro. (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise. * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename from SUBTARGET_* (switch_to_section): Replace in_rdata case with in_readonly_data. * config/h8300/h8300.c (h8300_encode_label): Make static. * config/h8300/h8300-protos.h: Update. * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename from rs6000_encode_section_info; make static. (rs6000_xcoff_encode_section_info): New. * config/v850/v850.c (v850_encode_data_area): Make static. * config/v850/v850-protos.h: Update. * config/vax/vax.c: Include flags.h. (vms_select_section): Fix typo. * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous ENCODE_SECTION_INFO docs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53606 138bc75d-0d04-0410-961f-82ee72b054a4
2002-04-09 * config/m68hc11/larith.asm (__map_data_section): Fix conditionciceron
and optimize for size. (__do_global_ctors): Fix pointer comparison. (__do_global_dtors): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52086 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-24 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.ciceron
(m68hc11_split_move): Call it to see if the source and destination operands use the same direction auto inc/dec mode, otherwise make the source an offsetable operand and generate an add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51264 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-24 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow addressciceron
register for operand 2. ("*subsi3_zero_extendqi"): Likewise. ("*iorhi3_gen"): Do the operation on the upper bits and then lower bits so that it is compatible with a pop. ("*andhi3_gen"): Likewise. ("xorhi3"): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51262 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-22 PR optimization/5854jakub
* config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0. Shut up warnings. (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0. (EXTRA_CONSTRAINT): Use S for non-push memory operand. * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from const0 if scratch register was not allocated. (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart, m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...) with GEN_INT (...). (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs. * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...) with GEN_INT (...) everywhere. Remove constraints in define_split patterns. (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't require scratch register for setting 0 into regs/non-pushable memory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51194 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-16 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't useciceron
soft registers by default for 68HC12. (m68hc11_conditional_register_usage): Don't use Z register for 68HC12 when compiling with -fomit-frame-pointer. (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12. (expand_epilogue): Likewise. (m68hc11_gen_rotate): Use exg when rotating by 8. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50882 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-16 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.ciceron
* config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources. (splits): Remove unused add splits. ("*addhi3_68hc12"): Tune constraints. ("addhi_sp"): Try to use X instead of Y in all cases and if the constant fits in 8-bits and D is dead use abx/aby instructions. ("*addhi3"): Remove extern declaration of ix_reg. ("*subsi3"): Optimize and provide new split. ("subhi3"): Cleanup. ("*subhi3_sp"): Avoid saving X if we know it is dead. (arith splits): For 68hc12 save the address register on the stack and do the arithmetic operation with a pop. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50880 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-16 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoidciceron
allocating QImode in address registers. ("*movqi_m68hc11"): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50878 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.ciceron
("tstqi" split): Avoid using memory for tstqi on address register. (splits): Remove constraints. ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12. ("cmpdf", "cmpsf"): Remove since not used. ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2. (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50849 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.ciceron
("neghi2"): Tighten constraints. ("one_cmplsi2"): Optimize and simplify split. * config/m68hc11/larith.asm (__negsi2): Likewise for library. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50847 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraintsciceron
and split of AND operation to clear the upper bits. ("*logicalsi3_zextqi"): Likewise. ("*logicallhi3_zexthi_ashift8"): Likewise. ("*logicalsi3_silshr16"): Likewise. ("logicalsi3_silshl16"): Likewise. ("anddi3", "iordi3", "xordi3" splits): Remove constraints. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50845 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.ciceron
(m68hc11_indirect_p): New function. (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12. (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of TARGET_M6812. (asm_print_register): Likewise. * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare. (m68hc11_indirect_p): Declare. * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'. (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New. (TARGET_SWITCHES): New option -mrelax. * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for destination. ("iorsi3", "xorsi3"): Likewise. ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand. ("*andhi3_mem"): New to handle destination in memory with bclr and a scratch register. ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise. ("*andhi3_const"): New when operand2 is constant. ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise. ("*andhi3_gen"): Cleanup of the old "andhi3". ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise. ("xorqi3"): Update constraints. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50843 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Lookciceron
for reg_equiv_memory_loc when the operand is a register that does not get a hard register (stack location). (tst_operand): After reload, accept all memory operand. (symbolic_memory_operand): Fix detection of symbolic references. * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12 accept symbols and any constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50839 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INCciceron
note on the insn that sets the soft frame register. (must_parenthesize): ix and iy are also reserved names. (print_operand_address): One more place where parenthesis are required to avoid confusion with register names. (m68hc11_gen_movhi): Allow push of stack pointer. (m68hc11_check_z_replacement): Fix handling of parallel with a clobber. (m68hc11_z_replacement): Must update the REG_INC notes to tell what the replacement register is. * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS and D8_REGS classes. (MODES_TIEABLE_P): All modes are tieable except QImode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50837 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.ciceron
(___subdi3): Likewise. (__mulsi3, __mulhi32): Avoid using _.tmp scratch location. (__map_data_section): Optimize 68hc11 case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50835 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-15 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higherciceron
than a shift to avoid adding a register with itself. (m68hc11_memory_move_cost): Take into account NO_REGS. (m68hc11_register_move_cost): Update and use memory move cost for soft registers. (m68hc11_address_cost): Make cost of valid offset not 0 so that it gives more opportunities to cse to optimize. * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode. * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50833 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-12 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,ghazi
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50634 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-03 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,zack
print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c, tree.c, config/m68k/m68k.c, f/com.c, f/target.h, java/expr.c, java/jcf-parse.c, java/lex.c: Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef REAL_ARITHMETIC blocks unconditional. Delete some further #ifdef blocks predicated on REAL_ARITHMETIC. * flags.h, toplev.c: Delete remaining references to flag_pretend_float. * doc/invoke.texi: Remove documentation of -fpretend-float. * doc/tm.texi: Describe the various REAL_* macros as provided by real.h, not by the target configuration files. * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h, config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h, config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h, config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h, config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h, config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h, config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h, config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h, config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Do not define, undefine, or mention in comments any of REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF, REAL_VALUE_ISNAN, REAL_VALUE_ISINF, REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE, REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL, REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS, REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX, REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT, REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE, REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50263 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-03 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,ghazi
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50257 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-03 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,ghazi
m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c, stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50256 138bc75d-0d04-0410-961f-82ee72b054a4
2002-03-03 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;rth
invoke ENCODE_SECTION_INFO with first call flag. * config/darwin-protos.h, config/darwin.c, config/darwin.h, config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h, config/arm/arm.h, config/arm/pe.c, config/arm/pe.h, config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h, config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h, config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h, config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c, config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h, config/m88k/m88k.h, config/mcore/mcore-protos.h, config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h, config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h, config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h, config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c, config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h, config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes FIRST argument. As needed, examine it and do nothing. * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h, config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/mcore/mcore.h: Remove REDO_SECTION_INFO_P. * config/arm/t-pe (pe.o): Add dependencies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50236 138bc75d-0d04-0410-961f-82ee72b054a4