Andreas Tobler [Mon, 21 Mar 2011 15:28:22 +0000 (16:28 +0100)]
t-freebsd: Remove duplication from file.
2011-03-21 Andreas Tobler <andreast@fgznet.ch>
* config/rs6000/t-freebsd: Remove duplication from file.
From-SVN: r171243
Richard Guenther [Mon, 21 Mar 2011 13:50:26 +0000 (13:50 +0000)]
re PR middle-end/47661 (predict is confused by FP comparisons when math can trap)
2011-03-21 Richard Guenther <rguenther@suse.de>
PR middle-end/47661
* gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
From-SVN: r171236
Richard Guenther [Mon, 21 Mar 2011 13:42:27 +0000 (13:42 +0000)]
re PR lto/48210 (ICE: SIGFPE with -flto --param lto-partitions=0 on basic code)
2011-03-21 Richard Guenther <rguenther@suse.de>
PR lto/48210
* params.def (lto-partitions): Require at least 1 partition.
From-SVN: r171234
Rainer Orth [Mon, 21 Mar 2011 13:38:19 +0000 (13:38 +0000)]
14220.cc: Don't xfail on sparc*-sun-solaris2.10 && lp64.
* testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
sparc*-sun-solaris2.10 && lp64.
From-SVN: r171231
Rainer Orth [Mon, 21 Mar 2011 12:33:34 +0000 (12:33 +0000)]
gthr-solaris.h: Remove.
gcc:
* gthr-solaris.h: Remove.
* gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
* config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
(LIB_SPEC): Likewise.
* config/sol2.opt (threads): Remove.
* config.gcc (i[34567]86-*-solaris2*): Remove solaris threads
support.
(sparc*-*-solaris2*): Likewise.
* configure.ac (enable_threads): Enable solaris support.
* configure: Regenerate.
* doc/invoke.texi (Option Summary, Solaris 2 Options): Remove
-threads.
* doc/install.texi (Configuration, --enable-threads=lib): Remove
solaris.
boehm-gc:
* configure.ac (THREADS): Remove solaris.
* configure: Regenerate.
libjava:
* configure.ac (THREADS): Remove solaris.
* configure: Regenerate.
From-SVN: r171229
Eric Botcazou [Mon, 21 Mar 2011 12:31:12 +0000 (12:31 +0000)]
decl.c (components_to_record): Add REORDER parameter...
* gcc-interface/decl.c (components_to_record): Add REORDER parameter,
rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
to the end of the list. Adjust recursive call. Rename local variable.
If REORDER is true, reorder components of the record type.
(gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
components_to_record and adjust the parameter list.
From-SVN: r171228
Rainer Orth [Mon, 21 Mar 2011 12:28:38 +0000 (12:28 +0000)]
config.gcc: Obsolete *-*-solaris2.8*.
* config.gcc: Obsolete *-*-solaris2.8*.
* doc/install.texi (Specific, *-*-solaris2*): Document it.
From-SVN: r171226
Rainer Orth [Mon, 21 Mar 2011 12:26:30 +0000 (12:26 +0000)]
re PR bootstrap/48120 (libpwl test must use g++)
PR bootstrap/48120:
* configure.ac (pwllib): Use LIBS instead of LDFLAGS.
Add -lstdc++ -lm to LIBS.
* configure: Regenerate.
From-SVN: r171225
Rainer Orth [Mon, 21 Mar 2011 12:24:17 +0000 (12:24 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
libgfortran:
PR bootstrap/48135
* configure.ac (gfortran_use_symver): Handle --disable-symvers.
* configure: Regenerate.
libgomp:
PR bootstrap/48135
* acinclude.m4 (enable_symvers): Handle --disable-symvers.
* configure: Regenerate.
libjava:
PR bootstrap/48135
* configure.ac (libjava_cv_anon_version_script): Handle
--disable-symvers.
* configure: Regenerate.
libquadmath:
PR bootstrap/48135
* configure.ac (quadmath_use_symver): Handle --disable-symvers.
* configure: Regenerate.
libssp:
PR bootstrap/48135
* configure.ac (ssp_use_symver): Handle --disable-symvers.
* configure: Regenerate.
From-SVN: r171224
Rainer Orth [Mon, 21 Mar 2011 12:17:10 +0000 (12:17 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
contrib:
PR bootstrap/48135
* make_sunver.pl: Don't use File::Glob.
gcc:
PR bootstrap/48135
* doc/install.texi (Prerequisites, Perl): Remove Glob.pm
reference. Solaris 8 perl works.
From-SVN: r171223
Rainer Orth [Mon, 21 Mar 2011 12:12:19 +0000 (12:12 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
PR bootstrap/48135
* doc/install.texi (Prerequisites): Move jar etc. up.
Explain support library version requirements.
From-SVN: r171221
Eric Botcazou [Mon, 21 Mar 2011 12:11:06 +0000 (12:11 +0000)]
decl.c (elaborate_expression_1): When optimization is disabled, use the variable for bounds of loop iteration scheme.
* gcc-interface/decl.c (elaborate_expression_1): When optimization is
disabled, use the variable for bounds of loop iteration scheme.
From-SVN: r171220
Rainer Orth [Mon, 21 Mar 2011 12:09:28 +0000 (12:09 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
PR bootstrap/48135
* doc/install.texi (Prerequisites): Move Perl to build
requirements. Always necessary on Solaris 2 with Sun ld.
From-SVN: r171218
Rainer Orth [Mon, 21 Mar 2011 12:03:41 +0000 (12:03 +0000)]
install.texi (Specific, [...]): Update for binutils 2.21.
* doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
binutils 2.21.
(Specific, i?86-*-solaris2.[89]): Likewise.
(Specific, i?86-*-solaris2.10): Likewise.
(Specific, mips-sgi-irix6): Likewise.
(Specific, *-*-solaris2*): Remove Sun Studio download URL.
Update for binutils 2.21.
From-SVN: r171216
Rainer Orth [Mon, 21 Mar 2011 10:57:51 +0000 (10:57 +0000)]
configure.ac (gcc_cv_lto_plugin): Fix typo.
* configure.ac (gcc_cv_lto_plugin): Fix typo.
Allow -fuse-linker-plugin for non-default plugin linker.
* configure: Regenerate.
From-SVN: r171215
Nicola Pero [Mon, 21 Mar 2011 10:25:38 +0000 (10:25 +0000)]
In gcc/: 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR bootstrap/48167
* gengtype.c (files_rules): Added rule for cp/parser.h.
In gcc/objcp/:
2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR bootstrap/48167
* Make-lang.in (START_HDRS): Added CXX_PARSER_H and
CXX_PRETTY_PRINT_H.
* config-lang.in (gtfiles): Added cp/parser.h and reorganized list
so that it is more obvious that it is identical to the C++ one
with the addition of some files at the end.
From-SVN: r171214
Jakub Jelinek [Mon, 21 Mar 2011 09:25:47 +0000 (10:25 +0100)]
re PR target/48213 (ICE in simplify_subreg called from s390_delegitimize_address)
PR target/48213
* config/s390/s390.c (s390_delegitimize_address): Don't call
lowpart_subreg if orig_x has BLKmode.
* gcc.dg/pr48213.c: New test.
From-SVN: r171211
Kai Tietz [Mon, 21 Mar 2011 08:32:50 +0000 (09:32 +0100)]
ChangeLog gcc/c-family
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* c-pretty-print.c (pp_c_specifier_qualifier_list):
Display allowed attributes for function pointer types.
(pp_c_attributes_display): New function to display
attributes having affects_type_identity flag set to true.
* c-pretty-print.h (pp_c_attributes_display): New prototype.
ChangeLog gcc/cp
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* cxx-pretty-print.c (pp_cxx_ptr_operator):
Display allowed attributes for function pointer types.
* error.c (dump_type_prefix): Likewise.
From-SVN: r171210
Kai Tietz [Mon, 21 Mar 2011 08:29:36 +0000 (09:29 +0100)]
ChangeLog gcc/
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* doc/plugins.texi: Adjust documentation
for plugin register_callback.
* tree.h (attribute_spec): Add new member
affects_type_identity.
- Zitierten Text anzeigen -
* attribs.c (empty_attribute_table): Adjust
attribute_spec initializers.
* config/alpha/alpha.c: Likewise.
* config/arc/arc.c: Likewise.
* config/arm/arm.c: Likewise.
* config/avr/avr.c: Likewise.
* config/bfin/bfin.c: Likewise.
* config/crx/crx.c: Likewise.
* config/darwin.h: Likewise.
* config/h8300/h8300.c: Likewise.
* config/i386/cygming.h: Likewise.
* config/i386/i386.c: Likewise.
* config/ia64/ia64.c: Likewise.
* config/m32c/m32c.c: Likewise.
* config/m32r/m32r.c: Likewise.
* config/m68hc11/m68hc11.c: Likewise.
* config/m68k/m68k.c: Likewise.
* config/mcore/mcore.c: Likewise.
* config/mep/mep.c: Likewise.
* config/microblaze/microblaze.c: Likewise.
* config/mips/mips.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/rx/rx.c: Likewise.
* config/sh/sh.c: Likewise.
* config/sol2.h: Likewise.
* config/sparc/sparc.c: Likewise.
* config/spu/spu.c: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/v850/v850.c: Likewise.
ChangeLog gcc/cp
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* tree.c (cxx_attribute_table): Adjust table.
ChangeLog gcc/testsuite
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* g++.dg/plugin/attribute_plugin.c: Adjust test.
ChangeLog gcc/java
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* lang.c (java_attribute_table): Adjust table.
ChangeLog gcc/lto
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* lto-lang.c (lto_attribute_table): Adjust table.
ChangeLog gcc/ada
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
* gcc-interface/utils.c (gnat_internal_attribute_table):
Add new element.
ChangeLog gcc/c-family
2011-03-17 Kai Tietz
PR target/12171
* c-common.c (c_common_attribute_table):
Add new element.
(c_common_format_attribute_table): Likewise.
From-SVN: r171209
Chung-Lin Tang [Mon, 21 Mar 2011 07:27:03 +0000 (07:27 +0000)]
simplify-rtx.c (simplify_binary_operation_1): Handle (xor (and A B) C) case when B and C are both constants.
2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
* simplify-rtx.c (simplify_binary_operation_1): Handle
(xor (and A B) C) case when B and C are both constants.
testsuite/
* gcc.target/arm/xor-and.c: New.
From-SVN: r171208
Thomas Koenig [Mon, 21 Mar 2011 07:14:42 +0000 (07:14 +0000)]
re PR fortran/22572 (Double occurrence of matmul intrinsic not optimised)
2010-03-21 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/22572
* gfortran.h (gfc_option_t) : Add
flag_aggressive_function_elimination.
(gfc_dep_compare_functions): Add prototype.
* lang.opt: Add faggressive-function-elimination.
* invoke.texi: Document -faggressive-function-elimination.
* frontend_passes (expr_array): New static variable.
(expr_size): Likewise.
(expr_count): Likewise.
(current_code): Likewise.
(current_ns): Likewise.
(gfc_run_passes): Allocate and free space for expressions.
(cfe_register_funcs): New function.
(create_var): New function.
(cfc_expr_0): New function.
(cfe_code): New function.
(optimize_namespace): Invoke gfc_code_walker with cfe_code
and cfe_expr_0.
* dependency.c (gfc_dep_compare_functions): New function.
(gfc_dep_compare_expr): Use it.
* options.c (gfc_init_options): Handle
flag_aggressive_function_elimination.
(gfc_handle_option): Likewise.
2010-03-21 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/22572
* gfortran.dg/function_optimize_1.f90: New test.
* gfortran.dg/function_optimize_2.f90: New test.
From-SVN: r171207
Mingjie Xing [Mon, 21 Mar 2011 06:25:44 +0000 (06:25 +0000)]
Fix typo in comment.
From-SVN: r171206
H.J. Lu [Mon, 21 Mar 2011 03:28:40 +0000 (03:28 +0000)]
Add 2 testcases for PR rtl-optimization/47502.
From-SVN: r171205
GCC Administrator [Mon, 21 Mar 2011 00:18:49 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r171202
Eric Botcazou [Sun, 20 Mar 2011 21:50:20 +0000 (21:50 +0000)]
re PR bootstrap/48168 (Solaris 2/SPARC bootstrap broken: ICE in sparc_function_arg_1, at config/sparc/sparc.c:5721)
PR bootstrap/48168
* config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
From-SVN: r171197
Jakub Jelinek [Sun, 20 Mar 2011 15:25:55 +0000 (16:25 +0100)]
re PR rtl-optimization/48156 (wrong code with -fcrossjumping)
PR rtl-optimization/48156
* df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
assume df and df_lr are not NULL.
* gcc.dg/pr48156.c: New test.
From-SVN: r171195
Ramana Radhakrishnan [Sun, 20 Mar 2011 07:59:54 +0000 (07:59 +0000)]
Fix PR debug/48203
From-SVN: r171193
GCC Administrator [Sun, 20 Mar 2011 00:17:57 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r171190
Kaz Kojima [Sat, 19 Mar 2011 23:22:18 +0000 (23:22 +0000)]
sh.c (find_barrier): Don't emit a constant pool between a call and its corresponding...
* config/sh/sh.c (find_barrier): Don't emit a constant pool
between a call and its corresponding CALL_ARG_LOCATION note.
From-SVN: r171185
Paolo Carlini [Sat, 19 Mar 2011 19:49:16 +0000 (19:49 +0000)]
libstdc++.exp (check_v3_target_c99_math): Rename to check_v3_target_cmath.
2011-03-19 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/lib/libstdc++.exp (check_v3_target_c99_math): Rename
to check_v3_target_cmath.
* testsuite/lib/dg-options.exp (dg-require-c99_math): Rename
to dg-require-cmath.
* testsuite/26_numerics/random/binomial_distribution/
operators/values.cc: Adjust.
From-SVN: r171184
Anatoly Sokolov [Sat, 19 Mar 2011 17:33:45 +0000 (20:33 +0300)]
cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range instead of loop.
* cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
instead of loop. Use HARD_REGISTER_NUM_P predicate.
* haifa-sched.c (setup_ref_regs): Ditto.
* caller-save.c (add_used_regs_1): Ditto.
* dse.c (look_for_hardregs): Ditto.
* df-problems.c (df_simulate_one_insn_forwards): Ditto.
* sched-rgn.c (check_live_1): Ditto.
From-SVN: r171183
John David Anglin [Sat, 19 Mar 2011 17:25:18 +0000 (17:25 +0000)]
re PR libfortran/35667 (HP-UX 10 has broken strtod)
PR fortran/35667
* io/io.h (convert_infnan): Declare.
* io/read.c (convert_infnan): New.
(read_f): Use convert_infnan to convert INFs and NANs.
* list_read.c (parse_real, read_real): Likewise.
From-SVN: r171182
Francois-Xavier Coudert [Sat, 19 Mar 2011 14:35:05 +0000 (14:35 +0000)]
re PR libfortran/47439 (Fun with scratch files on Windows MKTEMP only allows for 26 files)
PR libfortran/47439
* gfortran.dg/scratch_1.f90: Adjust test.
From-SVN: r171180
Francois-Xavier Coudert [Sat, 19 Mar 2011 12:09:27 +0000 (12:09 +0000)]
re PR libfortran/47439 (Fun with scratch files on Windows MKTEMP only allows for 26 files)
PR libfortran/47439
* io/unix.c (tempfile): Work around poor mktemp() implementations.
* gfortran.dg/scratch_1.f90: New test.
From-SVN: r171178
GCC Administrator [Sat, 19 Mar 2011 00:18:08 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r171177
Joseph Myers [Fri, 18 Mar 2011 23:26:16 +0000 (23:26 +0000)]
c-decl.c (diagnose_mismatched_decls): Give an error for redefining a typedef with variably modified type.
* c-decl.c (diagnose_mismatched_decls): Give an error for
redefining a typedef with variably modified type.
testsuite:
* gcc.dg/c1x-typedef-1.c: Expect errors for redefinitions of
variably modified typedefs.
* gcc.dg/c1x-typedef-2.c: Remove.
From-SVN: r171172
Joseph Myers [Fri, 18 Mar 2011 21:16:31 +0000 (21:16 +0000)]
c-decl.c (grokfield): Don't allow typedefs for structures or unions with no tag by default.
* c-decl.c (grokfield): Don't allow typedefs for structures or
unions with no tag by default.
* doc/extend.texi (Unnamed Fields): Update.
testsuite:
* gcc.dg/c1x-anon-struct-1.c: Don't test use of typedefs.
* gcc.dg/c1x-anon-struct-3.c: New test.
* gcc.dg/anon-struct-11.c: Update.
From-SVN: r171170
Uros Bizjak [Fri, 18 Mar 2011 20:54:25 +0000 (21:54 +0100)]
i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2): Rewrite using indirect functions.
* config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
Rewrite using indirect functions.
(lwp_slwpcb): Ditto.
* config/i386/sse.md (avx_vextractf128<mode>): Ditto.
(avx_vinsertf128<mode>): Ditto.
From-SVN: r171169
Jason Merrill [Fri, 18 Mar 2011 20:27:33 +0000 (16:27 -0400)]
tweak fconstexpr-depth docs
From-SVN: r171168
Jason Merrill [Fri, 18 Mar 2011 20:23:48 +0000 (16:23 -0400)]
c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
* c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
* c-common.h: Don't declare it here.
* c-common.c: Or define it here.
* c-opts.c (c_common_handle_option): Or set it here.
From-SVN: r171166
Richard Henderson [Fri, 18 Mar 2011 20:20:35 +0000 (13:20 -0700)]
re PR bootstrap/45381 (Bootstrap failure for powerpc-apple-darwin9: error: AltiVec argument passed to unprototyped function)
PR bootstrap/45381
* lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5.
From-SVN: r171165
Diego Novillo [Fri, 18 Mar 2011 19:54:32 +0000 (15:54 -0400)]
mixed-mode-arith_neg.cc: Rename from mixed-mode_neg.cc
* mixed-mode-arith_neg.cc: Rename from mixed-mode_neg.cc
* mixed-mode-cmp_neg.cc: Factor out of mixed-mode-arith_neg.cc
From-SVN: r171161
David Edelsohn [Fri, 18 Mar 2011 17:42:07 +0000 (17:42 +0000)]
config.guess: Update to version 2011-02-02
* config.guess: Update to version 2011-02-02
* config.sub: Update to version 2011-02-24
From-SVN: r171158
Andreas Krebbel [Fri, 18 Mar 2011 17:32:29 +0000 (17:32 +0000)]
s390.c (s390_delegitimize_address): Handle GOTOFF unspecs.
2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
unspecs.
From-SVN: r171157
Andreas Krebbel [Fri, 18 Mar 2011 17:31:39 +0000 (17:31 +0000)]
s390.c (s390_chunkify_start): Prevent literal pool splitting between a call and its corresponding...
2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_chunkify_start): Prevent literal pool
splitting between a call and its corresponding CALL_ARG_LOCATION
note.
From-SVN: r171156
Maxim Kuvyrkov [Fri, 18 Mar 2011 17:12:19 +0000 (17:12 +0000)]
re PR rtl-optimization/48170 (ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1})
PR rtl-optimization/48170
* gcse.c (hoist_code): Remove bogus asserts.
From-SVN: r171155
Jeff Law [Fri, 18 Mar 2011 17:05:27 +0000 (11:05 -0600)]
ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost computation for prologue/epilogue.
* ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
computation for prologue/epilogue.
From-SVN: r171154
Rainer Orth [Fri, 18 Mar 2011 16:58:25 +0000 (16:58 +0000)]
* Makefile.in (check-consistency): Remove.
From-SVN: r171153
Rainer Orth [Fri, 18 Mar 2011 16:23:39 +0000 (16:23 +0000)]
slp-multitypes-2.c: Replace dg-do run with dg-xfail-run-if.
* gcc.dg/vect/slp-multitypes-2.c: Replace dg-do run with
dg-xfail-run-if.
Only xfail with gas.
From-SVN: r171152
Jakub Jelinek [Fri, 18 Mar 2011 16:18:05 +0000 (17:18 +0100)]
re PR debug/48176 (.debug_aranges is no longer emitted)
PR debug/48176
* dwarf2out.c (dwarf2out_finish): Call output_aranges even when
arange_table_in_use is 0, but either text_section_used or
cold_text_section_used is true. Don't call it if
!info_section_emitted.
From-SVN: r171150
Anatoly Sokolov [Fri, 18 Mar 2011 15:27:10 +0000 (18:27 +0300)]
avr.h (RET_REGISTER, [...]): Remove.
* config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
FUNCTION_VALUE_REGNO_P): Remove.
* config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
Remove.
* config/avr/avr.c (avr_ret_register): Make static inline.
(avr_function_value_regno_p): New function.
(avr_libcall_value): Make static. Add 'func' argument.
(avr_function_value): Make static. Rename 'func' argument to
'fn_decl_or_type', forward it to avr_libcall_value. Call
avr_ret_register function instead of RET_REGISTER macro.
(TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
From-SVN: r171149
Jason Merrill [Fri, 18 Mar 2011 15:07:13 +0000 (11:07 -0400)]
re PR c++/48162 (447.dealII in SPEC CPU 2006 failed to build)
PR c++/48162
* semantics.c (finish_call_expr): Allow TARGET_EXPR for now.
From-SVN: r171148
Jason Merrill [Fri, 18 Mar 2011 15:07:04 +0000 (11:07 -0400)]
re PR c++/48118 (g++ sometimes allows copying a volatile class)
PR c++/48118
* call.c (build_over_call): Don't skip ck_rvalue.
From-SVN: r171147
Jason Merrill [Fri, 18 Mar 2011 15:06:51 +0000 (11:06 -0400)]
re PR c++/23372 (Temporary aggregate copy not elided when passing parameters by value)
PR c++/23372
* gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
From-SVN: r171146
Jason Merrill [Fri, 18 Mar 2011 15:06:41 +0000 (11:06 -0400)]
re PR c++/35315 (ICE with attribute transparent_union)
PR c++/35315
* c-common.c (handle_transparent_union_attribute): Don't
make a duplicate type in C++.
From-SVN: r171145
Richard Guenther [Fri, 18 Mar 2011 14:33:45 +0000 (14:33 +0000)]
install.texi (--enable-gold): Remove.
2011-03-18 Richard Guenther <rguenther@suse.de>
* doc/install.texi (--enable-gold): Remove.
(--with-plugin-ld): Document.
* doc/invoke.texi (-fuse-linker-plugin): Clarify.
From-SVN: r171143
Rainer Orth [Fri, 18 Mar 2011 14:10:35 +0000 (14:10 +0000)]
re PR middle-end/47405 (gcc.dg/torture/
20090618-1.c FAILs on IRIX 6.5)
PR middle-end/47405
* gcc.dg/torture/
20090618-1.c: Skip on mips-sgi-irix*.
From-SVN: r171140
Andrew Pinski [Fri, 18 Mar 2011 14:01:41 +0000 (07:01 -0700)]
re PR middle-end/47790 (optimize_bitfield_assignment_op no longer works in 4.5.x)
PR middle-end/47790
* expr.c (optimize_bitfield_assignment_op): Revamp to work
again after expansion changes.
From-SVN: r171139
Chung-Lin Tang [Fri, 18 Mar 2011 13:22:42 +0000 (13:22 +0000)]
combine.c (try_combine): Do simplification only call of subst() on i2 even when i1 is present.
2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
* combine.c (try_combine): Do simplification only call of
subst() on i2 even when i1 is present. Update comments.
testsuite/
* gcc.target/arm/unsigned-extend-1.c: New.
From-SVN: r171138
Paolo Carlini [Fri, 18 Mar 2011 13:09:29 +0000 (13:09 +0000)]
2011-03-18 Paolo Carlini <paolo.carlini@oracle.com>
Fixup last ChangeLog entry.
From-SVN: r171137
Kaz Kojima [Fri, 18 Mar 2011 12:19:50 +0000 (12:19 +0000)]
sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
* config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
and UNSPEC_PCREL_SYMOFF.
From-SVN: r171134
Paolo Carlini [Fri, 18 Mar 2011 11:48:29 +0000 (11:48 +0000)]
testsuite_random.h: New.
2011-03-18 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/util/testsuite_random.h: New.
* testsuite/lib/libstdc++.exp (check_v3_target_c99_math,
dg-require-c99_math): Add.
* testsuite/26_numerics/random/bernoulli_distribution/
operators/values.cc: New.
* testsuite/26_numerics/random/binomial_distribution/
operators/values.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/
operators/values.cc: Likewise.
From-SVN: r171133
Andreas Krebbel [Fri, 18 Mar 2011 11:30:26 +0000 (11:30 +0000)]
s390.md: Use define_c_enum for the unspec constant definitions.
2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.md: Use define_c_enum for the unspec constant
definitions.
From-SVN: r171132
Jakub Jelinek [Fri, 18 Mar 2011 08:35:17 +0000 (09:35 +0100)]
re PR bootstrap/48161 (hppa*-*-* will not bootstrap on 4.6 branch with release checking)
PR bootstrap/48161
* expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
* gcc.c-torture/compile/pr48161.c: New test.
From-SVN: r171126
H.J. Lu [Fri, 18 Mar 2011 04:02:25 +0000 (04:02 +0000)]
Revert the last change on cant_combine_insn_p.
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47725
* combine.c (cant_combine_insn_p): Don't check zero/sign
extended hard registers.
From-SVN: r171125
H.J. Lu [Fri, 18 Mar 2011 00:29:15 +0000 (00:29 +0000)]
Check zero/sign extended hard registers.
gcc/
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47725
* combine.c (cant_combine_insn_p): Check zero/sign extended
hard registers.
gcc/testsuite/
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47725
* gcc.dg/torture/pr47725.c: New.
From-SVN: r171124
GCC Administrator [Fri, 18 Mar 2011 00:18:53 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r171123
Anatoly Sokolov [Thu, 17 Mar 2011 22:02:00 +0000 (01:02 +0300)]
v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
* config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
* config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
* config/v850/v850.c (v850_output_addr_const_extra): Make static.
Change return type to bool.
(TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
From-SVN: r171117
Jason Merrill [Thu, 17 Mar 2011 22:00:47 +0000 (18:00 -0400)]
re PR c++/47504 ([C++0x] some constexpr calculations erroneously overflow when using negative numbers)
PR c++/47504
* semantics.c (cxx_eval_constant_expression) [NOP_EXPR]: Don't let
the conversion set TREE_OVERFLOW.
From-SVN: r171116
Jakub Jelinek [Thu, 17 Mar 2011 20:34:59 +0000 (21:34 +0100)]
re PR debug/48163 (ICEs for cris-elf, like gcc.c-torture/compile/calls.c gcc.c-torture/execute/complex-1.c)
PR debug/48163
* var-tracking.c (prepare_call_arguments): If CALL target
is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
pc instead of looking it up using cselib_lookup and use
Pmode for it if x has VOIDmode.
* dwarf2out.c (gen_subprogram_die): If also both first and
second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
From-SVN: r171114
Jakub Jelinek [Thu, 17 Mar 2011 20:33:54 +0000 (21:33 +0100)]
re PR debug/48163 (ICEs for cris-elf, like gcc.c-torture/compile/calls.c gcc.c-torture/execute/complex-1.c)
PR debug/48163
* function.c (assign_parms): For data.passed_pointer parms
use MEM of data.entry_parm instead of data.entry_parm itself
as DECL_INCOMING_RTL.
* dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
also when passed and declared mode is the same, DECL_RTL
is a MEM with pseudo as address and DECL_INCOMING_RTL is
a MEM too.
From-SVN: r171113
Jeff Law [Thu, 17 Mar 2011 20:08:01 +0000 (14:08 -0600)]
re PR rtl-optimization/37273 (IRA does not re-materializes addresses (loads from the TOC))
PR rtl-optimization/37273
* ira-costs.c (scan_one_insn): Detect constants living in memory and
handle them like argument loads from stack slots. Do not double
count memory for memory constants and argument loads from stack slots.
From-SVN: r171111
Joseph Myers [Thu, 17 Mar 2011 19:57:48 +0000 (19:57 +0000)]
* gcc.pot: Regenerate.
From-SVN: r171109
H.J. Lu [Thu, 17 Mar 2011 19:51:03 +0000 (19:51 +0000)]
Check SUBREG in prepare_call_arguments.
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR debug/48160
* var-tracking.c (prepare_call_arguments): Check SUBREG.
From-SVN: r171108
H.J. Lu [Thu, 17 Mar 2011 19:23:34 +0000 (19:23 +0000)]
Add Save to -mavx and -mfma.
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR target/48171
* config/i386/i386.opt: Add Save to -mavx and -mfma.
From-SVN: r171107
Eric Botcazou [Thu, 17 Mar 2011 17:12:21 +0000 (17:12 +0000)]
decl.c (elaborate_expression_1): Try harder to find out whether the expression is read-only.
* gcc-interface/decl.c (elaborate_expression_1): Try harder to find
out whether the expression is read-only. Short-circuit placeholder
case and rename a couple of local variables.
From-SVN: r171106
Jason Merrill [Thu, 17 Mar 2011 16:20:16 +0000 (12:20 -0400)]
Core 1212
Core 1212
* semantics.c (finish_decltype_type): Return T&& for xvalue.
* typeck.c (unlowered_expr_type): Preserve cv-quals.
From-SVN: r171104
Jason Merrill [Thu, 17 Mar 2011 16:02:08 +0000 (12:02 -0400)]
re PR c++/48166 (ICE on static member function with invalid type qualifier)
PR c++/48166
* decl.c (revert_static_member_fn): Strip function-cv-quals.
From-SVN: r171103
Jakub Jelinek [Thu, 17 Mar 2011 15:22:20 +0000 (16:22 +0100)]
re PR bootstrap/48153 (Bootstrapping revision 171033 fails on x86_64-apple-darwin10)
PR bootstrap/48153
* dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
if dwarf_strict.
(gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
Clear call_arg_locations and call_arg_loc_last always.
From-SVN: r171102
Jakub Jelinek [Thu, 17 Mar 2011 15:21:39 +0000 (16:21 +0100)]
re PR middle-end/48152 (Bootstrap failure for x86_64-w64-mingw32 due ICE)
PR middle-end/48152
* var-tracking.c (prepare_call_arguments): If argument needs to be
passed by reference, adjust argtype and mode.
From-SVN: r171101
Richard Guenther [Thu, 17 Mar 2011 14:59:00 +0000 (14:59 +0000)]
re PR tree-optimization/48134 (ICE: in refs_may_alias_p_1, at tree-ssa-alias.c:1085 with custom flags)
2011-03-17 Richard Guenther <rguenther@suse.de>
PR middle-end/48134
* tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
a value make sure to fold the statement.
* gcc.dg/pr48134.c: New testcase.
From-SVN: r171098
Chung-Lin Tang [Thu, 17 Mar 2011 14:02:12 +0000 (14:02 +0000)]
re PR target/43872 (VLAs are not aligned correctly on ARM)
2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
PR target/43872
* config/arm/arm.c (arm_get_frame_offsets): Adjust early
return condition with !cfun->calls_alloca.
From-SVN: r171096
Richard Guenther [Thu, 17 Mar 2011 13:25:23 +0000 (13:25 +0000)]
re PR bootstrap/48148 (LTO bootstrap failed with bootstrap-profiled)
2011-03-17 Richard Guenther <rguenther@suse.de>
PR bootstrap/48148
* lto-cgraph.c (input_overwrite_node): Clear the abstract
origin for decls in other ltrans units.
(input_varpool_node): Likewise.
From-SVN: r171094
Richard Guenther [Thu, 17 Mar 2011 13:19:01 +0000 (13:19 +0000)]
re PR tree-optimization/48165 (gcc-4.6: internal compiler error: in build2_stat)
2011-03-17 Richard Guenther <rguenther@suse.de>
PR middle-end/48165
* tree-object-size.c (compute_object_offset): Properly return
the offset operand of MEM_REFs as sizetype.
* g++.dg/torture/pr48165.C: New testcase.
From-SVN: r171092
Eric Botcazou [Thu, 17 Mar 2011 12:37:53 +0000 (12:37 +0000)]
gigi.h (smaller_form_type_p): Declare.
* gcc-interface/gigi.h (smaller_form_type_p): Declare.
* gcc-interface/trans.c (smaller_form_type_p): Make global and move...
* gcc-interface/utils.c (smaller_form_type_p): ...to here.
(convert): Deal with conversions from a smaller form type specially.
From-SVN: r171091
Jakub Jelinek [Thu, 17 Mar 2011 12:36:04 +0000 (13:36 +0100)]
re PR rtl-optimization/48141 (DSE compile time hog)
PR rtl-optimization/48141
* params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
* dse.c: Include params.h.
(active_local_stores_len): New variable.
(add_wild_read, dse_step1): Clear it when setting active_local_stores
to NULL.
(record_store, check_mem_read_rtx): Decrease it when removing
from the chain.
(scan_insn): Likewise. Increase it when adding to chain, if it
reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
set active_local_stores to NULL before the addition.
* Makefile.in (dse.o): Depend on $(PARAMS_H).
From-SVN: r171090
Jakub Jelinek [Thu, 17 Mar 2011 12:35:04 +0000 (13:35 +0100)]
re PR rtl-optimization/48141 (DSE compile time hog)
PR rtl-optimization/48141
* dse.c (record_store): If no positions are needed in an insn
that cannot be deleted, at least unchain it from active_local_stores.
* gcc.dg/pr48141.c: New test.
From-SVN: r171089
Jason Merrill [Thu, 17 Mar 2011 02:36:29 +0000 (22:36 -0400)]
re PR c++/48089 ([C++0x] ICE on in(?)valid in constexpr constructors)
PR c++/48089
* semantics.c (potential_constant_expression_1): Don't allow *this
in a constructor.
(register_constexpr_fundef): Use potential_rvalue_constant_expression.
From-SVN: r171086
Jason Merrill [Thu, 17 Mar 2011 02:36:20 +0000 (22:36 -0400)]
re PR c++/47301 ([C++0x] ICE: in fold_convert_loc, at fold-const.c:1906 with -fabi-version=1 and constexpr)
PR c++/47301
* decl.c (compute_array_index_type): Don't bother trying to deal
with literal classes in ABI v1.
From-SVN: r171085
Jason Merrill [Thu, 17 Mar 2011 02:36:12 +0000 (22:36 -0400)]
re PR c++/46336 ([C++0X] ICE on invalid: in register_constexpr_fundef, at cp/semantics.c:5571)
PR c++/46336
* decl.c (duplicate_decls): Return NULL_TREE for clashing
C functions.
From-SVN: r171084
Jason Merrill [Thu, 17 Mar 2011 02:36:04 +0000 (22:36 -0400)]
re PR c++/47570 ([C++0x] "one() >= 0" isn't constexpr for unsigned int, yet == and > is.)
PR c++/47570
* semantics.c (cxx_eval_constant_expression) [COMPOUND_EXPR]: Don't
use the generic binary expression handling.
From-SVN: r171083
GCC Administrator [Thu, 17 Mar 2011 00:18:12 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r171082
Ian Lance Taylor [Wed, 16 Mar 2011 23:18:40 +0000 (23:18 +0000)]
Don't catch LIBPROF in Go code.
From-SVN: r171077
Ian Lance Taylor [Wed, 16 Mar 2011 23:05:44 +0000 (23:05 +0000)]
Update to current version of Go library (revision
94d654be2064).
From-SVN: r171076
Diego Novillo [Wed, 16 Mar 2011 22:03:56 +0000 (18:03 -0400)]
Make-lang.in (CXX_PARSER_H): New.
* Make-lang.in (CXX_PARSER_H): New.
(cp/parser.o): Add dependency on CXX_PARSER_H.
Add dependency on tree-pretty-print.h
(cp/cp-lang.o): Add dependency on CXX_PARSER_H.
* cp-lang.c: Include parser.h.
* parser.c: Include parser.h.
(struct cp_token): Add bitfield purged_p.
Update all users.
Move to parser.h.
(CPP_PURGED): Remove. Update all users.
(struct cp_lexer): Change field buffer to be a VEC of cp_token.
Remove field buffer_length.
Update all users.
Move to parser.h.
(struct tree_check): Move to parser.h.
(cp_token_position): Likewise.
(struct cp_token_cache): Likewise.
(CPP_KEYWORD): Likewise.
(CPP_TEMPLATE_ID): Likewise.
(CPP_NESTED_NAME_SPECIFIER): Likewise.
(N_CP_TTYPES): Likewise.
(enum cp_parser_status_kind): Likewise.
(struct cp_parser_context): Likewise.
(struct cp_default_arg_entry_d): Likewise.
(struct cp_unparsed_functions_entry_d): Likewise.
(struct cp_parser): Likewise.
(cp_lexer_dump_tokens): New.
(cp_lexer_debug_tokens): New.
(cp_lexer_finished_p): New.
(cp_lexer_alloc): Factor out of cp_lexer_new_main.
(cp_lexer_new_main): Re-write main lexing loop to push
tokens into the new VEC buffer.
(cp_lexer_print_token): Improve printing of CPP_NUMBER tokens.
Do not abort if the token type is not recognized, just print
its code.
* parser.h: New file.
* config-lang.in (gtfiles): Add cp/parser.h.
From-SVN: r171075
Dodji Seketeli [Wed, 16 Mar 2011 21:04:58 +0000 (21:04 +0000)]
re PR debug/47510 (DW_TAG_typedef can have children when designating a naming typedef)
PR debug/47510
gcc/
PR debug/47510
* dwarf2out.c (strip_naming_typedef): Factorize out of ...
(lookup_type_die_strip_naming_typedef): ... here.
(get_context_die): Use it.
(gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
the anonymous struct named by the naming typedef.
gcc/testsuite/
PR debug/47510
* g++.dg/debug/dwarf2/typedef6.C: New test.
From-SVN: r171073
Jason Merrill [Wed, 16 Mar 2011 20:15:37 +0000 (16:15 -0400)]
Core 1148
Core 1148
* typeck.c (check_return_expr): Fix conditions for setting
LOOKUP_PREFER_RVALUE.
From-SVN: r171071
Jason Merrill [Wed, 16 Mar 2011 20:15:24 +0000 (16:15 -0400)]
* call.c (build_over_call): Remove require_complete_type_sfinae call.
From-SVN: r171070
H.J. Lu [Wed, 16 Mar 2011 20:04:40 +0000 (20:04 +0000)]
Check TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
PR target/48154
* config/i386/i386.c (ix86_builtin_vectorized_function): Check
TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
From-SVN: r171069
Jason Merrill [Wed, 16 Mar 2011 20:04:06 +0000 (16:04 -0400)]
re PR c++/48132 ([C++0x] Internal compiler error on array of std::complex with -std=c++0x)
PR c++/48132
* decl.c (check_array_designated_initializer): Allow integer index.
(reshape_init_array_1): Set index on the elements.
From-SVN: r171068