Joern Rennecke [Wed, 29 Dec 2010 17:18:04 +0000 (29 17:18 +0000)]
config-list.mk (LIST): Replace x86_64-mingw64-gnu --enable-sjlj-exceptions=yes with x86_64-mingw32...
* config-list.mk (LIST): Replace
x86_64-mingw64-gnu --enable-sjlj-exceptions=yes with
x86_64-mingw32 --enable-sjlj-exceptions=yes .
From-SVN: r168323
Joern Rennecke [Wed, 29 Dec 2010 15:52:33 +0000 (29 15:52 +0000)]
config-list.mk (LIST): Replace sparc-sun-solaris2 --enable-threads=solaris with sparc-sun-solaris2.8...
* config-list.mk (LIST): Replace
sparc-sun-solaris2 --enable-threads=solaris with
sparc-sun-solaris2.8 --enable-threads=solaris .
From-SVN: r168321
Joern Rennecke [Wed, 29 Dec 2010 14:45:14 +0000 (29 14:45 +0000)]
* config-list.mk (LIST): Replace sh-netbsd with sh-netbsdelf.
From-SVN: r168319
Joern Rennecke [Wed, 29 Dec 2010 13:58:05 +0000 (29 13:58 +0000)]
* config-list.mk (LIST): Replace ppc64-elf with ppc64-freebsd6.
From-SVN: r168317
Joern Rennecke [Wed, 29 Dec 2010 12:38:58 +0000 (29 12:38 +0000)]
(LIST): Replace ix86-netwareOPT-with-ld=nwld with i586-netwareOPT-with-ld=SCRIPTSnwld.
contrib:
* (LIST): Replace ix86-netwareOPT-with-ld=nwld with
i586-netwareOPT-with-ld=SCRIPTSnwld.
Replace m68k-netbsdef [sic] with m68k-netbsdelf.
(make-script-dir): New target.
$(LIST): Depend on it. For configure invocation, Substitute SCRIPTS
with pathname of scripts directory (w/ trailing /).
From-SVN: r168316
Joern Rennecke [Mon, 27 Dec 2010 23:15:39 +0000 (27 23:15 +0000)]
config-list.mk: New file.
contrib:
* config-list.mk: New file.
From-SVN: r168280
Joern Rennecke [Mon, 27 Dec 2010 23:00:27 +0000 (27 23:00 +0000)]
re PR other/46677 (frontends and tree optimizers use *_TYPE_SIZE)
PR other/46677
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00964.html
http://gcc.gnu.org/ml/gcc-cvs/2010-12/msg00792.html
http://gcc.gnu.org/ml/gcc-cvs/2010-12/msg00949.html
gcc:
* doc/tm.texi: Regenerate.
* doc/tm.texi.in (SIZE_TYPE): Now an enum integer_type_kind value.
(PTRDIFF_TYPE, WCHAR_TYPE, WINT_TYPE, INTMAX_TYPE): Likewise.
(UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE): Likewise.
(INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE): Likewise.
(UINT32_TYPE, UINT64_TYPE, INT_LEAST8_TYPE): Likewise.
(INT_LEAST16_TYPE, INT_LEAST32_TYPE, INT_LEAST64_TYPE): Likewise.
(UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE): Likewise.
(UINT_LEAST64_TYPE, INT_FAST8_TYPE, INT_FAST16_TYPE): Likewise.
(INT_FAST32_TYPE, INT_FAST64_TYPE, UINT_FAST8_TYPE): Likewise.
(UINT_FAST16_TYPE, UINT_FAST32_TYPE, UINT_FAST64_TYPE): Likewise.
(INTPTR_TYPE, UINTPTR_TYPE): Likewise.
* defaults.h: Adjust for new *_TYPE definitions.
(PID_TYPE): Now an enum integer_type_kind value.
(CHAR16_TYPE, CHAR32_TYPE): Likewise.
* tree.c (integer_type_names): New array.
* tree.h (integer_type_names): Declare.
* coretypes.h (enum integer_type_kind):
Add comment about connection with integer_type_names.
* config/alpha/alpha.h: Adjust for new *_TYPE definitions.
* config/alpha/openbsd.h, config/alpha/osf5.h: Likewise.
* config/frv/frv.h, config/s390/tpf.h, config/s390/linux.h: Likewise.
* config/m32c/m32c.h, config/sparc/linux.h: Likewise.
* config/sparc/sp64-elf.h, config/sparc/openbsd64.h: Likewise.
* config/sparc/sp-elf.h, config/sparc/sol2-bi.h: Likewise.
* config/sparc/sparc.h, config/sparc/linux64.h: Likewise.
* config/sparc/netbsd-elf.h, config/sparc/sysv4.h: Likewise.
* config/interix.h, config/vx-common.h, config/mep/mep.h: Likewise.
* config/m32r/linux.h, config/m32r/m32r.h: Likewise.
* config/openbsd-stdint.h, config/rx/rx.h: Likewise.
* config/i386/cygming.h, config/i386/linux.h: Likewise.
* config/i386/djgpp.h, config/i386/djgpp-stdint.h: Likewise.
* config/i386/x86-64.h, config/i386/netbsd.h: Likewise.
* config/i386/netbsd-elf.h, config/i386/cygwin-stdint.h: Likewise.
* config/i386/netware.h, config/i386/i386-interix.h: Likewise.
* config/i386/mingw-stdint.h, config/i386/sol2-10.h: Likewise.
* config/i386/openbsdelf.h, config/i386/darwin.h: Likewise.
* config/i386/mingw32.h, config/i386/openbsd.h: Likewise.
* config/i386/nto.h, config/i386/freebsd.h: Likewise.
* config/freebsd-stdint.h, config/sol2.h, config/sh/elf.h: Likewise.
* config/sh/sh.h, config/sh/sh64.h, config/pdp11/pdp11.h: Likewise.
* config/avr/avr.h, config/crx/crx.h: Likewise.
* config/xtensa/linux.h, config/xtensa/elf.h: Likewise.
* config/stormy16/stormy16.h, config/fr30/fr30.h: Likewise.
* config/lm32/lm32.h, config/lynx.h, config/moxie/moxie.h: Likewise.
* config/m68hc11/m68hc11.h, config/cris/linux.h: Likewise.
* config/cris/cris.h, config/netbsd.h: Likewise.
* config/iq2000/iq2000.h, config/svr4.h, config/ia64/ia64.h: Likewise.
* config/ia64/hpux.h, config/ia64/sysv4.h: Likewise.
* config/glibc-stdint.h, config/newlib-stdint.h: Likewise.
* config/m68k/m68kemb.h, config/m68k/openbsd.h: Likewise.
* config/m68k/netbsd-elf.h, config/m68k/m68k.h: Likewise.
* config/rs6000/aix53.h, config/rs6000/netbsd.h: Likewise.
* config/rs6000/aix.h, config/rs6000/aix51.h: Likewise.
* config/rs6000/aix43.h, config/rs6000/linux64.h: Likewise.
* config/rs6000/darwin.h, config/rs6000/aix52.h: Likewise.
* config/rs6000/rs6000.h, config/rs6000/aix-stdint.h: Likewise.
* config/rs6000/aix61.h, config/rs6000/freebsd.h: Likewise.
* config/rs6000/sysv4.h, config/picochip/picochip.h: Likewise.
* config/mcore/mcore.h, config/arc/arc.h, config/darwin.h: Likewise.
* config/score/score.h, config/arm/arm.h: Likewise.
* config/arm/linux-gas.h, config/arm/pe.h: Likewise.
* config/arm/freebsd.h, config/arm/netbsd.h: Likewise.
* config/arm/netbsd-elf.h, config/pa/pa-hpux.h: Likewise.
* config/pa/pa-hpux11.h, config/pa/pa-64.h, config/pa/pa.h: Likewise.
* config/pa/pa32-linux.h, config/mips/linux.h: Likewise.
* config/mips/sde.h, config/mips/openbsd.h: Likewise.
* config/mips/iris6.h, config/mips/mips.h: Likewise.
* config/mips/netbsd.h, config/vax/openbsd.h: Likewise.
* config/vax/linux.h, config/vax/elf.h, config/vax/netbsd.h: Likewise.
* config/freebsd.h, config/h8300/h8300.h, config/vxworks.h: Likewise.
* config/hpux-stdint.h, config/bfin/bfin.h: Likewise.
* config/mn10300/mn10300.h, config/m68k/linux.h: Likewise.
* config/v850/v850.h: Likewise.
gcc/c-family:
c-common.c (c_get_ident): Delete.
(c_common_nodes_and_builtins): Adjust for new *_TYPE definitions.
(c_stddef_cpp_builtins): Likewise.
gcc/fortan:
* iso-c-binding.def: Adjust for new *_TYPE definitions.
* trans-types.c (get_typenode_from_name): Delete.
(get_int_kind_from_name): Likewise.
(get_int_kind_from_kind): New function.
* f95-lang.c: Adjust for new *_TYPE definitions.
gcc/lto:
* lto-lang.c (lto_build_c_type_nodes, lto_init): Adjust for
new *_TYPE definitions.
From-SVN: r168279
Joern Rennecke [Mon, 27 Dec 2010 13:40:14 +0000 (27 13:40 +0000)]
re PR other/46677 (frontends and tree optimizers use *_TYPE_SIZE)
http://gcc.gnu.org/ml/gcc-cvs/2010-12/msg00947.html
PR other/46677
* config/rs6000/darwin.h (darwin_bool_type_size): Move from here...
* config/darwin.h: ... to here.
From-SVN: r168275
Joern Rennecke [Mon, 27 Dec 2010 13:24:48 +0000 (27 13:24 +0000)]
re PR other/46677 (frontends and tree optimizers use *_TYPE_SIZE)
PR other/46677
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00934.html
http://gcc.gnu.org/ml/gcc-cvs/2010-12/msg00947.html
gcc:
* doc/tm.texi: Regenerate.
* doc/tm.texi.in (BOOL_TYPE_SIZE): Delete.
(TARGET_BOOL_TYPE_SIZE): New hook.
* targhooks.c (legacy_integer_type_size): New function.
(default_bool_type_size, legacy_float_type_size): Likewise.
* targhooks.h (legacy_integer_type_size): Declare.
(default_bool_type_size, legacy_float_type_size): Likewise.
* target.def (bool_type_size): New hook.
(integer_type_size, float_type_size): Likewise.
* defaults.h (BOOL_TYPE_SIZE): Delete.
* tree.c (free_lang_data): Use targetm.bool_type_size.
(build_common_tree_nodes): Likewise.
* tree.h (enum integer_type_kind): Move from here...
* coretypes.h ... to here.
* target.h (enum th_float_type): New enum.
* tree-ssa-loop-ivopts.c (add_standard_iv_candidates):
Use targetm.integer_type_size.
* tree-data-ref.c: Include target.h
(estimated_loop_iterations_tree): Use targetm.integer_type_size.
* system.h (BOOL_TYPE_SIZE): Poison.
* Makefile.in (tree-data-ref.o): Depend on $(TARGET_H) .
* config/rs6000/darwin.h (BOOL_TYPE_SIZE): Delete.
(TARGET_BOOL_TYPE_SIZE): Define.
* config/darwin.c (darwin_bool_type_size): New function.
* config/darwin.h: (darwin_bool_type_size): Declare.
gcc/c-family.c:
* c-common.c (c_common_to_target_charset):
Use TYPE_PRECISION (char_type_node).
gcc/java:
* decl.c (java_init_decl_processing): Use targetm.integer_type_size.
* expr.c (expand_java_return): Likewise.
gcc/ada:
* gcc-interface/decl.c (gnat_to_gnu_entity):
Use targetm.float_type_size and targetm.integer_type_size.
(make_type_from_size): Use targetm.integer_type_size.
* gcc-interface/targtyps.c: Include target.h .
[!ADA_LONG_TYPE_SIZE] (ADA_LONG_TYPE_SIZE):
Use targetm.integer_type_size.
[!WIDEST_HARDWARE_FP_SIZE] (LONG_DOUBLE_TYPE_SIZE): Don't define.
(get_target_char_size): Use targetm.integer_type_size.
(get_target_wchar_t_size, get_target_short_size): Likewise.
(get_target_int_size, get_target_long_long_size): Likewise.
(get_target_float_size): Use targetm.float_type_size.
(get_target_double_size, get_target_long_double_size): Likewise.
(MALLOC_OBSERVABLE_ALIGNMENT): Use targetm.integer_type_size.
* gcc-interface/trans.c: Include target.h .
(gigi): Use targetm.float_type_size.
(build_binary_op_trapv): Use targetm.integer_type_size.
* gcc-interface/Make-lang.in (ada/targtyps.o): Depend on $(TARGET_H).
(ada/trans.o): Likewise.
gcc/fortran:
* trans-types.c (gfc_init_kinds): Use targetm.integer_type_size.
(gfc_build_int_type): Likewise.
(gfc_build_uint_type): Use TYPE_PRECISION on the type nodes checked.
(gfc_build_real_type): Use targetm.float_type_size.
(gfc_build_logical_type): Use targetm.bool_type_size.
[0] (c_size_t_size): Delete.
* f95-lang.c [!CHAR_TYPE_SIZE] (CHAR_TYPE_SIZE): Don't define.
[!INT_TYPE_SIZE] (INT_TYPE_SIZE): Likewise.
* iso-c-binding.def (c_bool): Use targetm.bool_type_size.
* types.def (BT_BOOL): Likewise.
* trans-intrinsic.c (build_round_expr): Use TYPE_PRECISION
on *_integer_type_node to find out these type's sizes.
(gfc_conv_intrinsic_leadz, gfc_conv_intrinsic_trailz): Likewise.
(gfc_conv_intrinsic_popcnt_poppar): Likewise.
From-SVN: r168274
Joern Rennecke [Mon, 27 Dec 2010 13:08:44 +0000 (27 13:08 +0000)]
re PR other/46677 (frontends and tree optimizers use *_TYPE_SIZE)
PR other/46677
http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02772.html
gcc:
* targhooks.c (pointer_size): New function.
* cppbuiltin.c (define_builtin_macros_for_lp64): Use pointer_size.
(define_builtin_macros_for_type_sizes): Likewise.
* target.h (pointer_size): Declare.
* cppbuiltin.c (define_builtin_macros_for_type_sizes):
Use TYPE_PRECISION (char_type_node).
gcc/c-family:
c-common.c (c_common_nodes_and_builtins): Use pointer_size.
gcc/java:
* decl.c (java_init_decl_processing): Use pointer_size.
* java-tree.h (JAVA_POINTER_SIZE): Define.
* class.c (make_class_data): Use JAVA_POINTER_SIZE.
(emit_register_classes): Likewise.
* jcf-parse.c (handle_long_constant): Likewise.
* constants.c (build_constants_constructor): Likewise.
* builtins.c (UNMARSHAL3, UNMARSHAL4, UNMARSHAL5): Likewise.
(compareAndSwapObject_builtin): Likewise.
* boehm.c (get_boehm_type_descriptor): Likewise.
(mark_reference_fields): Add log2_size parameter. Changed all callers.
gcc/cp:
* cvt.c (cp_convert_to_pointer): Use TYPE_PRECISION (ptr_type_node).
gcc/fortran:
* trans-types.c (gfc_init_kinds): Use pointer_size.
gcc/lto:
* lto-object.c (lto_obj_begin_section): Use pointer_size.
ada:
* gcc-interface/decl.c (gnat_to_gnu_entity): Replace pointer_size
with pointer_size_t. Replace POINTER_SIZE with pointer_size ().
(rest_of_type_decl_compilation_no_defer): Use pointer_size.
(gnat_to_gnu_param, annotate_rep, make_type_from_size): Likewise.
* gcc-interface/utils2.c: Include target.h .
(maybe_wrap_malloc, maybe_wrap_free): Use pointer_size.
* gcc-interface/targtyps.c: Include target.h .
(get_target_pointer_size): Use pointer_size.
From-SVN: r168273
Joern Rennecke [Mon, 27 Dec 2010 12:59:58 +0000 (27 12:59 +0000)]
2010-12-27 Joern Rennecke <amylaar@spamcop.net>
From Ralf Wildenhues:
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg01515.html
gcc:
* target.def (init_cumulative_args): Documentation spelling fixes.
* doc/tm.texi: Regenerate.
2010-12-27 Joern Rennecke <amylaar@spamcop.net>
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg01514.html
gcc:
* doc/tm.texi: Regenerate.
* doc/tm.texi.in (CALL_POPS_ARGS): Change into ...
(TARGET_CALL_POPS_ARGS): New hook.
(TARGET_CUMULATIVE_ARGS_SIZE): New hook marker.
(TARGET_INIT_CUMULATIVE_ARGS): Likewise.
* targhooks.c (legacy_init_cumulative_args): New function.
(init_simple_cumulative_args, hook_int_cumulative_args_0): Likewise.
* targhooks.h (legacy_init_cumulative_args): Declare.
(init_simple_cumulative_args, hook_int_cumulative_args_0): Likewise.
* genrecog.c (write_header): Also include target.h.
* genemit.c (main): Likewise.
* genconditions.c (write_header): Likewise.
* gengtype (do_typedef): Also special-case cumulative_args_t.
(main): Likewise.
* target.def (cumulative_args_size): New const pod "hook".
(init_cumulative_args, call_pops_args): New hooks.
* target.h (cumulative_args_t) Move from here ...
* coretypes.h (cumulative_args_t): ... to here.
* builtin.c (std_gimplify_va_arg_expr): Use pack_cumulative_args.
* expr.c (block_move_libcall_safe_for_call_parm): Use new hooks.
* dse.c (get_call_args): Likewise.
* calls.c (emit_call_1, emit_library_call_value_1): Likewise.
* function.c (pass_by_reference): Take a cumulative_args_t parameter.
Changed all callers.
(reference_callee_copied): Likewise.
(struct assign_parm_data_all): Change type of args_so_far to
cumulative_args_t. Changed all users.
(assign_parms_initialize_all): Take an extra void * parameter.
Changed all callers. Use new hooks.
* function.h (struct incoming_arg) <info>: Change type to
cumulative_args_t. Changed all users.
(pass_by_reference, reference_callee_copied): Update prototype.
* calls.c (emit_call_1): Changed args_so_far to cumulative_args_t.
Changed all callers.
(initialize_argument_information): Likewise.
* Makefile.in (insn-emit.o): Depend on $(TARGET_H).
(insn-recog.o): Likewise.
(build/gencondmd.o): Depend on target.h.
* config/m32c/m32c.h (CALL_POPS_ARGS): Don't define.
* config/sh/sh.c (TARGET_CALL_POPS_ARGS): Override.
(sh_call_pops_args): New function.
* config/sh/sh.h (CALL_POPS_ARGS): Don't define.
gcc/ada:
* gcc-interface/misc.c (default_pass_by_ref): Update for new
pass_by_reference signature.
From-SVN: r168272
Joern Rennecke [Mon, 27 Dec 2010 12:14:07 +0000 (27 12:14 +0000)]
re PR middle-end/46500 (target.h includes tm.h)
PR middle-end/46500
http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01994.html
http://gcc.gnu.org/ml/gcc-bugs/2010-11/msg03026.html
http://gcc.gnu.org/ml/gcc-cvs/2010-12/msg00673.html
gcc:
* doc/tm.texi: Regenerate.
* targhooks.c (default_setup_incoming_varargs): Replace
CUMULATIVE_ARGS* argument type with cumulative_args_t.
(default_pretend_outgoing_varargs_named): Likewise.
(hook_pass_by_reference_must_pass_in_stack): Likewise.
(hook_callee_copies_named): Likewise.
(default_function_arg_advance): Likewise.
(default_function_arg): Likewise.
(default_function_incoming_arg): Likewise.
(hook_bool_CUMULATIVE_ARGS_false): Likewise.
(hook_bool_CUMULATIVE_ARGS_true): Likewise.
(hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
(hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
(hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
* targhooks.h (default_setup_incoming_varargs): Likewise.
(default_pretend_outgoing_varargs_named): Likewise.
(hook_pass_by_reference_must_pass_in_stack): Likewise.
(hook_callee_copies_named): Likewise.
(default_function_arg_advance): Likewise.
(default_function_arg): Likewise.
(default_function_incoming_arg): Likewise.
(hook_bool_CUMULATIVE_ARGS_false): Likewise.
(hook_bool_CUMULATIVE_ARGS_true): Likewise.
(hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
(hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
(hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
* target.def (pass_by_reference): Likewise.
(setup_incoming_varargs, strict_argument_naming): Likewise.
(pretend_outgoing_varargs_named, callee_copies): Likewise.
(arg_partial_bytes, function_arg_advance, function_arg): Likewise.
(function_incoming_arg): Likewise.
* target.h: Don't include "tm.h" .
(cumulative_args_t): New typedef.
[GCC_TM_H] (get_cumulative_args): New static inline function.
[GCC_TM_H] (pack_cumulative_args): Likewise.
* config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
argument type with cumulative_args_t.
(alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
(alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
* config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
(frv_arg_partial_bytes, frv_function_arg): Likewise.
(frv_function_incoming_arg, frv_function_arg_advance): Likewise.
(frv_function_arg_1): Likewise.
* config/s390/s390.c (s390_pass_by_reference): Likewise.
(s390_function_arg_advance, s390_function_arg): Likewise.
* config/m32c/m32c.c (m32c_function_arg): Likewise.
(m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
(m32c_strict_argument_naming): Likewise.
* config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
(spu_function_arg_advance): Likewise.
(spu_setup_incoming_varargs): Likewise. Make static.
* config/spu/spu-protos.h (spu_setup_incoming_varargs):
Remove prototype.
* config/sparc/sparc.c (sparc_strict_argument_naming): Replace
CUMULATIVE_ARGS* argument type with cumulative_args_t.
(sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
(sparc_function_arg, sparc_function_incoming_arg): Likewise.
(sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
* config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
(mep_pass_by_reference, mep_function_arg): Likewise.
(mep_function_arg_advance): Likewise.
* config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
(m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
(m32r_function_arg, m32r_function_arg_advance): Likewise.
* config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
* config/i386/i386.c (ix86_function_arg_advance): Likewise.
(ix86_function_arg, ix86_pass_by_reference): Likewise.
(ix86_setup_incoming_varargs): Likewise.
* config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
(sh_strict_argument_naming): Likewise.
(sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
(sh_callee_copies, sh_arg_partial_bytes): Likewise.
(sh_function_arg_advance, sh_function_arg): Likewise.
* config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
(pdp11_function_arg_advance): Likewise.
* config/microblaze/microblaze.c (microblaze_function_arg_advance):
Likewise.
(microblaze_function_arg, function_arg_partial_bytes): Likewise.
* config/avr/avr.c (avr_function_arg): Likewise.
(avr_function_arg_advance): Likewise.
* config/crx/crx.c (crx_function_arg): Likewise.
(crx_function_arg_advance): Likewise.
* config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
(xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
(xtensa_function_arg_1): Likewise.
* config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
(xstormy16_function_arg): Likewise.
* config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
(fr30_arg_partial_bytes, fr30_function_arg): Likewise.
(fr30_function_arg_advance): Likewise.
* config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
(lm32_function_arg, lm32_function_arg_advance): Likewise.
* config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
(moxie_function_arg, moxie_function_arg_advance): Likewise.
(moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
* config/m68hc11/m68hc11.c (m68hc11_function_arg): Likewise.
(m68hc11_function_arg_advance): Likewise.
* config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
(cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
(cris_function_arg, cris_function_incoming_arg): Likewise.
(cris_function_arg_advance, cris_function_arg_1): Likewise.
* config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
(iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
(iq2000_function_arg, iq2000_function_arg_advance): Likewise.
* config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
(mn10300_function_arg, mn10300_function_arg_advance): Likewise.
(mn10300_arg_partial_bytes): Likewise.
* config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
(ia64_arg_partial_bytes, ia64_function_arg): Likewise.
(ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
(ia64_function_arg_1): Likewise.
* config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
(m68k_function_arg): Likewise.
* config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
(rs6000_function_arg, setup_incoming_varargs): Likewise.
(rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
* config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
(picochip_function_arg, picochip_incoming_function_arg): Likewise.
(picochip_arg_advance): Likewise.
* config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
(mcore_arg_partial_bytes, mcore_function_arg): Likewise.
(mcore_function_arg_advance): Likewise.
* config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
(arc_pass_by_reference, arc_function_arg): Likewise.
(arc_function_arg_advance): Likewise.
* config/score/score.c (score_pass_by_reference): Likewise.
(score_function_arg_advance): Likewise.
(score_arg_partial_bytes): Likewise. Make static.
* config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
* config/arm/arm.c (arm_arg_partial_bytes): Replace
CUMULATIVE_ARGS* argument type with cumulative_args_t.
(arm_function_arg, arm_function_arg_advance): Likewise.
(arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
* config/pa/pa.c (pa_pass_by_reference): Likewise.
(pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
(pa_function_arg): Likewise.
* config/mips/mips.c (mips_strict_argument_naming): Likewise.
(mips_function_arg, mips_function_arg_advance): Likewise.
(mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
(mips_callee_copies, mips_setup_incoming_varargs): Likewise.
* config/vax/vax.c (vax_function_arg): Likewise.
(vax_function_arg_advance): Likewise.
* config/h8300/h8300.c (h8300_function_arg): Likewise.
(h8300_function_arg_advance): Likewise.
* config/v850/v850.c (v850_pass_by_reference): Likewise.
(v850_strict_argument_naming, v850_function_arg): Likewise.
(v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
(v850_setup_incoming_varargs): Likewise.
* config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
(mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
(mmix_function_arg, mmix_pass_by_reference): Likewise.
(mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
with const void *.
* config/bfin/bfin.c (setup_incoming_varargs): Replace
CUMULATIVE_ARGS* argument type with cumulative_args_t.
(bfin_function_arg_advance, bfin_function_arg): Likewise.
(bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
* calls.c (initialize_argument_information): Use pack_cumulative_args.
(expand_call, emit_library_call_value_1): Likewise.
* dse.c (get_call_args): Likewise.
* expr.c (block_move_libcall_safe_for_call_parm): Likewise.
* function.c (pass_by_reference, reference_callee_copied): Likewise.
(assign_parm_find_data_types, assign_parms_setup_varargs): Likewise.
(assign_parm_find_entry_rtl, assign_parms): Likewise.
(gimplify_parameters): Likewise.
* config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
* config/mips/mips.c (mips_output_args_xfer): Likewise.
* config/s390/s390.c (s390_call_saved_register_used): Likewise.
* config/sh/sh.c (sh_output_mi_thunk): Likewise.
* config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
* config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
m32r_pass_by_reference.
* config/spu/spu.c (spu_gimplify_va_arg_expr): Adjust for changed
spu_pass_by_reference.
gcc/c-family:
* c-opts.c: Include "tm.h" .
gcc/java:
* expr.c: Include "tm.h" .
gcc/fortran:
* trans-types.c: Include "tm.h" .
gcc/ada:
* gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
From-SVN: r168268
Joern Rennecke [Mon, 27 Dec 2010 11:11:13 +0000 (27 11:11 +0000)]
Remove old ChangeLog.46489 .
From-SVN: r168267
Joern Rennecke [Mon, 27 Dec 2010 11:08:37 +0000 (27 11:08 +0000)]
re PR ada/46738 (microblaze ada --enable-werror-always build fails)
PR ada/46738
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00128.html
gcc:
* targhooks.c (legacy_asm_output_ident): New function.
* targhooks.h (legacy_asm_output_ident): Declare.
* target.def (asm_out): New hook output_ident.
* doc/tm.texi.in (TARGET_ASM_OUTPUT_IDENT): Indicate place for new
hook.
* doc/tm.texi: Regenerate.
gcc/c-family:
* c-lex.c (cb_ident): Use targetm.asm_out.output_ident.
gcc/ada:
* gcc-interface/Make-lang.in (ada/trans.o): Depend on $(TARGET_H).
* gcc-interface/trans.c: Include target.h .
(gigi): Use targetm.asm_out.output_ident .
From-SVN: r168266
GCC Administrator [Mon, 27 Dec 2010 00:18:18 +0000 (27 00:18 +0000)]
Daily bump.
From-SVN: r168261
Nicola Pero [Sun, 26 Dec 2010 22:49:57 +0000 (26 22:49 +0000)]
In gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/gnu-api-2-class.m: Xfail the test on Apple Darwin m64.
* objc.dg/gnu-api-2-ivar.m: Same.
* objc.dg/gnu-api-2-method.m: Same.
* objc.dg/gnu-api-2-objc.m: Same.
* objc.dg/gnu-api-2-object.m: Same.
* objc.dg/gnu-api-2-protocol.m: Same.
* obj-c++.dg/gnu-api-2-class.mm: Same.
* obj-c++.dg/gnu-api-2-ivar.mm: Same.
* obj-c++.dg/gnu-api-2-method.mm: Same.
* obj-c++.dg/gnu-api-2-objc.mm: Same.
* obj-c++.dg/gnu-api-2-object.mm: Same.
* obj-c++.dg/gnu-api-2-protocol.mm: Same.
From-SVN: r168256
Martin Jambor [Sun, 26 Dec 2010 21:01:11 +0000 (26 22:01 +0100)]
tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE, compare TYPE_MAIN_VARIANTs of types.
2010-12-26 Martin Jambor <mjambor@suse.cz>
* tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE,
compare TYPE_MAIN_VARIANTs of types.
From-SVN: r168255
Nicola Pero [Sun, 26 Dec 2010 18:21:38 +0000 (26 18:21 +0000)]
In gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/pr44509.m: New.
In gcc/objc/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c.
In gcc/objcp/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c.
From-SVN: r168254
Andreas Schwab [Sun, 26 Dec 2010 18:19:04 +0000 (26 18:19 +0000)]
* gcc/config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs.
From-SVN: r168253
Nicola Pero [Sun, 26 Dec 2010 18:05:00 +0000 (26 18:05 +0000)]
In gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/gnu-api-2-class.m: Updated the test to work with the
Apple runtime as well.
* obj-c++.dg/gnu-api-2-class.mm: Same change.
* objc.dg/gnu-api-2-ivar.m: Same change.
* obj-c++.dg/gnu-api-2-ivar.mm: Same change.
* objc.dg/gnu-api-2-method.m: Same change.
* obj-c++.dg/gnu-api-2-method.mm: Same change.
* objc.dg/gnu-api-2-objc.m: Same change.
* obj-c++.dg/gnu-api-2-objc.mm: Same change.
* objc.dg/gnu-api-2-object.m: Same change.
* obj-c++.dg/gnu-api-2-object.mm: Same change.
* objc.dg/gnu-api-2-property.m: Same change.
* obj-c++.dg/gnu-api-2-property.mm: Same change.
* objc.dg/gnu-api-2-protocol.m: Same change.
* obj-c++.dg/gnu-api-2-protocol.mm: Same change.
* objc.dg/gnu-api-2-objc.m: Also, fixed test for
objc_disposeClassPair not to create a new class pair with the same
name as an existing class, and to test that the class pair is
created correctly.
* obj-c++.dg/gnu-api-2-objc.mm: Same change.
From-SVN: r168252
Nicola Pero [Sun, 26 Dec 2010 16:56:01 +0000 (26 16:56 +0000)]
In libobjc/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* init.c (create_tree_of_subclasses_inherited_from): Use
class_superclass_of_class instead of assuming a class is
unresolved when it could be resolved. Tidied up code.
(__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
(objc_tree_insert_class): Tidied up loop; return immediately upon
inserting a class.
(__objc_exec_class): Do not set __objc_class_tree_list.
In gcc/testsuite/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/special/special.exp: Added load-category-2 and
load-category-3 tests.
* objc.dg/special/load-category-2.h: New.
* objc.dg/special/load-category-2.m: New.
* objc.dg/special/load-category-2a.m: New.
* objc.dg/special/load-category-3.h: New.
* objc.dg/special/load-category-3.m: New.
* objc.dg/special/load-category-3a.m: New.
From-SVN: r168251
Joseph Myers [Sun, 26 Dec 2010 11:34:24 +0000 (26 11:34 +0000)]
* sv.po: Update.
From-SVN: r168250
Uros Bizjak [Sun, 26 Dec 2010 09:18:55 +0000 (26 10:18 +0100)]
ChangeLog: Fix formatting issues and remove duplicate entries.
* ChangeLog: Fix formatting issues and remove duplicate entries.
* testsuite/ChangeLog: Ditto.
From-SVN: r168249
GCC Administrator [Sun, 26 Dec 2010 00:17:47 +0000 (26 00:17 +0000)]
Daily bump.
From-SVN: r168248
Joseph Myers [Sat, 25 Dec 2010 20:56:25 +0000 (25 20:56 +0000)]
* de.po: Update.
From-SVN: r168244
Ira Rosen [Sat, 25 Dec 2010 12:53:58 +0000 (25 12:53 +0000)]
re PR testsuite/47057 (FAIL/XPASS gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c)
PR testsuite/47057
* gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c: Change
comment. Expect two outer loops to get vectorized.
From-SVN: r168242
Kai Tietz [Sat, 25 Dec 2010 10:41:05 +0000 (25 10:41 +0000)]
re PR c++/15774 (Conflicting function decls not diagnosed)
2010-12-25 Kai Tietz <kai.tietz@onevision.com>
PR c++/15774
* decl.c (decls_match): Check for FUNCTION_DECL
also for identity of compatible attributes.
ChangeLog gcc/testsuite
2010-12-25 Kai Tietz <kai.tietz@onevision.com>
PR c++/15774
* g++.dg/warn/pr15774-1.C: New test.
* g++.dg/warn/pr15774-2.C: New test.
From-SVN: r168241
GCC Administrator [Sat, 25 Dec 2010 00:19:01 +0000 (25 00:19 +0000)]
Daily bump.
From-SVN: r168236
Nicola Pero [Fri, 24 Dec 2010 20:10:46 +0000 (24 20:10 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* selector.c (sel_getTypedSelector): Return NULL if given a NULL
argument.
(sel_registerTypedName): Same.
(sel_registerName): Same.
* objc/runtime.h: Updated documentation.
In gcc/testsuite/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/gnu-api-2-sel.m: Test calling sel_getUid,
sel_registerName and sel_registerTypedName with NULL arguments.
Updated the test to work with the Apple runtime as well.
* obj-c++.dg/gnu-api-2-sel.mm: Same change.
From-SVN: r168231
Nicola Pero [Fri, 24 Dec 2010 18:41:05 +0000 (24 18:41 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/runtime.h (class_addIvar): Updated documentation. The
alignment is actually the log_2 of the alignment in bytes.
* ivars.c (class_addIvar): Corresponding change to the
implementation.
In gcc/testsuite/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/gnu-api-2-class.m: Updated test to pass log_2 of the
alignment to class_addIvar, instead of the alignment itself.
* obj-c++.dg/gnu-api-2-class.mm: Same change.
From-SVN: r168230
Nicola Pero [Fri, 24 Dec 2010 17:00:19 +0000 (24 17:00 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
be consistent with method_getTypeEncoding and
ivar_getTypeEncoding.
(sel_copyTypedSelectorList, sel_getTypedSelector): New.
* selector.c (sel_getType): Renamed to sel_getTypeEncoding.
(sel_copyTypedSelectorList, sel_getTypedSelector): New.
(sel_get_type): Updated call to sel_getType.
In gcc/testsuite/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/gnu-api-2-sel.m: Updated for renaming of sel_getType to
sel_getTypeEncoding. Test that sel_getTypeEncoding returns NULL
when called with a NULL argument. Added test for
sel_copyTypedSelectorList and sel_getTypedSelector.
* obj-c++.dg/gnu-api-2-sel.mm: Same changes.
From-SVN: r168229
Eric Botcazou [Fri, 24 Dec 2010 16:15:38 +0000 (24 16:15 +0000)]
* gnat.dg/opt13_pkg.ad[sb]: Fix line ending.
From-SVN: r168227
Nicola Pero [Fri, 24 Dec 2010 15:32:25 +0000 (24 15:32 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/runtime.h (class_conformsToProtocol,
class_copyProtocolList): Updated documentation.
In gcc/testsuite/:
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
* obj-c.dg/gnu-api-2-class.m: Test that class_conformsToProtocol()
does not check the superclasses.
* obj-c++.dg/gnu-api-2-class.mm: Same change.
From-SVN: r168226
Alexander Monakov [Fri, 24 Dec 2010 14:19:23 +0000 (24 17:19 +0300)]
re PR rtl-optimization/47036 (ICE: in move_cond_jump, at sel-sched.c:4901 with -fschedule-insns -fselective-scheduling -fno-dce)
PR rtl-optimization/47036
* sel-sched-ir.c (fallthru_bb_of_jump): Remove special support for
unconditional jumps.
* sel-sched.c (moveup_expr): Ditto.
testsuite:
* g++.dg/opt/pr47036.C: New.
From-SVN: r168225
Thomas Koenig [Fri, 24 Dec 2010 08:42:04 +0000 (24 08:42 +0000)]
re PR fortran/31821 (character pointer => target(range) should detect if lengths don't match)
2010-12-24 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/31821
* check.c (gfc_var_strlen): New function, also including
substring references.
(gfc_check_same_strlen): Use gfc_var_strlen.
2010-12-24 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/31821
* gfortran.dg/char_pointer_assign_6.f90: New test.
From-SVN: r168224
Ian Lance Taylor [Fri, 24 Dec 2010 01:26:14 +0000 (24 01:26 +0000)]
Avoid endless loop on array with recursive length.
From-SVN: r168223
Ian Lance Taylor [Fri, 24 Dec 2010 00:51:10 +0000 (24 00:51 +0000)]
Don't crash on invalid use of multiple results.
From-SVN: r168222
Ian Lance Taylor [Fri, 24 Dec 2010 00:33:49 +0000 (24 00:33 +0000)]
Avoid endless loop checking whether type is pointer.
From-SVN: r168221
GCC Administrator [Fri, 24 Dec 2010 00:19:53 +0000 (24 00:19 +0000)]
Daily bump.
From-SVN: r168220
Ian Lance Taylor [Fri, 24 Dec 2010 00:13:35 +0000 (24 00:13 +0000)]
Avoid endless loop inheriting interfaces.
From-SVN: r168216
Nicola Pero [Thu, 23 Dec 2010 19:46:04 +0000 (23 19:46 +0000)]
In libobjc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
* init.c (create_tree_of_subclasses_inherited_from): Updated
DEBUG_PRINTF messages.
(__objc_tree_insert_class): Same.
(__objc_send_load_using_method_list): Same.
(__objc_send_load): Same.
(__objc_exec_class): Same. In particular, do not print the module
name since it is no longer used.
* sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
tracking +initialize calls.
(__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
tracking updates of dispatch tables.
(__objc_install_dispatch_table_for_class): Same.
From-SVN: r168215
Sebastian Pop [Thu, 23 Dec 2010 16:26:11 +0000 (23 16:26 +0000)]
Fix PR46758: Do not use int_cst_value.
2010-12-23 Sebastian Pop <sebastian.pop@amd.com>
Richard Guenther <rguenther@suse.de>
PR tree-optimization/46758
* graphite-sese-to-poly.c (scan_tree_for_params_right_scev): Use
tree_int_to_gmp instead of int_cst_value.
(scan_tree_for_params_int): Same.
(scan_tree_for_params): Same.
(pdr_add_data_dimensions): Use ppl_set_inhomogeneous_tree.
* gcc.dg/graphite/run-id-pr46758.c: New.
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r168211
Sebastian Pop [Thu, 23 Dec 2010 16:25:52 +0000 (23 16:25 +0000)]
Fix PR47002: memory leaks.
2010-12-23 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/47002
* tree-data-ref.c (compute_data_dependences_for_loop): Pass in a
pointer to the loop_nest.
(analyze_all_data_dependences): Initialize and free the loop_nest.
(free_dependence_relations): Do not free loop_nest.
(build_rdg): Pass in the loop_nest, datarefs, and dependence_relations.
(free_rdg): Also free the data on edges.
* tree-data-ref.h (build_rdg): Update declaration.
(compute_data_dependences_for_loop): Same.
* tree-if-conv.c (if_convertible_loop_p_1): Pass in the loop_nest.
(if_convertible_loop_p): Allocate and free loop_nest.
* tree-loop-distribution.c (rdg_flag_loop_exits): Free conds.
(free_rdg_components): VEC_free components.
(distribute_loop): Update call to build_rdg. Allocate and free
loop_nest, datarefs, and dependence_relations.
* tree-loop-linear.c (linear_transform_loops): Allocate and free
loop_nest.
* tree-parloops.c (loop_parallel_p): Same.
* tree-predcom.c (tree_predictive_commoning_loop): Same.
* tree-vect-data-refs.c (vect_analyze_data_refs): Pass to
compute_data_dependences_for_loop a pointer to LOOP_VINFO_LOOP_NEST.
* tree-vect-loop.c (new_loop_vec_info): Initialize LOOP_VINFO_LOOP_NEST.
(destroy_loop_vec_info): Free LOOP_VINFO_MAY_ALIAS_DDRS and
LOOP_VINFO_LOOP_NEST.
* tree-vect-slp.c (destroy_bb_vec_info): Call free_data_refs and
free_dependence_relations.
* tree-vectorizer.h (struct _loop_vec_info): Add a field loop_nest.
(LOOP_VINFO_LOOP_NEST): New.
From-SVN: r168210
Martin Jambor [Thu, 23 Dec 2010 16:12:07 +0000 (23 17:12 +0100)]
ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even when not checking.
2010-12-23 Martin Jambor <mjambor@suse.cz>
* ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even
when not checking.
From-SVN: r168209
Hariharan Sandanagobalane [Thu, 23 Dec 2010 16:09:09 +0000 (23 16:09 +0000)]
* configure: Regenerate.
From-SVN: r168208
Mikael Morin [Thu, 23 Dec 2010 13:39:06 +0000 (23 13:39 +0000)]
re PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)
2010-12-23 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/46978
* gfortran.dg/transpose_intrinsic_func_call_1.f90: New test.
From-SVN: r168207
Mikael Morin [Thu, 23 Dec 2010 13:35:53 +0000 (23 13:35 +0000)]
re PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)
2010-12-23 Mikael Morin <mikael.morin@gcc.gnu.org>
PR fortran/46978
Revert part of revision 164112
* trans-array.c (gfc_trans_create_temp_array):
Set loop n'th upper bound from (possibly transposed) array's dim bounds.
From-SVN: r168206
Rainer Orth [Thu, 23 Dec 2010 12:08:21 +0000 (23 12:08 +0000)]
configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for --eh-frame-hdr.
* configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for
--eh-frame-hdr.
Check for working Sun ld version.
(HAVE_LD_EH_FRAME_HDR): Adapt comment.
(glibc_header_dir): Set only once.
Rename to ...
(target_header_dir): ... this.
Adapt users.
(gcc_cv_target_dl_iterate_frame_hdr): Check on *-*-solaris2*.
(TARGET_DL_ITERATE_PHDR): Define if present.
* configure: Regenerate.
* config.in: Likewise.
* config/t-sol2 (LIB2ADDEH, LIB2ADDEHDEP): Define.
* crtstuff.c (USE_PT_GNU_EH_FRAME): Define for recent Solaris 11
with linker support and dl_iterate_phdr.
* unwind-dw2-fde-glibc.c (USE_PT_GNU_EH_FRAME): Likewise.
(_Unwind_IteratePhdrCallback) [PT_SUNW_UNWIND]: Also accept
PT_SUNW_UNWIND .eh_frame_hdr sections.
[CRT_GET_RFIB_DATA && __i386__ && __sun__ && __svr4__]: Add
load_base to data->dbase.
[CRT_GET_RFIB_DATA && __x86_64__ && __sun__ && __svr4__]: Handle
64-bit Solaris 10+/x86.
* config/sol2-gld.h [TARGET_DL_ITERATE_PHDR && HAVE_LD_EH_FRAME_HDR]
(LINK_EH_SPEC): Define.
From-SVN: r168204
Rainer Orth [Thu, 23 Dec 2010 11:26:14 +0000 (23 11:26 +0000)]
Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
* Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
(libobjc_gc$(libsuffix).la): Likewise.
From-SVN: r168203
Ralf Wildenhues [Thu, 23 Dec 2010 10:38:55 +0000 (23 10:38 +0000)]
Fix typos in the manual.
gcc/:
* doc/extend.texi (Function Attributes, Volatiles): Fix typos.
* doc/install.texi (Prerequisites, Specific): Likewise.
* doc/invoke.texi (C Dialect Options, Debugging Options)
(Optimize Options, MicroBlaze Options)
(RS/6000 and PowerPC Options, RX Options, Code Gen Options):
Likewise.
* doc/objc.texi (Method signatures)
(Fast enumeration protocol): Likewise.
* doc/tm.texi.in (Run-time Target, Register Arguments)
(Scheduling, Macros for Initialization, Misc): Likewise.
* doc/tm.texi: Renerate.
From-SVN: r168202
Nicola Pero [Thu, 23 Dec 2010 06:01:43 +0000 (23 06:01 +0000)]
In gcc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
* doc/objc.texi (Modern GNU Objective-C runtime API): Mention that
reference documentation for functions in the API is in the header
files.
(Messaging with the GNU Objective-C runtime, Dynamically
registering methods, Forwarding hook): New sections.
From-SVN: r168200
Nicola Pero [Thu, 23 Dec 2010 05:30:12 +0000 (23 05:30 +0000)]
In gcc/testsuite/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
* obj-c.dg/gnu-api-2-class.m: Test that class_addMethod() returns
NO if the method is already implemented in the class.
* obj-c++.dg/gnu-api-2-class.mm: Same change.
In libobjc/:
2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
* sendmsg.c (class_addMethod): Return NO if the method already
exists in the class.
From-SVN: r168199
Ian Lance Taylor [Thu, 23 Dec 2010 01:35:27 +0000 (23 01:35 +0000)]
A variable with a preinit block requires an intialization function.
From-SVN: r168198
Ian Lance Taylor [Thu, 23 Dec 2010 01:22:32 +0000 (23 01:22 +0000)]
Don't crash building map descriptor for erroneous map.
From-SVN: r168197
Ian Lance Taylor [Thu, 23 Dec 2010 01:01:38 +0000 (23 01:01 +0000)]
Initialize Lex::lineoff_ field.
From-SVN: r168196
Ian Lance Taylor [Thu, 23 Dec 2010 00:55:31 +0000 (23 00:55 +0000)]
Fix append with no extra arguments.
From-SVN: r168195
Ian Lance Taylor [Thu, 23 Dec 2010 00:40:29 +0000 (23 00:40 +0000)]
Don't crash asking for type of invalid const.
From-SVN: r168194
GCC Administrator [Thu, 23 Dec 2010 00:19:57 +0000 (23 00:19 +0000)]
Daily bump.
From-SVN: r168193
Ian Lance Taylor [Thu, 23 Dec 2010 00:18:50 +0000 (23 00:18 +0000)]
Avoid infinite recursion checking whether field is exported.
From-SVN: r168191
Ian Lance Taylor [Thu, 23 Dec 2010 00:07:42 +0000 (23 00:07 +0000)]
Avoid crash when an unknown object is declared as a type.
From-SVN: r168188
Ian Lance Taylor [Wed, 22 Dec 2010 23:57:28 +0000 (22 23:57 +0000)]
Don't crash on invalid call to append.
From-SVN: r168187
Ian Lance Taylor [Wed, 22 Dec 2010 23:48:08 +0000 (22 23:48 +0000)]
Avoid infinite recursion looking up method in invalid recursive type.
From-SVN: r168186
Ian Lance Taylor [Wed, 22 Dec 2010 23:24:33 +0000 (22 23:24 +0000)]
Don't crash on index into erroneous map.
From-SVN: r168185
Ian Lance Taylor [Wed, 22 Dec 2010 23:09:40 +0000 (22 23:09 +0000)]
Correctly handle tuple assignment to _ at global scope.
From-SVN: r168184
Nicola Pero [Wed, 22 Dec 2010 23:05:13 +0000 (22 23:05 +0000)]
In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
* init.c (duplicate_classes): New.
(__objc_exec_class): Initialize duplicate_classes.
(__objc_create_classes_tree): Ignore classes in the
duplicate_classes table.
(__objc_call_load_callback): Same.
(__objc_init_class): If a duplicate class is found, add it to
duplicate_classes instead of aborting. Return YES if the class is
not a duplicate, and NO if it is.
* objc-private/runtime.h (__objc_init_class): Updated prototype.
From-SVN: r168183
Sebastian Pop [Wed, 22 Dec 2010 21:19:34 +0000 (22 21:19 +0000)]
Fix PR47019: parameters of a SCoP are SCEV analyzable.
2010-12-22 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/47019
* sese.h (scev_analyzable_p): Parameters of a SCoP are SCEV analyzable.
* gfortran.dg/graphite/pr47019.f: New.
From-SVN: r168182
Nathan Froyd [Wed, 22 Dec 2010 19:45:58 +0000 (22 19:45 +0000)]
c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
gcc/
* c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
* c-decl.c (diagnose_arglist_conflict): Likewise.
(diagnose_mismatched_decls, merge_decls): Likewise.
(c_builtin_function, c_builtin_function_ext_scope): Likewise.
(start_decl, start_function): Likewise.
* c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise.
* config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise.
* config/mep/mep.c (mep_validate_interrupt): Likewise.
* config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise.
* config/rs6000/rs6000.c (init_cumulative_args): Likewise.
* config/sh/sh.c (sh_init_cumulative_args): Likewise.
* config/sparc/sparc.c (init_cumulative_args): Likewise.
* dwarf2out.c (add_prototyped_attribute): Likewise.
(gen_subprogram_die): Likewise.
* ipa-type-escape.c (check_function_parameter_and_return_types):
Likewise.
(check_call): Likewise.
* tree-ssa.c (useless_type_conversion_p): Likewise.
gcc/ada/
* gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
(handle_sentinel_attribute): Likewise.
gcc/c-family/
* c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
Use prototype_p.
gcc/cp/
* decl.c (decls_match, duplicate_decls): Use prototype_p.
* pt.c (push_template_decl_real): Likewise.
gcc/lto/
* lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute):
Use prototype_p.
gcc/objc/
* objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p.
From-SVN: r168181
Jason Merrill [Wed, 22 Dec 2010 19:23:15 +0000 (22 14:23 -0500)]
re PR c++/47003 (ice in stabilize_expr)
PR c++/47003
* tree.c (stabilize_expr): Really stabilize scalar glvalues.
From-SVN: r168180
Rodrigo Rivas Costa [Wed, 22 Dec 2010 19:23:00 +0000 (22 19:23 +0000)]
parser.c (cp_parser_unary_expression): Call pedwarn for alignof with expression.
* parser.c (cp_parser_unary_expression): Call pedwarn for alignof
with expression.
From-SVN: r168179
Ian Lance Taylor [Wed, 22 Dec 2010 16:47:53 +0000 (22 16:47 +0000)]
Don't crash on array type with erroneous length expression.
From-SVN: r168176
Ian Lance Taylor [Wed, 22 Dec 2010 16:37:58 +0000 (22 16:37 +0000)]
Don't crash on variable initialization from erroneous receive.
From-SVN: r168175
Ian Lance Taylor [Wed, 22 Dec 2010 16:27:51 +0000 (22 16:27 +0000)]
Don't crash on erroneous channel send or receive.
From-SVN: r168174
Ian Lance Taylor [Wed, 22 Dec 2010 16:21:06 +0000 (22 16:21 +0000)]
Don't crash if a temporary is not defined due to errors.
From-SVN: r168173
Ian Lance Taylor [Wed, 22 Dec 2010 16:05:23 +0000 (22 16:05 +0000)]
More tweaking of recursive name types when converting to GENERIC.
From-SVN: r168172
Ian Lance Taylor [Wed, 22 Dec 2010 15:25:23 +0000 (22 15:25 +0000)]
Don't crash if array length is invalid const.
From-SVN: r168171
Ian Lance Taylor [Wed, 22 Dec 2010 15:10:58 +0000 (22 15:10 +0000)]
Fix handling of named results for functions which call recover.
From-SVN: r168170
Ulrich Weigand [Wed, 22 Dec 2010 15:09:17 +0000 (22 15:09 +0000)]
spu.md ("mov<mode>"): Use nonimmediate_operand predicate for destination operand.
* config/spu/spu.md ("mov<mode>"): Use nonimmediate_operand
predicate for destination operand.
* config/spu/spu.c (spu_expand_mov): If move destination is an
invalid subreg, perform move in the subreg's inner mode instead.
From-SVN: r168169
Martin Jambor [Wed, 22 Dec 2010 12:56:54 +0000 (22 13:56 +0100)]
re PR tree-optimization/45934 (g++.old-deja/g++.other/dtor5.C FAILs with -finline-small-functions)
2010-12-22 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/45934
PR tree-optimization/46302
PR tree-optimization/46987
* gimple-fold.c (get_base_binfo_for_type): Removed.
(gimple_get_relevant_ref_binfo): Likewise.
(gimple_fold_obj_type_ref_call): Dumb down to 4.5 functionality,
removed parameter inplace, updated the caller.
* gimple.h (gimple_get_relevant_ref_binfo): Remove declaration.
* ipa-cp.c (ipcp_propagate_types): Do not derive types from constants.
(ipcp_discover_new_direct_edges): Do not do devirtualization based on
constants.
* ipa-prop.c (compute_known_type_jump_func): Use
get_ref_base_and_extent and get_binfo_at_offset instead of
gimple_get_relevant_ref_binfo.
(compute_known_type_jump_func): Likewise.
(update_jump_functions_after_inlining): Do not derive types from
constants.
(try_make_edge_direct_virtual_call): Likewise.
* tree.c (get_binfo_at_offset): Get type from non-artificial fields.
* testsuite/g++.dg/ipa/ipcp-ivi-1.C: Removed.
* testsuite/g++.dg/ipa/ivinline-6.C: Likewise.
* testsuite/g++.dg/otr-fold-1.C: Likewise.
* testsuite/g++.dg/otr-fold-2.C: Likewise.
* testsuite/g++.dg/tree-ssa/pr43411.C: Xfail dump scan.
* testsuite/g++.dg/tree-ssa/pr45605.C: Likewise.
* testsuite/g++.dg/tree-ssa/pr46987.C: New test.
From-SVN: r168168
Steven Bosscher [Wed, 22 Dec 2010 12:15:12 +0000 (22 12:15 +0000)]
* gfortran.dg/pr46755.f: Fix test case.
From-SVN: r168167
Joseph Myers [Wed, 22 Dec 2010 12:06:01 +0000 (22 12:06 +0000)]
svr4.h: Remove.
* config/svr4.h: Remove.
* system.h (USING_SVR4_H, SVR4_ASM_SPEC): Poison.
* config.gcc, config/bfin/bfin.h, config/cris/cris.h,
config/fr30/fr30.h, config/frv/frv.h, config/i386/openbsdelf.h,
config/i386/vx-common.h, config/ia64/elf.h, config/ia64/ia64.h,
config/ia64/sysv4.h, config/iq2000/iq2000.h, config/m68k/linux.h,
config/m68k/m68kelf.h, config/mips/mips.h, config/mips/vxworks.h,
config/moxie/moxie.h, config/netbsd-aout.h, config/openbsd.h,
config/rs6000/sysv4.h, config/sh/elf.h, config/sh/sh.h,
config/sol2.h, config/sparc/sysv4.h, config/stormy16/stormy16.h,
config/v850/v850.h, config/vxworks.h: Remove or update comments
referring to svr4.h.
From-SVN: r168166
Hariharan Sandanagobalane [Wed, 22 Dec 2010 10:34:23 +0000 (22 10:34 +0000)]
configure.ac: (picochip): Disable libiberty.
* configure.ac: (picochip): Disable libiberty.
From-SVN: r168165
Andrey Belevantsev [Wed, 22 Dec 2010 07:46:53 +0000 (22 10:46 +0300)]
re PR rtl-optimization/45352 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7058)
PR rtl-optimization/45352
PR rtl-optimization/46521
PR rtl-optimization/46522
* sel-sched.c (reset_sched_cycles_in_current_ebb): Recheck the DFA state
on the last iteration of the advancing loop.
(sel_sched_region_1): Propagate the rescheduling bit to the next block
also for empty blocks.
* gcc.dg/pr46521.c: New.
* gcc.dg/pr46522.c: New.
From-SVN: r168164
Ian Lance Taylor [Wed, 22 Dec 2010 06:33:02 +0000 (22 06:33 +0000)]
Correct test for number of arguments to append.
From-SVN: r168163
Ian Lance Taylor [Wed, 22 Dec 2010 06:27:50 +0000 (22 06:27 +0000)]
Don't crash if a constant initializer refers to the constant.
From-SVN: r168162
Ian Lance Taylor [Wed, 22 Dec 2010 06:17:55 +0000 (22 06:17 +0000)]
Don't crash on invalid type conversion.
From-SVN: r168161
Alexandre Oliva [Wed, 22 Dec 2010 03:49:00 +0000 (22 03:49 +0000)]
re PR debug/46724 (Wrong debug info: Invalid variable location)
PR debug/46724
* function.c (assign_parms_augmented_arg_list): Name and mark
DECL of result address as NAMELESS rather than IGNORED.
(assign_parms): Set DECL_VALUE_EXPR for indirect result.
* tree.h (tree_decl_common::decl_flag_2): Document RESULT_DECL.
(DECL_HAS_VALUE_EXPR_P): Accept RESULT_DECL.
* dwarf2out.c (loc_list_from_tree) <RESULT_DECL>: Use
DECL_VALUE_EXPR.
* dbxout.c (dbxout_expand_expr) <RESULT_DECL>: Likewise.
* var-tracking.c (vt_add_function_parameter): New, split out of...
(vt_add_function_parameters): ... this. Handle incoming
pointer to hold result.
From-SVN: r168160
Jie Zhang [Wed, 22 Dec 2010 01:42:20 +0000 (22 01:42 +0000)]
arm.c (output_move_double): Update the comment above the function to reflect the current implementation.
* config/arm/arm.c (output_move_double): Update the comment
above the function to reflect the current implementation.
From-SVN: r168159
Ian Lance Taylor [Wed, 22 Dec 2010 01:37:30 +0000 (22 01:37 +0000)]
Fix uninitialized variable when looking up '_'.
From-SVN: r168158
Ian Lance Taylor [Wed, 22 Dec 2010 01:28:29 +0000 (22 01:28 +0000)]
Don't crash receiving multiple results from void function.
From-SVN: r168157
Ian Lance Taylor [Wed, 22 Dec 2010 01:22:56 +0000 (22 01:22 +0000)]
Fix handling of functions with named results that call recover.
From-SVN: r168156
Ian Lance Taylor [Wed, 22 Dec 2010 01:14:41 +0000 (22 01:14 +0000)]
Don't crash building erroneous variable initializer.
From-SVN: r168155
GCC Administrator [Wed, 22 Dec 2010 00:21:25 +0000 (22 00:21 +0000)]
Daily bump.
From-SVN: r168154
Nicola Pero [Wed, 22 Dec 2010 00:17:21 +0000 (22 00:17 +0000)]
In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-private/objc-list.h: Reindented file. No code changes.
* objc-private/sarray.h: Same change.
From-SVN: r168150
Nicola Pero [Wed, 22 Dec 2010 00:05:57 +0000 (22 00:05 +0000)]
In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-private/accessors.h: Removed 'extern "C"' guards. This
file is never compiled with C++.
* objc-private/hash.h: Same change.
* objc-private/objc-list.h: Same change.
* objc-private/objc-sync.h: Same change.
* objc-private/protocols.h: Same change.
* objc-private/runtime.h: Same change.
* objc-private/sarray.h: Same change.
* objc-private/selector.h: Same change.
From-SVN: r168149
Ian Lance Taylor [Wed, 22 Dec 2010 00:00:42 +0000 (22 00:00 +0000)]
Check for errors when building map construction.
From-SVN: r168148
Nicola Pero [Tue, 21 Dec 2010 23:55:24 +0000 (21 23:55 +0000)]
Fixed changelog entry for one of my libobjc patches of a few days ago
From-SVN: r168147
Ian Lance Taylor [Tue, 21 Dec 2010 23:48:37 +0000 (21 23:48 +0000)]
Don't warn about []int of string with NUL bytes.
From-SVN: r168146
Ian Lance Taylor [Tue, 21 Dec 2010 23:33:51 +0000 (21 23:33 +0000)]
Don't permit assigning abstract string/bool to numeric variable.
From-SVN: r168145
Ian Lance Taylor [Tue, 21 Dec 2010 23:19:43 +0000 (21 23:19 +0000)]
Don't crash on calling new with an erroneous type.
From-SVN: r168144
Ian Lance Taylor [Tue, 21 Dec 2010 23:13:18 +0000 (21 23:13 +0000)]
Don't crash when returning something from a function named '_'.
From-SVN: r168143