Arnaud Charlet
7370e0da63
c-tree.h, c-decl.c (build_enumerator): Add location parameter.
...
* c-tree.h, c-decl.c (build_enumerator): Add location parameter.
* c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
From-SVN: r163988
2010-09-08 08:12:55 +02:00
Kenneth Zadeck
e0d4c0b3e5
re PR other/45587 (the processor(s) that read the .texi files mess up.)
...
2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
PR doc/45587
* doc/md.texi: Fixed modes on several standard pattern names.
From-SVN: r163987
2010-09-08 03:38:40 +00:00
Mingjie Xing
59bdeecb0b
Rename loongson vector shift insns
...
From-SVN: r163986
2010-09-08 00:55:04 +00:00
John David Anglin
82acc0474e
revert: re PR tree-optimization/43959 (FAIL: gcc.dg/torture/builtin-cproj-1.c -O1 (test for excess errors))
...
Revert
PR testsuite/43959
* gcc.dg/torture/builtin-cproj-1.c: Require c99 runtime.
From-SVN: r163985
2010-09-08 00:24:44 +00:00
GCC Administrator
4dbeea9fda
Daily bump.
...
From-SVN: r163984
2010-09-08 00:18:24 +00:00
John David Anglin
a97a29909f
re PR tree-optimization/43959 (FAIL: gcc.dg/torture/builtin-cproj-1.c -O1 (test for excess errors))
...
PR testsuite/43959
* gcc.dg/torture/builtin-cproj-1.c: Require c99 runtime.
From-SVN: r163979
2010-09-07 23:23:30 +00:00
Thomas Koenig
c56c085331
re PR fortran/45576 (ICE on character stuff)
...
2010-09-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45576
* dependency.c (gfc_deb_compare_expr): Take missing optional
arguments into account.
2010-09-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45576
* gfortran.dg/char_length_18.f90: New test.
From-SVN: r163978
2010-09-07 22:50:54 +00:00
Paolo Carlini
ccef29e831
re PR libstdc++/45549 (merge is_iterator into iterator_traits)
...
2010-09-07 Paolo Carlini <paolo.carlini@oracle.com>
Marc Glisse <marc.glisse@normalesup.org>
PR libstdc++/45549
* include/bits/cpp_type_traits.h (__is_iterator_helper): Rename to
__has_iterator_category.
(__is_iterator): Adjust.
* include/bits/stl_iterator_base_types.h (__iterator_traits): Add
in C++0x mode, use the latter.
(iterator_traits): In C++0x mode, derive from the latter.
* include/bits/stl_iterator_base_funcs.h (next, prev): Remove
enable_if on the return type.
Co-Authored-By: Marc Glisse <marc.glisse@normalesup.org>
From-SVN: r163977
2010-09-07 22:30:33 +00:00
François-Xavier Coudert
16c0e29509
trans.h (gfor_fndecl_clz128, [...]): Remove.
...
* trans.h (gfor_fndecl_clz128, gfor_fndecl_ctz128): Remove.
* trans-decl.c (gfor_fndecl_clz128, gfor_fndecl_ctz128): Remove.
(gfc_build_intrinsic_function_decls): Don't build the
gfor_fndecl_clz128 and gfor_fndecl_ctz128.
* trans-intrinsic.c (gfc_conv_intrinsic_leadz,
gfc_conv_intrinsic_trailz): Generate inline arithmetic instead
of calling clz128/ctz128 library functions.
From-SVN: r163976
2010-09-07 22:25:08 +00:00
Richard Henderson
237e9c04cd
Fix undeclared function error in tree-vect-data-refs.c.
...
Make sure ix86_cfun_abi always gets declared, and make sure
that tree-vect-data-refs.c includes "tm_p.h".
From-SVN: r163975
2010-09-07 15:04:14 -07:00
Richard Henderson
182a0c1121
Always do output_function_exception_table before assemble_end_function.
...
From-SVN: r163974
2010-09-07 14:45:00 -07:00
Jan Hubicka
fa9a71936a
* trans-expr.c (gfc_conv_initializer): Set STATIC flags for initializers.
...
From-SVN: r163973
2010-09-07 21:35:19 +00:00
Jan Hubicka
f27e50db1a
tree-inline.c (tree_inlinable_function_p): Do not test DECL_REPLACEABLE_P.
...
* tree-inline.c (tree_inlinable_function_p): Do not test DECL_REPLACEABLE_P.
* ipa-inline.c (cgraph_default_inline_p, update_caller_keys, update_callee_keys,
cgraph_decide_inlining): Test function availability.
* cif-code.def (OVERWRITABLE): New code.
From-SVN: r163972
2010-09-07 21:26:34 +00:00
H.J. Lu
a0766cdbb9
Redefine STACK_BOUNDARY/PREFERRED_STACK_BOUNDARY for Darwin/x86.
...
gcc/
2010-09-07 H.J. Lu <hjl.tools@gmail.com>
Jack Howarth <howarth@bromo.med.uc.edu>
PR target/36502
PR target/42313
PR target/44651
* gcc/config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
(PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
MAX macro.
gcc/testsuite/
2010-09-07 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/36502
* gcc.target/i386/pr36502.c: New test.
PR target/42313
PR target/44651
* gcc.target/i386/builtin-unreachable.c: Don't skip on darwin.
* gcc/testsuite/gcc.dg/stack-usage-1.c: Use default on i386/Darwin.
From-SVN: r163971
2010-09-07 14:18:55 -07:00
H.J. Lu
4e75177267
Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
...
2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
* unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
From-SVN: r163970
2010-09-07 14:14:41 -07:00
H.J. Lu
274eec6c00
Don't append t-android for Android targets.
...
2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Don't append t-android for Android targets.
* config/t-android: Removed.
From-SVN: r163969
2010-09-07 14:13:48 -07:00
Richard Henderson
a68b5e5247
Hookize exception personality output.
...
* target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
* doc/tm.texi.in: Add doc marker.
* doc/tm.texi: Rebuild.
* except.c (switch_to_exception_section): Always build.
(output_one_function_exception_table): Move section switch,
personality output, and label output ...
(output_function_exception_table): ... here. Use the new
personality hook.
* config/ia64/ia64.c (ia64_asm_emit_except_personality,
ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
TARGET_ASM_INIT_SECTIONS): New.
(ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
make static.
(TARGET_ASM_UNWIND_EMIT): Update to match.
* config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
* config/arm/arm.c (arm_asm_emit_except_personality): New.
(arm_asm_init_sections): New.
(TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
From-SVN: r163968
2010-09-07 13:50:17 -07:00
Ramana Radhakrishnan
9b3a7a2676
arm.md: Remove unused variable.
...
2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm.md: Remove unused variable.
From-SVN: r163967
2010-09-07 20:38:19 +00:00
Anatoly Sokolov
7149f02cac
m32r.h (REGISTER_MOVE_COST, [...]): Remove.
...
* config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
* config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
(m32r_memory_move_cost): New function.
From-SVN: r163966
2010-09-08 00:03:14 +04:00
Tobias Burnus
21e9284929
re PR fortran/45583 (Typo in onlinedocs/gfortran/COS.html / intrinsics.texi)
...
2010-09-07 Tobias Burnus <burnus@net-b.de>
PR fortran/45583
* intrinsic.texi (COS): Remove superfluous "n".
From-SVN: r163965
2010-09-07 21:07:36 +02:00
Tobias Burnus
94471a5663
re PR fortran/45186 (Gfortran 4.5.0 emits wrong linenumbers)
...
2010-09-07 Tobias Burnus <burnus@net-b.de>
PR fortran/45186
* trans-array.c (gfc_conv_descriptor_data_get,
gfc_conv_descriptor_data_set, gfc_conv_descriptor_data_addr,
gfc_conv_descriptor_offset, gfc_conv_descriptor_dtype,
gfc_conv_descriptor_dimension, gfc_conv_descriptor_stride,
gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound,
gfc_conv_shift_descriptor_lbound,
gfc_set_loop_bounds_from_array_spec,
gfc_trans_allocate_array_storage, gfc_trans_create_temp_array,
gfc_conv_array_transpose, gfc_get_iteration_count,
gfc_grow_array, gfc_trans_array_ctor_element,
gfc_trans_array_constructor_subarray,
gfc_trans_array_constructor_value,
constant_array_constructor_loop_size,
gfc_trans_array_constructor,
gfc_set_vector_loop_bounds, gfc_trans_array_bound_check,
gfc_conv_array_index_offset, gfc_conv_scalarized_array_ref,
gfc_conv_array_ref, gfc_trans_preloop_setup,
gfc_trans_scalarized_loop_end, gfc_conv_ss_startstride,
gfc_conv_loop_setup, gfc_conv_array_extent_dim,
gfc_conv_descriptor_size, gfc_array_init_size,
gfc_array_allocate, gfc_array_deallocate,
gfc_trans_array_bounds, gfc_trans_auto_array_allocation,
gfc_trans_dummy_array_bias, gfc_get_dataptr_offset,
get_array_charlen, gfc_conv_expr_descriptor,
array_parameter_size, gfc_conv_array_parameter,
gfc_trans_dealloc_allocated, get_full_array_size,
duplicate_allocatable,
structure_alloc_comps): Change fold_build[0-9] to
fold_build[0-9]_loc.
(duplicate_allocatable, structure_alloc_comps,
gfc_duplicate_allocatable): Add space after function name.
From-SVN: r163964
2010-09-07 21:03:41 +02:00
H.J. Lu
c811b2a588
Use config/t-android for Android targets.
...
2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Append t-android for Android targets.
* config/t-android: New.
From-SVN: r163962
2010-09-07 10:48:51 -07:00
Richard Henderson
3bc6b3e6fc
Define target hook TARGET_UNWIND_EMIT_BEFORE_INSN.
...
From-SVN: r163961
2010-09-07 10:25:11 -07:00
Martin Jambor
aa2298043c
re PR fortran/43665 (INTENT(IN) etc. optimization of calls: function annotations for noclobber/noescape arguments)
...
2010-09-07 Martin Jambor <mjambor@suse.cz>
PR fortran/43665
* ipa-cp.c (ipcp_versionable_function_p): Return false if there
are any type attributes.
From-SVN: r163960
2010-09-07 19:00:44 +02:00
Arnaud Charlet
4cc2a7227a
cp-tree.h (build_enumerator): Add new location_t parameter.
...
* cp-tree.h (build_enumerator): Add new location_t parameter.
(build_lang_decl_loc): New function.
* decl.c (build_enumerator): New parameter loc. Use it when calling
build_decl. Replace build_lang_decl with build_lang_decl_loc.
* pt.c (tsubst_enum): Adjust call to build_enumerator.
* parser.c (cp_parser_enumerator_definition): Ditto.
* lex.c (build_lang_decl_loc): New function.
From-SVN: r163959
2010-09-07 18:12:09 +02:00
Mikael Morin
86e033e21a
re PR fortran/45564 (gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check)
...
2010-09-07 Mikael Morin <mikael@gcc.gnu.org>
* trans-stmt.c (gfc_trans_character_select): Be conversion-safe while
checking string length value.
* trans-intrinsic.c (gfc_conv_intrinsic_char): Build integer using
gfc_charlen_type_node type.
PR fortran/45564
* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Convert string
length to gfc_charlen_type_node.
2010-09-07 Mikael Morin <mikael@gcc.gnu.org>
* gfortran.dg/achar_4.f90: Enable bounds checking.
From-SVN: r163958
2010-09-07 16:04:55 +00:00
Jan Hubicka
ee18735305
* lto.c (promote_var, promote_fn): Set DECL_VISIBILITY_SPECIFIED.
...
From-SVN: r163957
2010-09-07 15:51:52 +00:00
Jan Hubicka
9c4ce18d03
tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of array_ref_low_bound in string access folding.
...
* tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of array_ref_low_bound
in string access folding.
From-SVN: r163956
2010-09-07 15:50:22 +00:00
Uros Bizjak
d341a5d090
re PR target/45206 (ICE on __builtin_eh_return at -Os)
...
PR target/45206
* config/i386/i386.c (ix86_expand_epilogue): Mark SP valid after
eh_return fixup sequence.
testsuite/ChangeLog:
PR target/45206
* gcc.target/i386/pr45206.c: New test.
From-SVN: r163955
2010-09-07 17:38:59 +02:00
John David Anglin
9407158dbc
inclhack.def (hpux_htonl): Allow trailing whitespace in select.
...
* inclhack.def (hpux_htonl): Allow trailing whitespace in select.
* fixincl.x: Regenerate.
From-SVN: r163953
2010-09-07 14:47:21 +00:00
Paolo Carlini
b7c3f5eb21
re PR libstdc++/45398 ([C++0x] Missing atomic<_Tp*>::store definition)
...
2010-09-07 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/45398
* include/std/atomic (atomic<_TP*>::store): Define.
* include/std/atomic (atomic<_TP*>::load, exchange): Define inline.
From-SVN: r163950
2010-09-07 14:05:23 +00:00
Hans-Peter Nilsson
293cf2174d
re PR middle-end/45505 (gfortran.dg/pr25923.f90)
...
PR fortran/45505
* gfortran.dg/pr25923.f90: XFAIL warning on wrong line for ilp32.
From-SVN: r163949
2010-09-07 13:23:24 +00:00
Jan Hubicka
8683f05192
gimple.c (maybe_fold_reference): Verify that operand is gimple_min_invariant.
...
* gimple.c (maybe_fold_reference): Verify that operand is
gimple_min_invariant.
* gcc.c-torture/compile/20100907.c: New testcase.
From-SVN: r163948
2010-09-07 13:16:31 +00:00
Richard Guenther
f5e5b46c4b
re PR middle-end/45569 (ICE: verify_stmts failed: statement marked for throw in middle of block with -fnon-call-exceptions)
...
2010-09-07 Richard Guenther <rguenther@suse.de>
PR middle-end/45569
* tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
nor CONSTRUCTOR can trap.
* tree-complex.c (update_complex_assignment): Update EH info.
* g++.dg/eh/pr45569.C: New testcase.
From-SVN: r163947
2010-09-07 12:27:45 +00:00
Richard Guenther
c9d6130e06
re PR middle-end/45569 (ICE: verify_stmts failed: statement marked for throw in middle of block with -fnon-call-exceptions)
...
2010-09-07 Richard Guenther <rguenther@suse.de>
PR middle-end/45569
* tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
* passes.c (execute_function_todo): Do not verify anything if
we saw errors.
From-SVN: r163946
2010-09-07 11:17:44 +00:00
Richard Guenther
d7806defb4
tree-pretty-print.c (dump_generic_node): Dump void types as void.
...
2010-09-07 Richard Guenther <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Dump void types
as void.
From-SVN: r163944
2010-09-07 09:57:56 +00:00
GCC Administrator
f34504a357
Daily bump.
...
From-SVN: r163940
2010-09-07 00:17:11 +00:00
Nicola Pero
29b71c0200
* Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
...
From-SVN: r163936
2010-09-06 23:12:51 +00:00
Bernd Schmidt
da0a441de5
re PR target/43137 (redundant register move for sign extending)
...
PR target/43137
* config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
New define_mode_attrs.
* config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
(zero_extend<mode>di2, extend<mode>di2 and related splits): New.
(thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
Remove pool_range attribute.
(arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
pool_range and neg_pool_range attributes.
* config/arm/thumb2.md (thumb2_zero_extendsidi2,
thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
thumb2_extendhidi2, thumb2_extendqidi2): Delete.
PR target/43137
* gcc.target/arm/pr43137.c: New test.
From-SVN: r163935
2010-09-06 22:32:26 +00:00
Thomas Koenig
5c599206d3
re PR fortran/36931 (unneeded temporary for array intrinsic binop scalar)
...
2010-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/36931
* frontend-passes.c (optimize_binop_array_assignment): New
function.
(optimize_assignment): Call it.
2010-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/36931
* gfortran.dg/dependency_35.f90: New test.
From-SVN: r163934
2010-09-06 21:40:15 +00:00
H.J. Lu
4e18507b68
Properly check glibc.
...
2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
check glibc.
From-SVN: r163933
2010-09-06 14:13:56 -07:00
Thomas Koenig
f884552b4f
re PR fortran/34145 (single_char_string.f90 fails with -fdefault-integer-8)
...
2010-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/34145
* trans-expr.c (gfc_conv_substring): If start and end
of the string reference are equal, set the length to one.
2010-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/34145
* gfortran.dg/char_length_17.f90: New test.
From-SVN: r163932
2010-09-06 19:43:58 +00:00
Tobias Burnus
f973b64869
re PR fortran/45560 (debugging: Add EXPR pretty printer (gfc_debug_expr))
...
2010-09-06 Tobias Burnus <burnus@net-b.de>
PR fortran/45560
* dump-parse-tree.c (gfc_debug_expr): Use stderr instead of stdout.
From-SVN: r163931
2010-09-06 20:51:48 +02:00
Dodji Seketeli
e6c2fc5dac
Patch PR c++/45200
...
Fix PR c++/45200, c++/45293, c++/45558
gcc/cp/Changelog:
PR c++/45200
PR c++/45293
PR c++/45558
* tree.c (strip_typedefs): Strip typedefs from the context of
TYPENAME_TYPEs.
gcc/testsuite/ChangeLog:
PR c++/45200
PR c++/45293
PR c++/45558
* g++.dg/template/typedef34.C: New test.
* g++.dg/template/typedef35.C: New test.
From-SVN: r163929
2010-09-06 20:44:23 +02:00
Tobias Burnus
3c7ac37eea
re PR fortran/45560 (debugging: Add EXPR pretty printer (gfc_debug_expr))
...
2010-09-06 Tobias Burnus <burnus@net-b.de>
PR fortran/45560
* dump-parse-tree.c (gfc_debug_expr): New function.
From-SVN: r163928
2010-09-06 20:16:50 +02:00
Uros Bizjak
a7529ed608
re PR target/22152 (Poor loop optimization when using mmx builtins)
...
PR target/22152
* gcc.target/i386/pr22152.c (add3): Change "count" to unsigned int.
From-SVN: r163927
2010-09-06 19:54:46 +02:00
Uros Bizjak
61ec112322
re PR target/22152 (Poor loop optimization when using mmx builtins)
...
PR target/22152
* config/i386/mmx.md (*mov<mode>_internal_rex64,
*mov<mode>_internal_avx, *mov<mode>_internal,
*movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
*movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
[
From-SVN: r163926
2010-09-06 19:51:12 +02:00
Mark Mitchell
c5ee1358b9
c-common.h (do_warn_double_promotion): Declare.
...
* c-common.h (do_warn_double_promotion): Declare.
* c-common.c (do_warn_double_promotion): Define.
* c-typeck.c (do_warn_double_promotion): Remove.
* doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
Objective-C++ too.
* typeck.c (cp_build_binary_op): Call do_warn_double_promotion.
* call.c (build_conditional_expr): Likewise.
(convert_arg_to_ellipsis): Likewise.
* g++.dg/warn/Wdouble-promotion.C: New.
From-SVN: r163925
2010-09-06 17:48:53 +00:00
Anatoly Sokolov
c28350ab29
frv.h (CLASS_LIKELY_SPILLED_P): Remove.
...
* config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
* config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
* config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
argument type to reg_class_t. Change result type to bool.
(TARGET_CLASS_LIKELY_SPILLED_P): Define.
From-SVN: r163924
2010-09-06 20:16:07 +04:00
Nicola Pero
708e07fbd3
re PR libobjc/19850 (libobjc leaks threads on posix)
...
PR libobjc/19850
* gthr-posix.h (__gthread_objc_thread_detach): Use
_objc_thread_attribs when detaching a thread.
* gthr-posix95.h (__gthread_objc_thread_detach): Same change.
From-SVN: r163923
2010-09-06 15:57:44 +00:00