platform/upstream/linaro-gcc.git
13 years agoDelete svn:mergeinfo properties.
jakub [Wed, 12 Oct 2011 13:08:11 +0000 (13:08 +0000)]
Delete svn:mergeinfo properties.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179849 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * function.c (prepare_shrink_wrap, bb_active_p): New function.
bernds [Wed, 12 Oct 2011 12:04:04 +0000 (12:04 +0000)]
* function.c (prepare_shrink_wrap, bb_active_p): New function.
(thread_prologue_and_epilogue_insns): Use bb_active_p.
Call prepare_shrink_wrap, then recompute bb_active_p for the
last block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179848 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR c/50565
jsm28 [Wed, 12 Oct 2011 11:56:03 +0000 (11:56 +0000)]
PR c/50565
* convert.c (convert_to_integer): Do not narrow operands of
pointer subtraction.

testsuite:
* gcc.c-torture/compile/pr50565-1.c,
gcc.c-torture/compile/pr50565-2.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179845 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
nickc [Wed, 12 Oct 2011 10:18:17 +0000 (10:18 +0000)]
* config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
emit a .eabi_attribute assembler directive, possibly with a
comment attached.
* config/arm/arm.c (arm_file_start): Use the new macro.
* config/arm/arm-c.c (arm_output_c_attributes): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179844 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/49939
gjl [Wed, 12 Oct 2011 09:59:30 +0000 (09:59 +0000)]
PR target/49939
* config/avr/avr.md (*movqi): Rename to movqi_insn.
(*call_insn): Rename to call_insn.
(*call_value_insn): Rename to call_value_insn.
* config/avr/avr.c (avr_2word_insn_p): New static function.
(jump_over_one_insn_p): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179843 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Wed, 12 Oct 2011 07:46:58 +0000 (07:46 +0000)]
gcc/
* expr.h (copy_blkmode_to_reg): Declare.
* expr.c (copy_blkmode_to_reg): New function.
(expand_assignment): Don't expand register RESULT_DECLs before
the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
RESULT_DECL register.
(expand_expr_real_1): Handle BLKmode decls when looking for promotion.
* stmt.c (expand_return): Move BLKmode-to-register code into
copy_blkmode_to_reg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179839 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoDaily bump.
gccadmin [Wed, 12 Oct 2011 00:18:27 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179835 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/49965
ebotcazou [Tue, 11 Oct 2011 21:33:24 +0000 (21:33 +0000)]
PR target/49965
* config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
(mov<F:mode>cc): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179827 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoRemove incorrect ChangeLog entry, correct spacing.
ian [Tue, 11 Oct 2011 21:29:04 +0000 (21:29 +0000)]
Remove incorrect ChangeLog entry, correct spacing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179826 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Tue, 11 Oct 2011 21:21:43 +0000 (21:21 +0000)]
2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179825 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoConvert standard builtin functions from being arrays to using a functional interface
meissner [Tue, 11 Oct 2011 19:55:09 +0000 (19:55 +0000)]
Convert standard builtin functions from being arrays to using a functional interface

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179820 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Tue, 11 Oct 2011 18:39:51 +0000 (18:39 +0000)]
2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* tree.h (copy_ref_info): Expose existing function.
* tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
* tree-ssa-address.c (copy_ref_info): ...here, and remove static token.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179818 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New prototype.
gjl [Tue, 11 Oct 2011 18:34:16 +0000 (18:34 +0000)]
* config/avr/avr-protos.h (avr_mode_code_base_reg_class): New prototype.
(avr_regno_mode_code_ok_for_base_p): New prototype.
* config/avr/avr.h (BASE_REG_CLASS): Remove.
(REGNO_OK_FOR_BASE_P): Remove.
(REG_OK_FOR_BASE_NOSTRICT_P): Remove.
(REG_OK_FOR_BASE_STRICT_P): Remove.
(MODE_CODE_BASE_REG_CLASS): New define.
(REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
* config/avr/avr.c (avr_mode_code_base_reg_class): New function.
(avr_regno_mode_code_ok_for_base_p): New function.
(avr_reg_ok_for_addr_p): New static function.
(avr_legitimate_address_p): Use it.  Beautify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179817 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/50447
gjl [Tue, 11 Oct 2011 18:28:49 +0000 (18:28 +0000)]
PR target/50447
* config/avr/avr.md (cc): Add out_plus attribute alternative.
(addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
avr_out_plus for all CONST_INT addends.
* config/avr/avr-protos.h (avr_out_plus): Change prototype.
* config/avr/avr.c (notice_update_cc): Call avr_out_plus on
CC_OUT_PLUS.
(avr_out_plus_1): Change prototype and report effect on cc0.
(avr_out_plus): Ditto.
(adjust_insn_length): Adapt call to avr_out_plus to new prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179816 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR c++/49855
jason [Tue, 11 Oct 2011 17:53:07 +0000 (17:53 +0000)]
PR c++/49855
PR c++/49896
* cp-tree.def (IMPLICIT_CONV_EXPR): New.
* call.c (perform_implicit_conversion_flags): Build it
instead of NOP_EXPR.
* cp-objcp-common.c (cp_common_init_ts): It's typed.
* cxx-pretty-print.c (pp_cxx_cast_expression): Handle it.
(pp_cxx_expression): Likewise.
* error.c (dump_expr): Likewise.
* semantics.c (potential_constant_expression_1): Likewise.
* tree.c (cp_tree_equal): Likewise.
(cp_walk_subtrees): Likewise.
* pt.c (iterative_hash_template_arg): Likewise.
(for_each_template_parm_r): Likewise.
(type_dependent_expression_p): Likewise.
(tsubst_copy, tsubst_copy_and_build): Handle IMPLICIT_CONV_EXPR
and CONVERT_EXPR.
* cp-tree.h (IMPLICIT_CONV_EXPR_DIRECT_INIT): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179813 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoRemove the extra break.
hjl [Tue, 11 Oct 2011 17:25:07 +0000 (17:25 +0000)]
Remove the extra break.

2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (ix86_expand_special_args_builtin): Remove
the extra break.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179812 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoNew warning -Wvector-operation-performance.
tema [Tue, 11 Oct 2011 16:10:59 +0000 (16:10 +0000)]
New warning -Wvector-operation-performance.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179807 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Tue, 11 Oct 2011 14:11:50 +0000 (14:11 +0000)]
2011-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/pr49994-3.c: Add -mbackchain for s390 and s390x.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179805 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 11 Oct 2011 13:07:52 +0000 (13:07 +0000)]
2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50611
* pt.c (tsubst_copy_and_build): If (complain & tf_error) is false
do not call unqualified_name_lookup_error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179802 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Emil Wojak <emil@wojak.eu>
paolo [Tue, 11 Oct 2011 12:39:18 +0000 (12:39 +0000)]
2011-10-11  Emil Wojak  <emil@wojak.eu>

PR c++/50661
* include/bits/stl_algobase.h (equal): Compare arrays of pointers
too with memcmp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179801 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 11 Oct 2011 11:57:23 +0000 (11:57 +0000)]
2011-10-11  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/50204
* tree-ssa-alias.c (get_continuation_for_phi_1): Split out
two argument handling from ...
(get_continuation_for_phi): ... here.  Handle arbitrary number
of PHI args.

* gcc.dg/tree-ssa/ssa-fre-36.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179799 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Tue, 11 Oct 2011 10:59:26 +0000 (10:59 +0000)]
2011-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/20090223-1.c: Add -Wno-attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179798 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 11 Oct 2011 10:57:40 +0000 (10:57 +0000)]
2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/33067
* c-family/c-pretty-print.c (pp_c_floating_constant): Output
max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179797 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.target/i386/fma_double_1.c: Add -mfpmath=sse.
uros [Tue, 11 Oct 2011 10:18:48 +0000 (10:18 +0000)]
* gcc.target/i386/fma_double_1.c: Add -mfpmath=sse.
* gcc.target/i386/fma_double_2.c: Ditto.
* gcc.target/i386/fma_double_3.c: Ditto.
* gcc.target/i386/fma_double_4.c: Ditto.
* gcc.target/i386/fma_double_5.c: Ditto.
* gcc.target/i386/fma_double_6.c: Ditto.
* gcc.target/i386/fma_float_1.c: Ditto.
* gcc.target/i386/fma_float_2.c: Ditto.
* gcc.target/i386/fma_float_3.c: Ditto.
* gcc.target/i386/fma_float_4.c: Ditto.
* gcc.target/i386/fma_float_5.c: Ditto.
* gcc.target/i386/fma_float_6.c: Ditto.
* gcc.target/i386/l_fma_double_1.c: Ditto.
* gcc.target/i386/l_fma_double_2.c: Ditto.
* gcc.target/i386/l_fma_double_3.c: Ditto.
* gcc.target/i386/l_fma_double_4.c: Ditto.
* gcc.target/i386/l_fma_double_5.c: Ditto.
* gcc.target/i386/l_fma_double_6.c: Ditto.
* gcc.target/i386/l_fma_float_1.c: Ditto.
* gcc.target/i386/l_fma_float_2.c: Ditto.
* gcc.target/i386/l_fma_float_3.c: Ditto.
* gcc.target/i386/l_fma_float_4.c: Ditto.
* gcc.target/i386/l_fma_float_5.c: Ditto.
* gcc.target/i386/l_fma_float_6.c: Ditto.
* gcc.target/i386/l_fma_run_double_1.c: Ditto.
* gcc.target/i386/l_fma_run_double_2.c: Ditto.
* gcc.target/i386/l_fma_run_double_3.c: Ditto.
* gcc.target/i386/l_fma_run_double_4.c: Ditto.
* gcc.target/i386/l_fma_run_double_5.c: Ditto.
* gcc.target/i386/l_fma_run_double_6.c: Ditto.
* gcc.target/i386/l_fma_run_float_1.c: Ditto.
* gcc.target/i386/l_fma_run_float_2.c: Ditto.
* gcc.target/i386/l_fma_run_float_3.c: Ditto.
* gcc.target/i386/l_fma_run_float_4.c: Ditto.
* gcc.target/i386/l_fma_run_float_5.c: Ditto.
* gcc.target/i386/l_fma_run_float_6.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179796 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Tue, 11 Oct 2011 08:17:26 +0000 (08:17 +0000)]
gcc/
* modulo-sched.c: Fix comment typo.  Mention the possibility
of using scheduling windows of II+1 cycles.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179788 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoc-family/ChangeLog
gingold [Tue, 11 Oct 2011 07:13:59 +0000 (07:13 +0000)]
c-family/ChangeLog
2011-10-11  Tristan Gingold  <gingold@adacore.com>

        * c.opt: (fallow-parameterless-variadic-functions): New.

ChangeLog
2011-10-11  Tristan Gingold  <gingold@adacore.com>

        * doc/invoke.texi (C Dialect Options): Document
        -fallow-parameterless-variadic-functions.
        * c-parser.c (c_parser_parms_list_declarator): Handle it.

testsuite/ChangeLog
2011-10-11  Tristan Gingold  <gingold@adacore.com>

        * gcc.dg/va-arg-4.c: New test.
        * gcc.dg/va-arg-5.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179786 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-11 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 11 Oct 2011 07:12:14 +0000 (07:12 +0000)]
2011-10-11  Tobias Burnus  <burnus@net-b.de>

        * gcc/fortran/ChangeLog: Fix PR number.
        * gcc/testsuite/ChangeLog: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179785 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 11 Oct 2011 01:28:34 +0000 (01:28 +0000)]
2011-10-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50660
* call.c (conversion_null_warnings): Don't look through references.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179779 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoDaily bump.
gccadmin [Tue, 11 Oct 2011 00:19:09 +0000 (00:19 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179778 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lib/target-supports.exp (check_effective_target_fd_truncate):
uros [Mon, 10 Oct 2011 22:24:21 +0000 (22:24 +0000)]
* lib/target-supports.exp (check_effective_target_fd_truncate):
Close and unlink test file before exit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179774 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR c++/48665
ian [Mon, 10 Oct 2011 20:34:20 +0000 (20:34 +0000)]
PR c++/48665
* cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
function type, change them to apply to the "this" parameter.
* testsuite/demangle-expected: Add test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179772 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Matthias Klose <doko@ubuntu.com>
doko [Mon, 10 Oct 2011 19:27:31 +0000 (19:27 +0000)]
2011-10-10  Matthias Klose  <doko@ubuntu.com>

        * config/posix95: Remove empty directory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179771 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Mon, 10 Oct 2011 19:07:35 +0000 (19:07 +0000)]
2011-10-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/50564
* frontend-passes (forall_level):  New variable.
(cfe_register_funcs):  Don't register functions if we
are within a forall loop.
(optimize_namespace):  Set forall_level to 0 before entry.
(gfc_code_walker):  Increase/decrease forall_level.

2011-10-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/50564
* gfortran.dg/forall_15.f90:  New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179770 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Mon, 10 Oct 2011 19:03:39 +0000 (19:03 +0000)]
2011-10-10  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/49818
* config/abi/pre/gnu.ver (CXXABI_1.3.6): Add symbols.
* testsuite/util/testsuite_abi.cc: Same.
* libsupc++/unwind-cxx.h: Move required eh API...
* libsupc++/cxxabi.h: ... to here. Add required forward declarations.
Use _GLIBCXX_NOTHROW.
* libsupc++/pure.cc (__cxa_deleted_virtual): Add.
* libsupc++/eh_alloc.cc: Use _GLIBCXX_NOTHROW.
* libsupc++/eh_catch.cc: Same.
* libsupc++/eh_globals.cc: Same.
* libsupc++/eh_type.cc: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179769 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.dg/simulate-thread/simulate-thread.gdb: Call
aldyh [Mon, 10 Oct 2011 18:32:07 +0000 (18:32 +0000)]
    * gcc.dg/simulate-thread/simulate-thread.gdb: Call
        wrappers for *other_threads() and *final_verify().
        * gcc.dg/simulate-thread/simulate-thread.h
        (simulate_thread_wrapper_other_threads): New.
        (simulate_thread_wrapper_final_verify): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179768 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lib/gcc-gdb-test.exp (gdb-test): Delete $cmd_file before return.
uros [Mon, 10 Oct 2011 18:23:30 +0000 (18:23 +0000)]
* lib/gcc-gdb-test.exp (gdb-test): Delete $cmd_file before return.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179767 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago- Remove empty directories
doko [Mon, 10 Oct 2011 17:53:43 +0000 (17:53 +0000)]
- Remove empty directories

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179766 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/avr/avr.c (avr_option_override): Set
gjl [Mon, 10 Oct 2011 17:25:48 +0000 (17:25 +0000)]
* config/avr/avr.c (avr_option_override): Set
flag_omit_frame_pointer to 0 if frame pointer is needed for
unwinding.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179765 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * ChangeLog: Add PR number.
uros [Mon, 10 Oct 2011 17:07:56 +0000 (17:07 +0000)]
* ChangeLog: Add PR number.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179764 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR bootstrap/50665
uros [Mon, 10 Oct 2011 17:04:41 +0000 (17:04 +0000)]
PR bootstrap/50665
* optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
optab_index to enum direct_optab_index.
(vec_perm_optab): Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179763 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.dg/graphite/id-pr46845.c: Include powerpc for warning options.
janis [Mon, 10 Oct 2011 16:41:12 +0000 (16:41 +0000)]
* gcc.dg/graphite/id-pr46845.c: Include powerpc for warning options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179762 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/cris/cris.c (cris_preferred_reload_class): New function.
aesok [Mon, 10 Oct 2011 16:39:26 +0000 (16:39 +0000)]
* config/cris/cris.c (cris_preferred_reload_class): New function.
(TARGET_PREFERRED_RELOAD_CLASS): Define.
* config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179761 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
gjl [Mon, 10 Oct 2011 16:31:22 +0000 (16:31 +0000)]
* config/avr/avr.md (*tablejump_rjmp): Change insn condition to
!AVR_HAVE_JMP_CALL.
(*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
(*tablejump_enh, *tablejump): Remove insns.
* config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
EIJMP for indirect jump.  Use LPM Z+ where available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179760 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago* doc/md.texi (vec_perm_const): Fix typo in cindex.
rth [Mon, 10 Oct 2011 16:22:21 +0000 (16:22 +0000)]
* doc/md.texi (vec_perm_const): Fix typo in cindex.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179759 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix a typo in x86 FMA.
hjl [Mon, 10 Oct 2011 16:07:15 +0000 (16:07 +0000)]
Fix a typo in x86 FMA.

gcc/

2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
    Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>

* config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.

gcc/testsuite/

2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
    Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>

* gcc.target/i386/fma_1.h: New file.
* gcc.target/i386/fma_2.h: Likewise.
* gcc.target/i386/fma_3.h: Likewise.
* gcc.target/i386/fma_4.h: Likewise.
* gcc.target/i386/fma_5.h: Likewise.
* gcc.target/i386/fma_6.h: Likewise.
* gcc.target/i386/fma_double_1.c: Likewise.
* gcc.target/i386/fma_double_2.c: Likewise.
* gcc.target/i386/fma_double_3.c: Likewise.
* gcc.target/i386/fma_double_4.c: Likewise.
* gcc.target/i386/fma_double_5.c: Likewise.
* gcc.target/i386/fma_double_6.c: Likewise.
* gcc.target/i386/fma_float_1.c: Likewise.
* gcc.target/i386/fma_float_2.c: Likewise.
* gcc.target/i386/fma_float_3.c: Likewise.
* gcc.target/i386/fma_float_4.c: Likewise.
* gcc.target/i386/fma_float_5.c: Likewise.
* gcc.target/i386/fma_float_6.c: Likewise.
* gcc.target/i386/fma_main.h: Likewise.
* gcc.target/i386/fma_run_double_1.c: Likewise.
* gcc.target/i386/fma_run_double_2.c: Likewise.
* gcc.target/i386/fma_run_double_3.c: Likewise.
* gcc.target/i386/fma_run_double_4.c: Likewise.
* gcc.target/i386/fma_run_double_5.c: Likewise.
* gcc.target/i386/fma_run_double_6.c: Likewise.
* gcc.target/i386/fma_run_double_results_1.h: Likewise.
* gcc.target/i386/fma_run_double_results_2.h: Likewise.
* gcc.target/i386/fma_run_double_results_3.h: Likewise.
* gcc.target/i386/fma_run_double_results_4.h: Likewise.
* gcc.target/i386/fma_run_double_results_5.h: Likewise.
* gcc.target/i386/fma_run_double_results_6.h: Likewise.
* gcc.target/i386/fma_run_float_1.c: Likewise.
* gcc.target/i386/fma_run_float_2.c: Likewise.
* gcc.target/i386/fma_run_float_3.c: Likewise.
* gcc.target/i386/fma_run_float_4.c: Likewise.
* gcc.target/i386/fma_run_float_5.c: Likewise.
* gcc.target/i386/fma_run_float_6.c: Likewise.
* gcc.target/i386/fma_run_float_results_1.h: Likewise.
* gcc.target/i386/fma_run_float_results_2.h: Likewise.
* gcc.target/i386/fma_run_float_results_3.h: Likewise.
* gcc.target/i386/fma_run_float_results_4.h: Likewise.
* gcc.target/i386/fma_run_float_results_5.h: Likewise.
* gcc.target/i386/fma_run_float_results_6.h: Likewise.
* gcc.target/i386/l_fma_1.h: Likewise.
* gcc.target/i386/l_fma_2.h: Likewise.
* gcc.target/i386/l_fma_3.h: Likewise.
* gcc.target/i386/l_fma_4.h: Likewise.
* gcc.target/i386/l_fma_5.h: Likewise.
* gcc.target/i386/l_fma_6.h: Likewise.
* gcc.target/i386/l_fma_double_1.c: Likewise.
* gcc.target/i386/l_fma_double_2.c: Likewise.
* gcc.target/i386/l_fma_double_3.c: Likewise.
* gcc.target/i386/l_fma_double_4.c: Likewise.
* gcc.target/i386/l_fma_double_5.c: Likewise.
* gcc.target/i386/l_fma_double_6.c: Likewise.
* gcc.target/i386/l_fma_float_1.c: Likewise.
* gcc.target/i386/l_fma_float_2.c: Likewise.
* gcc.target/i386/l_fma_float_3.c: Likewise.
* gcc.target/i386/l_fma_float_4.c: Likewise.
* gcc.target/i386/l_fma_float_5.c: Likewise.
* gcc.target/i386/l_fma_float_6.c: Likewise.
* gcc.target/i386/l_fma_main.h: Likewise.
* gcc.target/i386/l_fma_run_double_1.c: Likewise.
* gcc.target/i386/l_fma_run_double_2.c: Likewise.
* gcc.target/i386/l_fma_run_double_3.c: Likewise.
* gcc.target/i386/l_fma_run_double_4.c: Likewise.
* gcc.target/i386/l_fma_run_double_5.c: Likewise.
* gcc.target/i386/l_fma_run_double_6.c: Likewise.
* gcc.target/i386/l_fma_run_float_1.c: Likewise.
* gcc.target/i386/l_fma_run_float_2.c: Likewise.
* gcc.target/i386/l_fma_run_float_3.c: Likewise.
* gcc.target/i386/l_fma_run_float_4.c: Likewise.
* gcc.target/i386/l_fma_run_float_5.c: Likewise.
* gcc.target/i386/l_fma_run_float_6.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179758 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 10 Oct 2011 15:45:53 +0000 (15:45 +0000)]
2011-10-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/50389
* gimple-fold.c (gimplify_and_update_call_from_tree): Do not
mark symbols for renaming.  Append the VUSE to all statements
that possibly can have one.

* gcc.dg/torture/pr50389.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179757 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 10 Oct 2011 15:42:28 +0000 (15:42 +0000)]
2011-10-10  Richard Guenther  <rguenther@suse.de>

* ipa-split.c (pass_split_functions): Add verification TODOs.
(pass_feedback_split_functions): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179756 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 10 Oct 2011 14:25:34 +0000 (14:25 +0000)]
2011-10-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/50195
* fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
only when optimizing.

* gcc.dg/builtins-47.c: Optimize.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179752 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lib/gcc-simulate-thread.exp: New.
aldyh [Mon, 10 Oct 2011 13:42:41 +0000 (13:42 +0000)]
    * lib/gcc-simulate-thread.exp: New.
        * gcc.dg/simulate-thread/guality.h: New.
        * gcc.dg/simulate-thread/simulate-thread.h: New.
        * gcc.dg/simulate-thread/simulate-thread.exp: New.
        * gcc.dg/simulate-thread/simulate-thread.gdb: New.
        * gcc.dg/simulate-thread/README: New.
        * g++.dg/simulate-thread/guality.h: New.
        * g++.dg/simulate-thread/simulate-thread.h: New.
        * g++.dg/simulate-thread/simulate-thread.exp: New.
        * g++.dg/simulate-thread/simulate-thread.gdb: New.
        * c-c++-common/cxxbitfields-2.c: Remove.
        * c-c++-common/cxxbitfields.c: Remove.
        * c-c++-common/cxxbitfields-4.c: Remove.
        * c-c++-common/cxxbitfields-5.c: Remove.
        * c-c++-common/simulate-thread/bitfields-1.c: New.
        * c-c++-common/simulate-thread/bitfields-2.c: New.
        * c-c++-common/simulate-thread/bitfields-3.c: New.
        * c-c++-common/simulate-thread/bitfields-4.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179751 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR middle-end/49801
nickc [Mon, 10 Oct 2011 13:31:03 +0000 (13:31 +0000)]
PR middle-end/49801
* compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
df_get_live_out instead of accessing the bitmaps directly.
(execute_compare_elim_after_reload): Remove calls to df_set_flags,
df_live_add_problem and df_analyze.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179749 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR middle-end/50638
matz [Mon, 10 Oct 2011 11:59:29 +0000 (11:59 +0000)]
    PR middle-end/50638
        * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179745 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Mon, 10 Oct 2011 11:42:55 +0000 (11:42 +0000)]
gcc/
* modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
(SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
(node_sched_params): Remove first_reg_move and nreg_moves.
(ps_num_consecutive_stages, extend_node_sched_params): New functions.
(update_node_sched_params): Move up file.
(print_node_sched_params): Print the stage.  Don't dump info related
to first_reg_move and nreg_moves.
(set_columns_for_row): New function.
(set_columns_for_ps): Move up file and use set_columns_for_row.
(schedule_reg_move): New function.
(schedule_reg_moves): Call extend_node_sched_params and
schedule_reg_move.  Extend size of uses bitmap.  Initialize
num_consecutive_stages.  Return false if a move could not be
scheduled.
(apply_reg_moves): Don't emit moves here.
(permute_partial_schedule): Handle register moves.
(duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
to the same stage-count test as ddg nodes.
(generate_prolog_epilog): Update calls accordingly.
(sms_schedule): Allow move-scheduling to add a new first stage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179744 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Mon, 10 Oct 2011 11:42:38 +0000 (11:42 +0000)]
gcc/
* modulo-sched.c (ps_insn): Adjust comment.
(ps_reg_move_info): New structure.
(partial_schedule): Add reg_moves field.
(SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
(node_sched_params): Turn first_reg_move into an identifier.
(ps_reg_move): New function.
(ps_rtl_insn): Cope with register moves.
(ps_first_note): Adjust comment and assert that the instruction
isn't a register move.
(node_sched_params): Replace with...
(node_sched_param_vec): ...this vector.
(set_node_sched_params): Adjust accordingly.
(print_node_sched_params): Take a partial schedule instead of a ddg.
Use ps_rtl_insn and ps_reg_move.
(generate_reg_moves): Rename to...
(schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
move in the partial schedule, but don't emit it here.  Don't perform
register substitutions here either.
(apply_reg_moves): New function.
(duplicate_insns_of_cycles): Use register indices directly,
rather than finding instructions using PREV_INSN.  Use ps_reg_move.
(sms_schedule): Call schedule_reg_moves before committing to
a partial schedule.   Try the next ii if the schedule fails.
Use apply_reg_moves instead of generate_reg_moves.  Adjust
call to print_node_sched_params.  Free node_sched_param_vec
instead of node_sched_params.
(create_partial_schedule): Initialize reg_moves.
(free_partial_schedule): Free reg_moves.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179743 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Mon, 10 Oct 2011 11:42:21 +0000 (11:42 +0000)]
gcc/
* modulo-sched.c (ps_insn): Replace node field with an identifier.
(SCHED_ASAP): Replace with..
(NODE_ASAP): ...this macro.
(SCHED_PARAMS): New macro.
(SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
(SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
(node_sched_params): Remove asap.
(ps_rtl_insn, ps_first_note): New functions.
(set_node_sched_params): Use XCNEWVEC.  Don't copy across the
asap values.
(print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
(generate_reg_moves): Pass ids to the SCHED_* macros.
(update_node_sched_params): Take a ps insn identifier rather than
a node as parameter.  Use ps_rtl_insn.
(set_columns_for_ps): Update for above field and SCHED_* macro changes.
(permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
(optimize_sc): Update for above field and SCHED_* macro changes.
Update calls to try_scheduling_node_in_cycle and
update_node_sched_params.
(duplicate_insns_of_cycles): Adjust for above field and SCHED_*
macro changes.  Use ps_rtl_insn and ps_first_note.
(sms_schedule): Pass ids to the SCHED_* macros.
(get_sched_window): Adjust for above field and SCHED_* macro changes.
Use NODE_ASAP instead of SCHED_ASAP.
(try_scheduling_node_in_cycle): Remove node parameter.  Update
call to ps_add_node_check_conflicts.  Pass ids to the SCHED_*
macros.
(sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
(ps_insert_empty_row): Adjust for above field changes.
(compute_split_row): Use ids rather than nodes.
(verify_partial_schedule): Adjust for above field changes.
(print_partial_schedule): Use ps_rtl_insn.
(create_ps_insn): Take an id rather than a node.
(ps_insn_find_column): Adjust for above field changes.
Use ps_rtl_insn.
(ps_insn_advance_column): Adjust for above field changes.
(add_node_to_ps): Remove node parameter.  Update call to
create_ps_insn.
(ps_has_conflicts): Use ps_rtl_insn.
(ps_add_node_check_conflicts): Replace node parameter than an id.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179742 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Mon, 10 Oct 2011 11:41:55 +0000 (11:41 +0000)]
gcc/
* modulo-sched.c (undo_replace_buff_elem): Delete.
(generate_reg_moves): Don't build and return an undo list.
(free_undo_replace_buff): Delete.
(sms_schedule): Adjust call to generate_reg_moves.
Don't call free_undo_replace_buff.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179741 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-10 Matthias Klose <doko@ubuntu.com>
doko [Mon, 10 Oct 2011 11:25:54 +0000 (11:25 +0000)]
2011-10-10  Matthias Klose <doko@ubuntu.com>

* common/config/m32c: Remove empty directory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179740 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
gjl [Mon, 10 Oct 2011 09:57:02 +0000 (09:57 +0000)]
* config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179739 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/50652
gjl [Mon, 10 Oct 2011 08:32:15 +0000 (08:32 +0000)]
PR target/50652
* config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
atmega164a to 0x100.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179737 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoDaily bump.
gccadmin [Mon, 10 Oct 2011 00:19:09 +0000 (00:19 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179735 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago/cp
paolo [Sun, 9 Oct 2011 23:20:39 +0000 (23:20 +0000)]
/cp
2011-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/38980
* init.c (constant_value_1): Add bool parameter.
(decl_constant_value_safe): Add.
(integral_constant_value): Adjust.
(decl_constant_value): Adjust.
* cp-tree.h (decl_constant_value_safe): Declare.
* typeck.c (decay_conversion): Use decl_constant_value_safe.
* call.c (convert_like_real): Likewise.

/testsuite
2011-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/38980
* g++.dg/warn/format5.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179731 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
ebotcazou [Sun, 9 Oct 2011 21:39:12 +0000 (21:39 +0000)]
* tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
the replacement if the conversion to the LHS type is not useless.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179730 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-09 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 9 Oct 2011 19:37:47 +0000 (19:37 +0000)]
2011-10-09  Tobias Burnus  <burnus@net-b.de>

        PR fortran/45044
        * trans-common.c (translate_common): Fix -Walign-commons
        check.

2011-10-09  Tobias Burnus  <burnus@net-b.de>

        PR fortran/45044
        * gfortran.dg/common_14.f90: Compile with -Wno-align-commons.
        * gfortran.dg/common_16.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179729 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix dead e-mail address in ChangeLogs
mikael [Sun, 9 Oct 2011 16:59:42 +0000 (16:59 +0000)]
Fix dead e-mail address in ChangeLogs

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179728 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix bogus e-mail address in ChangeLogs
mikael [Sun, 9 Oct 2011 16:48:25 +0000 (16:48 +0000)]
Fix bogus e-mail address in ChangeLogs

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179727 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * interface.c (check_dummy_characteristics): Count dimensions starting
mikael [Sun, 9 Oct 2011 16:19:06 +0000 (16:19 +0000)]
* interface.c (check_dummy_characteristics): Count dimensions starting
from one in diagnostic.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179726 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-09 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 9 Oct 2011 15:36:18 +0000 (15:36 +0000)]
2011-10-09  Tobias Burnus  <burnus@net-b.de>

        * Make-lang.in (F95_PARSER_OBJS, GFORTRAN_TRANS_DEPS): Add
        dependency on iso-c-binding.def and iso-fortran-env.def.
        * module.c (import_iso_c_binding_module): Add error when
        explicitly importing a nonstandard symbol; extend standard-
        depending loading.
        * iso-c-binding.def: Add c_float128 and c_float128_complex
        integer parameters (for -std=gnu).
        * intrinsic.texi (ISO_C_Binding): Document them.
        * symbol.c (generate_isocbinding_symbol): Change macros
        to ignore GFC_STD_* data.
        * trans-types.c (gfc_init_c_interop_kinds): Ditto; make
        nonstatic and renamed from "init_c_interop_kinds".
        (gfc_init_kinds): Don't call it
        * trans-types.h (gfc_init_c_interop_kinds): Add prototype.
        * f95-lang.c (gfc_init_decl_processing): Call it.

2011-10-09  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/iso_c_binding_param_1.f90: New.
        * gfortran.dg/iso_c_binding_param_2.f90: New.
        * gfortran.dg/c_sizeof_2.f90: Update dg-error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179725 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR tree-optimization/50635
irar [Sun, 9 Oct 2011 15:09:00 +0000 (15:09 +0000)]
    PR tree-optimization/50635
        * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
        DEF_STMT to the list of statements to be replaced by the
        pattern statements.
        (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179724 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-09 Janus Weil <janus@gcc.gnu.org>
janus [Sun, 9 Oct 2011 11:34:21 +0000 (11:34 +0000)]
2011-10-09  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50659
* expr.c (replace_symbol): Only do replacement if the symbol is a dummy.

2011-10-09  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50659
* gfortran.dg/proc_decl_27.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179723 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * system.h: Commit forgotten hunk in previous patch.
aesok [Sun, 9 Oct 2011 11:09:59 +0000 (11:09 +0000)]
* system.h: Commit forgotten hunk in previous patch.
(OUTPUT_ADDR_CONST_EXTRA): Poison.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179722 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Sun, 9 Oct 2011 10:29:50 +0000 (10:29 +0000)]
In libobjc/:
2011-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/49883
* init.c (__objc_exec_class): Work around a bug in clang's code
generation.  Clang sets the class->info field to values different
from 0x1 or 0x2 (the only allowed values in the traditional GNU
Objective-C runtime ABI) to store some additional information, but
this breaks backwards compatibility.  Wipe out all the bits in the
fields other than the first two upon loading a class.

2011-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>

* class.c (objc_lookup_class): Added back for compatibility with
clang which seems to emit calls to it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179721 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * pt.c (reregister_specialization): Use htab_find instead of
jakub [Sun, 9 Oct 2011 09:35:23 +0000 (09:35 +0000)]
* pt.c (reregister_specialization): Use htab_find instead of
htab_find_slot with INSERT.
(maybe_process_partial_specialization, lookup_template_class_1): Change
slot variable type to void ** to avoid aliasing problems.
(register_specialization): Likewise.  Use slot != NULL instead of
more expensive !optimize_specialization_lookup_p (tmpl) test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179719 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-08 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 9 Oct 2011 00:21:37 +0000 (00:21 +0000)]
2011-10-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/34927
* typeck2.c (abstract_virtuals_error_sfinae): Don't produce duplicate
inform messages in case of cloned destructor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179718 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoDaily bump.
gccadmin [Sun, 9 Oct 2011 00:18:00 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179717 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix ChangeLog format for revision 177233.
gerald [Sat, 8 Oct 2011 19:10:09 +0000 (19:10 +0000)]
Fix ChangeLog format for revision 177233.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179712 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Sat, 8 Oct 2011 17:52:06 +0000 (17:52 +0000)]
In libobjc/:
2011-10-08  Richard Frith-Macdonald <rfm@gnu.org>
            Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/50428
* sendmsg.c (__objc_send_initialize): If a class does not have an
+initialize method, search for an +initialize method in the
superclass and in the ancestor classes and execute the first one
that is found.  This makes the GNU runtime behave in the same way
as the Apple/NeXT runtime with respect to +initialize methods and
subclassing.

In gcc/:
2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/50428
* doc/objc.texi (Garbage Collection): Updated example to protect
+initialize against execution in subclasses.

In gcc/testsuite/:
2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/50428
* objc/execute/initialize-1.m: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179711 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-10-08 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 8 Oct 2011 10:18:51 +0000 (10:18 +0000)]
2011-10-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47844
* trans-array.c (gfc_conv_array_index_offset): Use descriptor
stride for pointer function results.

2011-10-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47844
* gfortran.dg/pointer_function_result_1.f90 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179710 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoDaily bump.
gccadmin [Sat, 8 Oct 2011 00:18:22 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179707 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * generic-morestack-thread.c: #include <errno.h>.
ian [Fri, 7 Oct 2011 22:52:28 +0000 (22:52 +0000)]
* generic-morestack-thread.c: #include <errno.h>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179703 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/46093
ian [Fri, 7 Oct 2011 22:51:11 +0000 (22:51 +0000)]
PR target/46093
* generic-morestack.c (__generic_morestack): Make sure the segment
is large enough for both the stack frame and the copied
parameters.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179702 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoRename vshuffle/vec_shuffle to vec_perm.
rth [Fri, 7 Oct 2011 22:41:48 +0000 (22:41 +0000)]
Rename vshuffle/vec_shuffle to vec_perm.

        * doc/extend.texi (__builtin_shuffle): Improve the description to
        include the modulus of the selector.  Mention OpenCL.
        * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.

        * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
        * genopinit.c (optabs): Rename vshuffle to vec_perm.
        * c-typeck.c (c_build_vec_perm_expr): Rename from
        c_build_vec_shuffle_expr.  Update for name changes.
        * optabs.c (expand_vec_perm_expr_p): Rename from
        expand_vec_shuffle_expr_p.
        (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
        * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
        (vec_perm_optab): Rename from vshuffle_optab.
        * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
        c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
        tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.

        * config/i386/i386.c (ix86_expand_vec_perm): Rename from
        ix86_expand_vshuffle.
        * config/i386/i386-protos.h: Update.
        * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
        (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179701 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoi386: Fixup last pblendw change.
rth [Fri, 7 Oct 2011 22:12:18 +0000 (22:12 +0000)]
i386: Fixup last pblendw change.

Missed changing one predicate to AVX2.  Add parenthesis
to avoid bootstrap -Werror.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179700 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoi386: Fix representation of 256-bit vpblendw.
rth [Fri, 7 Oct 2011 21:07:10 +0000 (21:07 +0000)]
i386: Fix representation of 256-bit vpblendw.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179697 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_expr_descriptor): Remove trailing whitespace.
mikael [Fri, 7 Oct 2011 20:56:31 +0000 (20:56 +0000)]
* trans-array.c (gfc_conv_expr_descriptor): Remove trailing whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179695 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_ss_startstride): Merge two switch cases.
mikael [Fri, 7 Oct 2011 20:35:47 +0000 (20:35 +0000)]
* trans-array.c (gfc_conv_ss_startstride): Merge two switch cases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179694 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_section_startstride): Remove coarray argument.
mikael [Fri, 7 Oct 2011 20:32:37 +0000 (20:32 +0000)]
* trans-array.c (gfc_conv_section_startstride): Remove coarray argument.
Remove conditions on coarray.
(gfc_conv_ss_startstride): Update call to gfc_conv_section_startstride.
(gfc_conv_expr_descriptor): Ditto. Add assertions before the call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179693 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_section_startstride): Remove coarray_last
mikael [Fri, 7 Oct 2011 20:29:27 +0000 (20:29 +0000)]
* trans-array.c (gfc_conv_section_startstride): Remove coarray_last
argument. Remove condition on coarray_last.
(gfc_conv_ss_startstride): Update call to gfc_conv_section_startstride.
(gfc_conv_expr_descriptor): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179692 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_walk_variable_expr): Remove scalar coarray
mikael [Fri, 7 Oct 2011 20:26:11 +0000 (20:26 +0000)]
* trans-array.c (gfc_walk_variable_expr): Remove scalar coarray
handling.  Don't reset array ref's corank and codimensions' types
in the full array ref case.  Update loop upper limit.
Remove DIMEN_THIS_IMAGE case.  Remove unnecessary conditions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179691 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans.h (gfc_ss_info): Remove codimen field.
mikael [Fri, 7 Oct 2011 20:22:50 +0000 (20:22 +0000)]
* trans.h (gfc_ss_info): Remove codimen field.
* trans-array.c (gfc_get_array_ss): Don't set codimen field.
(gfc_trans_create_temp_array): Don't set descriptor's cobounds.
(gfc_trans_constant_array_constructor): Update loop upper limit.
(gfc_conv_ss_startstride): Don't set codimen field.
Don't get descriptor's cobounds.
(gfc_walk_variable_expr): Update dimension index.
* trans-intrinsic.c (trans_this_image, trans_image_index,
conv_intrinsic_cobound): Don't set codimen field

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179690 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans.h (gfc_loopinfo): Remove codimen field.
mikael [Fri, 7 Oct 2011 20:14:44 +0000 (20:14 +0000)]
* trans.h (gfc_loopinfo): Remove codimen field.
* trans-array.c (gfc_set_vector_loop_bounds,
gfc_trans_scalarizing_loops, gfc_conv_loop_setup): Update loop upper
limit.
(gfc_set_loop_bounds_from_array_spec): Ditto. Remove skip on last
codimension.
(gfc_start_scalarized_body): Update loop lower limit.
(gfc_conv_ss_startstride): Don't set loop's codimen field.
(gfc_conv_loop_setup): Remove unnecessary condition.
(gfc_conv_expr_descriptor): Don't use loop's codimen field as corank.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179689 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans.h (gfc_ss): Remove data.temp.codimen field.
mikael [Fri, 7 Oct 2011 20:05:35 +0000 (20:05 +0000)]
* trans.h (gfc_ss): Remove data.temp.codimen field.
* trans-array.c (gfc_conv_resolve_dependencies,
gfc_conv_expr_descriptor): Don't set temp's codimen field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179686 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * resolve.c (resolve_array_ref): Set array_ref's dimen field (and the
mikael [Fri, 7 Oct 2011 19:56:11 +0000 (19:56 +0000)]
* resolve.c (resolve_array_ref): Set array_ref's dimen field (and the
associated dimen_type) in the full array ref case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179685 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-intrinsic.c (walk_coarray): New function.
mikael [Fri, 7 Oct 2011 19:52:34 +0000 (19:52 +0000)]
* trans-intrinsic.c (walk_coarray): New function.
(convert_element_to_coarray_ref): Move code to walk_coarray. Remove.
(trans-this_image, trans_image_index, conv_intrinsic_cobound):
Use walk_coarray.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179684 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_expr_descriptor): Add out-of-the-scalarizer
mikael [Fri, 7 Oct 2011 19:47:07 +0000 (19:47 +0000)]
* trans-array.c (gfc_conv_expr_descriptor): Add out-of-the-scalarizer
cobounds evaluation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179683 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_ss_startstride): Support zero rank loop.
mikael [Fri, 7 Oct 2011 19:43:21 +0000 (19:43 +0000)]
* trans-array.c (gfc_conv_ss_startstride): Support zero rank loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179682 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_section_startstride): Move code to
mikael [Fri, 7 Oct 2011 19:39:22 +0000 (19:39 +0000)]
* trans-array.c (gfc_conv_section_startstride): Move code to
evaluate_bound.  Use evaluate_bound.
(evaluate_bound): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179681 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_section_startstride): Update assertion to
mikael [Fri, 7 Oct 2011 19:36:20 +0000 (19:36 +0000)]
* trans-array.c (gfc_conv_section_startstride): Update assertion to
also accept coarrays.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179680 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_section_startstride): Factor common
mikael [Fri, 7 Oct 2011 19:33:10 +0000 (19:33 +0000)]
* trans-array.c (gfc_conv_section_startstride): Factor common
array ref references.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179679 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.c (gfc_conv_expr_descriptor): Use codim instead of
mikael [Fri, 7 Oct 2011 19:28:55 +0000 (19:28 +0000)]
* trans-array.c (gfc_conv_expr_descriptor): Use codim instead of
loop.codimen as argument to gfc_get_array_type_bounds.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179677 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * trans-array.h (struct gfc_se): New flag want_coarray.
mikael [Fri, 7 Oct 2011 19:24:07 +0000 (19:24 +0000)]
* trans-array.h (struct gfc_se): New flag want_coarray.
* trans-intrinsic.c (trans_this_image, trans_image_index,
conv_intrinsic_cobound): Set want_coarray.
* trans_array.c (gfc_conv_expr_descriptor): Evaluate codimension
earlier and without relying on the scalarizer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179676 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * expr.c (gfc_get_corank): Return 0 if input expression is not a
mikael [Fri, 7 Oct 2011 19:14:07 +0000 (19:14 +0000)]
* expr.c (gfc_get_corank): Return 0 if input expression is not a
coarray.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179675 138bc75d-0d04-0410-961f-82ee72b054a4