Quentin Neill
94d13ad18d
Add support for TBM.
...
2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
gcc/
* config.gcc (i[34567]86-*-*): Include tbmintrin.h.
(x86_64-*-*): Likewise.
* config/i386/cpuid.h: Define TBM bit.
* config/i386/driver-i386.c (host_detect_local_cpu): Define
and set has_tbm.
* config/i386/i386-c.c (ix86_target_macros_internal): Check
isa_flag for TBM.
* config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
(OPTION_MASK_ISA_TBM_UNSET): New.
(ix86_handle_option): Handle -mtbm.
(isa_opts): Add -mtbm.
(enum pta_flags): Add PTA_TBM.
(ix86_option_override_internal): Add TBM support.
(ix86_valid_target_attribute_inner_p): Handle -mtbm.
(IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
(IX86_BUILTIN_BEXTRI64): Likewise.
(bdesc_args): Add TBM intrinsics.
(ix86_expand_builtin): Add TBM specific case.
* config/i386/i386.h (TARGET_TBM): New for TBM.
* config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
(tbm_bextri_<mode>): Likewise.
(*tbm_blcfill_<mode>): Likewise.
(*tbm_blci_<mode>): Likewise.
(*tbm_blcic_<mode>): Likewise.
(*tbm_blcmsk_<mode>): Likewise.
(*tbm_blcs_<mode>): Likewise.
(*tbm_blsfill_<mode>): Likewise.
(*tbm_blsic_<mode>): Likewise.
(*tbm_t1mskc_<mode>): Likewise.
(*tbm_tzmsk_<mode>): Likewise.
* config/i386/i386.opt: Add -mtbm.
* config/i386/tbmintrin.h (__bextri_u32): New.
(__blcfill_u32): Likewise.
(__blci_u32): Likewise.
(__blcic_u32): Likewise.
(__blcmsk_u32): Likewise.
(__blcs_u32): Likewise.
(__blsfill_u32): Likewise.
(__blsic_u32): Likewise.
(__t1mskc_u32): Likewise.
(__tzmsk_u32): Likewise.
(__bextri_u64): Likewise.
(__blcfill_u64): Likewise.
(__blci_u64): Likewise.
(__blcic_u64): Likewise.
(__blcmsk_u64): Likewise.
(__blcs_u64): Likewise.
(__blsfill_u64): Likewise.
(__blsic_u64): Likewise.
(__t1mskc_u64): Likewise.
(__tzmsk_u64): Likewise.
* config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
* doc/invoke.texi: Document -mtbm.
* doc/extend.texi: Document TBM built-in functions.
gcc/testsuite/
* g++.dg/other/i386-2.C: Add -mtbm.
* g++.dg/other/i386-3.C: Likewise.
* gcc.target/i386/funcspec-5.c: Add tbm and no-tbm targets.
* gcc.target/i386/funcspec-6.c: Likewise.
* gcc.target/i386/sse-12.c: Add -mtbm.
* gcc.target/i386/sse-13.c: Add -mtbm and test immediate
operand intrinsics.
* gcc.target/i386/sse-14.c: Likewise.
* gcc.target/i386/sse-22.c: Likewise.
* gcc.target/i386/sse-23.c: Likewise.
* gcc.target/i386/tbm-1.c: New file.
* gcc.target/i386/tbm-2.c: Likewise.
From-SVN: r166562
2010-11-10 22:02:34 +00:00
Quentin Neill
91afcfa30c
Add support for BMI.
...
2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
gcc/
* config.gcc (i[34567]86-*-*): Include bmiintrin.h.
(x86_64-*-*): Likewise.
* config/i386/cpuid.h: Define BMI bit.
* config/i386/driver-i386.c (host_detect_local_cpu): Define
and set has_bmi.
* config/i386/i386-c.c (ix86_target_macros_internal): Check
isa_flag for BMI.
* config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
(OPTION_MASK_ISA_BMI_UNSET): New.
(ix86_handle_option): Handle -mbmi.
(isa_opts): Add -mbmi.
(enum pta_flags): Add PTA_BMI.
(ix86_option_override_internal): Add BMI support.
(ix86_valid_target_attribute_inner_p): Handle -mbmi.
(IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
(IX86_BUILTIN_BEXTR64): Likewise.
(IX86_BUILTIN_CTZS): Likewise.
(bdesc_args): Add BMI intrinsics.
(ix86_expand_args_builtin): Add BMI specific cases.
* config/i386/i386.h (TARGET_BMI): New for BMI.
(CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
(CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
* config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
(UNSPEC_TZCNT): Likewise.
(ctz<mode>2): Add tzcnt, and handle 16 bit operands.
(bmi_andn_<mode>): New for BMI.
(bmi_bextr_<mode>): Likewise.
(bmi_blsi_<mode>): Likewise.
(bmi_blsmsk_<mode>): Likewise.
(bmi_blsr_<mode>): Likewise.
* config/i386/i386.opt: Add -mbmi.
* config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
* config/i386/bmiintrin.h (__lzcnt_u16): New.
(__tzcnt_u16): Likewise.
(__andn_u32): Likewise.
(__bextr_u32): Likewise.
(__blsi_u32): Likewise.
(__blsmsk_u32): Likewise.
(__blsr_u32): Likewise.
(__lzcnt_u32): Likewise.
(__tzcnt_u32): Likewise.
(__andn_u64): Likewise.
(__bextr_u64): Likewise.
(__blsi_u64): Likewise.
(__blsmsk_u64): Likewise.
(__blsr_u64): Likewise.
(__lzcnt_u64): Likewise.
(__tzcnt_u64): Likewise.
* doc/invoke.texi: Document -mbmi and -mno-bmi.
* doc/extend.texi: Document BMI built-in functions.
gcc/testsuite/
* g++.dg/other/i386-2.C: Add -mbmi.
* g++.dg/other/i386-3.C: Likewise.
* gcc.target/i386/funcspec-5.c: Add bmi and no-bmi targets.
* gcc.target/i386/funcspec-6.c: Likewise.
* gcc.target/i386/sse-12.c: Add -mbmi.
* gcc.target/i386/bmi-1.c: New file.
* gcc.target/i386/bmi-2.c: Likewise.
* gcc.target/i386/bmi-3.c: Likewise.
* gcc.target/i386/bmi-4.c: Likewise.
* gcc.target/i386/bmi-5.c: Likewise.
* gcc.target/i386/bmi-6.c: Likewise.
From-SVN: r166561
2010-11-10 22:02:23 +00:00
François Dumont
6d24de8354
unordered_map (unordered_map<>::_M_profile_size): Simplify, don't take a __new_size argument; adjust all callers.
...
2010-11-10 François Dumont <francois.cppdevs@free.fr>
* include/profile/unordered_map (unordered_map<>::_M_profile_size):
Simplify, don't take a __new_size argument; adjust all callers.
From-SVN: r166560
2010-11-10 21:53:43 +00:00
François Dumont
5a4b6c0e97
MAINTAINERS (Write After Approval): Add myself.
...
2010-11-10 François Dumont <francois.cppdevs@free.fr>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r166559
2010-11-10 21:47:13 +00:00
Nathan Froyd
75acdae9f3
re PR c++/46065 (ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in poplevel_named_label_1, at cp/decl.c:477)
...
gcc/cp/
PR c++/46065
* decl.c (poplevel_named_label_1): Use TREE_CHAIN if necessary.
gcc/testsuite/
PR c++/46065
* g++.dg/pr46065.C: New test.
From-SVN: r166558
2010-11-10 21:05:50 +00:00
Jan Hubicka
edb29996a5
re PR rtl-optimization/33172 (Optimizer fails to elid away unreferenced static function)
...
PR tree-optimize/33172
PR tree-optimize/43411
* gcc.dg/tree-ssa/pr33172.c: New testcase.
* g++.dg/tree-ssa/pr43411.C: New testcase.
From-SVN: r166557
2010-11-10 20:38:15 +00:00
Jan Hubicka
b6173d509c
re PR tree-optimization/46228 (code produced for STL container is worse in 4.5.1 than in 4.4.5)
...
PR tree-optimize/46228
* doc/invoke.texi (comdat-sharing-probability): Document.
* ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
* params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
From-SVN: r166556
2010-11-10 20:26:36 +00:00
Jan Hubicka
c5d0600d09
re PR tree-optimization/46228 (code produced for STL container is worse in 4.5.1 than in 4.4.5)
...
PR tree-optimize/46228
* doc/invoke.texi (comdat-sharing-probability): Document.
* ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
* params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
* g++.dg/tree-ssa/pr46228.C: New testcase.
From-SVN: r166555
2010-11-10 20:23:09 +00:00
Joern Rennecke
d707fc7738
re PR target/46417 (spu-elf --enable-werror-always build fails)
...
PR target/46417
* config/spu/spu.c (spu_expand_insv): Remove unused variables.
(spu_split_store): Use aform.
(spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
From-SVN: r166554
2010-11-10 20:15:24 +00:00
Jan Hubicka
2cfef329c2
re PR tree-optimization/46228 (code produced for STL container is worse in 4.5.1 than in 4.4.5)
...
PR tree-optimize/46228
* cgraph.c (cgraph_propagate_frequency): Fix typo.
From-SVN: r166553
2010-11-10 20:10:46 +00:00
H.J. Lu
c204d113c0
Check preferred vector mode for vector type in estimate_move_cost.
...
gcc/
2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/46414
* tree-inline.c (estimate_move_cost): Check preferred vector
mode for vector type.
gcc/testsuite/
2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/46414
* gcc.target/i386/recip-vec-sqrtf-avx.c: Updated for loop
unrolling.
From-SVN: r166552
2010-11-10 12:08:27 -08:00
Paolo Carlini
e6a054481d
PR libstdc++/44436 (partial)
...
2010-11-10 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/44436 (partial)
PR libstdc++/46148
* include/bits/stl_tree.h (_Rb_tree<>::_M_insert_, _M_insert_lower,
_M_insert_equal_lower, _M_insert_unique, _M_insert_equal,
_M_insert_unique_, _M_insert_equal_): Templatize in C++0x mode,
use _GLIBCXX_FORWARD throughout.
* include/bits/stl_map.h (map<>::insert(_Pair&&),
insert(const_iterator, _Pair&&), operator[](key_type&&): Add.
* include/bits/stl_set.h (set<>::insert(value_type&&),
insert(const_iterator, value_type&&)): Likewise.
* include/bits/stl_multimap.h (multimap<>::insert(_Pair&&),
insert(const_iterator, _Pair&&)): Likewise.
* include/bits/stl_multiset.h (multiset<>::insert(value_type&&),
insert(const_iterator, value_type&&)): Likewise.
* include/debug/set.h: Adjust.
* include/debug/multiset.h: Likewise.
* include/debug/map.h: Likewise.
* include/debug/multimap.h: Likewise.
* include/profile/set.h: Likewise.
* include/profile/multiset.h: Likewise.
* include/profile/map.h: Likewise.
* include/profile/multimap.h: Likewise.
* testsuite/23_containers/multimap/modifiers/insert/1.cc: New.
* testsuite/23_containers/multimap/modifiers/insert/2.cc: Likewise.
* testsuite/23_containers/multimap/modifiers/insert/3.cc: Likewise.
* testsuite/23_containers/multimap/modifiers/insert/4.cc: Likewise.
* testsuite/23_containers/set/modifiers/insert/2.cc: Likewise.
* testsuite/23_containers/set/modifiers/insert/3.cc: Likewise.
* testsuite/23_containers/multiset/modifiers/insert/3.cc: Likewise.
* testsuite/23_containers/multiset/modifiers/insert/4.cc: Likewise.
* testsuite/23_containers/map/modifiers/insert/2.cc: Likewise.
* testsuite/23_containers/map/modifiers/insert/3.cc: Likewise.
* testsuite/23_containers/map/modifiers/insert/4.cc: Likewise.
* testsuite/23_containers/map/modifiers/insert/5.cc: Likewise.
* testsuite/23_containers/map/element_access/2.cc: Likewise.
* testsuite/23_containers/map/element_access/46148.cc: Likewise.
* include/bits/hashtable.h: Trivial naming changes.
From-SVN: r166551
2010-11-10 19:08:49 +00:00
Tobias Burnus
1d3a84ce03
re PR fortran/46411 (MOVE_ALLOC wrongly rejected as impure)
...
2010-11-10 Tobias Burnus <burnus@net-b.de>
PR fortran/46411
* intrinsic.c (gfc_intrinsic_sub_interface): Check for attr.pure
and not for attr.elemental.
* intrinsic.texi (move_alloc): Document as being pure.
2010-11-10 Tobias Burnus <burnus@net-b.de>
PR fortran/46411
* gfortran.dg/intrinsic_7.f90: New.
From-SVN: r166550
2010-11-10 19:04:04 +01:00
Rainer Orth
95b53b576b
* config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
...
From-SVN: r166549
2010-11-10 18:00:42 +00:00
Rainer Orth
bbed6555f0
rtti3.C: Scan for .weakext on alpha*-dec-osf*.
...
* g++.dg/abi/rtti3.C: Scan for .weakext on alpha*-dec-osf*.
* g++.dg/abi/thunk4.C: Likewise.
* g++.dg/opt/combine.C: Add dg-require-visibility.
* g++.dg/other/anon5.C: Skip on alpha*-dec-osf*.
* g++.dg/warn/miss-format-1.C: XFAIL scanf attribute warning on
alpha*-dec-osf*.
* g++.dg/warn/pr31246.C: XFAIL on alpha*-dec-osf*.
* g++.dg/warn/weak1.C: Skip on alpha*-dec-osf*.
* g++.old-deja/g++.eh/badalloc1.C [!STACK_SIZE && __osf__]: Use
large arena_size.
* gcc.dg/attr-weakref-1.c: Skip on alpha*-dec-osf*.
* gcc.dg/intmax_t-1.c: Likewise.
From-SVN: r166548
2010-11-10 17:48:42 +00:00
Tobias Burnus
0149d8ccb1
re PR fortran/46244 (gfc_compare_derived_types is buggy)
...
2010-11-10 Tobias Burnus <burnus@net-b.de>
PR fortran/46244
* resolve.c (resolve_fl_derived): Don't allow CLASS in
sequence/BIND(C) types.
2010-11-10 Tobias Burnus <burnus@net-b.de>
PR fortran/46244
* gfortran.dg/class_30.f90: New.
From-SVN: r166547
2010-11-10 18:44:58 +01:00
Tobias Burnus
445f52e230
re PR fortran/46223 (gfortran.dg/bessel_7.f90 failures on s390-ibm-linux-gnu)
...
2010-11-10 Tobias Burnus <burnus@net-b.de>
PR fortran/46223
* gfortran.dg/bessel_7.f90: Bump allowed precision to avoid
failure on s390.
From-SVN: r166546
2010-11-10 18:41:22 +01:00
Joern Rennecke
4ae50669e0
re PR target/46415 (mmix-knuth-mmixware --enable-werror-always build fails)
...
PR target/46415
* config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
(mmix_dbx_register_number): Likewise.
* config/mmix/mmix.c: Include df.h .
(mmix_local_alignment): Change argument basic_align and return type
to unsigned.
(mmix_dbx_register_number): Change argument and return type to
unsigned.
(mmix_expand_prologue): Use add_reg_note.
From-SVN: r166545
2010-11-10 17:18:22 +00:00
Sebastian Pop
e639b20676
Fix PR45971: do not predicate condition phi nodes that are scev analyzable.
...
2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/45971
* tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
for phi nodes analyzable by scev.
* gcc.dg/vect/O3-pr45971.c: New.
From-SVN: r166544
2010-11-10 16:06:47 +00:00
Richard Guenther
59e0c6b70f
re PR tree-optimization/44964 (ICE: SIGSEGV in gimple_default_def (tree-dfa.c:539) with -fkeep-inline-functions)
...
2010-11-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44964
* ipa-inline.c (cgraph_flatten): Check that SSA form matches.
* gcc.dg/pr44964.c: New testcase.
From-SVN: r166543
2010-11-10 16:05:03 +00:00
Eric Botcazou
9063bd1de4
* gnat.dg/opt10.adb: Fix typo.
...
From-SVN: r166537
2010-11-10 13:50:29 +00:00
H.J. Lu
471beb2d97
Correct ChangeLog entries.
...
From-SVN: r166536
2010-11-10 05:17:16 -08:00
Martin Jambor
f5a7af7d17
re PR tree-optimization/46351 (incorrect scalarization (2))
...
2010-11-10 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/46351
PR tree-optimization/46377
* tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
aggregate bit-fields.
* testsuite/gnat.dg/opt10.adb: New file.
* testsuite/gnat.dg/opt10_pkg.ads: Likewise.
* testsuite/gnat.dg/opt11.adb: Likewise.
* testsuite/gnat.dg/opt11.ads: Likewise.
From-SVN: r166535
2010-11-10 13:52:27 +01:00
Joseph Myers
2be55a2540
tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
...
* doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
* doc/tm.texi: Regenerate.
* opts-common.c (tm.h): Don't include.
(target_option_translations): Remove.
(decode_cmdline_options_to_array): Don't handle translating
options.
* system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
* config/darwin-driver.c: Don't condition includes on
CROSS_DIRECTORY_STRUCTURE.
(darwin_default_min_version): Make static.
(darwin_driver_init): New. Call darwin_default_min_version if not
CROSS_DIRECTORY_STRUCTURE.
* config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
(DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
(ASM_SPEC): Add %{static}.
(darwin_default_min_version): Don't declare.
(darwin_driver_init): Declare.
(GCC_DRIVER_HOST_INITIALIZATION): Define to call
darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
* config/darwin.opt (all_load, allowable_client,
arch_errors_fatal, bind_at_load, bundle, bundle_loader,
dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
exported_symbols_list, filelist, findirect-virtual-calls,
flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
framework, fterminated-vtables, gfull, gused, image_base, init,
install_name, multi_module, multiply_defined,
multiply_defined_unused, no_dead_strip_inits_and_terms,
seg_addr_table, seg_addr_table_filename, segaddr,
segs_read_only_addr, segs_read_write_addr, single_module,
umbrella, unexported_symbols_list, weak_reference_mismatches,
Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
Zno_dead_strip_inits_and_terms, Zsingle_module): New.
* config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
(ASM_SPEC): Add %{static}.
(SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
* config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
(DRIVER_SELF_SPECS): Handle options formerly in
TARGET_OPTION_TRANSLATE_TABLE.
* config/mep/mep.opt (mfar): New.
* config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE):
Remove.
(DRIVER_SELF_SPECS): Define. Handle options formerly in
TARGET_OPTION_TRANSLATE_TABLE.
* config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and
-fno-altivec.
(SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
* config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
ffix-and-continue, findirect-data): New.
* config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
* config/rx/rx.opt (nofpu): Make into alias of mnofpu.
(mnofpu): Define mask and use Report here.
From-SVN: r166534
2010-11-10 12:40:51 +00:00
Eric Botcazou
6532e8a053
trans.c (gigi): Don't set 'pure' flag on SJLJ routines.
...
* gcc-interface/trans.c (gigi): Don't set 'pure' flag on SJLJ routines.
* gcc-interface/utils2.c (compare_arrays): Add LOC parameter. Set it
directly on all the comparison expressions.
(build_binary_op): Pass input_location to compare_arrays.
From-SVN: r166533
2010-11-10 12:09:46 +00:00
Eric Botcazou
054d6b836f
trans.c (lvalue_required_p) <N_Type_Conversion>): Look through it for elementary types as well.
...
* gcc-interface/trans.c (lvalue_required_p) <N_Type_Conversion>): Look
through it for elementary types as well.
<N_Unchecked_Type_Conversion>: Adjust to above change.
<N_Allocator>: Likewise.
(gnat_to_gnu): Do not attempt to rewrite boolean literals.
From-SVN: r166532
2010-11-10 11:56:14 +00:00
Andreas Krebbel
5c779305f6
s390.c (s390_emit_prologue): Report the stack size if -fstack-usage is used.
...
2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc/config/s390/s390.c (s390_emit_prologue): Report the stack
size if -fstack-usage is used.
2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc.dg/stack-usage-1.c: Define SIZE for s390 and s390x.
From-SVN: r166531
2010-11-10 11:37:03 +00:00
Eric Botcazou
d0edecea00
decl.c (gnat_to_gnu_entity): Do not set DECL_ARTIFICIAL on the reused DECL node coming from a renamed object.
...
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not set DECL_ARTIFICIAL
on the reused DECL node coming from a renamed object.
Set DECL_IGNORED_P on the DECL node built for renaming entities if they
don't need debug info.
From-SVN: r166530
2010-11-10 11:35:08 +00:00
Joern Rennecke
197a830e43
re PR target/46407 (rx-elf --enable-werror-all build failure)
...
PR target/46407
* config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
* config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
with ATTRIBUTE_UNUSED.
(valid_psw_flag): Constify parameter which.
(rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
From-SVN: r166529
2010-11-10 11:29:00 +00:00
Paolo Carlini
1b4ec7f01e
hashtable.h (_Hashtable<>::_Insert_Conv_Type, [...]): Change to private.
...
2010-11-10 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/hashtable.h (_Hashtable<>::_Insert_Conv_Type,
_Hashtable<>::_Insert_Return_Type): Change to private.
From-SVN: r166528
2010-11-10 11:19:21 +00:00
Richard Biener
72a07d9b66
re PR tree-optimization/46398 (early FRE miscompiles simple testcase)
...
2010-11-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46398
* tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
* gcc.dg/torture/pr46398.c: New testcase.
From-SVN: r166527
2010-11-10 10:59:20 +00:00
Joern Rennecke
d92034f136
Add PR marker to ChangeLog entry:
...
PR middle-end/44766
* expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
From-SVN: r166526
2010-11-10 10:55:51 +00:00
Jonathan Wakely
ef40b37106
unique_ptr.h: Use static_assert in constexpr constructors.
...
2010-11-10 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/unique_ptr.h: Use static_assert in constexpr
constructors.
* testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Remove xfails.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error
line number.
From-SVN: r166525
2010-11-10 10:09:03 +00:00
Joern Rennecke
c6dfaad54e
re PR rtl-optimization/44764 (ok_for_base_p_1: unused parameter regno)
...
PR rtl-optimization/44764
* addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
From-SVN: r166524
2010-11-10 10:07:18 +00:00
Joern Rennecke
954c744617
re PR target/44760 (iq2000.md warnings)
...
PR target/44760
* config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
(REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
GP_REG_OR_PSEUDO_STRICT_P.
* config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
unexpected alternative.
(*movsf_internal): Likewise.
(indirect_jump): Replace call to non-existant function with call to
internal_error.
(tablejump): Likewise.
* config/iq2000/iq2000.c: Include df.h .
(iq2000_function_arg_advance): Use CONST_CAST2.
(compute_frame_size, iq2000_expand_prologue): Remove unused variables.
(iq2000_can_eliminate): Call leaf_function_p instead of testing for
a non-zero function address.
(iq2000_initial_elimination_offset): Add gcc_unreachable for
unexpected value of FROM.
(symbolic_expression_p): Delete.
(iq2000_function_value): Constify func.
(expand_one_builtin): Use expand_normal.
(iq2000_print_operand): Don't print VALUE if calculating it failed.
From-SVN: r166523
2010-11-10 09:16:19 +00:00
Jerry DeLisle
83f3bd62c9
re PR fortran/46331 (Compilation time long with simple function in array constructor)
...
2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Mikael Morin <mikael@gcc.gnu.org>
PR fortran/46331
* intrinsic.c: Correctly set the pure attributes for intrinsic
functions.
* expr.c (check_specification_function): Remove this function and move
its code into gfc_is_constant_expr. (gfc_is_constant_expr): Change the
order of checks by checking for non-constant arguments first. Then,
check for initialization functions, followed by intrinsics.
Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r166520
2010-11-10 04:58:16 +00:00
Laurynas Biveinis
e65f1db78c
gty.texi (GTY Options): Clarify that variable_size produces allocators taking size in bytes...
...
2010-11-09 Laurynas Biveinis <laurynas.biveinis@gmail.com>
PR/46268
* doc/gty.texi (GTY Options): Clarify that variable_size produces
allocators taking size in bytes, compare with length option. Add
size calculation example.
(Invoking the garbage collector): Ensure that sentences are
followed by two spaces. Describe that pointer fields must be
initialized at ggc_collect call.
(Troubleshooting): New section.
From-SVN: r166519
2010-11-10 04:54:52 +00:00
Jerry DeLisle
0f292566eb
open_dev_null.f90: New test.
...
2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* gfortran.dg/open_dev_null.f90: New test.
From-SVN: r166518
2010-11-10 04:36:45 +00:00
Jan Hubicka
9bb2f479f3
re PR tree-optimization/40436 (0.5% code size regression caused by r147852)
...
PR tree-optimization/40436
* ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
* tree-inline.c (estimate_num_insns): Inexpensive builtins are like
normal instructions; be sure bultin is not implemented in this file;
compute non-zero return cost.
(init_inline_once): Reduce builtin_call_cost to 1; set return cost.
* tree-inline.h (eni_weights_d): Add return cost.
From-SVN: r166517
2010-11-10 02:35:19 +00:00
Joseph Myers
b8cbdff525
c-parser.c (c_parser_struct_declaration): Handle declaration specifiers followed by CPP_CLOSE_BRACE.
...
* c-parser.c (c_parser_struct_declaration): Handle declaration
specifiers followed by CPP_CLOSE_BRACE.
testsuite:
* gcc.dg/struct-semi-4.c: New test.
From-SVN: r166516
2010-11-10 02:04:13 +00:00
Ian Lance Taylor
7f904ad108
exgettext: Look for .cc files.
...
* exgettext: Look for .cc files. Look in subdirectories of
language subdirectories.
* EXCLUDES: Update comment.
From-SVN: r166515
2010-11-10 00:39:08 +00:00
GCC Administrator
fa4da94d1d
Daily bump.
...
From-SVN: r166514
2010-11-10 00:17:48 +00:00
Michael Meissner
2192256192
Improve powerpc floating point rounding
...
From-SVN: r166510
2010-11-09 21:44:19 +00:00
Jakub Jelinek
9b999dc5ea
re PR target/43808 (-fipa-reference -fschedule-insns -fstrict-aliasing causes two gfortran check failures)
...
PR target/43808
* cfgexpand.c (partition_stack_vars): Call
update_alias_info_with_stack_vars unconditionally.
(update_alias_info_with_stack_vars): Allow unused
unreferenced vars when not optimizing.
* gfortran.dg/pr43808.f90: New test.
From-SVN: r166509
2010-11-09 20:31:45 +01:00
Sebastian Pop
0104d6c71a
re PR tree-optimization/46036 (verify_ssa failed: definition in block 3 follows the use)
...
Fix PR46036.
2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/46036
* tree-if-conv.c (predicate_bbs): Call unshare_expr before
add_to_dst_predicate_list.
* gfortran.dg/lto/pr46036_0.f90: New.
From-SVN: r166508
2010-11-09 19:23:43 +00:00
Jakub Jelinek
fd99dfdffb
re PR testsuite/45663 (New test failures)
...
PR middle-end/45663
* gcc.dg/guality/sra-1.c: Move all gdb-test lines to the second bar invocation
instead of first.
From-SVN: r166505
2010-11-09 20:06:06 +01:00
Jakub Jelinek
67c6812fe3
re PR debug/46171 (ICE: in gen_rtx_SUBREG, at emit-rtl.c:774 with -fno-tree-dce -g)
...
PR debug/46171
* df-problems.c (struct dead_debug_use, struct dead_debug): Move
earlier.
(df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
argument, call dead_debug_reset when adding REG_UNUSED note.
(dead_debug_reset): New function.
(df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
df_create_unused_note callers.
* gcc.dg/pr46171.c: New test.
From-SVN: r166504
2010-11-09 20:04:44 +01:00
Anatoly Sokolov
cc577f3f11
* config/fr30/fr30.c: Include "df.h".
...
From-SVN: r166503
2010-11-09 21:27:54 +03:00
Janne Blomqvist
7debf73d34
Cache stat values, reduce syscalls
...
From-SVN: r166502
2010-11-09 20:17:35 +02:00
Joern Rennecke
f4a88680ab
re PR target/44759 (mn10300.md signed/unsigned comparisons)
...
PR target/44759
* config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
conditional to type of S.
(mn10300_function_arg): Remove unused variable align.
(mn10300_arg_partial_bytes): Likewise.
* config/mn10300/mn10300.md (attribute cpu): Cast value to
enum attr_cpu.
From-SVN: r166500
2010-11-09 17:23:05 +00:00