Richard Guenther [Thu, 20 Jan 2011 14:42:20 +0000 (14:42 +0000)]
re PR middle-end/47370 (error: invalid first operand of MEM_REF)
2011-01-20 Richard Guenther <rguenther@suse.de>
PR middle-end/47370
* tree-inline.c (remap_gimple_op_r): Recurse manually for
the pointer operand of MEM_REFs.
* gcc.dg/torture/pr47370.c: New testcase.
From-SVN: r169055
Jakub Jelinek [Thu, 20 Jan 2011 12:02:33 +0000 (13:02 +0100)]
re PR tree-optimization/46130 (ICE: SIGSEGV in walk_stmt_load_store_addr_ops (gimple.c:4894) with -O2 -fno-tree-dce)
PR tree-optimization/46130
* ipa-split.c (consider_split): If return_bb contains non-virtual
PHIs other than for retval or if split_function would not adjust it,
refuse to split.
* gcc.dg/pr46130-1.c: New test.
* gcc.dg/pr46130-2.c: New test.
From-SVN: r169052
Richard Guenther [Thu, 20 Jan 2011 10:33:15 +0000 (10:33 +0000)]
re PR other/47167 (Performance regression in numerical code)
2011-01-20 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47167
* tree-ssa-copyrename.c (copy_rename_partition_coalesce):
Revert previous change, only avoid enumeral type changes.
From-SVN: r169050
Mike Stump [Thu, 20 Jan 2011 00:19:07 +0000 (00:19 +0000)]
tm.texi.in (BRANCH_COST): Englishify.
* doc/tm.texi.in (BRANCH_COST): Englishify.
* doc/tm.texi (BRANCH_COST): Likewise.
From-SVN: r169043
GCC Administrator [Thu, 20 Jan 2011 00:18:46 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r169042
Mike Stump [Wed, 19 Jan 2011 23:52:57 +0000 (23:52 +0000)]
Fixup formatting.
From-SVN: r169038
Ian Lance Taylor [Wed, 19 Jan 2011 23:03:33 +0000 (23:03 +0000)]
libgo/Makefile.am: Fix typo naming socket_bsd.go.
From-SVN: r169037
Dodji Seketeli [Wed, 19 Jan 2011 22:57:47 +0000 (22:57 +0000)]
re PR c++/47291 (ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g)
Fix PR c++/47291
gcc/
PR c++/47291
* dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
(gen_scheduled_generic_parms_dies): New functions.
(gen_struct_or_union_type_die): Schedule template parameters DIEs
generation for the end of CU compilation.
(dwarf2out_finish): Generate template parameters DIEs here.
gcc/testsuite/
PR c++/47291
* g++.dg/debug/dwarf2/template-params-10.C: New test.
From-SVN: r169036
Alexandre Oliva [Wed, 19 Jan 2011 22:07:14 +0000 (22:07 +0000)]
re PR debug/46240 (ice in maybe_register_def)
gcc/ChangeLog:
PR debug/46240
* tree-into-ssa.c (maybe_register_def): Do not attempt to add
debug bind stmt on merge edges.
gcc/testsuite/ChangeLog:
PR debug/46240
* g++.dg/debug/pr46240.cc: New.
From-SVN: r169035
Alexandre Oliva [Wed, 19 Jan 2011 22:00:00 +0000 (22:00 +0000)]
re PR debug/47079 (FAIL: gcc.dg/guality/nrv-1.c)
PR debug/47079
PR debug/46724
* function.c (instantiate_expr): Instantiate incoming rtl of
implicit arguments, and recurse on VALUE_EXPRs.
(instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
* var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
From-SVN: r169034
Alexandre Oliva [Wed, 19 Jan 2011 21:59:47 +0000 (21:59 +0000)]
c-parser.c (c_parser_for_statement): Initialize collection_expression.
* c-parser.c (c_parser_for_statement): Initialize
collection_expression.
From-SVN: r169033
Ian Lance Taylor [Wed, 19 Jan 2011 20:54:30 +0000 (20:54 +0000)]
Remember erroneous type when creating GENERIC for named type.
From-SVN: r169030
Joseph Myers [Wed, 19 Jan 2011 20:51:32 +0000 (20:51 +0000)]
* config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
From-SVN: r169028
Ian Lance Taylor [Wed, 19 Jan 2011 20:47:21 +0000 (20:47 +0000)]
Don't crash on reference to field with erroneous type.
From-SVN: r169027
Joseph Myers [Wed, 19 Jan 2011 20:45:30 +0000 (20:45 +0000)]
sysv4.h (LINK_PATH_SPEC): Remove.
* config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
(LINK_SHLIB_SPEC): Don't use %(link_path).
(SUBTARGET_EXTRA_SPECS): Remove link_path.
From-SVN: r169026
Joseph Myers [Wed, 19 Jan 2011 20:41:37 +0000 (20:41 +0000)]
sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
* config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
(NO_SHARED_LIB_SUPPORT): Remove.
(LINK_SHLIB_SPEC): Remove one conditional definition.
From-SVN: r169025
Joseph Myers [Wed, 19 Jan 2011 20:39:09 +0000 (20:39 +0000)]
linux64.h (LINK_SPEC): Remove %{non_shared} %{call_shared}.
* config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
%{call_shared}.
* config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
* config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
* config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
%{call_shared} and conditionals on these options not being passed.
* config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
%{call_shared}.
From-SVN: r169024
Ian Lance Taylor [Wed, 19 Jan 2011 20:37:50 +0000 (20:37 +0000)]
Generate an init function if any global variable needs a preinit.
From-SVN: r169023
Benjamin Kosnik [Wed, 19 Jan 2011 20:00:47 +0000 (20:00 +0000)]
PR libstdc++/36104 part two
2011-01-19 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/36104 part two
* include/bits/hashtable.h: Revert to non-nested macro usage.
* include/bits/hashtable_policy.h: Same.
From-SVN: r169021
Jakub Jelinek [Wed, 19 Jan 2011 19:58:37 +0000 (20:58 +0100)]
ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge, simplify.
* ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
simplify.
From-SVN: r169020
Jakub Jelinek [Wed, 19 Jan 2011 19:57:54 +0000 (20:57 +0100)]
* ipa-split.c: Spelling fixes.
From-SVN: r169019
Richard Henderson [Wed, 19 Jan 2011 19:36:42 +0000 (11:36 -0800)]
mn10300: Add support in longlong.h.
This greatly helps out the DImode division, and to a lesser
extent the DImode multiplication routines in libgcc2.c.
From-SVN: r169018
Richard Henderson [Wed, 19 Jan 2011 19:33:44 +0000 (11:33 -0800)]
mn10300: Use reg_or_am33_const_operand in mulsi3.
From-SVN: r169017
Ulrich Weigand [Wed, 19 Jan 2011 19:05:14 +0000 (19:05 +0000)]
* config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
From-SVN: r169015
Richard Henderson [Wed, 19 Jan 2011 18:55:12 +0000 (10:55 -0800)]
mn10300: Implement adddi3, subdi3.
Via expander, pre- and post-reload patterns. The pre-reload
pattern is defined to allow lower_subregs totally split the
DImode values.
From-SVN: r169014
Richard Henderson [Wed, 19 Jan 2011 18:50:52 +0000 (10:50 -0800)]
mn10300: Emit retf instruction
Now that we properly track the life of MDR, we can emit
the RETF instruction if MDR has not been modified. This
insn is 3-4 cycles faster since the return address is
already loaded.
From-SVN: r169013
Richard Henderson [Wed, 19 Jan 2011 18:46:30 +0000 (10:46 -0800)]
mn10300: tidy pic address loading
There's little reason to greatly complicate things by splitting
the pic_load patterns and using complex rtl to make it work out.
Instead, use the %= marker to generate unique numbers and emit
the entire load_pic sequence at once.
At the same time, collect all references to outgoing_args_size
into mn10300_frame_size, and all computations of register save
area size into mn10300_initial_offset.
From-SVN: r169012
Richard Henderson [Wed, 19 Jan 2011 18:38:56 +0000 (10:38 -0800)]
mn10300: Cleanup all arithmetic.
For addition and logicals, define an operation-plus-flags update pattern
in preparation for compare elimination. In addition, clean up the way
we compare and validate CC_MODEs. Define NEG in terms of NOT; this is
smaller and allows a non-clobbering destination alternative.
From-SVN: r169010
Richard Henderson [Wed, 19 Jan 2011 17:27:58 +0000 (09:27 -0800)]
mn10300: Explicitly represent MDR in multiply and divide.
Note that the mulsidi3_internal pattern is structured so
as to let the lower-subregs pass fully split the result.
From-SVN: r169008
Richard Henderson [Wed, 19 Jan 2011 17:20:26 +0000 (09:20 -0800)]
mn10300: Expose the MDR register to register allocation.
Note that nothing uses the "z" constraint yet except the one
move pattern; this merely defines the register class properly.
From-SVN: r169007
Richard Henderson [Wed, 19 Jan 2011 17:14:31 +0000 (09:14 -0800)]
mn10300: Cleanup legitimate addresses
Allow REG+REG and POST_MODIFY addressing for AM33. Fix AM33 base and
index register classes. Remove a bunch of register class combinations
that aren't really useful after this cleanup.
From-SVN: r169006
Richard Henderson [Wed, 19 Jan 2011 17:02:57 +0000 (09:02 -0800)]
mn10300: Cleanup secondary reloads
Handles output reloads for QI/HImode properly; previously we were
only handing input reloads properly.
Handles reloads involving the stack pointer better; note that the
AM33 allows copying SP to DATA_REGS as well as ADDRESS and EXTENDED.
From-SVN: r169005
Richard Henderson [Wed, 19 Jan 2011 16:57:37 +0000 (08:57 -0800)]
mn10300: Re-write move patterns.
Use the "D" and "A" constraints, and the enabled attribute to
unify all ofthe integer move patterns. Delete the fake double
word move patterns; let the middle-end generate subregs as required.
Unfortunately, this somehow exposes a register pressure problem
with the udivmod pattern. This is properly fixed with subsequent
patches that expose the MDR register.
In the meantime it is highly desirable to to preserve bisect-ability
of the patch series, so disable this pattern for AM30.
From-SVN: r169004
Ian Lance Taylor [Wed, 19 Jan 2011 16:55:24 +0000 (16:55 +0000)]
Improve check for const initializer loop.
From-SVN: r169003
Ian Lance Taylor [Wed, 19 Jan 2011 16:03:55 +0000 (16:03 +0000)]
Check for error type when getting type of binary expression.
From-SVN: r169002
Ian Lance Taylor [Wed, 19 Jan 2011 15:47:50 +0000 (15:47 +0000)]
Fix handling of anonymous field in struct with pointer type.
From-SVN: r169001
Jakub Jelinek [Wed, 19 Jan 2011 15:36:57 +0000 (16:36 +0100)]
re PR c++/47303 (ICE: in varpool_node, at varpool.c:134 with -fabi-version=1)
PR c++/47303
* decl2.c (finish_anon_union): Only call mangle_decl if TREE_STATIC
or DECL_EXTERNAL.
* g++.dg/template/anonunion1.C: New test.
From-SVN: r169000
Joern Rennecke [Wed, 19 Jan 2011 15:23:06 +0000 (15:23 +0000)]
tm.texi.in: Spell out that a lack of register class unions can lead to ICEs.
* doc/tm.texi.in: Spell out that a lack of register class unions
can lead to ICEs.
* doc/tm.texi: Regenerate.
From-SVN: r168998
Jakub Jelinek [Wed, 19 Jan 2011 15:13:01 +0000 (16:13 +0100)]
re PR rtl-optimization/47337 (Wrong RTL dce of calls)
PR rtl-optimization/47337
* dce.c (check_argument_store): New function.
(find_call_stack_args): Ignore debug insns. Use check_argument_store.
* gcc.c-torture/execute/pr47337.c: New test.
From-SVN: r168997
Ulrich Weigand [Wed, 19 Jan 2011 13:09:51 +0000 (13:09 +0000)]
re PR testsuite/45342 (FAIL: gcc.dg/tls/thr-cse-1.c scan-assembler-not emutls_get_address.*emutls_get_address.*)
PR testsuite/45342
* gcc.dg/tls/thr-cse-1.c: Fix match on spu-*.*.
From-SVN: r168992
Ulrich Weigand [Wed, 19 Jan 2011 12:56:16 +0000 (12:56 +0000)]
re PR tree-optimization/46021 (3 tree-ssa tests XPASS almost everywhere)
PR tree-optimization/46021
* gcc.dg/tree-ssa/
20040204-1.c: Do not XFAIL on spu-*-*.
From-SVN: r168990
Ian Lance Taylor [Wed, 19 Jan 2011 06:04:00 +0000 (06:04 +0000)]
Avoid crash with extra struct initializers with abstract types.
From-SVN: r168984
Ian Lance Taylor [Wed, 19 Jan 2011 05:49:25 +0000 (05:49 +0000)]
Fix generating type descriptor for array with float length.
From-SVN: r168983
Ian Lance Taylor [Wed, 19 Jan 2011 05:38:41 +0000 (05:38 +0000)]
Don't crash using value of something with no value.
From-SVN: r168982
Ian Lance Taylor [Wed, 19 Jan 2011 05:24:55 +0000 (05:24 +0000)]
Fix struct with field of pointer to array of same struct.
From-SVN: r168981
Graham Reed [Wed, 19 Jan 2011 02:27:45 +0000 (02:27 +0000)]
re PR libstdc++/47354 (bitmap_allocator free_list::_M_get never locks mutex)
2011-01-19 Graham Reed <greed@pobox.com>
PR libstdc++/47354
* src/bitmap_allocator.cc (free_list::_M_get): Lock mutex.
From-SVN: r168980
Benjamin Kosnik [Wed, 19 Jan 2011 02:17:35 +0000 (02:17 +0000)]
confdeps.png: Regenerate.
2011-01-18 Benjamin Kosnik <bkoz@redhat.com>
* doc/xml/images/confdeps.png: Regenerate.
* include/std/chrono (duration): Mark copy constructor constexpr.
* testsuite/20_util/duration/cons/constexpr.cc: Add test.
From-SVN: r168979
GCC Administrator [Wed, 19 Jan 2011 00:18:18 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r168978
Jakub Jelinek [Tue, 18 Jan 2011 23:16:16 +0000 (00:16 +0100)]
re PR tree-optimization/47290 (memory exhausted compiling a destructor with an infinite 'for (;;);' loop)
PR tree-optimization/47290
* tree-eh.c (infinite_empty_loop_p): New function.
(cleanup_empty_eh): Use it.
* g++.dg/torture/pr47290.C: New test.
From-SVN: r168974
Janus Weil [Tue, 18 Jan 2011 22:40:33 +0000 (23:40 +0100)]
re PR fortran/47240 ([F03] segfault with procedure pointer component)
2011-01-18 Janus Weil <janus@gcc.gnu.org>
PR fortran/47240
* resolve.c (expression_rank): Fix rank of procedure poiner components.
* trans-expr.c (gfc_conv_procedure_call): Take care of procedure
pointer components as actual arguments.
2011-01-18 Janus Weil <janus@gcc.gnu.org>
PR fortran/47240
* gfortran.dg/proc_ptr_comp_29.f90: New.
From-SVN: r168973
Steve Ellcey [Tue, 18 Jan 2011 21:56:46 +0000 (21:56 +0000)]
re PR target/46997 (new ia64 vector instructions are broken on HP-UX (big-endian))
PR target/46997
* ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
(a64_expand_widen_sum): Ditto.
* vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
(vec_extract_evenodd_help): Ditto.
(vec_extract_evenv4hi): Ditto.
(vec_extract_oddv4hi): Ditto.
(vec_extract_evenv2si): Ditto.
(vec_extract_oddv2si): Ditto.
(vec_extract_evenv2sf): Ditto.
(vec_extract_oddv2sf): Ditto.
(vec_pack_trunc_v4hi: Ditto.
(vec_pack_trunc_v2si): Ditto.
(vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
(vec_interleave_highv8qi): Ditto.
(mix1_r): Ditto.
(vec_extract_oddv8qi): Ditto.
(vec_interleave_lowv4hi): Ditto.
(vec_interleave_highv4hi): Ditto.
(vec_interleave_lowv2si): Ditto.
(vec_interleave_highv2si): Ditto.
From-SVN: r168970
John David Anglin [Tue, 18 Jan 2011 21:53:47 +0000 (21:53 +0000)]
extend.texi: Mention __float128 support on hppa HP-UX.
* doc/extend.texi: Mention __float128 support on hppa HP-UX.
* config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
* config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
(pa_c_mode_for_suffix): New.
(TARGET_EXPAND_BUILTIN): Define.
(TARGET_C_MODE_FOR_SUFFIX): Define.
(pa_builtins): Define.
(pa_init_builtins): Register __float128 type and init new support
builtins.
* config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
* config/pa/quadlib.c (_U_Qfcopysign): New.
From-SVN: r168969
Eric Botcazou [Tue, 18 Jan 2011 21:29:11 +0000 (21:29 +0000)]
re PR middle-end/46894 (vector tests fail on powerpc 32-bit)
PR middle-end/46894
* explow.c (allocate_dynamic_stack_space): Do not assume more than
BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
are defined.
From-SVN: r168968
Ulrich Weigand [Tue, 18 Jan 2011 20:13:56 +0000 (20:13 +0000)]
re PR tree-optimization/47179 (SPU: errno misoptimization around malloc call)
PR tree-optimization/47179
* config/spu/spu.c (spu_ref_may_alias_errno): New function.
(TARGET_REF_MAY_ALIAS_ERRNO): Define.
From-SVN: r168961
Dominique d'Humieres [Tue, 18 Jan 2011 20:06:13 +0000 (20:06 +0000)]
re PR testsuite/41146 (FAIL: gcc.target/powerpc/asm-es-2.c scan-assembler *)
2011-01-18 Dominique d'Humieres <dominiq@lps.ens.fr>
PR testsuite/41146
* gcc.target/powerpc/asm-es-2.c: Adjust regular expression for
powerpc-apple-darwin9.
From-SVN: r168960
Richard Guenther [Tue, 18 Jan 2011 15:50:55 +0000 (15:50 +0000)]
re PR rtl-optimization/47216 (gcc.dg/torture/pr43360.c FAILs with -O -fPIC -fgcse -fgcse-sm -fnon-call-exceptions -fno-tree-dse)
2011-01-18 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/47216
* emit-rtl.c: Include tree-flow.h.
(set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
of replicating it with different semantics.
* Makefile.in (emit-rtl.o): Adjust.
From-SVN: r168951
Ramana Radhakrishnan [Tue, 18 Jan 2011 15:28:08 +0000 (15:28 +0000)]
cortex-a9.md (cortex-a9-neon.md): Actually include.
2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
include.
(cortex_a9_dp): Handle neon types correctly.
From-SVN: r168950
Paolo Carlini [Tue, 18 Jan 2011 11:12:06 +0000 (11:12 +0000)]
unique_ptr.h (default_delete<>::default_delete()): Declare defaulted per DR 1517.
2011-01-18 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/unique_ptr.h (default_delete<>::default_delete()):
Declare defaulted per DR 1517.
* testsuite/util/testsuite_common_types.h
(constexpr_defaulted_default_constructible): Add.
* testsuite/20_util/default_delete/cons/constexpr.cc: Use it.
From-SVN: r168947
Jakub Jelinek [Tue, 18 Jan 2011 07:45:12 +0000 (08:45 +0100)]
re PR rtl-optimization/47299 (Widening multiply optimization generates bad code)
PR rtl-optimization/47299
* expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
subtarget. Use normal multiplication if both operands are
constants.
* expmed.c (expand_widening_mult): Don't try to optimize constant
multiplication if op0 has VOIDmode. Convert op1 constant to mode
before using it.
* gcc.c-torture/execute/pr47299.c: New test.
From-SVN: r168944
Jie Zhang [Tue, 18 Jan 2011 05:21:29 +0000 (05:21 +0000)]
drop gdb mask for Blackfin targets
Now that gdb supports Blackfin targets, no need to mask it.
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
From-SVN: r168943
Mike Frysinger [Tue, 18 Jan 2011 05:06:50 +0000 (05:06 +0000)]
libiberty: add .gitignore
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
From-SVN: r168942
GCC Administrator [Tue, 18 Jan 2011 00:18:34 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r168941
Jason Merrill [Mon, 17 Jan 2011 22:34:35 +0000 (17:34 -0500)]
re PR c++/47067 ([c++0x] ICE in cxx_eval_bare_aggregate, at cp/semantics.c:6352)
PR c++/47067
* semantics.c (base_field_constructor_elt): New fn.
(cxx_eval_bare_aggregate): Use it.
(build_data_member_initialization): Leave COMPONENT_REF for
vfield inits.
From-SVN: r168937
Rodrigo Rivas Costa [Mon, 17 Jan 2011 22:34:26 +0000 (22:34 +0000)]
parser.c (cp_parser_range_for): Remove the "unused variable" warning workaround.
* parser.c (cp_parser_range_for): Remove the "unused variable" warning
workaround.
From-SVN: r168936
Jakub Jelinek [Mon, 17 Jan 2011 22:26:42 +0000 (23:26 +0100)]
re PR fortran/47331 (ICE in make_decl_rtl, at varasm.c:1133 (with -fopenmp))
PR fortran/47331
* gfortran.h (struct gfc_omp_saved_state): New type.
(gfc_omp_save_and_clear_state, gfc_omp_restore_state): New prototypes.
* resolve.c (resolve_global_procedure): Call it around gfc_resolve
call.
* openmp.c (gfc_omp_save_and_clear_state, gfc_omp_restore_state): New
functions.
* gfortran.dg/gomp/pr47331.f90: New test.
From-SVN: r168935
Nicola Pero [Mon, 17 Jan 2011 22:17:47 +0000 (22:17 +0000)]
In gcc/objc/: 2011-01-17 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/objc/:
2011-01-17 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47314
* objc-act.c (finish_objc): When calling check_duplicates to check
duplicated instance methods, set 'is_class' to 0, not 1.
In gcc/testsuite/:
2011-01-17 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47314
* objc.dg/selector-warn-1.m: New.
* obj-c++.dg/selector-warn-1.mm: New.
From-SVN: r168934
Richard Sandiford [Mon, 17 Jan 2011 20:31:35 +0000 (20:31 +0000)]
vrp51.c: Prefix each "bug." string with "vrp.".
gcc/testsuite/
* gcc.dg/tree-ssa/vrp51.c: Prefix each "bug." string with "vrp.".
Update dg-final accordingly.
From-SVN: r168933
Tobias Burnus [Mon, 17 Jan 2011 19:16:27 +0000 (20:16 +0100)]
re PR fortran/47327 (Documentation: Link to GCC Errors and Warnings options broken)
2011-01-17 Tobias Burnus <burnus@net-b.de>
PR fortran/47327
* invoke.texi (Options to request or suppress errors
and warnings): Fix cross link.
From-SVN: r168932
Ralf Wildenhues [Mon, 17 Jan 2011 19:13:05 +0000 (19:13 +0000)]
Markup and minor fixes in LTO documentation.
gcc/:
* doc/lto.texi (LTO): Ensure two spaces after period. Fix
spacing after 'e.g.', typos, comma, hyphenation.
From-SVN: r168931
Tobias Burnus [Mon, 17 Jan 2011 19:03:28 +0000 (20:03 +0100)]
re PR fortran/47295 (libquadmath: List __complex128 and constants in the .texi file)
2011-01-17 Tobias Burnus <burnus@net-b.de>
PR fortran/47295
* libquadmath.text: Document typedef and constants.
From-SVN: r168930
Richard Henderson [Mon, 17 Jan 2011 18:22:04 +0000 (10:22 -0800)]
rx: Split adddi3 and subdi3 after reload.
The formulation of the pre-reload pattern allows the lower_subreg
pass to properly split the patterns. This also required re-writing
rx_source_operand and related predicates to accept subregs.
From-SVN: r168929
Richard Henderson [Mon, 17 Jan 2011 18:18:24 +0000 (10:18 -0800)]
rx: Replace sat builtin with ssaddsi3 pattern.
A standalone __builtin_rx_sat isn't implementable due to needing
to keep the flags live before reload. Instead provide a saturating
add pattern, which hopefully will be pattern-matched by high-level
optimizations.
From-SVN: r168928
Richard Henderson [Mon, 17 Jan 2011 18:16:39 +0000 (10:16 -0800)]
rx: Rewrite the bit manipulation patterns.
The patterns represented with ashift 1 canonically need to have
the ashift as the first operand of the logical operation.
Leave insv represented as a zero_extract store.
Implement a variable store to a 1 bit field as tst+bmne.
Implement a variable store of a condition into a 1 bit field with bmcc.
From-SVN: r168927
Richard Henderson [Mon, 17 Jan 2011 18:12:45 +0000 (10:12 -0800)]
rx: Fix incorrect usage of + in output operands.
From-SVN: r168926
Richard Henderson [Mon, 17 Jan 2011 18:11:49 +0000 (10:11 -0800)]
rx: Cleanup non-VOIDmode SETs.
SET should always have VOIDmode. A number of places used
SImode or QImode for the mode of the SET rtx itself.
From-SVN: r168925
Richard Henderson [Mon, 17 Jan 2011 18:06:28 +0000 (10:06 -0800)]
rx: Cleanup flags generation.
All arithmetic should only clobber the flags by default;
setting the flags to a useful value should be done by a
separate pattern.
From-SVN: r168924
Richard Henderson [Mon, 17 Jan 2011 17:59:20 +0000 (09:59 -0800)]
rx: Implement cstoresf4.
From-SVN: r168923
Richard Henderson [Mon, 17 Jan 2011 17:58:21 +0000 (09:58 -0800)]
rx: Remove %B workaround.
This was delayed until all compare+operate patterns were converted.
From-SVN: r168922
Richard Henderson [Mon, 17 Jan 2011 17:57:15 +0000 (09:57 -0800)]
rx: Split movsicc post-reload.
This will allow elimination of the compare.
From-SVN: r168921
Richard Henderson [Mon, 17 Jan 2011 17:55:33 +0000 (09:55 -0800)]
rx: Split cstoresi4 post-reload.
This will allow elimination of the compare.
From-SVN: r168920
Richard Henderson [Mon, 17 Jan 2011 17:53:55 +0000 (09:53 -0800)]
rx: Cleanup conditional branches.
Use match_operator, not code_iterators. Use a new helper function,
rx_split_cbranch. Get the modes right on the comparisons. Distinguish
fp comparisons with CC_Fmode.
From-SVN: r168919
Richard Henderson [Mon, 17 Jan 2011 17:40:59 +0000 (09:40 -0800)]
rx: Remove rx_compare_redundant.
To be replaced by the generic compare_elim pass, but we need to disable
this before fiddling with the arrangement of the arithmetic instructions,
as required by the generic pass.
From-SVN: r168916
Richard Henderson [Mon, 17 Jan 2011 17:39:44 +0000 (09:39 -0800)]
rx: Move SELECT_CC_MODE to function.
Rewrite to look at comparison codes, not arithmetic codes.
From-SVN: r168915
Paolo Carlini [Mon, 17 Jan 2011 17:35:55 +0000 (17:35 +0000)]
stl_queue.h (queue<>::swap, [...]): Implement DR 1198.
2011-01-17 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_queue.h (queue<>::swap, priority_queue<>::swap):
Implement DR 1198.
* include/bits/stl_stack.h (stack<>::swap): Likewise.
From-SVN: r168914
Rainer Orth [Mon, 17 Jan 2011 16:58:23 +0000 (16:58 +0000)]
* g++.old-deja/g++.other/init19.C: Don't XFAIL on mips-sgi-irix*.
From-SVN: r168911
Richard Henderson [Mon, 17 Jan 2011 16:50:09 +0000 (08:50 -0800)]
* except.c (dump_eh_tree): Fix stray ; after for statement.
From-SVN: r168910
Andreas Krebbel [Mon, 17 Jan 2011 15:12:55 +0000 (15:12 +0000)]
pr36728-1.c: Replace XFAIL for s390(x) with a target check.
2011-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc.dg/guality/pr36728-1.c: Replace XFAIL for s390(x) with a
target check.
* gcc.dg/guality/pr36728-2.c: Likewise.
From-SVN: r168908
Richard Guenther [Mon, 17 Jan 2011 14:48:35 +0000 (14:48 +0000)]
re PR middle-end/47313 (ICE: PHI argument is not a GIMPLE value)
2011-01-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47313
* tree-inline.c (tree_function_versioning): Move DECL_RESULT
handling before copying the body. Properly deal with
by-reference result in SSA form.
* g++.dg/torture/pr47313.C: New testcase.
From-SVN: r168907
Rainer Orth [Mon, 17 Jan 2011 13:46:32 +0000 (13:46 +0000)]
Note PR.
From-SVN: r168902
Ian Lance Taylor [Mon, 17 Jan 2011 13:43:37 +0000 (13:43 +0000)]
sparc.c (sparc_sr_alias_set): Don't define.
* config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
(struct_value_alias_set): Don't define.
(sparc_option_override): Don't set sparc_sr_alias_set and
struct_value_alias_set.
(save_or_restore_regs): Use gen_frame_mem rather than calling
set_mem_alias_set.
(sparc_struct_value_rtx): Likewise.
From-SVN: r168901
H.J. Lu [Mon, 17 Jan 2011 12:47:21 +0000 (12:47 +0000)]
Correct mask operand for AVX mask load/store.
gcc/
2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
PR target/47318
* config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
__m128i.
(_mm_maskstore_pd): Likewise.
(_mm_maskload_ps): Likewise.
(_mm_maskstore_ps): Likewise.
(_mm256_maskload_pd): Change mask to __m256i.
(_mm256_maskstore_pd): Likewise.
(_mm256_maskload_ps): Likewise.
(_mm256_maskstore_ps): Likewise.
* config/i386/i386-builtin-types.def: Updated.
(ix86_expand_special_args_builtin): Likewise.
* config/i386/i386.c (bdesc_special_args): Update
__builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
__builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
__builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
__builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
* config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
Use <avxpermvecmode> on mask register.
(avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
gcc/testsuite/
2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
PR target/47318
* gcc.target/i386/avx-vmaskmovpd-1.c: New.
* gcc.target/i386/avx-vmaskmovpd-2.c: Likewise.
* gcc.target/i386/avx-vmaskmovps-1.c: Likewise.
* gcc.target/i386/avx-vmaskmovps-1.c: Likewise.
* gcc.target/i386/avx-vmaskmovpd-256-1.c (avx_test): Load mask
as __m256i.
* gcc.target/i386/avx-vmaskmovpd-256-2.c (avx_test): Likewise.
* gcc.target/i386/avx-vmaskmovps-256-1.c (avx_test): Likewise.
* gcc.target/i386/avx-vmaskmovps-256-2.c (avx_test): Likewise.
From-SVN: r168899
Olivier Hainque [Mon, 17 Jan 2011 12:35:21 +0000 (12:35 +0000)]
re PR target/46655 (invalid '.line 0' directive emitted with -g)
PR target/46655
* xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
if <= USHRT_MAX in 32-bit mode.
Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
Co-Authored-By: Michael Haubenwallner <michael.haubenwallner@salomon.at>
From-SVN: r168897
Richard Guenther [Mon, 17 Jan 2011 11:50:47 +0000 (11:50 +0000)]
re PR tree-optimization/45967 (gcc-4.5.x optimizes code with side-effects away)
2011-01-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45967
* gcc.dg/torture/pr45967-2.c: New testcase.
* gcc.dg/torture/pr45967-3.c: Likewise.
From-SVN: r168896
Tobias Burnus [Mon, 17 Jan 2011 09:14:41 +0000 (10:14 +0100)]
re PR fortran/46817 (Missing copyright header in libquadmath/*.[hc])
2011-01-17 Tobias Burnus <burnus@net-b.de>
PR fortran/46817
* quadmath-imp.h: Refer to libquadmath not ot libiberty,
bump copyright year and use /**/ instead of // comments.
* quadmath.h: Ditto.
* quadmath-weak.h: Ditto.
* quadmath_io.c: Ditto.
From-SVN: r168892
Ralf Wildenhues [Mon, 17 Jan 2011 06:38:47 +0000 (06:38 +0000)]
doc: wrap long lines in install.texi.
gcc/:
* doc/install.texi (Configuration, Specific): Wrap long
lines in examples. Allow line wrapping in long options
and URLs where beneficial for PDF output.
From-SVN: r168889
Janne Blomqvist [Mon, 17 Jan 2011 05:48:10 +0000 (07:48 +0200)]
PR47296 Segfault when running out of file descriptors
From-SVN: r168888
Paolo Carlini [Mon, 17 Jan 2011 02:33:30 +0000 (02:33 +0000)]
re PR libstdc++/47323 (FAIL: 28_regex/08_basic_regex/requirements/constexpr_data.cc (test for excess errors))
2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/47323
* testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc:
Only test wregex when _GLIBCXX_USE_WCHAR_T is defined.
From-SVN: r168887
John David Anglin [Mon, 17 Jan 2011 00:35:30 +0000 (00:35 +0000)]
re PR testsuite/47325 (FAIL: g++.dg/ext/pr47213.C (test for excess errors))
PR testsuite/47325
g++.dg/ext/pr47213.C: Require visibility.
From-SVN: r168886
GCC Administrator [Mon, 17 Jan 2011 00:18:27 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r168885
Richard Sandiford [Sun, 16 Jan 2011 22:02:04 +0000 (22:02 +0000)]
composite-type.c: Pass -Wno-unused.
gcc/testsuite/
* gcc.dg/fixed-point/composite-type.c: Pass -Wno-unused.
* gcc.dg/fixed-point/struct-union.c: Update error messages.
From-SVN: r168876