This merge brings google/gcc-4_6 up to date with google/main rev
173286, minus rev 173258 (we found an issue with that revision that
Chris is going to address). It also merged from gcc-4_6-branch rev
173305.
Validated on x86_64. Attached are the list of changes brought in from
google/main and gcc-4_6-branch.
Diego.
Merged revisions
172725,172736,172789,172874-172880,172951-172952,172987,172992,173003,173049,173148,173158-173165,173179-173180,173184,173186-173187,173196,173198,173209,173241,173254,173270-173271,173276,173286
via svnmerge from
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/main
........
r172725 | davidxl | 2011-04-19 13:09:41 -0400 (Tue, 19 Apr 2011) | 1 line
fix potential div by zero error
........
r172736 | martinthuresson | 2011-04-19 17:44:37 -0400 (Tue, 19 Apr 2011) | 5
lines
2011-04-19 Martin Thuresson <[email protected]>
* libgcov.c (gcov_version): Do not access filename in struct
generated from different version.
........
r172789 | eraman | 2011-04-20 15:11:01 -0400 (Wed, 20 Apr 2011) | 5 lines
2011-04-19 Easwaran Raman <[email protected]>
* gcc/gcc.c (asm_options): Pass --save-temps to assembler.
........
r172874 | davidxl | 2011-04-22 16:32:04 -0400 (Fri, 22 Apr 2011) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-172873" from
svn+ssh://[email protected]/svn/gcc/branches/lw-ipo
........
r172875 | davidxl | 2011-04-22 16:47:35 -0400 (Fri, 22 Apr 2011) | 3 lines
Removed merge tracking for "svnmerge" for
svn+ssh://[email protected]/svn/gcc/branches/lw-ipo
........
r172876 | davidxl | 2011-04-22 16:48:31 -0400 (Fri, 22 Apr 2011) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-147116" from
svn+ssh://[email protected]/svn/gcc/branches/lw-ipo
........
r172877 | davidxl | 2011-04-22 16:53:25 -0400 (Fri, 22 Apr 2011) | 3 lines
Removed merge tracking for "svnmerge" for
svn+ssh://[email protected]/svn/gcc/branches/lw-ipo
........
r172878 | davidxl | 2011-04-22 16:55:09 -0400 (Fri, 22 Apr 2011) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-172877" from
svn+ssh://gcc.gnu.org/svn/gcc/branches/lw-ipo
........
r172879 | davidxl | 2011-04-22 16:56:15 -0400 (Fri, 22 Apr 2011) | 3 lines
Removed merge tracking for "svnmerge" for
svn+ssh://gcc.gnu.org/svn/gcc/branches/lw-ipo
........
r172880 | davidxl | 2011-04-22 16:56:54 -0400 (Fri, 22 Apr 2011) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-147116" from
svn+ssh://gcc.gnu.org/svn/gcc/branches/lw-ipo
........
r172951 | carrot | 2011-04-25 21:55:33 -0400 (Mon, 25 Apr 2011) | 5 lines
* gcc/config/arm/arm.c (SHORTEST_FAR_JUMP_LENGTH): New constant.
(estimate_function_length): New function.
(thumb_far_jump_used_p): No far jump is needed in short function.
........
r172952 | davidxl | 2011-04-26 00:38:46 -0400 (Tue, 26 Apr 2011) | 1 line
Port LIPO support to google/main
........
r172987 | eraman | 2011-04-26 17:14:31 -0400 (Tue, 26 Apr 2011) | 6 lines
2011-04-26 Easwaran Raman <[email protected]>
* gcc/gcc.c (asm_options): Pass --save-temps to assembler
when invoked with -save-temps= option.
........
r172992 | lcwu | 2011-04-26 18:58:12 -0400 (Tue, 26 Apr 2011) | 1 line
Port the implementation of -Wself-assign to google/main.
........
r173003 | davidxl | 2011-04-26 20:20:53 -0400 (Tue, 26 Apr 2011) | 1 line
backport 172978 172870 and 172848 to google/main
........
r173049 | davidxl | 2011-04-27 19:26:52 -0400 (Wed, 27 Apr 2011) | 1 line
Fix lipo regression with pid change
........
r173148 | davidxl | 2011-04-28 20:31:58 -0400 (Thu, 28 Apr 2011) | 1 line
LIPO regression test and bug fixes
........
r173158 | dnovillo | 2011-04-29 10:33:32 -0400 (Fri, 29 Apr 2011) | 15 lines
2011-04-27 Silvius Rus <[email protected]>
* doc/invoke.texi (fno-strict-enum-precision): Document.
* gimplify.c (gimplify_switch_expr): If
-fno-strict-enum-precision is given, do not consider enum
types.
* tree-vrp.c (stmt_interesting_for_vrp): If
-fno-strict-enum-precision is given, do not look at enum
types.
2011-04-27 Silvius Rus <[email protected]>
* g++.dg/other/no-strict-enum-precision-1.C: New.
* g++.dg/other/no-strict-enum-precision-2.C: New.
* g++.dg/other/no-strict-enum-precision-3.C: New.
........
r173159 | dnovillo | 2011-04-29 10:34:15 -0400 (Fri, 29 Apr 2011) | 33 lines
cp/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* cp-tree.h (LOOKUP_EXPLICIT_TMPL_ARGS): Define.
* call.c (build_new_function_call): Set it for TEMPLATE_ID_EXPRs.
(build_over_call): Use it to determine whether to emit a NULL
warning for template function instantiations.
(build_new_method_call): Set LOOKUP_EXPLICIT_TMPL_ARGS if
EXPLICIT_TARGS is set.
testsuite/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* g++.dg/warn/Wnull-conversion-1.C: New.
* g++.dg/warn/Wnull-conversion-2.C: New.
cp/ChangeLog.google-main
2011-04-28 Diego Novillo <[email protected]>
Le-Chun Wu <[email protected]>
* call.c (conversion_null_warnings): Also handle assignments
when warning about NULL conversions.
testsuite/ChangeLog.google-main
2011-04-28 Le-Chun Wu <[email protected]>
* g++.dg/warn/Wconversion-null-2.C: Do not expect a NULL
warning in implicitly instantiated templates.
2011-04-29 Diego Novillo <[email protected]>
* g++.old-deja/g++.other/null3.C: Expect warning about converting
boolean to a pointer.
........
r173160 | dnovillo | 2011-04-29 10:35:08 -0400 (Fri, 29 Apr 2011) | 1 line
Move ChangeLog entries to their proper place.
........
r173161 | dnovillo | 2011-04-29 10:36:08 -0400 (Fri, 29 Apr 2011) | 30 lines
ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* c-decl.c (warn_if_shadowing): Use the warning code corresponding
to the given -Wshadow- variant.
* common.opt (Wshadow-local): New option.
(Wshadow-compatible-local): New option.
* invoke.texi: Document Wshadow-local and Wshadow-compatible-local.
* opts.c (common_handle_option): Handle OPT_Wshadow and
OPT_Wshadow_local.
Do not enable Wshadow-local nor Wshadow-compatible-local if
Wshadow is disabled.
cp/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* name-lookup.c (pushdecl_maybe_friend): When emitting a
shadowing warning, use the code corresponding to the
given -Wshadow- variant.
testsuite/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* g++.dg/warn/Wshadow-compatible-local-1.C: New.
* g++.dg/warn/Wshadow-local-1.C: New.
* g++.dg/warn/Wshadow-local-2.C: New.
* gcc.dg/Wshadow-compatible-local-1.c: New.
* gcc.dg/Wshadow-local-1.c: New.
* gcc.dg/Wshadow-local-2.c: New.
* gcc.dg/Wshadow-local-3.c: New.
........
r173162 | dnovillo | 2011-04-29 10:36:50 -0400 (Fri, 29 Apr 2011) | 13 lines
c-family/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* c.opt (Wreal-conversion): New flag.
* c-common.c (conversion_warning): Use it.
* c-opts.c (c_common_post_options): Initialize it.
* doc/invoke.texi (Wreal-conversion): Document it.
testsuite/ChangeLog.google-main:
2011-04-27 Le-Chun Wu <[email protected]>
* g++.dg/warn/Wreal-conversion-1.C: New.
* gcc.dg/Wreal-conversion-1.c: New.
........
r173163 | dnovillo | 2011-04-29 10:37:33 -0400 (Fri, 29 Apr 2011) | 15 lines
c-family/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* c.opt (Wnonnull): Enable for C++.
ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* doc/extend.texi (Wnonnull): Add documentation for C++.
* doc/invoke.texi (Wnonnull): Add documentation for C++.
testsuite/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* g++.dg/warn/Wnonnull-1.C: New.
........
r173164 | dnovillo | 2011-04-29 10:38:14 -0400 (Fri, 29 Apr 2011) | 10 lines
c-family/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* c-common.c (handle_nonnull_attribute): Check whether the nonnull
attribute is applied to the 'this' pointer for non-static methods.
testsuite/ChangeLog.google-main
2011-04-27 Le-Chun Wu <[email protected]>
* g++.dg/warn/nonnull2.C: New.
........
r173165 | dnovillo | 2011-04-29 10:38:55 -0400 (Fri, 29 Apr 2011) | 14 lines
2011-04-28 Diego Novillo <[email protected]>
* g++.dg/other/no-strict-enum-precision-1.C: Re-indent using GNU style.
* g++.dg/other/no-strict-enum-precision-2.C: Likewise.
* g++.dg/other/no-strict-enum-precision-3.C: Likewise.
* g++.dg/warn/Wconversion-null-2.C: Likewise.
* g++.dg/warn/Wnonnull-1.C: Likewise.
* g++.dg/warn/Wnull-conversion-1.C: Likewise.
* g++.dg/warn/Wnull-conversion-2.C: Likewise.
* g++.dg/warn/Wreal-conversion-1.C: Likewise.
* g++.dg/warn/Wshadow-local-1.C: Likewise.
* g++.dg/warn/nonnull2.C: Likewise.
* gcc.dg/Wreal-conversion-1.c: Likewise.
* gcc.dg/Wshadow-compatible-local-1.c: Likewise.
........
r173179 | dnovillo | 2011-04-29 13:36:23 -0400 (Fri, 29 Apr 2011) | 1 line
Add missing Google reference numbers to ChangeLogs
........
r173180 | dnovillo | 2011-04-29 13:53:11 -0400 (Fri, 29 Apr 2011) | 2 lines
* c-common.c (handle_nonnull_attribute): Remove spurious
white space.
........
r173184 | dnovillo | 2011-04-29 16:21:56 -0400 (Fri, 29 Apr 2011) | 2 lines
* c-c++-common/Wreal-conversion-1.c: Move from gcc.dg.
* g++.dg/warn/Wreal-conversion-1.C: Remove.
........
r173186 | dnovillo | 2011-04-29 16:56:41 -0400 (Fri, 29 Apr 2011) | 7 lines
2011-04-28 Sharad Singhai <[email protected]>
Google Ref 40087
* opts.c (common_handle_option): Disable -ftracer for profile use.
* doc/invoke.texi: Update doc that -ftracer is no longer
enabled for FDO.
........
r173187 | dnovillo | 2011-04-29 16:57:22 -0400 (Fri, 29 Apr 2011) | 15 lines
2011-04-28 Sharad Singhai <[email protected]>
gcc/ChangeLog.google-main
* params.def: Add new parameters to control peeling.
* tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
different peeling parameters when profile feedback is available.
* loop-unroll.c (decide_peel_once_rolling): Ditto.
(decide_peel_completely): Ditto.
* doc/invoke.texi: Document new peeling parameters.
testsuite/ChangeLog.google-main
* gcc.dg/vect/O3-vect-pr34223.c: Add extra peeling
parameters.
* gcc.dg/vect/vect.exp: Allow reading flags in individual
tests.
........
r173196 | ccoutant | 2011-04-29 19:21:39 -0400 (Fri, 29 Apr 2011) | 31 lines
* basic-block.h (struct basic_block_def): Remove discriminator field.
* cfghooks.c (split_block): Remove discriminator field.
* cfglayout.c (insn_discriminator): New function.
* final.c (discriminator): Remove.
(override_discriminator): New file-scope variable.
(final_start_function): Remove tracking of discriminator by basic
block.
(final_scan_insn): Track discriminator by instruction.
(notice_source_line): Check for discriminator override. Get
discriminator from instruction.
* gimple-pretty-print.c (dump_gimple_stmt): Print discriminator.
(dump_bb_header): Don't print discriminator.
* input.c: Include vecprim.h.
(discriminator_location_locations): New variable.
(discriminator_location_discriminators): New variable.
(min_discriminator_location): New variable.
(expand_location): Use map_discriminator_location.
(location_with_discriminator): New function.
(has_discriminator): New function.
(map_discriminator_location): New function.
(get_discriminator_from_locus): New function.
* input.h (location_with_discriminator): New function.
(has_discriminator): New function.
(map_discriminator_location): New function.
(get_discriminator_from_locus): New function.
* print-rtl.c (print_rtx): Print discriminator.
* rtl.h (insn_discriminator): New function.
* tree-cfg.c: Include input.h.
(assign_discriminator): Assign discriminators to instructions rather
than to the basic block.
* tree-pretty-print.c (dump_location): Print discriminator.
........
r173198 | ccoutant | 2011-04-29 20:09:02 -0400 (Fri, 29 Apr 2011) | 23 lines
gcc/ChangeLog:
* common.opt (generate_debug_line_table): New global var.
(gmlt): New option
* dwarf2out.c (GENERATE_MINIMUM_LINE_TABLE): New macro.
(add_pubname_string): Test for -gmlt.
(add_pubname): Likewise.
(add_src_coords_attributes): Likewise.
(decls_for_scope): Likewise.
(dwarf2out_source_line): Likewise.
(dwarf2out_finish): Likewise.
* opts.c (finish_options): Force debug info to at least level 1
if -gmlt specified.
(common_handle_option): Add OPT_gmlt.
(set_debug_level): Set generate_debug_line_table flag.
* tree-ssa-live.c (remove_unused_scope_block_p): Test for -gmlt.
* doc/invoke.texi (-gmlt): New options
gcc/testsuite/ChangeLog:
* gcc.dg/debug/dwarf2/mlt1.c: New test.
* gcc.dg/debug/dwarf2/mlt2.c: New test.
........
r173209 | carrot | 2011-04-30 04:07:46 -0400 (Sat, 30 Apr 2011) | 21 lines
* hooks.c (hook_rtx_void_null): New function.
* hooks.h (hook_rtx_void_null): New prototype.
* target.def (got_access): New hook vector declaration.
* tree-pass.h (pass_simplify_got): New pass.
* timevar.def (TV_SIMPLIFY_GOT): New TV id.
* simplify-got.c: New source file.
* Makefile.in (simplify-got.o): Add a new file.
* passes.c (init_optimization_passes): Add a new pass.
* config/arm/arm.c (arm_output_addr_const_extra): Output GOT_PREL
relocation.
(arm_get_pic_reg): New function.
(arm_clear_pic_reg): New function.
(arm_can_simplify_got_access): New function.
(arm_loaded_global_var): New function.
(arm_load_global_address): New function.
* config/arm/arm.md (UNSPEC_GOT_PREL_SYM): New UNSPEC symbol.
* testsuite/gcc.target/arm/got1.c: New testcase.
* testsuite/gcc.target/arm/got2.c: New testcase.
........
r173241 | davidxl | 2011-05-02 01:22:29 -0400 (Mon, 02 May 2011) | 1 line
LIPO multi-source tests
........
r173254 | aaw | 2011-05-02 10:48:10 -0400 (Mon, 02 May 2011) | 15 lines
* include/ext/sso_string_base.h (__sso_string_base<>::_M_construct):
Fix unqualified lookup.
(__sso_string_base<>::_M_construct): Likewise.
(__sso_string_base<>::_M_construct): Likewise.
(__sso_string_base<>::_M_assign): Likewise.
(__sso_string_base<>::_M_reserve): Likewise.
(__sso_string_base<>::_M_mutate): Likewise.
(__sso_string_base<>::_M_erase): Likewise.
* include/ext/vstring.h (__versa_string<>::replace): Likewise.
(__versa_string<>::compare): Likewise.
* include/ext/vstring.tcc (__versa_string<>::compare): Likewise.
(__versa_string<>::compare): Likewise.
(__versa_string<>::compare): Likewise.
(__versa_string<>::compare): Likewise.
(__versa_string<>::compare): Likewise.
........
r173270 | dnovillo | 2011-05-02 16:17:47 -0400 (Mon, 02 May 2011) | 4 lines
Merge from google/integration rev 173255.
........
r173271 | tmsriram | 2011-05-02 16:36:59 -0400 (Mon, 02 May 2011) | 45 lines
2011-05-02 Sriraman Tallam <[email protected]>
* c-family/c-common.c (revision 173122)
(handle_version_selector_attribute): New function.
(c_common_attribute_table): New attribute "version_selector".
* tree-pass.h (revision 173122) (pass_tree_convert_builtin_dispatch):
New pass.
(pass_ipa_multiversion_dispatch): New pass.
* testsuite/gcc.dg/mversn7.c (revision 0): New test case.
* testsuite/gcc.dg/mversn4.c (revision 0): New test case.
* testsuite/gcc.dg/mversn4.h (revision 0): New test case.
* testsuite/gcc.dg/mversn4a.c (revision 0): New test case.
* testsuite/gcc.dg/torture/mversn1.c (revision 0): New test case.
* testsuite/gcc.dg/mversn2.c (revision 0): New test case.
* testsuite/gcc.dg/mversn6.c (revision 0): New test case.
* testsuite/gcc.dg/mversn3.c (revision 0): New test case.
* testsuite/g++.dg/mversn8.C (revision 0): New test case.
* testsuite/g++.dg/mversn10a.C (revision 0): New test case.
* testsuite/g++.dg/mversn14a.C (revision 0): New test case.
* testsuite/g++.dg/tree-prof/mversn13.C (revision 0): New test case.
* testsuite/g++.dg/tree-prof/mversn15.C (revision 0): New test case.
* testsuite/g++.dg/tree-prof/mversn15a.C (revision 0): New test
case.
* testsuite/g++.dg/mversn9.C (revision 0): New test case.
* testsuite/g++.dg/mversn10.C (revision 0): New test case.
* testsuite/g++.dg/mversn12.C (revision 0): New test case.
* testsuite/g++.dg/mversn14.C (revision 0): New test case.
* testsuite/g++.dg/mversn16.C (revision 0): New test case.
* testsuite/g++.dg/torture/mversn11.C (revision 0): New test case.
* testsuite/g++.dg/torture/mversn5.C (revision 0): New test case.
* testsuite/g++.dg/torture/mversn5.h (revision 0): New test case.
* testsuite/g++.dg/torture/mversn5a.C (revision 0): New test case.
* builtin-types.def (revision 173122) (BT_PTR_FN_INT): New pointer
type.
(BT_FN_INT_PTR_FN_INT_PTR_PTR_VAR): New function type for
__builtin_dispatch.
* builtins.def (revision 173122) (BUILT_IN_DISPATCH): New builtin to
support multi-version calls.
* mversn-dispatch.c (revision 0): New file.
* timevar.def (revision 173122) (TV_MVERSN_DISPATCH): New time var.
* common.opt (revision 173122) (fclone-hot-version-paths): New flag.
* Makefile.in (revision 173122) (mversn-dispatch.o): New rule.
* passes.c (revision 173122) (init_optimization_passes): Add the
new
multi-version and dispatch passes to the pass list.
* params.def (revision 173122) (PARAM_NUMBER_OF_MVERSN_CLONES):
Define.
(PARAM_MVERSN_CLONE_CGRAPH_DEPTH): Define.
* doc/invoke.texi (revision 173122) (mversn-clone-depth):
Document.
(num-mversn-clones): Document.
(fclone-hot-version-paths): Document.
........
r173276 | davidxl | 2011-05-02 18:10:56 -0400 (Mon, 02 May 2011) | 1 line
fix change log
........
r173286 | tmsriram | 2011-05-02 21:54:02 -0400 (Mon, 02 May 2011) | 49 lines
2011-05-02 Sriraman Tallam <[email protected]>
Revert :
2011-05-02 Sriraman Tallam <[email protected]>
* c-family/c-common.c (revision 173122)
(handle_version_selector_attribute): New function.
(c_common_attribute_table): New attribute "version_selector".
* tree-pass.h (revision 173122) (pass_tree_convert_builtin_dispatch):
New pass.
(pass_ipa_multiversion_dispatch): New pass.
* testsuite/gcc.dg/mversn7.c (revision 0): New test case.
* testsuite/gcc.dg/mversn4.c (revision 0): New test case.
* testsuite/gcc.dg/mversn4.h (revision 0): New test case.
* testsuite/gcc.dg/mversn4a.c (revision 0): New test case.
* testsuite/gcc.dg/torture/mversn1.c (revision 0): New test case.
* testsuite/gcc.dg/mversn2.c (revision 0): New test case.
* testsuite/gcc.dg/mversn6.c (revision 0): New test case.
* testsuite/gcc.dg/mversn3.c (revision 0): New test case.
* testsuite/g++.dg/mversn8.C (revision 0): New test case.
* testsuite/g++.dg/mversn10a.C (revision 0): New test case.
* testsuite/g++.dg/mversn14a.C (revision 0): New test case.
* testsuite/g++.dg/tree-prof/mversn13.C (revision 0): New test case.
* testsuite/g++.dg/tree-prof/mversn15.C (revision 0): New test case.
* testsuite/g++.dg/tree-prof/mversn15a.C (revision 0): New test
case.
* testsuite/g++.dg/mversn9.C (revision 0): New test case.
* testsuite/g++.dg/mversn10.C (revision 0): New test case.
* testsuite/g++.dg/mversn12.C (revision 0): New test case.
* testsuite/g++.dg/mversn14.C (revision 0): New test case.
* testsuite/g++.dg/mversn16.C (revision 0): New test case.
* testsuite/g++.dg/torture/mversn11.C (revision 0): New test case.
* testsuite/g++.dg/torture/mversn5.C (revision 0): New test case.
* testsuite/g++.dg/torture/mversn5.h (revision 0): New test case.
* testsuite/g++.dg/torture/mversn5a.C (revision 0): New test case.
* builtin-types.def (revision 173122) (BT_PTR_FN_INT): New pointer
type.
(BT_FN_INT_PTR_FN_INT_PTR_PTR_VAR): New function type for
__builtin_dispatch.
* builtins.def (revision 173122) (BUILT_IN_DISPATCH): New builtin to
support multi-version calls.
* mversn-dispatch.c (revision 0): New file.
* timevar.def (revision 173122) (TV_MVERSN_DISPATCH): New time var.
* common.opt (revision 173122) (fclone-hot-version-paths): New flag.
* Makefile.in (revision 173122) (mversn-dispatch.o): New rule.
* passes.c (revision 173122) (init_optimization_passes): Add the
new
multi-version and dispatch passes to the pass list.
* params.def (revision 173122) (PARAM_NUMBER_OF_MVERSN_CLONES):
Define.
(PARAM_MVERSN_CLONE_CGRAPH_DEPTH): Define.
* doc/invoke.texi (revision 173122) (mversn-clone-depth):
Document.
(num-mversn-clones): Document.
(fclone-hot-version-paths): Document.
........
Merged revisions
172640,172650,172656,172661,172675-172676,172679,172688,172691,172701,172714,172723,172749,172756,172762,172765,172767,172786,172791,172797,172801,172805-172806,172829,172831,172836,172843,172852,172860,172867,172869,172888,172893,172896,172900-172901,172904,172908,172912,172928,172942,172949,172953,172963,172969-172970,172974,172993,173001,173008,173012,173033,173038,173053,173121,173126-173127,173131,173137,173145,173191,173195,173203,173208,173214,173218,173228,173230,173239,173246,173283,173289,173299,173302
via svnmerge from
svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch
........
r172640 | jakub | 2011-04-18 03:38:11 -0400 (Mon, 18 Apr 2011) | 7 lines
PR tree-optimization/48616
* tree-vect-stmts.c (vectorizable_shift): If SLP, determine
whether the shift is by scalar or vector based on whether all SLP
scalar stmts have the same rhs.
* gcc.dg/pr48616.c: New test.
........
r172650 | rguenth | 2011-04-18 10:25:57 -0400 (Mon, 18 Apr 2011) | 5 lines
2011-04-18 Richard Guenther <[email protected]>
PR middle-end/46364
* g++.dg/torture/pr46364.C: New testcase.
........
r172656 | jb | 2011-04-18 11:49:16 -0400 (Mon, 18 Apr 2011) | 6 lines
PR 47571 Fix weakref trickery breakage on alpha-dec-osf
This is a backport from mainline r172469.
It also removes the temporary fix from r171095.
........
r172661 | ebotcazou | 2011-04-18 13:37:55 -0400 (Mon, 18 Apr 2011) | 2 lines
* dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
........
r172675 | jakub | 2011-04-18 17:56:12 -0400 (Mon, 18 Apr 2011) | 6 lines
PR c++/48632
* parser.c (cp_parser_omp_for_loop): Don't use cp_parser_omp_for_incr
for type dependent pointers.
* g++.dg/gomp/pr48632.C: New test.
........
r172676 | jakub | 2011-04-18 17:58:03 -0400 (Mon, 18 Apr 2011) | 13 lines
PR middle-end/48661
* gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
if TREE_TYPE (v) is non-NULL.
* gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
gimple_get_virt_mehtod_for_binfo.
* gimple.h (gimple_get_virt_method_for_binfo): Likewise.
* ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
callers.
* ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
* g++.dg/torture/pr48661.C: New test.
........
r172679 | jason | 2011-04-18 19:29:30 -0400 (Mon, 18 Apr 2011) | 2 lines
PR c++/48537
* init.c (build_value_init): Handle UNION_TYPE the same.
........
r172688 | gccadmin | 2011-04-18 20:18:09 -0400 (Mon, 18 Apr 2011) | 1 line
Daily bump.
........
r172691 | hp | 2011-04-18 23:58:04 -0400 (Mon, 18 Apr 2011) | 4 lines
PR testsuite/48675
* testsuite/20_util/hash/chi2_quality.cc (test_document_words): Stub
this part if SAMPLES < 100000.
........
r172701 | rguenth | 2011-04-19 05:14:05 -0400 (Tue, 19 Apr 2011) | 5 lines
2011-04-18 Richard Guenther <[email protected]>
PR preprocessor/48248
* c-ppoutput.c (maybe_print_line): Avoid changing -P behavior.
........
r172714 | danglin | 2011-04-19 11:20:09 -0400 (Tue, 19 Apr 2011) | 3 lines
Fix typo.
........
r172723 | jakub | 2011-04-19 12:49:19 -0400 (Tue, 19 Apr 2011) | 6 lines
PR target/48678
* config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
is a SUBREG with non-MODE_INT mode inside of it.
* gcc.target/i386/pr48678.c: New test.
........
r172749 | gccadmin | 2011-04-19 20:18:03 -0400 (Tue, 19 Apr 2011) | 1 line
Daily bump.
........
r172756 | jason | 2011-04-20 02:31:51 -0400 (Wed, 20 Apr 2011) | 2 lines
PR c++/46304
* typeck.c (cp_build_binary_op): Fold COMPLEX_EXPR.
........
r172762 | ebotcazou | 2011-04-20 05:25:33 -0400 (Wed, 20 Apr 2011) | 2 lines
* bootstrap-lto.mk: Remove obsolete requirement.
........
r172765 | rguenth | 2011-04-20 05:48:00 -0400 (Wed, 20 Apr 2011) | 10 lines
2011-04-20 Richard Guenther <[email protected]>
Backport from mainline
2011-04-19 Bernd Schmidt <[email protected]>
PR fortran/47976
* reload1.c (inc_for_reload): Return void. All callers changed.
(emit_input_reload_insns): Don't try to delete previous output
reloads to a register, or record spill_reg_store for autoincs.
........
r172767 | ebotcazou | 2011-04-20 07:18:50 -0400 (Wed, 20 Apr 2011) | 13 lines
Backport from mainline
2011-04-19 Eric Botcazou <[email protected]>
PR lto/48148
* gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
the types if they have different enumeration identifiers.
2011-04-18 Eric Botcazou <[email protected]>
PR lto/48492
* cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
DECL_IN_CONSTANT_POOL without RTL.
........
r172786 | jakub | 2011-04-20 14:19:47 -0400 (Wed, 20 Apr 2011) | 4 lines
PR tree-optimization/48611
* tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
beyond ERT_MUST_NOT_THROW region.
........
r172791 | jason | 2011-04-20 15:39:26 -0400 (Wed, 20 Apr 2011) | 3 lines
PR c++/48657
* decl.c (cp_finish_decl): Handle non-member constant variables
in templates, too.
........
r172797 | danglin | 2011-04-20 19:36:20 -0400 (Wed, 20 Apr 2011) | 9 lines
PR target/48288
* config/pa/predicates.md (ior_operand): Delete predicate.
(cint_ior_operand, reg_or_cint_ior_operand): New predicates.
* config/pa/pa.md (iordi3): Use reg_or_cint_ior_operand predicate in
expander. Use cint_ior_operand in unnamed insn.
(iorsi3): Likewise.
* config/pa/pa-protos.h (ior_operand): Delete declarations.
........
r172801 | gccadmin | 2011-04-20 20:18:09 -0400 (Wed, 20 Apr 2011) | 1 line
Daily bump.
........
r172805 | jason | 2011-04-20 23:03:08 -0400 (Wed, 20 Apr 2011) | 3 lines
PR c++/48594
* decl2.c (build_offset_ref_call_from_tree): Move
non-dependency of object outside condition.
........
r172806 | jason | 2011-04-21 00:27:30 -0400 (Thu, 21 Apr 2011) | 2 lines
* semantics.c (finish_compound_literal): Don't put an array
with a dtor in a static variable.
........
r172829 | ebotcazou | 2011-04-21 10:18:54 -0400 (Thu, 21 Apr 2011) | 2 lines
* gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
........
r172831 | rguenth | 2011-04-21 10:40:53 -0400 (Thu, 21 Apr 2011) | 9 lines
2011-04-21 Richard Guenther <[email protected]>
PR middle-end/48695
* tree-ssa-alias.c (aliasing_component_refs_p): Compute base
objects and types here. Adjust for their offset before
comparing.
* g++.dg/torture/pr48695.C: New testcase.
........
r172836 | jsm28 | 2011-04-21 13:02:45 -0400 (Thu, 21 Apr 2011) | 2 lines
* de.po: Update.
........
r172843 | uros | 2011-04-21 16:23:55 -0400 (Thu, 21 Apr 2011) | 10 lines
PR target/48708
* config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
vec_extract and vec_concat for non-SSE4_1 targets.
testsuite/ChangeLog:
PR target/48708
* gcc.target/i386/pr48708.c: New test.
........
r172852 | gccadmin | 2011-04-21 20:17:45 -0400 (Thu, 21 Apr 2011) | 1 line
Daily bump.
........
r172860 | jakub | 2011-04-22 10:11:44 -0400 (Fri, 22 Apr 2011) | 7 lines
PR c/48716
* gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
TREE_STATIC variables declared inside of some OpenMP construct.
* gcc.dg/gomp/pr48716.c: New test.
* g++.dg/gomp/pr48716.C: New test.
........
r172867 | uros | 2011-04-22 14:43:57 -0400 (Fri, 22 Apr 2011) | 10 lines
PR target/48723
* config/i386/i386.c (ix86_expand_prologue): Update m->fs.sp_offset
after the call to ix86_adjust_stack_and_probe.
testsuite/ChangeLog:
PR target/48723
* gcc.target/i386/pr48723.c: New test.
........
r172869 | jakub | 2011-04-22 14:53:30 -0400 (Fri, 22 Apr 2011) | 6 lines
PR tree-optimization/48717
* tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
~A + A optimizations use build_int_cst_type instead of build_int_cst.
* gcc.c-torture/execute/pr48717.c: New test.
........
r172888 | gccadmin | 2011-04-22 20:18:27 -0400 (Fri, 22 Apr 2011) | 1 line
Daily bump.
........
r172893 | uros | 2011-04-23 03:41:43 -0400 (Sat, 23 Apr 2011) | 7 lines
Revert:
2011-04-22 Uros Bizjak <[email protected]>
PR target/48723
* config/i386/i386.c (ix86_expand_prologue): Update m->fs.sp_offset
after the call to ix86_adjust_stack_and_probe.
........
r172896 | jakub | 2011-04-23 06:18:54 -0400 (Sat, 23 Apr 2011) | 6 lines
PR c/48685
* fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
to VOID_TYPE even around MODIFY_EXPR.
* gcc.dg/pr48685.c: New test.
........
r172900 | danglin | 2011-04-23 13:47:17 -0400 (Sat, 23 Apr 2011) | 4 lines
* gcc.dg/pr48616.c (dg-options): Add -fno-common to options on
hppa*-*-hpux*.
........
r172901 | redi | 2011-04-23 13:51:31 -0400 (Sat, 23 Apr 2011) | 22 lines
2011-04-23 Jonathan Wakely <[email protected]>
PR libstdc++/48521
* include/std/type_traits (result_of): Handle pointer to member.
* include/std/functional (__invoke): Likewise.
(_Function_to_function_pointer): Remove.
(_Reference_wrapper_base): Provide nested types independent of
unary_function and binary_function.
(reference_wrapper::operator()): DR 2017.
(ref(const A&&), cref(const A&&): Define as deleted.
* include/std/future (async): Simplify SFINAE and use result_of to
support pointer to member.
* testsuite/20_util/reference_wrapper/invoke.cc: Test pointer to
member.
* testsuite/20_util/reference_wrapper/24803.cc: Likewise.
* testsuite/20_util/reference_wrapper/typedefs.cc: Test for types
instead of derivation from unary_function and binary_function.
* testsuite/20_util/reference_wrapper/invoke-2.cc: New.
* testsuite/20_util/reference_wrapper/ref_neg.c: New.
* testsuite/20_util/reference_wrapper/typedefs-3.c: New.
........
r172904 | jakub | 2011-04-23 19:33:39 -0400 (Sat, 23 Apr 2011) | 7 lines
PR preprocessor/48740
* lex.c (lex_raw_string): When raw string ends with
??) followed by raw prefix and ", ensure it is preprocessed
with ??) rather than ??].
* c-c++-common/raw-string-11.c: New test.
........
r172908 | gccadmin | 2011-04-23 20:18:30 -0400 (Sat, 23 Apr 2011) | 1 line
Daily bump.
........
r172912 | paolo | 2011-04-24 05:43:29 -0400 (Sun, 24 Apr 2011) | 7 lines
2011-04-24 Paolo Carlini <[email protected]>
PR other/48748
* doc/extend.texi (Type Traits): Document __is_standard_layout,
__is_literal_type, and __is_trivial; update throughout about
possibly cv-qualified void types.
........
r172928 | gccadmin | 2011-04-24 20:18:02 -0400 (Sun, 24 Apr 2011) | 1 line
Daily bump.
........
r172942 | jason | 2011-04-25 17:53:57 -0400 (Mon, 25 Apr 2011) | 3 lines
PR c++/48707
* pt.c (value_dependent_expression_p): Handle type-dependent
expression.
........
r172949 | gccadmin | 2011-04-25 20:18:53 -0400 (Mon, 25 Apr 2011) | 1 line
Daily bump.
........
r172953 | burnus | 2011-04-26 04:41:31 -0400 (Tue, 26 Apr 2011) | 14 lines
2011-04-26 Tobias Burnus <[email protected]>
PR fortran/48588
* parse.c (resolve_all_program_units): Skip modules.
(translate_all_program_units): Handle modules.
(gfc_parse_file): Defer code generation for modules.
* module.c (fix_mio_expr): Commit created symbol.
2011-04-26 Tobias Burnus <[email protected]>
PR fortran/48588
* gfortran.dg/whole_file_33.f90: New.
........
r172963 | rguenth | 2011-04-26 08:59:22 -0400 (Tue, 26 Apr 2011) | 7 lines
2011-04-26 Richard Guenther <[email protected]>
PR tree-optimization/48731
* ipa-inline.c (cgraph_flatten): Test if function is inlinable.
* gcc.dg/torture/pr48731.c: New testcase.
........
r172969 | jakub | 2011-04-26 09:44:51 -0400 (Tue, 26 Apr 2011) | 7 lines
PR tree-optimization/48734
* tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
if return value from maybe_fold_*_comparsions isn't something
the code is prepared to handle.
* gcc.c-torture/compile/pr48734.c: New test.
........
r172970 | jakub | 2011-04-26 09:47:13 -0400 (Tue, 26 Apr 2011) | 6 lines
PR debug/48768
* tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
is error_mark_node, set value to NULL.
* gcc.dg/pr48768.c: New test.
........
r172974 | jsm28 | 2011-04-26 10:57:30 -0400 (Tue, 26 Apr 2011) | 2 lines
* de.po: Update.
........
r172993 | jason | 2011-04-26 19:42:50 -0400 (Tue, 26 Apr 2011) | 3 lines
PR c++/48726
* call.c (convert_like_real): Correct TREE_CONSTANT on CONSTRUCTOR.
* decl.c (reshape_init_array_1): Likewise.
........
r173001 | gccadmin | 2011-04-26 20:19:00 -0400 (Tue, 26 Apr 2011) | 1 line
Daily bump.
........
r173008 | jason | 2011-04-27 01:20:06 -0400 (Wed, 27 Apr 2011) | 3 lines
PR c++/42687
* parser.c (cp_parser_primary_expression): Set *idk to
CP_ID_KIND_NONE for a parenthesized identifier.
........
r173012 | jakub | 2011-04-27 03:05:54 -0400 (Wed, 27 Apr 2011) | 6 lines
PR c/48742
* c-typeck.c (build_binary_op): Don't wrap arguments if
int_operands is true.
* gcc.c-torture/compile/pr48742.c: New test.
........
r173033 | nickc | 2011-04-27 10:55:28 -0400 (Wed, 27 Apr 2011) | 8 lines
* gcc.dg/20020312-2.c: Add definition for RX.
* lib/target-supports.exp (add_options_for_ieee): Use -mnofpu
option with RX targets.
* gcc.target/rx/pack.c: Replace C++ style // comments with C style
/* */ comments.
........
r173038 | jason | 2011-04-27 11:57:06 -0400 (Wed, 27 Apr 2011) | 3 lines
PR c++/48046
* parser.c (cp_parser_diagnose_invalid_type_name): Commit
to tentative parse sooner.
........
r173053 | gccadmin | 2011-04-27 20:18:17 -0400 (Wed, 27 Apr 2011) | 1 line
Daily bump.
........
r173121 | jakub | 2011-04-28 13:01:55 -0400 (Thu, 28 Apr 2011) | 4 lines
PR middle-end/48597
* final.c (final_scan_insn): Call dwarf2out_frame_debug even for
inline asm.
........
r173126 | burnus | 2011-04-28 14:43:16 -0400 (Thu, 28 Apr 2011) | 13 lines
2011-04-28 Tobias Burnus <[email protected]>
PR fortran/48788
* resolve.c (resolve_global_procedure): Error recovery -
avoid segfault for (non)character-returning functions.
2011-04-28 Tobias Burnus <[email protected]>
PR fortran/48788
* gfortran.dg/whole_file_34.f90: New.
........
r173127 | burnus | 2011-04-28 14:47:28 -0400 (Thu, 28 Apr 2011) | 18 lines
2011-04-28 Tobias Burnus <[email protected]>
PR fortran/48112
* resolve.c (resolve_fl_var_and_proc): Print diagnostic of
function results only once.
(resolve_symbol): Always resolve function results.
PR fortran/48279
* expr.c (gfc_check_vardef_context): Fix handling of generic
EXPR_FUNCTION.
* interface.c (check_interface0): Reject internal functions
in generic interfaces, unless -std=gnu.
2011-04-28 Tobias Burnus <[email protected]>
PR fortran/48112
........
r173131 | dodji | 2011-04-28 15:46:34 -0400 (Thu, 28 Apr 2011) | 10 lines
Fix PR c++/48656
gcc/cp/
* semantics.c (finish_call_expr): Don't forget BASELINK nodes when
considering call expressions involving a member function.
gcc/testsuite/
* gcc/testsuite/g++.dg/template/inherit7.C: New test case.
........
r173137 | meissner | 2011-04-28 18:39:59 -0400 (Thu, 28 Apr 2011) | 1 line
Backport 4.7 patchtes to 4.6
........
r173145 | gccadmin | 2011-04-28 20:18:14 -0400 (Thu, 28 Apr 2011) | 1 line
Daily bump.
........
r173191 | burnus | 2011-04-29 17:26:07 -0400 (Fri, 29 Apr 2011) | 23 lines
2011-04-29 Tobias Burnus <[email protected]>
PR fortran/48810
* resolve.c (resolve_typebound_generic_call): Don't check access
flags of the specific function.
PR fortran/48800
* resolve.c (resolve_formal_arglist): Don't change AS_DEFERRED
to AS_ASSUMED_SHAPE for function results.
(resolve_fl_var_and_proc): Print also for function results with
AS_DEFERRED an error, if they are not a pointer or allocatable.
(resolve_types): Make sure arguments of procedures in interface
blocks are resolved.
2011-04-29 Tobias Burnus <[email protected]>
PR fortran/48810
* gfortran.dg/typebound_proc_22.f90: New.
PR fortran/48800
* gfortran.dg/interface_36.f90: New.
........
r173195 | paolo | 2011-04-29 19:19:59 -0400 (Fri, 29 Apr 2011) | 9 lines
2011-04-29 Paolo Carlini <[email protected]>
PR libstdc++/48760
* include/std/complex (complex<float>::complex(float, float),
complex<double>::complex(double, double),
complex<long double>::complex(long double, long double)): Initialize
in the body in C++03 mode (no fix in C++0x mode).
* testsuite/26_numerics/complex/cons/48760.cc: New.
........
r173203 | gccadmin | 2011-04-29 20:19:09 -0400 (Fri, 29 Apr 2011) | 1 line
Daily bump.
........
r173208 | jakub | 2011-04-30 02:55:11 -0400 (Sat, 30 Apr 2011) | 9 lines
PR tree-optimization/48809
* tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
type.
(gen_inbound_check): Don't compute index_expr - range_min in utype
again, instead reuse SSA_NAME initialized in build_arrays.
Remove two useless gsi_for_stmt calls.
* gcc.c-torture/execute/pr48809.c: New test.
........
r173214 | pault | 2011-04-30 08:00:50 -0400 (Sat, 30 Apr 2011) | 20 lines
2011-04-30 Paul Thomas <[email protected]>
PR fortran/48462
PR fortran/48746
* trans-expr.c ( arrayfunc_assign_needs_temporary): Need a temp
if automatic reallocation on assignement is active, the lhs is a
target and the rhs an intrinsic function.
(realloc_lhs_bounds_for_intrinsic_call): Rename as next.
(fcncall_realloc_result): Renamed version of above function.
Free the original descriptor data after the function call.Set the
bounds and the
offset so that the lbounds are one.
(gfc_trans_arrayfunc_assign): Call renamed function.
2011-04-30 Paul Thomas <[email protected]>
PR fortran/48462
PR fortran/48746
* gfortran.dg/realloc_on_assign_7.f03: New test.
........
r173218 | jvdelisle | 2011-04-30 11:24:57 -0400 (Sat, 30 Apr 2011) | 6 lines
2011-04-30 Jerry DeLisle <[email protected]>
Backport from mainline:
PR libgfortran/48030
* io/read.c (read_x): Re-implement using fbuf_getc.
........
r173228 | gccadmin | 2011-04-30 20:18:03 -0400 (Sat, 30 Apr 2011) | 1 line
Daily bump.
........
r173230 | dougkwan | 2011-05-01 01:10:17 -0400 (Sun, 01 May 2011) | 6 lines
2011-04-30 Doug Kwan <[email protected]>
* include/Makefile.am (install-freestanding-headers): Also install
cxxabi_tweaks.h.
* include/Makefile.in: Regenerate.
........
r173239 | gccadmin | 2011-05-01 20:19:02 -0400 (Sun, 01 May 2011) | 1 line
Daily bump.
........
r173246 | ro | 2011-05-02 08:30:09 -0400 (Mon, 02 May 2011) | 8 lines
Backport from mainline:
2011-04-29 Rainer Orth <[email protected]>
* src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
Define.
Use them to handle ELF vs. ECOFF differences.
[__osf__] (_GLOBAL__F_ffi_call_osf): Define.
........
r173283 | gccadmin | 2011-05-02 20:19:12 -0400 (Mon, 02 May 2011) | 1 line
Daily bump.
........
r173289 | ebotcazou | 2011-05-03 03:20:30 -0400 (Tue, 03 May 2011) | 4 lines
PR target/48723
* config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
for -fstack-check if the size to allocate is negative.
........
r173299 | rguenth | 2011-05-03 06:21:44 -0400 (Tue, 03 May 2011) | 7 lines
2011-05-03 Richard Guenther <[email protected]>
PR lto/48846
* lto-streamer-in.c (unpack_ts_decl_common_value_fields):
Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
* lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
........
r173302 | jakub | 2011-05-03 09:06:06 -0400 (Tue, 03 May 2011) | 6 lines
PR target/48774
* config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
only succeed if req_mode is the same as set_mode.
* gcc.dg/pr48774.c: New test.
........