gcc.git
13 years agomips.h (LIBCALL_VALUE, [...]): Remove macros.
Anatoly Sokolov [Sun, 27 Mar 2011 19:43:13 +0000 (23:43 +0400)]
mips.h (LIBCALL_VALUE, [...]): Remove macros.

        * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
FUNCTION_VALUE_REGNO_P): Remove macros.
        * config/mips/mips-protos.h (mips_function_value): Remove.
        * config/mips/mips.c (mips_function_value): Rename to...
(mips_function_value_1): ... this. Make static.  Handle receiving
the function type in 'fn_decl_or_type' argument.
(mips_function_value, mips_libcall_value,
mips_function_value_regno_p): New function.
(TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
TARGET_FUNCTION_VALUE_REGNO_P): Define.

From-SVN: r171580

13 years agoAdd runtime profiling infrastructure, not yet working.
Ian Lance Taylor [Sun, 27 Mar 2011 19:14:55 +0000 (19:14 +0000)]
Add runtime profiling infrastructure, not yet working.

From-SVN: r171579

13 years agoSplit 32-byte AVX unaligned load/store.
H.J. Lu [Sun, 27 Mar 2011 18:56:00 +0000 (18:56 +0000)]
Split 32-byte AVX unaligned load/store.

gcc/

2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
and -mavx256-split-unaligned-store.
(ix86_option_override_internal): Split 32-byte AVX unaligned
load/store by default.
(ix86_avx256_split_vector_move_misalign): New.
(ix86_expand_vector_move_misalign): Use it.

* config/i386/i386.opt: Add -mavx256-split-unaligned-load and
-mavx256-split-unaligned-store.

* config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
256bit load/store.  Generate unaligned store on misaligned memory
operand.
(*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
256bit load/store.
(*avx_movdqu<avxmodesuffix>): Likewise.

* doc/invoke.texi: Document -mavx256-split-unaligned-load and
-mavx256-split-unaligned-store.

gcc/testsuite/

2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.target/i386/avx256-unaligned-load-1.c: New.
* gcc.target/i386/avx256-unaligned-load-2.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-3.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-4.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-5.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-6.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-7.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-1.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-2.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-3.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-4.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-5.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-6.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-7.c: Likewise.

From-SVN: r171578

13 years agoRemove closedchan function.
Ian Lance Taylor [Sun, 27 Mar 2011 18:06:50 +0000 (18:06 +0000)]
Remove closedchan function.

From-SVN: r171577

13 years agoError for return with no values when result parameters are not named.
Ian Lance Taylor [Sun, 27 Mar 2011 17:52:34 +0000 (17:52 +0000)]
Error for return with no values when result parameters are not named.

From-SVN: r171576

13 years agore PR fortran/47065 (Replace trim(a) by a(1:len_trim(a)))
Thomas Koenig [Sun, 27 Mar 2011 17:40:26 +0000 (17:40 +0000)]
re PR fortran/47065 (Replace trim(a) by a(1:len_trim(a)))

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

PR fortran/47065
* frontend-passes (optimize_trim): Also follow references, except
when they are substring references or array references.

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

PR fortran/47065
* gfortran.dg/trim_optimize_5.f90:  New test.
* gfortran.dg/trim_optimize_6.f90:  New test.

From-SVN: r171575

13 years agoImprove error about indirecting an unsafe.Pointer type.
Ian Lance Taylor [Sun, 27 Mar 2011 16:40:24 +0000 (16:40 +0000)]
Improve error about indirecting an unsafe.Pointer type.

From-SVN: r171574

13 years agoFix typo
Eric Botcazou [Sun, 27 Mar 2011 09:43:06 +0000 (09:43 +0000)]
Fix typo

From-SVN: r171573

13 years agore PR target/38598 (MIPS extendsidi2 does not have a LO alternative)
Richard Sandiford [Sun, 27 Mar 2011 09:33:20 +0000 (09:33 +0000)]
re PR target/38598 (MIPS extendsidi2 does not have a LO alternative)

gcc/
PR target/38598
* config/mips/mips.md (extendsidi2): Add an "l" alternative.
Update commentary.

gcc/testsuite/
PR target/38598
* gcc.target/mips/madd-7.c: Remove -mlong32.
* gcc.target/mips/msub-7.c: Likewise.

From-SVN: r171572

13 years agomips.c (mips_prepare_builtin_arg): Replace icode and opno arguments with an expand_op...
Richard Sandiford [Sun, 27 Mar 2011 09:11:15 +0000 (09:11 +0000)]
mips.c (mips_prepare_builtin_arg): Replace icode and opno arguments with an expand_operand.

gcc/
* config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
opno arguments with an expand_operand.  Use create_input_operand.
(mips_prepare_builtin_target): Delete.
(mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
functions.
(mips_expand_builtin_direct): Use create_output_operand and
mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
(mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
(mips_expand_builtin_compare): Use mips_expand_fp_comparison.

From-SVN: r171571

13 years agore PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
Tobias Burnus [Sun, 27 Mar 2011 09:01:34 +0000 (11:01 +0200)]
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])

2011-03-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/18918
        * caf/libcaf.h: New - coarray communication library.
        * caf/mpi.c: New.
        * caf/single.c: New.

From-SVN: r171570

13 years agoarm.c (arm_autovectorize_vector_sizes): New function.
Ira Rosen [Sun, 27 Mar 2011 08:59:10 +0000 (08:59 +0000)]
arm.c (arm_autovectorize_vector_sizes): New function.

        * config/arm/arm.c (arm_autovectorize_vector_sizes): New
        function.
        (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.

From-SVN: r171569

13 years agore PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
Tobias Burnus [Sun, 27 Mar 2011 08:30:28 +0000 (10:30 +0200)]
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])

2011-03-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/18918
        * gfortran.h (gfc_isym_id): Rename GFC_ISYM_NUMIMAGES to
        GFC_ISYM_NUM_IMAGES.
        (gfc_fcoarray): Add GFC_FCOARRAY_LIB.
        * intrinsic.c (add_functions): Update due to GFC_ISYM_NUM_IMAGES
        rename.
        * invoke.texi (-fcoarray=): Document "lib" argument.
        * iresolve.c (gfc_resolve_this_image): Fix THIS IMAGE().
        * libgfortran.h (libgfortran_stat_codes): Add comments.
        * options.c (gfc_handle_coarray_option): Add -fcoarray=lib.
        * simplify.c (gfc_simplify_num_images, gfc_simplify_this_image):
        Handle GFC_FCOARRAY_LIB.
        * trans.h (gfc_init_coarray_decl): New prototype.
        (gfor_fndecl_caf_init, gfor_fndecl_caf_finalize,
        gfor_fndecl_caf_critical, gfor_fndecl_caf_end_critical,
        gfor_fndecl_caf_sync_all, gfor_fndecl_caf_sync_images,
        gfor_fndecl_caf_error_stop, gfor_fndecl_caf_error_stop_str,
        gfort_gvar_caf_num_images, gfort_gvar_caf_this_image):
        New global variables.
        * trans-decl.c: Declare several CAF functions (cf. above).
        (gfc_build_builtin_function_decls): Initialize those.
        (gfc_init_coarray_decl): New function.
        (create_main_function): Call CAF init/finalize functions.
        * trans-intrinsic.c (trans_this_image, trans_num_images): New.
        (gfc_conv_intrinsic_function): Call those.
        * trans-stmt.c (gfc_trans_stop, gfc_trans_sync,
        * gfc_trans_critical):
        Add code for GFC_FCOARRAY_LIB.

From-SVN: r171568

13 years agoDaily bump.
GCC Administrator [Sun, 27 Mar 2011 00:18:09 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171567

13 years agoDon't look up methods for pointer to interface.
Ian Lance Taylor [Sat, 26 Mar 2011 19:04:54 +0000 (19:04 +0000)]
Don't look up methods for pointer to interface.

From-SVN: r171562

13 years agore PR fortran/48291 ([OOP] internal compiler error, new_symbol(): Symbol name too...
Janus Weil [Sat, 26 Mar 2011 18:39:14 +0000 (19:39 +0100)]
re PR fortran/48291 ([OOP] internal compiler error, new_symbol(): Symbol name too long)

2011-03-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48291
* class.c (get_unique_hashed_string): Adjust maximum allowable length
for unique type string.

2011-03-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48291
* gfortran.dg/class_42.f03: New.

From-SVN: r171559

13 years agoDon't permit embedded field to be pointer to interface.
Ian Lance Taylor [Sat, 26 Mar 2011 18:31:36 +0000 (18:31 +0000)]
Don't permit embedded field to be pointer to interface.

From-SVN: r171558

13 years agovect-cselim-1.c: Fail on targets that don't support strided accesses.
Ira Rosen [Sat, 26 Mar 2011 17:25:26 +0000 (17:25 +0000)]
vect-cselim-1.c: Fail on targets that don't support strided accesses.

        * gcc.dg/vect/vect-cselim-1.c: Fail on targets that don't
        support strided accesses.

From-SVN: r171557

13 years agobasic-block.h (fixup_abnormal_edges): Adjust prototype.
Eric Botcazou [Sat, 26 Mar 2011 13:03:46 +0000 (13:03 +0000)]
basic-block.h (fixup_abnormal_edges): Adjust prototype.

* basic-block.h (fixup_abnormal_edges): Adjust prototype.
* reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
basic blocks and call commit_edge_insertions directly.
(fixup_abnormal_edges): Move from here to...
* cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
on the edges and return whether some have actually been inserted.
* reg-stack.c (convert_regs): Fix up abnormal edges before inserting
compensation code.

From-SVN: r171556

13 years agore PR rtl-optimization/48144 (ICE: in code_motion_path_driver, at sel-sched.c:6575...
Andrey Belevantsev [Sat, 26 Mar 2011 11:40:51 +0000 (14:40 +0300)]
re PR rtl-optimization/48144 (ICE: in code_motion_path_driver, at sel-sched.c:6575 with -fselective-scheduling2 and custom flags)

    PR rtl-optimization/48144
    * sel-sched-ir.c (merge_history_vect): Factor out from ...
    (merge_expr_data): ... here.
    (av_set_intersect): Rename to av_set_code_motion_filter.
    Update all callers.  Call merge_history_vect when an expression
    is found in both sets.
    * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.

    gcc/testsuite
    PR rtl-optimization/48144
    * gcc.dg/pr48144.c: New test.

From-SVN: r171555

13 years agodecl.c (gnat_to_gnu_entity): Create TYPE_DECL for the padded type built to support...
Eric Botcazou [Sat, 26 Mar 2011 10:18:54 +0000 (10:18 +0000)]
decl.c (gnat_to_gnu_entity): Create TYPE_DECL for the padded type built to support a specified size or alignment.

* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
for the padded type built to support a specified size or alignment.

From-SVN: r171554

13 years agogigi.h (finalize_from_with_types): Adjust comment.
Eric Botcazou [Sat, 26 Mar 2011 09:55:04 +0000 (09:55 +0000)]
gigi.h (finalize_from_with_types): Adjust comment.

* gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
unconditionally to the end of the unit when the designated type is
limited_with'ed.
<all>: Rename local variable.  Attempt to un-defer types only and do it
for limited_with'ed types as well.
(finalize_from_with_types): Adjust comment.  Rename variable and tidy.
* gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
consistently and remove redundant call to finalize_from_with_types.

From-SVN: r171552

13 years agoinline.adb (Back_End_Cannot_Inline): Lift restriction on calls to subprograms without...
Eric Botcazou [Sat, 26 Mar 2011 09:34:40 +0000 (09:34 +0000)]
inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to subprograms without a previous spec declared in...

* inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
subprograms without a previous spec declared in the same unit.
* gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
subprograms at the end of the unit instead of at the beginning.
* gcc-interface/utils.c (create_subprog_decl): Check that the entity
isn't public for the special handling of non-inline functions nested
inside inline external functions.

From-SVN: r171551

13 years agoCheck for invalid uses of ... in builtin function calls.
Ian Lance Taylor [Sat, 26 Mar 2011 06:06:36 +0000 (06:06 +0000)]
Check for invalid uses of ... in builtin function calls.

From-SVN: r171544

13 years agopredicates.md (word_offset_memref_op): Handle cmodel medium addresses.
Alan Modra [Sat, 26 Mar 2011 05:46:00 +0000 (16:16 +1030)]
predicates.md (word_offset_memref_op): Handle cmodel medium addresses.

* config/rs6000/predicates.md (word_offset_memref_op): Handle
cmodel medium addresses.
* config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
64-bit gpr loads and stores.
(rs6000_secondary_reload_ppc64): New function.
* config/rs6000/rs6000-protos.h: Declare it.
* config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.

From-SVN: r171542

13 years agoBetter error when setting const to nil.
Ian Lance Taylor [Sat, 26 Mar 2011 05:45:31 +0000 (05:45 +0000)]
Better error when setting const to nil.

From-SVN: r171541

13 years agoCorrectly parse select case <-c <- v.
Ian Lance Taylor [Sat, 26 Mar 2011 05:32:46 +0000 (05:32 +0000)]
Correctly parse select case <-c <- v.

From-SVN: r171540

13 years agore PR target/47487 (ICE in rs6000_output_function_epilogue, at config/rs6000/rs6000...
Alan Modra [Sat, 26 Mar 2011 01:34:14 +0000 (12:04 +1030)]
re PR target/47487 (ICE in rs6000_output_function_epilogue, at config/rs6000/rs6000.c:21782 building 64bit libgo)

PR target/47487
* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
GNU Go in traceback table.

From-SVN: r171538

13 years agoDaily bump.
GCC Administrator [Sat, 26 Mar 2011 00:19:05 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r171537

13 years agoexpr.c (emit_block_move_via_movmem): Only use 6 operand variant if there are exactly...
Richard Henderson [Fri, 25 Mar 2011 23:17:26 +0000 (16:17 -0700)]
expr.c (emit_block_move_via_movmem): Only use 6 operand variant if there are exactly 6 operands.

        * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
        if there are exactly 6 operands.
        (set_storage_via_setmem): Similarly.

From-SVN: r171532

13 years agofuture (future::share): Add.
Jonathan Wakely [Fri, 25 Mar 2011 23:16:09 +0000 (23:16 +0000)]
future (future::share): Add.

2011-03-25  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/std/future (future::share): Add.
(packaged_task::result_type): Remove as per LWG 2030.
(packaged_task::packaged_task): Remove redundant constructors, as per
LWG 1514.
* testsuite/30_threads/future/members/share.cc: New.
* testsuite/30_threads/packaged_task/requirements/typedefs.cc: Remove.

From-SVN: r171531

13 years agodefault.cc: Do not call members which require a fully established result state.
Jonathan Wakely [Fri, 25 Mar 2011 22:50:47 +0000 (22:50 +0000)]
default.cc: Do not call members which require a fully established result state.

2011-03-25  Jonathan Wakely  <jwakely.gcc@gmail.com>

* testsuite/28_regex/match_results/ctors/char/default.cc: Do not call
members which require a fully established result state.
* testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.

From-SVN: r171530

13 years agoClean up handling of undefined types.
Ian Lance Taylor [Fri, 25 Mar 2011 20:42:20 +0000 (20:42 +0000)]
Clean up handling of undefined types.

From-SVN: r171528

13 years agoprintf_fp.c (__quadmath_printf_fp): Use memcpy instead of mempcpy.
Jakub Jelinek [Fri, 25 Mar 2011 20:12:37 +0000 (21:12 +0100)]
printf_fp.c (__quadmath_printf_fp): Use memcpy instead of mempcpy.

* printf/printf_fp.c (__quadmath_printf_fp): Use memcpy instead of
mempcpy.

From-SVN: r171525

13 years agoAvoid overflow error after negative shift count error.
Ian Lance Taylor [Fri, 25 Mar 2011 19:23:10 +0000 (19:23 +0000)]
Avoid overflow error after negative shift count error.

From-SVN: r171523

13 years agoChangelog c-family/
Kai Tietz [Fri, 25 Mar 2011 19:20:52 +0000 (20:20 +0100)]
Changelog c-family/

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* c-ada-spec.c (compare_comment): Use filename_cmp
instead of strcmp for filename.

Changelog fortran/

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* scanner.c (preprocessor_line): Use filename_cmp
instead of strcmp.

Changelog gcc/

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* collect2.c (write_c_file_stat): Handle backslash
as right-hand directory separator.
(resolve_lib_name): Use IS_DIR_SEPARATOR instead of
checking just for slash.
* coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
instead of checking for trailing slash.
* gcc.c (record_temp_file): Use filename_cmp instead
of strcmp.
(do_spec_1): Likewise.
(replace_outfile_spec_function): Likewise.
(is_directory): Use filename_ncmp instead of strncmp.
(print_multilib_info): Likewise.
* gcov.c (find_source): Use filename_cmp instead
instead of strcmp.
(make_gcov_file_name): Fix order of slash/backslash
checks.
* incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
(add_standard_paths): Likewise.
* mips-tfile.c (saber_stop): Handle backslash.
* prefix.c (update_path): Use filename_ncmp instead of
strncmp.
* profile.c (output_location): Use filename_cmp instead
of strcmp.
* read-md.c (handle_toplevel_file): Handle backslash.
* tlink.c (frob_extension):  Likewise.
* tree-cfg.c (same_line_p): Use filename_cmp instead of
strcmp.
* tree-dump.c (dequeue_and_dump): Handle backslash.
* tree.c (get_file_function_name): Likewise.
* gengtype.c (read_input_list): Likewise.
(get_file_realbasename): Likewise.
(get_output_file_with_visibility): Use filename_cmp
instead of strcmp.

ChangeLog java/

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* jcf-parse.c (java_read_sourcefilenames): Use filename_cmp
instead of strcmp.
(set_source_filename): Likewise.
* win32-host.c (jcf_open_exact_case): Likewise.

ChangeLog lto/

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* lto.c (lto_resolution_read): Use filename_cmp instead
of strcmp.
(lto_read_section_data): Likewise.

ChangeLog cp/

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* lex.c (interface_strcmp): Handle dos-paths.
(handle_pragma_implementation): Use filename_cmp instead of
strcmp.
(in_main_input_context): Likewise.

From-SVN: r171522

13 years agofiles.c (file_hash_eq): Use filename_cmp instead of strcmp.
Kai Tietz [Fri, 25 Mar 2011 19:11:26 +0000 (20:11 +0100)]
files.c (file_hash_eq): Use filename_cmp instead of strcmp.

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* files.c (file_hash_eq): Use filename_cmp
instead of strcmp.
(nonexistent_file_hash_eq): Likewise.
(remap_filename): Likewise.
Handle absolute DOS-path,
(append_file_to_dir): Check for IS_DIR_SEPARATOR
instead of slash.
(read_name_map): Likewise.
* linemap.c (linemap_add): Use filename_cmp
instead of strcmp.
* mkdeps.c (apply_vpath): Use filename_ncmp
instead of strncmp.
(deps_restore): Use filename_cmp instead of
strcmp.
* init.c (read_original_directory): Use
IS_DIR_SEPARATOR instead of checking for slash.

From-SVN: r171521

13 years agoarm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS case to VFPv1.
Richard Sandiford [Fri, 25 Mar 2011 18:26:40 +0000 (18:26 +0000)]
arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS case to VFPv1.

gcc/
* config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
case to VFPv1.

From-SVN: r171520

13 years agore PR fortran/48174 (DWARF for subroutine with no args indicates 'varargs')
Tobias Burnus [Fri, 25 Mar 2011 17:53:35 +0000 (18:53 +0100)]
re PR fortran/48174 (DWARF for subroutine with no args indicates 'varargs')

2011-03-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/48174
        PR fortran/45304
        * trans-types.c (gfc_get_function_type): Don't use varargs if
        * the
        procedure is known to have no arguments.

2011-03-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/48174
        PR fortran/45304
        * gfortran.dg/ishft_4.f90: Adapt scan-tree-dump-times.
        * gfortran.dg/leadz_trailz_3.f90: Ditto

From-SVN: r171519

13 years agoGive an error if a label is defined but not used.
Ian Lance Taylor [Fri, 25 Mar 2011 17:34:44 +0000 (17:34 +0000)]
Give an error if a label is defined but not used.

From-SVN: r171518

13 years agoChangeLog for last change.
Rainer Orth [Fri, 25 Mar 2011 17:12:10 +0000 (17:12 +0000)]
ChangeLog for last change.

From-SVN: r171516

13 years agopr44686.c: Do not explicitely specify -O2.
Martin Jambor [Fri, 25 Mar 2011 17:08:57 +0000 (18:08 +0100)]
pr44686.c: Do not explicitely specify -O2.

2011-03-25  Martin Jambor  <mjambor@suse.cz>

* gcc.c-torture/compile/pr44686.c: Do not explicitely specify -O2.

From-SVN: r171515

13 years agore PR boehm-gc/11412 (boehm-gc testing problems)
Rainer Orth [Fri, 25 Mar 2011 17:04:16 +0000 (17:04 +0000)]
re PR boehm-gc/11412 (boehm-gc testing problems)

PR boehm-gc/11412
* configure.ac (THREADCFLAGS): New variable.
Use it instead of INCLUDES, AM_CPPFLAGS.
<*-*-kfreebsd*-gnu> (THREADDLLIBS): Rename to THREADLIBS.
Remove DG/UX support.
(AC_CONFIG_FILES): Add testsuite/Makefile.
* Makefile.am (AUTOMAKE_OPTIONS): Use foreign instead of cygnus.
(SUBDIRS): Add testsuite.
(libgcjgc_la_LIBADD): Remove $(UNWINDLIBS).
(AM_CXXFLAGS): Add $(THREADCFLAGS).
(AM_CFLAGS): Likewise.
Remove TESTS related variables.
* Makefile.in: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.am: New file.
* testsuite/Makefile.in: New file.
* testsuite/lib/boehm-gc.exp: New file.
* testsuite/config/default.exp: New file.
* testsuite/boehm-gc.c/c.exp: New file.
* testsuite/boehm-gc.lib/lib.exp: New file.
* tests/test.c: Move ...
* testsuite/boehm-gc.c/gctest.c: ... here.
* tests/leak_test.c, tests/middle.c, tests/thread_leak_test.c,
tests/trace_test.c: Move ...
* testsuite/boehm-gc.c: ... here.
* testsuite/boehm-gc.c/trace_test.c: Skip everywhere.
* tests/staticrootslib.c, tests/staticrootstest.c: Move ...
* testsuite/boehm-gc.lib: ... here.
* testsuite/boehm-gc.lib/staticrootstest.c: Use dg-add-shlib
staticrootslib.c.
* tests/test_cpp.cc: Move ...
* testsuite/boehm-gc.c++: ... here.

From-SVN: r171514

13 years agofold-const.c (expr_location_or): New function.
Nathan Froyd [Fri, 25 Mar 2011 16:53:14 +0000 (16:53 +0000)]
fold-const.c (expr_location_or): New function.

* fold-const.c (expr_location_or): New function.
(fold_truth_not_expr): Call it.

From-SVN: r171468

13 years agodwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing va_end.
Jeff Law [Fri, 25 Mar 2011 16:39:10 +0000 (10:39 -0600)]
dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing va_end.

* dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
va_end.
* c-family/c-common.c (def_fn_type): Likewise.
* ada/gcc-interface/utils.c (def_fn_type): Likewise.
* emit-rtl.c (gen_rtvec): Likewise.
* lto/lto-lang.c (def_fn_type): Likewise.

From-SVN: r171466

13 years agotree-ssa-copy.c (stmt_may_generate_copy): Copies from constants also generate copies.
Richard Guenther [Fri, 25 Mar 2011 16:28:15 +0000 (16:28 +0000)]
tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants also generate copies.

2011-03-25  Richard Guenther  <rguenther@suse.de>

* tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
also generate copies.
(fini_copy_prop): Handle constant values properly.

From-SVN: r171465

13 years agodwarf2out.c (mem_loc_descriptor): Compare mode size instead of bitsize with DWARF2_AD...
Jakub Jelinek [Fri, 25 Mar 2011 16:22:00 +0000 (17:22 +0100)]
dwarf2out.c (mem_loc_descriptor): Compare mode size instead of bitsize with DWARF2_ADDR_SIZE.

* dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
mode size instead of bitsize with DWARF2_ADDR_SIZE.
(hash_loc_operands, compare_loc_operands): Handle
DW_OP_GNU_entry_value.

From-SVN: r171464

13 years agoCore 1135
Jason Merrill [Fri, 25 Mar 2011 16:17:08 +0000 (12:17 -0400)]
Core 1135

Core 1135
* method.c (defaulted_late_check): Check for exception spec mismatch.
(defaultable_fn_check): Allow exception spec and virtual.
* class.c (check_for_override): A virtual dtor is non-trivial.

From-SVN: r171462

13 years agore PR c++/48289 (-pedantic breaks std::move)
Jason Merrill [Fri, 25 Mar 2011 16:16:53 +0000 (12:16 -0400)]
re PR c++/48289 (-pedantic breaks std::move)

PR c++/48289
* pt.c (build_non_dependent_expr): Keep dereferences outside the
NON_DEPENDENT_EXPR.

From-SVN: r171461

13 years ago* c.opt: Add -std=c++03.
Jason Merrill [Fri, 25 Mar 2011 16:16:40 +0000 (12:16 -0400)]
* c.opt: Add -std=c++03.

From-SVN: r171460

13 years agocygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
Kai Tietz [Fri, 25 Mar 2011 16:10:56 +0000 (17:10 +0100)]
cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.

2011-03-25  Kai Tietz  <ktietz@redhat.com>

* config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
(STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
* config/i386/i386.c (ix86_conditional_register_usage): Adjust
comment and use macro TARGET_64BIT_MS_ABI instead.
(ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
and change default behavior for 32-bit MS_ABI.
(ix86_reg_parm_stack_space): Check additionally for bit-ness.
(ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
32-bit, too.
(ix86_cfun_abi): Likewise.
(ix86_maybe_switch_abi): Adjust comment.
(init_cumulative_args): Check for bit-ness in MS_ABI case.
(ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
instead of checking for SYSV_ABI.
(ix86_nsaved_sseregs): Likewise.
(ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
to 16 bytes.
(ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
* config/i386.h (TARGET_32BIT_MS_ABI): New macro.
(ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
(OUTGOING_REG_PARM_STACK_SPACE): Likewise.
* config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.

From-SVN: r171459

13 years agore PR target/48287 (gcc.dg/vect/vect-cselim-1.c FAILs on SPARC)
Ira Rosen [Fri, 25 Mar 2011 16:08:40 +0000 (16:08 +0000)]
re PR target/48287 (gcc.dg/vect/vect-cselim-1.c FAILs on SPARC)

        PR target/48287
        * gcc.dg/vect/vect-cselim-1.c: Fail for vect_no_align.

From-SVN: r171457

13 years agopr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for mips-sgi-irix6.5.
Rainer Orth [Fri, 25 Mar 2011 15:38:27 +0000 (15:38 +0000)]
pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for mips-sgi-irix6.5.

* gcc.dg/torture/pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options
for mips-sgi-irix6.5.
Replace snprintf prototype by <stdio.h>.

From-SVN: r171456

13 years agotree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
Richard Guenther [Fri, 25 Mar 2011 15:05:00 +0000 (15:05 +0000)]
tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.

2011-03-25  Richard Guenther  <rguenther@suse.de>

* tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
(verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
(verify_gimple): Remove.
* tree-cfg.c (verify_gimple_call): Merge verification
from verify_stmts.
(verify_gimple_phi): Merge verification from verify_stmts.
(verify_gimple_label): New function.
(verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
(verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
(verify_stmt): Merge into verify_gimple_in_cfg and callees.
(verify_stmts): Rename to verify_gimple_in_cfg.
(verify_gimple_in_cfg): New function.
* passes.c (execute_function_todo): Call verify_gimple_in_cfg.
* tree-ssa.c (verify_ssa): Likewise.
* gimplify.c (gimplify_body): Call verify_gimple_in_seq.

From-SVN: r171453

13 years agoconfigure.ac (native_only): Remove.
Joseph Myers [Fri, 25 Mar 2011 13:06:37 +0000 (13:06 +0000)]
configure.ac (native_only): Remove.

* configure.ac (native_only): Remove.
(i[[3456789]]86-*-msdosdjgpp*): Don't disable expect dejagnu
send-pr uudecode guile gnuserv on host.
(x86_64-*-mingw*): Don't disable expect dejagnu autoconf automake
send-pr rcs guile perl texinfo libtool on host.
(i[[3456789]]86-*-mingw32*): Don't disable expect dejagnu autoconf
automake send-pr rcs guile perl texinfo libtool on host.
(*-*-cygwin*, *-*-netbsd*): Remove host cases.
(*-*-kaos*): Don't disable target-examples target-gperf on target.
(alpha*-dec-osf*): Don't disable fileutils on target.
(sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't disable target-examples
texinfo send-pr expect dejagnu on target.
(arm-*-elf* | arm*-*-eabi*, arm*-*-linux-gnueabi): Don't disable
target-qthreads on target.
(hppa*-hp-hpux11*, hppa*-*-*): Don't disable shellutils on target.
(ia64*-*-elf*, ia64*-*-*vms*): Don't disable mmalloc on target.
(i[[3456789]]86-w64-mingw*, i[[3456789]]86-*-mingw*,
x86_64-*-mingw*): Don't disable expect on target.
(*-*-cygwin*): Don't disable target-gperf on target.
(powerpc*-*-winnt* | powerpc*-*-pe*): Don't disable make expect
gnuserv on target.
(powerpcle-*-solaris*): Don't disable make expect gnuserv on
target.
* configure: Regenerate.

From-SVN: r171452

13 years agore PR testsuite/48283 (gcc.dg/graphite/block-[3478].c timeouts)
Rainer Orth [Fri, 25 Mar 2011 13:02:24 +0000 (13:02 +0000)]
re PR testsuite/48283 (gcc.dg/graphite/block-[3478].c timeouts)

PR testsuite/48283
* gcc.dg/graphite/block-3.c: Add dg-require-effective-target
run_expensive_tests.
* gcc.dg/graphite/block-4.c: Likewise.
* gcc.dg/graphite/block-7.c: Likewise.
* gcc.dg/graphite/block-8.c: Likewise.

From-SVN: r171451

13 years agopasses.c (init_optimization_passes): Add FRE pass after early SRA.
Richard Guenther [Fri, 25 Mar 2011 11:59:19 +0000 (11:59 +0000)]
passes.c (init_optimization_passes): Add FRE pass after early SRA.

2011-03-25  Richard Guenther  <rguenther@suse.de>

* passes.c (init_optimization_passes): Add FRE pass after
early SRA.

* g++.dg/tree-ssa/pr41186.C: Scan the appropriate FRE dump.
* g++.dg/tree-ssa/pr8781.C: Likewise.
* gcc.dg/ipa/ipa-pta-13.c: Likewise.
* gcc.dg/ipa/ipa-pta-3.c: Likewise.
* gcc.dg/ipa/ipa-pta-4.c: Likewise.
* gcc.dg/tree-ssa/20041122-1.c: Likewise.
* gcc.dg/tree-ssa/alias-18.c: Likewise.
* gcc.dg/tree-ssa/foldstring-1.c: Likewise.
* gcc.dg/tree-ssa/forwprop-10.c: Likewise.
* gcc.dg/tree-ssa/forwprop-9.c: Likewise.
* gcc.dg/tree-ssa/fre-vce-1.c: Likewise.
* gcc.dg/tree-ssa/loadpre6.c: Likewise.
* gcc.dg/tree-ssa/pr21574.c: Likewise.
* gcc.dg/tree-ssa/ssa-dom-cse-1.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-1.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-11.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-12.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-13.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-14.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-15.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-16.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-17.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-18.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-19.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-2.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-21.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-22.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-23.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-24.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-25.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-26.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-27.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-3.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-4.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-5.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-6.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-7.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-8.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-9.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-10.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-26.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-7.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-8.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-9.c: Likewise.
* gcc.dg/tree-ssa/ssa-sccvn-1.c: Likewise.
* gcc.dg/tree-ssa/ssa-sccvn-2.c: Likewise.
* gcc.dg/tree-ssa/ssa-sccvn-3.c: Likewise.
* gcc.dg/tree-ssa/ssa-sccvn-4.c: Likewise.
* gcc.dg/tree-ssa/struct-aliasing-1.c: Likewise.
* gcc.dg/tree-ssa/struct-aliasing-2.c: Likewise.
* c-c++-common/pr46562-2.c: Likewise.
* gfortran.dg/pr42108.f90: Likewise.
* gcc.dg/torture/pta-structcopy-1.c: Scan ealias dump, force
foo to be inlined even at -O1.
* gcc.dg/tree-ssa/ssa-dce-4.c: Disable FRE.
* gcc.dg/ipa/ipa-pta-14.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-1.c: Adjust.
* gcc.dg/matrix/matrix.exp: Disable FRE.

From-SVN: r171450

13 years agovfp.md (arm_movdi_vfp): Enable only when not tuning for Cortex-A8.
Bernd Schmidt [Fri, 25 Mar 2011 11:57:29 +0000 (11:57 +0000)]
vfp.md (arm_movdi_vfp): Enable only when not tuning for Cortex-A8.

2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
    Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
for Cortex-A8.
(arm_movdi_vfp_cortexa8): New pattern.
* config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
instructions when tuning for Cortex-A8.  Set attribute "arch".
* config/arm/arm.md: Move include arm-tune.md up a bit.
(define_attr "arch"): Add "onlya8" and "nota8" values.
(define_attr "arch_enabled"): Handle "onlya8" and "nota8".

Co-Authored-By: Andrew Stubbs <ams@codesourcery.com>
From-SVN: r171449

13 years agofix typo in ChangeLog
Nathan Froyd [Fri, 25 Mar 2011 11:48:29 +0000 (11:48 +0000)]
fix typo in ChangeLog

From-SVN: r171448

13 years agore PR target/4828 (can't install gcc for h8300-hms target)
Nathan Froyd [Fri, 25 Mar 2011 11:47:13 +0000 (11:47 +0000)]
re PR target/4828 (can't install gcc for h8300-hms target)

PR bootstrap/4828
Revert:
2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>

* function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
(pass_instantiate_virtual_regs): Require PROP_cfglayout.
* passes.c (init_optimization_passes): Move
pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.

From-SVN: r171447

13 years agoconfigure.ac (target_tools): Remove target-groff.
Joseph Myers [Fri, 25 Mar 2011 11:13:08 +0000 (11:13 +0000)]
configure.ac (target_tools): Remove target-groff.

* configure.ac (target_tools): Remove target-groff.
(native_only): Remove target-groff.
(hppa*64*-*-*): Don't disable byacc.
(i[[3456789]]86-*-mingw32*): Remove commented-out noconfigdirs
setting.
(*-*-kaos*): Don't skip target-librx and target-groff.
(*-*-netware*): Don't skip target-libmudflap.
(*-*-tpf*): Don't skip target-libmudflap.
(sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't condition configured
directories on the host.
(ia64*-*-*vms*): Don't skip tix.
(sh-*-* | sh64-*-*): Don't condition skipped directories on the
host.
* configure: Regenerate.

From-SVN: r171446

13 years agoChangeLog gcc/
Kai Tietz [Fri, 25 Mar 2011 10:28:12 +0000 (11:28 +0100)]
ChangeLog gcc/
2011-03-25  Kai Tietz  <ktietz@redhat.com>

* c-typeck.c (comptypes_internal): Replace target
hook call of comp_type_attributes by version in tree.c file.
* gimple.c (gimple_types_compatible_p_1): Likewise.
* tree-ssa.c (useless_type_conversion_p): Likewise.
* tree.c (build_type_attribute_qual_variant): Likewise.
(attribute_value_equal): New static helper function.
(comp_type_attributes): New function.
(merge_attributes): Use attribute_value_equal for comparison.
(attribute_list_contained): Likewise.
* tree.h (comp_type_attributes): New prototype.

ChangeLog cp/
2011-03-25  Kai Tietz  <ktietz@redhat.com>

        * decl.c (decls_match): Replace target hook
        call of comp_type_attributes by version in tree.c file.
        * search.c (check_final_overrider): Likewise.
        * typeck.c (structural_comptypes): Likewise.

From-SVN: r171445

13 years agotree-cfg.c (verify_gimple_assign_unary): Drop special casing of complex types at...
Richard Guenther [Fri, 25 Mar 2011 10:16:02 +0000 (10:16 +0000)]
tree-cfg.c (verify_gimple_assign_unary): Drop special casing of complex types at -O0.

2011-03-25  Richard Guenther  <rguenther@suse.de>

* tree-cfg.c (verify_gimple_assign_unary): Drop special casing
of complex types at -O0.
(verify_gimple_assign_binary): Likewise.
(verify_gimple_assign_ternary): Likewise.

From-SVN: r171444

13 years agorandom.h (negative_binomial_distribution<>:: negative_binomial_distribution(_IntType...
Paolo Carlini [Fri, 25 Mar 2011 10:06:33 +0000 (10:06 +0000)]
random.h (negative_binomial_distribution<>:: negative_binomial_distribution(_IntType, double), [...]): Tweak construction of _M_gd.

2011-03-25  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/random.h (negative_binomial_distribution<>::
negative_binomial_distribution(_IntType, double),
negative_binomial_distribution<>::
negative_binomial_distribution(const param_type&)): Tweak
construction of _M_gd.
* include/bits/random.tcc (negative_binomial_distribution<>::
operator()): Adjust.

From-SVN: r171443

13 years agoRemove deprecated DW_FORM_sig8 define.
Mark Wielaard [Fri, 25 Mar 2011 10:06:13 +0000 (10:06 +0000)]
Remove deprecated DW_FORM_sig8 define.

    * dwarf2.h (dwarf_form): Remove deprecated DW_FORM_sig8 define.

    * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
    (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.

From-SVN: r171442

13 years agore PR debug/48041 (dwarf2out emits unnecessary null byte in empty .debug_abbrev section)
Mark Wielaard [Fri, 25 Mar 2011 09:35:41 +0000 (09:35 +0000)]
re PR debug/48041 (dwarf2out emits unnecessary null byte in empty .debug_abbrev section)

PR debug/48041
* dwarf2out.c (output_abbrev_section): Only write table when
abbrev_die_table_in_use > 1.

From-SVN: r171441

13 years agoRemove closed function. Fix tuple receive in select.
Ian Lance Taylor [Fri, 25 Mar 2011 05:14:57 +0000 (05:14 +0000)]
Remove closed function.  Fix tuple receive in select.

From-SVN: r171440

13 years agoalpha: Use byte-manipulation helper expanders more often.
Richard Henderson [Fri, 25 Mar 2011 00:52:40 +0000 (17:52 -0700)]
alpha: Use byte-manipulation helper expanders more often.

From-SVN: r171439

13 years agoalpha: Remove all big-endian code.
Richard Henderson [Fri, 25 Mar 2011 00:52:34 +0000 (17:52 -0700)]
alpha: Remove all big-endian code.

From-SVN: r171438

13 years agoalpha: Unify movdi patterns with enabled attribute.
Richard Henderson [Fri, 25 Mar 2011 00:35:01 +0000 (17:35 -0700)]
alpha: Unify movdi patterns with enabled attribute.

From-SVN: r171437

13 years agoalpha: Unify SF, DF, QI, HI, SI mode moves with enabled attribute.
Richard Henderson [Fri, 25 Mar 2011 00:34:56 +0000 (17:34 -0700)]
alpha: Unify SF, DF, QI, HI, SI mode moves with enabled attribute.

For floating-point, this involves in addition conditionalizing the
definition of the "f" register constraint.

From-SVN: r171436

13 years agoalpha: Cleanup sign extension patterns.
Richard Henderson [Fri, 25 Mar 2011 00:34:46 +0000 (17:34 -0700)]
alpha: Cleanup sign extension patterns.

Don't bother implementing sub-word sign-extensions for !BWX,
since we need to use DImode intermediates anyway.

From-SVN: r171435

13 years agoDaily bump.
GCC Administrator [Fri, 25 Mar 2011 00:18:41 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171434

13 years agoalpha: Unify zero_extend patterns with attribute enabled.
Richard Henderson [Fri, 25 Mar 2011 00:09:36 +0000 (17:09 -0700)]
alpha: Unify zero_extend patterns with attribute enabled.

From-SVN: r171429

13 years agoalpha: Revert change to input_operand for 32-bit vms.
Richard Henderson [Fri, 25 Mar 2011 00:04:19 +0000 (17:04 -0700)]
alpha: Revert change to input_operand for 32-bit vms.

From-SVN: r171428

13 years agoUpdate to current version of Go library.
Ian Lance Taylor [Thu, 24 Mar 2011 23:46:17 +0000 (23:46 +0000)]
Update to current version of Go library.

From-SVN: r171427

13 years agofunction.c (instantiate_virtual_regs): Use FOR_EACH_BB and FOR_BB_INSNS_SAFE to itera...
Nathan Froyd [Thu, 24 Mar 2011 23:37:02 +0000 (23:37 +0000)]
function.c (instantiate_virtual_regs): Use FOR_EACH_BB and FOR_BB_INSNS_SAFE to iterate through insns.

* function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
(pass_instantiate_virtual_regs): Require PROP_cfglayout.
* passes.c (init_optimization_passes): Move
pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.

From-SVN: r171426

13 years ago* dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
Eric Botcazou [Thu, 24 Mar 2011 21:56:38 +0000 (21:56 +0000)]
* dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.

From-SVN: r171425

13 years agoi386.md (ix86_print_operand): Output DFmode const_double correctly.
Uros Bizjak [Thu, 24 Mar 2011 20:52:09 +0000 (21:52 +0100)]
i386.md (ix86_print_operand): Output DFmode const_double correctly.

* config/i386/i386.md (ix86_print_operand): Output DFmode const_double
correctly.

From-SVN: r171424

13 years agore PR debug/48204 (ICE: in decimal_to_decnumber, at dfp.c:115 with -fno-tree-ccp...
Jakub Jelinek [Thu, 24 Mar 2011 18:58:58 +0000 (19:58 +0100)]
re PR debug/48204 (ICE: in decimal_to_decnumber, at dfp.c:115 with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -g)

PR debug/48204
* simplify-rtx.c (simplify_const_unary_operation): Call
real_convert when changing mode class with FLOAT_EXTEND.

* gcc.dg/dfp/pr48204.c: New test.

From-SVN: r171423

13 years agoconfigure.ac: Remove references to mt-mep, mt-netware, mt-wince.
Paolo Bonzini [Thu, 24 Mar 2011 17:47:30 +0000 (17:47 +0000)]
configure.ac: Remove references to mt-mep, mt-netware, mt-wince.

2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * configure.ac: Remove references to mt-mep, mt-netware,
        mt-wince.
        * Makefile.def: Add all-utils soft dependencies.
        * Makefile.tpl: Remove GDB_NLM_DEPS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * mt-mep: Remove, obsolete.
        * mt-netware: Remove, obsolete.
        * mt-wince: Remove, obsolete.
        * mt-v810: Remove, unused.

From-SVN: r171422

13 years agoconfigure.ac: Do not include mh-x86omitfp.
Paolo Bonzini [Thu, 24 Mar 2011 17:29:51 +0000 (17:29 +0000)]
configure.ac: Do not include mh-x86omitfp.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Do not include mh-x86omitfp.
* configure: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-x86omitfp: Remove.

From-SVN: r171421

13 years agorx.h (LABEL_ALIGN_FOR_BARRIER): Define.
Nick Clifton [Thu, 24 Mar 2011 17:25:28 +0000 (17:25 +0000)]
rx.h (LABEL_ALIGN_FOR_BARRIER): Define.

* config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
(ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
* config/rx/rx.c (rx_option_override): Set align_jumps,
align_loops and align_labels if not set by the user.
(rx_align_for_label): New function.
(rx_max_skip_for_label): New function.
(TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
(TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
(TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
(TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
* config/rx/rx-protos.h (rx_align_for_label): Add prototype.

From-SVN: r171420

13 years agoconfigure.ac: Remove empty cases.
Paolo Bonzini [Thu, 24 Mar 2011 17:23:41 +0000 (17:23 +0000)]
configure.ac: Remove empty cases.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove empty cases.
* configure: Regenerate.

From-SVN: r171419

13 years agore PR rtl-optimization/48263 (build fails for cris-elf in libgfortran)
Richard Sandiford [Thu, 24 Mar 2011 17:23:18 +0000 (17:23 +0000)]
re PR rtl-optimization/48263 (build fails for cris-elf in libgfortran)

gcc/
PR rtl-optimization/48263
* optabs.c (expand_binop_directly): Reinstate convert_modes code
and original commutative_p handling.  Use maybe_gen_insn.

From-SVN: r171418

13 years agoMakefile.def: Add dependency from termcap to gdb.
Paolo Bonzini [Thu, 24 Mar 2011 17:11:26 +0000 (17:11 +0000)]
Makefile.def: Add dependency from termcap to gdb.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def: Add dependency from termcap to gdb.
* Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

        * mh-cygwin: Remove obsolete variables and dependencies.

From-SVN: r171417

13 years agoconfigure.ac: Remove all mentions of mh-sysv4 and mh-solaris.
Paolo Bonzini [Thu, 24 Mar 2011 17:07:44 +0000 (17:07 +0000)]
configure.ac: Remove all mentions of mh-sysv4 and mh-solaris.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove all mentions of mh-sysv4 and mh-solaris.
* configure: Regenerate.
* Makefile.def: Remove all mentions of X11_FLAGS_TO_PASS.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove.
* mh-solaris: Remove.

From-SVN: r171416

13 years agoconfigure.ac: Remove all mentions of tentative_cc.
Paolo Bonzini [Thu, 24 Mar 2011 16:58:56 +0000 (16:58 +0000)]
configure.ac: Remove all mentions of tentative_cc.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove all mentions of tentative_cc.
* configure: Regenerate.

From-SVN: r171415

13 years agomh-sysv4: Remove AR_CFLAGS.
Paolo Bonzini [Thu, 24 Mar 2011 16:53:52 +0000 (16:53 +0000)]
mh-sysv4: Remove AR_CFLAGS.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove AR_CFLAGS.

From-SVN: r171414

13 years agoreload.c (find_reloads_subreg_address): Add address_reloaded parameter and return...
Andreas Krebbel [Thu, 24 Mar 2011 16:50:31 +0000 (16:50 +0000)]
reload.c (find_reloads_subreg_address): Add address_reloaded parameter and return true there if...

2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* reload.c (find_reloads_subreg_address): Add address_reloaded
parameter and return true there if the full address has been
reloaded.
(find_reloads_toplev): Pass address_reloaded flag.
(find_reloads_address_1): Don't use address_reloaded parameter.

From-SVN: r171413

13 years ago* configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*,
Joseph Myers [Thu, 24 Mar 2011 16:49:56 +0000 (16:49 +0000)]
* configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*,

i[[3456789]]86-*-beos*, powerpc-*-beos*, m68k-hp-hpux*,
m68k-apollo-sysv*, m68k-apollo-bsd*, m88k-dg-dgux*,
m88k-harris-cxux*, m88k-motorola-sysv*, mips*-dec-ultrix*,
mips*-nec-sysv4*, mips*-sgi-irix4*, mips*-*-sysv4*, mips*-*-sysv*,
i370-ibm-opened*, i[[3456789]]86-*-sysv5*, i[[3456789]]86-*-dgux*,
i[[3456789]]86-ncr-sysv4.3*, i[[3456789]]86-ncr-sysv4*,
i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
i[[3456789]]86-*-udk*, vax-*-ultrix2*, m68k-sun-sunos*,
hppa*-*-hiux*, *-*-hiux*, rs6000-*-lynxos*, *-*-sysv4*,
*-*-rhapsody*): Remove host cases.
* configure: Regenerate.

config:
* mh-cxux, mh-decstation, mh-dgux386, mh-lynxrs6k, mh-ncr3000,
mh-necv4, mh-sco, mh-sysv5: Remove.

From-SVN: r171412

13 years agorandom.h (negative_binomial_distribution<>:: negative_binomial_distribution(_IntType...
Paolo Carlini [Thu, 24 Mar 2011 16:49:19 +0000 (16:49 +0000)]
random.h (negative_binomial_distribution<>:: negative_binomial_distribution(_IntType, double), [...]): Fix construction of _M_gd.

2011-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/random.h (negative_binomial_distribution<>::
negative_binomial_distribution(_IntType, double),
negative_binomial_distribution<>::
negative_binomial_distribution(const param_type&)): Fix
construction of _M_gd.
* include/bits/random.tcc (negative_binomial_distribution<>::
operator()): Fix computation, per Leger's algorithm.
* testsuite/util/testsuite_random.h (discrete_pdf,
negative_binomial_pdf, poisson_pdf, uniform_int_pdf): New.
(binomial_pdf): Swap last two parameters.
* testsuite/26_numerics/random/discrete_distribution/
operators/values.cc: New.
* testsuite/26_numerics/random/negative_binomial_distribution/
operators/values.cc: Likewise.
* testsuite/26_numerics/random/poisson_distribution/
operators/values.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/
operators/values.cc: Likewise.
* testsuite/26_numerics/random/binomial_distribution/
operators/values.cc: Adjust.

From-SVN: r171411

13 years agotree-ssa-live.c (remove_unused_scope_block_p): Remove set but unused variable "ann".
Jeff Law [Thu, 24 Mar 2011 16:44:17 +0000 (10:44 -0600)]
tree-ssa-live.c (remove_unused_scope_block_p): Remove set but unused variable "ann".

* tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
unused variable "ann".
(remove_unused_locals): Likewise.

* tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
statement.

* cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
after it is freed.

From-SVN: r171408

13 years ago* gcc.pot: Regenerate.
Joseph Myers [Thu, 24 Mar 2011 16:43:55 +0000 (16:43 +0000)]
* gcc.pot: Regenerate.

From-SVN: r171407

13 years ago* cpplib.pot: Regenerate.
Joseph Myers [Thu, 24 Mar 2011 16:43:18 +0000 (16:43 +0000)]
* cpplib.pot: Regenerate.

From-SVN: r171406

13 years agos390.c (s390_preferred_reload_class): Return NO_REGS for invalid symbolic addresses.
Andreas Krebbel [Thu, 24 Mar 2011 16:38:24 +0000 (16:38 +0000)]
s390.c (s390_preferred_reload_class): Return NO_REGS for invalid symbolic addresses.

2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
for invalid symbolic addresses.
(s390_secondary_reload): Don't use s390_check_symref_alignment for
larl operands.

From-SVN: r171405

13 years agore PR target/48209 (FAIL: gcc.c-torture/execute/pr47917.c execution)
Steve Ellcey [Thu, 24 Mar 2011 16:29:18 +0000 (16:29 +0000)]
re PR target/48209 (FAIL: gcc.c-torture/execute/pr47917.c execution)

2011-03-24  Steve Ellcey  <sje@cup.hp.com>

PR target/48209
* gcc.c-torture/execute/pr47917.c: Move this...
* gcc.dg/torture/pr47917.c: to here and add xfails.

From-SVN: r171404

13 years agofold-const.c (fold_ternary_loc): Preserve the location (if any) of the argument in...
Eric Botcazou [Thu, 24 Mar 2011 16:15:22 +0000 (16:15 +0000)]
fold-const.c (fold_ternary_loc): Preserve the location (if any) of the argument in calls to fold_truth_not_expr.

* fold-const.c (fold_ternary_loc): Preserve the location (if any) of
the argument in calls to fold_truth_not_expr.

From-SVN: r171403

13 years agoeinfo.ads (Size_Depends_On_Discriminant): Adjust description.
Eric Botcazou [Thu, 24 Mar 2011 16:08:50 +0000 (16:08 +0000)]
einfo.ads (Size_Depends_On_Discriminant): Adjust description.

* einfo.ads (Size_Depends_On_Discriminant): Adjust description.
* layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
to compute Set_Size_Depends_On_Discriminant.
(Layout_Type): Call it on array types in back-end layout mode.
* sem_util.adb (Requires_Transient_Scope): Return true for array
types only if the size depends on the value of discriminants.
* gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
type if the RHS is a call to a function that returns an unconstrained
type with default discriminant.

From-SVN: r171402

13 years agomoveable2.cc: Tweak Copyright years.
Paolo Carlini [Thu, 24 Mar 2011 15:57:57 +0000 (15:57 +0000)]
moveable2.cc: Tweak Copyright years.

2011-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/21_strings/basic_string/cons/char/moveable2.cc: Tweak
Copyright years.
* testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc:
Likewise.

From-SVN: r171401