Bernd Schmidt [Fri, 13 Feb 2009 11:35:47 +0000 (11:35 +0000)]
loop-iv.c (implies_p): In the final case, test that operands 0 of the two comparisons match.
* loop-iv.c (implies_p): In the final case, test that operands 0
of the two comparisons match.
From-SVN: r144152
Richard Guenther [Fri, 13 Feb 2009 10:52:08 +0000 (10:52 +0000)]
configure.ac: Enable LFS.
2009-02-13 Richard Guenther <rguenther@suse.de>
* configure.ac: Enable LFS.
* configure: Re-generate.
* config.in: Likewise.
libcpp/
* configure.ac: Enable LFS.
* configure: Re-generate.
* config.in: Likewise.
From-SVN: r144151
Joseph Myers [Fri, 13 Feb 2009 01:00:24 +0000 (01:00 +0000)]
re PR c/35444 (ICE with invalid function declaration)
PR c/35444
* c-parser.c (c_parser_parms_list_declarator): Discard pending
sizes on syntax error after some arguments have been parsed.
testsuite:
* gcc.dg/noncompile/pr35444-1.c, gcc.dg/noncompile/pr35444-2.c:
New tests.
From-SVN: r144149
Benjamin Kosnik [Fri, 13 Feb 2009 00:25:16 +0000 (00:25 +0000)]
all.h (compare_type_to_native_type_sizes): To...
2009-02-12 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/util/thread/all.h (compare_type_to_native_type_sizes): To...
(compare_type_to_native_type): ...this, add alignment check.
* testsuite/30_threads/condition_variable_any/native_handle/
typesizes.cc: Modify as above.
* testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
* testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/condition_variable/native_handle/
typesizes.cc: Same.
* testsuite/30_threads/recursive_timed_mutex/native_handle/
typesizes.cc: Same.
* testsuite/30_threads/thread/cons/1.cc: Add comments.
* testsuite/30_threads/thread/cons/2.cc: Same.
* testsuite/30_threads/thread/cons/3.cc: Same.
* testsuite/30_threads/thread/cons/4.cc: Same.
* testsuite/30_threads/thread/cons/5.cc: Same.
* testsuite/30_threads/thread/cons/6.cc: Same.
* testsuite/30_threads/thread/cons/7.cc: Same.
* testsuite/30_threads/thread/cons/8.cc: Same.
* testsuite/30_threads/thread/cons/9.cc: New.
* testsuite/30_threads/thread/cons/moveable.cc: New.
* src/condition_variable.cc: Clean up whitespace.
* include/std/condition_variable: Same.
From-SVN: r144147
GCC Administrator [Fri, 13 Feb 2009 00:16:39 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144145
Benjamin Kosnik [Fri, 13 Feb 2009 00:14:42 +0000 (00:14 +0000)]
all.h (compare_type_to_native_type_sizes): To...
2009-02-12 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/util/thread/all.h (compare_type_to_native_type_sizes): To...
(compare_type_to_native_type): ...this, add alignment check.
* testsuite/30_threads/condition_variable_any/native_handle/
typesizes.cc: Modify as above.
* testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
* testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/condition_variable/native_handle/
typesizes.cc: Same.
* testsuite/30_threads/recursive_timed_mutex/native_handle/
typesizes.cc: Same.
* testsuite/30_threads/thread/cons/1.cc: Add comments.
* testsuite/30_threads/thread/cons/2.cc: Same.
* testsuite/30_threads/thread/cons/3.cc: Same.
* testsuite/30_threads/thread/cons/4.cc: Same.
* testsuite/30_threads/thread/cons/5.cc: Same.
* testsuite/30_threads/thread/cons/6.cc: Same.
* testsuite/30_threads/thread/cons/7.cc: Same.
* testsuite/30_threads/thread/cons/8.cc: Same.
* testsuite/30_threads/thread/cons/9.cc: New.
* testsuite/30_threads/thread/cons/moveable.cc: New.
* src/condition_variable.cc: Clean up whitespace.
* include/std/condition_variable: Same.
From-SVN: r144142
Jason Merrill [Thu, 12 Feb 2009 22:40:37 +0000 (17:40 -0500)]
re PR c++/38950 (ICE: deducing function template arguments for array type.)
PR c++/38950
* pt.c (unify)[TEMPLATE_PARM_INDEX]: Convert to the tsubsted type.
From-SVN: r144139
Uros Bizjak [Thu, 12 Feb 2009 22:03:44 +0000 (23:03 +0100)]
config.host (ia64*-*-linux*): Add t-softfp to tmake_file.
* config.host (ia64*-*-linux*): Add t-softfp to tmake_file.
* config/ia64/tf-signs.c (__copysigntf3, __fabstf2): Prototype.
From-SVN: r144138
Jakub Jelinek [Thu, 12 Feb 2009 21:28:00 +0000 (22:28 +0100)]
* doc/invoke.texi (-fira): Remove.
From-SVN: r144137
H.J. Lu [Thu, 12 Feb 2009 18:32:16 +0000 (18:32 +0000)]
caller-save.c: Replace regclass.c with reginfo.c in comments.
2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
* caller-save.c: Replace regclass.c with reginfo.c in comments.
* recog.c: Likewise.
* rtl.h: Likewise.
From-SVN: r144135
Uros Bizjak [Thu, 12 Feb 2009 17:33:18 +0000 (18:33 +0100)]
fp-int-convert-float128-timode.c: Do not check for lp64 in "dg-do run" directive.
* gcc.dg/torture/fp-int-convert-float128-timode.c: Do not check
for lp64 in "dg-do run" directive. Remove dg-xfail-if directive.
* gcc.dg/torture/fp-int-convert-timode.c: Remove xfail directive.
From-SVN: r144134
H.J. Lu [Thu, 12 Feb 2009 16:30:53 +0000 (08:30 -0800)]
longlong.h (sub_ddmmss): New for ia64.
gcc/
2009-02-12 Uros Bizjak <ubizjak@gmail.com>
* longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
(umul_ppmm): Likewise.
(count_leading_zeros): Likewise.
(count_trailing_zeros): Likewise.
(UMUL_TIME): Likewise.
2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Add ia64/t-fprules-softfp soft-fp/t-softfp to
tmake_file for ia64*-*-linux*.
* config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
(ia64_expand_compare): Use HPUX library for TFmode only for
HPUX.
(ia64_builtins): Add IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ
and IA64_BUILTIN_INFQ.
(ia64_init_builtins): Initialize __builtin_infq,
__builtin_fabsq and __builtin_copysignq if not HPUX.
(ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
* config/ia64/lib1funcs.asm (__divtf3): Define only if
SHARED is defined.
(__fixtfti): Likewise.
(__fixunstfti): Likewise.
(__floattitf): Likewise.
* config/ia64/libgcc-glibc.ver: New.
* config/ia64/t-fprules-softfp: Likewise.
* config/ia64/sfp-machine.h: Likewise.
* config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
(LIBGCC2_TF_CEXT): Likewise.
(TF_SIZE): Likewise.
(TARGET_INIT_LIBFUNCS): Likewise.
* config/ia64/t-glibc: Add $(srcdir)/config/ia64/libgcc-glibc.ver
to SHLIB_MAPFILES.
libgcc/
2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
* config.host: Add ia64/t-fprules-softfp ia64/t-softfp-compat
to tmake_file for ia64*-*-linux*.
* Makefile.in (gen-hide-list): Ignore .*_compat and .*@.*.
* config/ia64/__divxf3.asm: New.
* config/ia64/_fixtfdi.asm: Likewise.
* config/ia64/_fixunstfdi.asm: Likewise.
* config/ia64/_floatditf.asm: Likewise.
* config/ia64/t-fprules-softfp: Likewise.
* config/ia64/t-softfp-compat: Likewise.
* config/ia64/tf-signs.c: Likewise.
From-SVN: r144130
H.J. Lu [Thu, 12 Feb 2009 15:45:20 +0000 (07:45 -0800)]
Mention PR target/38824 in ChangeLog entries.
From-SVN: r144129
H.J. Lu [Thu, 12 Feb 2009 14:42:20 +0000 (14:42 +0000)]
i386.c (construct_container): Rewrite processing BLKmode with X86_64_SSE_CLASS.
2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (construct_container): Rewrite processing
BLKmode with X86_64_SSE_CLASS.
From-SVN: r144128
H.J. Lu [Thu, 12 Feb 2009 14:17:17 +0000 (14:17 +0000)]
defaulted9.C: Compile with "-std=c++0x -fno-inline".
2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
* g++.dg/cpp0x/defaulted9.C: Compile with "-std=c++0x -fno-inline".
From-SVN: r144127
H.J. Lu [Thu, 12 Feb 2009 14:04:20 +0000 (06:04 -0800)]
re PR target/39152 (Revision 144098 breaks 416.gamess in SPEC CPU 2006)
gcc/
2009-02-12 Paolo Bonzini <bonzini@gnu.org>
PR target/39152
* config/i386/i386.md: Replace simplify_replace_rtx with
replace_rtx in the new peephole2.
gcc/testsuite/
2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
PR target/39152
* gfortran.dg/pr39152.f: New.
From-SVN: r144126
Nathan Sidwell [Thu, 12 Feb 2009 10:57:59 +0000 (10:57 +0000)]
invoke.texi (Optimize Options): Stop claiming inlining and loop unrolling do not happen at -O2.
* doc/invoke.texi (Optimize Options): Stop claiming inlining and
loop unrolling do not happen at -O2.
From-SVN: r144123
Michael Matz [Thu, 12 Feb 2009 08:49:08 +0000 (08:49 +0000)]
* gcc.c (ASM_DEBUG_SPEC): Check for -g0.
From-SVN: r144122
Jakub Jelinek [Thu, 12 Feb 2009 08:42:57 +0000 (09:42 +0100)]
dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die for -g3.
* dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
for -g3.
From-SVN: r144121
Ben Elliston [Thu, 12 Feb 2009 04:37:09 +0000 (04:37 +0000)]
rs6000.md (allocate_stack): Use _stack form of patterns when updating the back chain.
* config/rs6000/rs6000.md (allocate_stack): Use _stack form of
patterns when updating the back chain. Missed in the 2009-02-10
change.
From-SVN: r144120
Jason Merrill [Thu, 12 Feb 2009 02:01:07 +0000 (21:01 -0500)]
re PR c++/39153 (virtual default dtor not defined)
PR c++/39153
* decl2.c (cp_write_global_declarations):
Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.
From-SVN: r144119
GCC Administrator [Thu, 12 Feb 2009 00:16:44 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144117
Janis Johnson [Thu, 12 Feb 2009 00:04:19 +0000 (00:04 +0000)]
extend.texi (Decimal Floating Types): Update identifier of draft TR and list of missing support.
* doc/extend.texi (Decimal Floating Types): Update identifier of
draft TR and list of missing support.
From-SVN: r144114
Jason Merrill [Wed, 11 Feb 2009 22:38:37 +0000 (17:38 -0500)]
re PR c++/30111 (Value-initialization of POD base class doesn't initialize members)
PR c++/30111
* init.c (build_value_init_noctor): Split out from...
(build_value_init): ...here.
(expand_aggr_init_1): Handle value-initialization.
* cp-tree.h: Add declaration.
* class.c (type_has_user_provided_constructor):
Handle non-class arguments.
From-SVN: r144112
Jakub Jelinek [Wed, 11 Feb 2009 21:57:52 +0000 (22:57 +0100)]
re PR middle-end/39154 (Miscompilation of VLAs in nested parallel regions)
PR middle-end/39154
* gimplify.c (omp_notice_variable): If adding GOVD_SEEN
bit to variable length decl's flags, add it also to its
pointer replacement variable.
* testsuite/libgomp.c/pr39154.c: New test.
From-SVN: r144111
Uros Bizjak [Wed, 11 Feb 2009 11:43:24 +0000 (12:43 +0100)]
re PR target/39118 (x86_64 red zone violation)
PR target/39118
* config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
(memory_blockage): New expander.
(*memory_blockage): New insn pattern.
* config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
instead of general blockage at the end of function prologue when
frame pointer is used to access red zone area. Do not emit blockage
when profiling, it is emitted in generic code.
(ix86_expand_epilogue): Emit memory_blockage at the beginning of
function epilogue when frame pointer is used to access red zone area.
From-SVN: r144100
Kai Tietz [Wed, 11 Feb 2009 10:50:50 +0000 (10:50 +0000)]
mh-cygwin (LDFLAGS): Add linker option to increase stack limit up to 8MB.
2009-02-11 Kai Tietz <kai.tietz@onevision.com>
* mh-cygwin (LDFLAGS): Add linker option to increase stack limit
up to 8MB.
From-SVN: r144099
Paolo Bonzini [Wed, 11 Feb 2009 08:56:41 +0000 (08:56 +0000)]
i386.md: Add two new peephole2 to avoid mov followed by arithmetic with memory operands.
gcc:
2009-02-06 Paolo Bonzini <bonzini@gnu.org>
* config/i386/i386.md: Add two new peephole2 to avoid mov followed
by arithmetic with memory operands.
* config/i386/predicates.md (commutative_operator): New.
gcc/testsuite:
2009-02-06 Paolo Bonzini <bonzini@gnu.org>
* gcc.target/i386/pr38824.c: New testcase.
From-SVN: r144098
Jason Merrill [Wed, 11 Feb 2009 05:23:38 +0000 (00:23 -0500)]
re PR c++/38649 (Trouble with defaulted constructors)
PR c++/38649
* class.c (defaultable_fn_p): Handle ... properly.
From-SVN: r144092
Jason Merrill [Wed, 11 Feb 2009 05:23:02 +0000 (00:23 -0500)]
re PR c++/36744 ([C++0x] function modifying argument received by-value affects caller's variable when passed as rvalue)
PR c++/36744
* tree.c (lvalue_p_1): Condition rvalue ref handling on
treat_class_rvalues_as_lvalues, too.
From-SVN: r144091
GCC Administrator [Wed, 11 Feb 2009 00:16:40 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144089
Janis Johnson [Wed, 11 Feb 2009 00:06:31 +0000 (00:06 +0000)]
extend.texi (Fixed-Point Types): Break long paragraphs into bulleted lists.
* doc/extend.texi (Fixed-Point Types): Break long paragraphs into
bulleted lists.
From-SVN: r144086
Eric Botcazou [Tue, 10 Feb 2009 22:52:51 +0000 (22:52 +0000)]
alias.h (record_alias_subset): Declare.
* alias.h (record_alias_subset): Declare.
* alias.c (record_alias_subset): Make global.
ada/
* gcc-interface/decl.c (enum alias_set_op): New enumeration.
(copy_alias_set): Rename into...
(relate_alias_sets): ...this. Add third parameter OP. Retrieve the
underlying array of unconstrained arrays for the new type as well.
If the old and new alias sets don't conflict, make one a subset of
the other as per the OP parameter.
(gnat_to_gnu_entity): Adjust calls to copy_alias_set.
<E_Record_Type>: Do not copy the alias set for derived types.
For all types, make the alias set of derived types a superset of
that of their parent type.
(make_aligning_type): Adjust calls to copy_alias_set.
(make_packable_type): Likewise.
* gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
Check for alias set conflict instead of strict equality to issue the
warning.
From-SVN: r144084
Paolo Carlini [Tue, 10 Feb 2009 21:47:12 +0000 (21:47 +0000)]
re PR c++/34397 (ICE on invalid default template parameter)
/cp
2009-02-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/34397
* typeck.c (build_x_array_ref): New.
* cp-tree.h: Declare it.
* pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.
/testsuite
2009-02-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/34397
* g++.dg/template/crash88.C: New.
* g++.dg/template/crash89.C: Likewise.
From-SVN: r144083
Mark Mitchell [Tue, 10 Feb 2009 21:39:15 +0000 (21:39 +0000)]
Makefile.am (AM_MAKEFLAGS): Pass down datadir.
* Makefile.am (AM_MAKEFLAGS): Pass down datadir.
* Makefile.in: Regenerated.
From-SVN: r144081
Nick Clifton [Tue, 10 Feb 2009 17:59:08 +0000 (17:59 +0000)]
tree-parloops.c: Change license to GPLv3.
* tree-parloops.c: Change license to GPLv3.
* ipa-struct-reorg.c: Change license to GPLv3.
* ipa-struct-reorg.h: Change license to GPLv3.
From-SVN: r144072
Steve Ellcey [Tue, 10 Feb 2009 16:34:30 +0000 (16:34 +0000)]
re PR c/39084 (ice on struct redefinition)
PR c/39084
gcc.dg/pr39084.c: New test.
From-SVN: r144068
Steve Ellcey [Tue, 10 Feb 2009 16:33:19 +0000 (16:33 +0000)]
re PR c/39084 (ice on struct redefinition)
PR c/39084
* c-decl.c (start_struct): Return NULL on error.
From-SVN: r144067
Jakub Jelinek [Tue, 10 Feb 2009 16:23:17 +0000 (17:23 +0100)]
re PR middle-end/39124 (-fno-exceptions leads to a ICE)
PR middle-end/39124
* cfgloopmanip.c (remove_path): Call remove_bbs after
cancel_loop_tree, not before it.
From-SVN: r144066
Jakub Jelinek [Tue, 10 Feb 2009 16:22:29 +0000 (17:22 +0100)]
re PR target/39139 (ICE with stringop and register var)
PR target/39139
* function.h (struct function): Add has_local_explicit_reg_vars
bit.
* gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
VAR_DECLs were seen.
* tree-ssa-live.c (remove_unused_locals): Recompute
cfun->has_local_explicit_reg_vars.
* tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
copies or clearings if cfun->has_local_explicit_reg_vars.
* gcc.target/i386/pr39139.c: New test.
From-SVN: r144065
Uros Bizjak [Tue, 10 Feb 2009 16:12:33 +0000 (17:12 +0100)]
re PR target/39118 (x86_64 red zone violation)
PR target/39118
* config/i386/i386.c (expand_prologue): Emit blockage at the end
of function prologue when frame pointer is used to access
red zone area.
From-SVN: r144063
Joseph Myers [Tue, 10 Feb 2009 14:56:10 +0000 (14:56 +0000)]
* Makefile.in (clean): Don't remove makedepend$(EXEEXT).
From-SVN: r144062
Richard Guenther [Tue, 10 Feb 2009 14:55:15 +0000 (14:55 +0000)]
re PR middle-end/39127 (Invalid GIMPLE with OpenMP)
2009-02-10 Richard Guenther <rguenther@suse.de>
PR middle-end/39127
* gimplify.c (gimple_regimplify_operands): Always look if
we need to create a temporary.
From-SVN: r144061
Richard Guenther [Tue, 10 Feb 2009 14:54:13 +0000 (14:54 +0000)]
re PR tree-optimization/39132 (wrong code generated with -ftree-loop-disttribution)
2009-02-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39132
* tree-loop-distribution.c (todo): New global var.
(generate_memset_zero): Trigger TODO_rebuild_alias.
(tree_loop_distribution): Return todo.
* gcc.dg/torture/pr39132.c: New testcase.
From-SVN: r144060
H.J. Lu [Tue, 10 Feb 2009 14:00:46 +0000 (14:00 +0000)]
re PR target/39119 (Update classification of aggregates with __m256)
gcc/
2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR target/39119
* config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
(x86_64_reg_class_name): Removed.
(classify_argument): Return 0 if bytes > 32. Return 0 if the
first one isn't X86_64_SSE_CLASS or any other ones aren't
X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
and 3 X86_64_SSEUP_CLASS.
(construct_container): Remove X86_64_AVX_CLASS. Handle 4
registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
gcc/testsuite/
2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR target/39119
* gcc.target/x86_64/abi/avx/abi-avx.exp: New.
* gcc.target/x86_64/abi/avx/args.h: Likewise.
* gcc.target/x86_64/abi/avx/asm-support.S: Likewise.
* gcc.target/x86_64/abi/avx/avx-check.h: Likewise.
* gcc.target/x86_64/abi/avx/test_m256_returning.c: Likewise.
* gcc.target/x86_64/abi/avx/test_passing_m256.c: Likewise.
* gcc.target/x86_64/abi/avx/test_passing_structs.c: Likewise.
* gcc.target/x86_64/abi/avx/test_passing_unions.c: Likewise.
From-SVN: r144058
Benjamin Kosnik [Tue, 10 Feb 2009 08:29:57 +0000 (08:29 +0000)]
condition_variable (condition_variable): Remove _M_internal_mutex.
2009-02-09 Benjamin Kosnik <bkoz@redhat.com>
* include/std/condition_variable (condition_variable): Remove
_M_internal_mutex. Add private __native_type typedef.
* src/condition_variable.cc (condition_variable::notify_one):
Remove _M_internal_mutex use. Use typedef.
(condition_variable::notify_all): Same.
* include/std/mutex (mutex): Add private __native_type typedef. Use it.
(recursive_mutex): Same.
(timed_mutex): Same.
(recursive_timed_mutex): Same.
(once_flag): Make __native_type typedef private.
* include/std/thread (this_thread): Add minimal markup.
* testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
Adjust line numbers.
* testsuite/30_threads/condition_variable_any/cons/copy_neg.cc: Same.
* testsuite/30_threads/mutex/cons/assign_neg.cc: Same.
* testsuite/30_threads/mutex/cons/copy_neg.cc: Same.
* testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Same.
* testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Same.
* testsuite/30_threads/thread/cons/assign_neg.cc: Same.
* testsuite/30_threads/thread/cons/copy_neg.cc: Same.
* testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Same.
* testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Same.
* testsuite/30_threads/condition_variable/cons/assign_neg.cc: Same.
* testsuite/30_threads/condition_variable/cons/copy_neg.cc: Same.
* testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc: Same.
* testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Same.
* testsuite/util/thread/all.h: Testsuite utilities for testing thread.
* testsuite/30_threads/condition_variable_any/native_handle/
typesizes.cc: New.
* testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
* testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/condition_variable/native_handle/
typesizes.cc: Same.
* testsuite/30_threads/recursive_timed_mutex/native_handle/
typesizes.cc: Same.
From-SVN: r144053
GCC Administrator [Tue, 10 Feb 2009 00:16:43 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144050
Ben Elliston [Tue, 10 Feb 2009 00:13:34 +0000 (00:13 +0000)]
rs6000.md (allocate_stack): Always use an update form instruction to update the stack back chain word...
* config/rs6000/rs6000.md (allocate_stack): Always use an update
form instruction to update the stack back chain word, even if the
user has disabled the generation of update instructions.
(movdi_<mode>_update_stack): New.
(movsi_update_stack): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
always use an update form instruction to update the stack back
chain word.
From-SVN: r144047
Mark Mitchell [Mon, 9 Feb 2009 22:52:08 +0000 (22:52 +0000)]
addr2name.awk: Remove.
* addr2name.awk: Remove.
* Makefile.am (bin_SCRIPTS): Remove addr2name.awk.
* Makefile.in: Regenerated.
* configure.ac: Define enable_sjlj_exceptions
appropriately under the ARM EH ABI.
* configure: Regenerated.
* Makefile.am (LTLDFLAGS): Define.
(GCJLINK): Use it.
(LIBLINK): Likewise.
* Makefile.in: Regenerated.
From-SVN: r144046
Mark Mitchell [Mon, 9 Feb 2009 22:51:40 +0000 (22:51 +0000)]
Makefile.am (LTLDFLAGS): New variable.
* Makefile.am (LTLDFLAGS): New variable.
(LINK): Use it.
* Makefile.in: Regenerated.
From-SVN: r144045
Jason Merrill [Mon, 9 Feb 2009 21:46:18 +0000 (16:46 -0500)]
re PR c++/39109 (Accessible constructor required for new)
PR c++/39109
* semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
* init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
* tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
* cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
for build_value_init TARGET_EXPR.
* cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.
From-SVN: r144044
Jack Howarth [Mon, 9 Feb 2009 20:53:22 +0000 (20:53 +0000)]
re PR testsuite/33300 ([libstdc++-v3] 27_io/ios_base/storage/2.cc with -m64 kills Darwin)
2009-02-09 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/33300
* libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc: Skip
on darwin for lp64.
From-SVN: r144043
Sebastian Pop [Mon, 9 Feb 2009 20:35:09 +0000 (20:35 +0000)]
re PR tree-optimization/38953 ([graphite] loop closed SSA not maintained by graphite code generation)
2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/38953
* graphite.c (if_region_set_false_region): After moving a region
in the false branch of a condition, remove the empty dummy basic block.
(gloog): Remove wrong fix for PR38953.
From-SVN: r144042
Adam Nemet [Mon, 9 Feb 2009 20:24:08 +0000 (20:24 +0000)]
configure.host: Set abi_baseline_pair for mips64*-linux.
* configure.host: Set abi_baseline_pair for mips64*-linux.
* config/abi/post/mips64-linux-gnu/baseline_symbols.txt: New file.
From-SVN: r144041
Eric Botcazou [Mon, 9 Feb 2009 18:34:20 +0000 (18:34 +0000)]
decl.c (gnat_to_gnu_entity): Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
(copy_alias_set): Assert that arrays have the same aliasing settings.
(substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
From-SVN: r144038
H.J. Lu [Mon, 9 Feb 2009 18:07:41 +0000 (18:07 +0000)]
abi-x86_64.exp: Use glob instead of find.
2009-02-09 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/x86_64/abi/abi-x86_64.exp: Use glob instead of
find.
From-SVN: r144036
Ulrich Weigand [Mon, 9 Feb 2009 14:35:38 +0000 (14:35 +0000)]
spu.c (array_to_constant): Fix (latent) wrong-code generation due to implicit sign extension.
* config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
generation due to implicit sign extension.
From-SVN: r144034
Eric Botcazou [Mon, 9 Feb 2009 11:09:25 +0000 (11:09 +0000)]
re PR middle-end/38981 (internal compiler error)
PR middle-end/38981
* tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
From-SVN: r144032
Richard Guenther [Mon, 9 Feb 2009 09:35:22 +0000 (09:35 +0000)]
re PR tree-optimization/35202 (exp->expf transformation incorrect with -fmath-errno)
2009-02-09 Richard Guenther <rguenther@suse.de>
PR middle-end/35202
* convert.c (convert_to_real): Disable (float)fn((double)x)
to fnf(x) conversion if errno differences may occur and
-fmath-errno is set.
From-SVN: r144030
Chris Fairles [Mon, 9 Feb 2009 06:32:12 +0000 (06:32 +0000)]
thread (this_thread::get_id): Inline.
2009-02-08 Chris Fairles <cfairles@gcc.gnu.org>
* include/std/thread (this_thread::get_id): Inline.
From-SVN: r144029
Eric Botcazou [Mon, 9 Feb 2009 06:18:23 +0000 (06:18 +0000)]
revert: tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Make case self-contained.
Revert:
* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
Make case self-contained.
<ARRAY_REF>: Test TYPE_NONALIASED_COMPONENT flag.
From-SVN: r144028
GCC Administrator [Mon, 9 Feb 2009 00:16:50 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144026
Chris Fairles [Mon, 9 Feb 2009 00:13:47 +0000 (00:13 +0000)]
thread (thread<>::thread(_Callable)): Explicitly use _Callable as template argument for _M_make_shared_data.
2009-02-08 Chris Fairles <cfairles@gcc.gnu.org>
* include/std/thread (thread<>::thread(_Callable)): Explicitly use
_Callable as template argument for _M_make_shared_data.
* testsuite/30_threads/thread/cons/6.cc: New.
* testsuite/30_threads/thread/cons/7.cc: New.
* testsuite/30_threads/thread/cons/8.cc: New.
From-SVN: r144023
Eric Botcazou [Sun, 8 Feb 2009 23:10:00 +0000 (23:10 +0000)]
tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Make case self-contained.
* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
Make case self-contained.
<ARRAY_REF>: Test TYPE_NONALIASED_COMPONENT flag.
ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
Set TYPE_NONALIASED_COMPONENT on the array type.
From-SVN: r144021
Benjamin Kosnik [Sun, 8 Feb 2009 09:10:15 +0000 (09:10 +0000)]
member: To..
2009-02-07 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/30_threads/thread/member: To..
* testsuite/30_threads/thread/members: ...this.
* testsuite/30_threads/condition_variable/member: To...
* testsuite/30_threads/condition_variable/members: ...this.
From-SVN: r144014
GCC Administrator [Sun, 8 Feb 2009 00:16:54 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144011
Benjamin Kosnik [Sat, 7 Feb 2009 21:56:55 +0000 (21:56 +0000)]
thread (thread::id): Move definition inside thread.
2009-02-06 Benjamin Kosnik <bkoz@redhat.com>
* include/std/thread (thread::id): Move definition inside thread.
Use native_handle_type. Remove this_thread::get_id friend.
Change __thread_data_ptr to __shared_base_ptr.
(thread::id::id(native_handle_type): Make public. Still explicit.
Use native_handle_type. Change _M_thread_id to _M_thread.
(thread::__thread_data_base): Rename to _Impl_base. Use id, change
_M_thread_handle to _M_id.
(thread::__thread_data): Rename to _Impl.
Fixup for renames.
(thread::_M_make_thread_data): Return derived type.
(thread::hardware_concurrency): Add definition for default case.
(thread::get_id): Now can define inline.
(thread): Change _M_thread_data to _M_data.
(this_thread::get_id): Now can define inline.
* src/thread.cc (__thread_proxy): Rename to
execute_native_thread_routine.
Fixup for other renames.
* testsuite/30_threads/thread/cons/assign_neg.cc: New.
* testsuite/30_threads/thread/cons/copy_neg.cc: New.
* testsuite/30_threads/thread/algorithm: Move to..
* testsuite/30_threads/thread/swap: ...this.
* testsuite/30_threads/thread/member/hardware_concurrency.cc: Add.
* testsuite/30_threads/thread/id/operators.cc: New.
From-SVN: r144007
Anatoly Sokolov [Sat, 7 Feb 2009 18:55:25 +0000 (21:55 +0300)]
avr.c (avr_mcu_t): Add ata6289 device.
* config/avr/avr.c (avr_mcu_t): Add ata6289 device.
* config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
* config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
From-SVN: r144006
Paolo Carlini [Sat, 7 Feb 2009 02:05:04 +0000 (02:05 +0000)]
re PR c++/35147 (ICE trying to expand an argument pack with zero arguments)
/cp
2009-02-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/35147
PR c++/37737
* cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Check TREE_VEC_LENGTH.
/testsuite
2009-02-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/35147
PR c++/37737
* g++.dg/cpp0x/vt-35147.C: New.
* g++.dg/cpp0x/vt-37737-1.C: Likewise.
* g++.dg/cpp0x/vt-37737-2.C: Likewise.
From-SVN: r144001
Joseph Myers [Sat, 7 Feb 2009 00:32:37 +0000 (00:32 +0000)]
re PR c/35434 (ICE with attribute alias)
PR c/35434
* c-common.c (handle_alias_attribute): Disallow attribute for
anything not a FUNCTION_DECL or VAR_DECL.
testsuite:
* gcc.dg/attr-alias-4.c: New test.
From-SVN: r143998
GCC Administrator [Sat, 7 Feb 2009 00:16:52 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r143996
Janis Johnson [Fri, 6 Feb 2009 21:01:46 +0000 (21:01 +0000)]
re PR c/39035 (if( 0.0DF ) is considered true)
PR c/39035
* real.c (do_compare): Special-case compare of zero against
decimal float value.
* gcc.dg/dfp/pr39035.c: New test.
From-SVN: r143992
Joseph Myers [Fri, 6 Feb 2009 20:14:10 +0000 (20:14 +0000)]
* vi.po: Update.
From-SVN: r143990
Joseph Myers [Fri, 6 Feb 2009 20:12:10 +0000 (20:12 +0000)]
re PR c/36432 (“incompatible pointer type” with pointer to array as a struct member)
PR c/36432
* c-decl.c (grokdeclarator): Don't treat [] declarators in fields
as indicating flexible array members unless the field itself is
being declarared as the incomplete array.
testsuite:
* gcc.dg/c90-flex-array-2.c, gcc.dg/c99-flex-array-6.c: New tests.
From-SVN: r143989
Jan Hubicka [Fri, 6 Feb 2009 16:47:39 +0000 (17:47 +0100)]
re PR tree-optimization/38844 (deadlock with __attribute__((always_inline)) at -O1 and above)
PR tree-optimization/38844
* ipa-inline.c (try_inline): Stop inlining recursion when edge
is already inlined.
From-SVN: r143985
Richard Guenther [Fri, 6 Feb 2009 09:06:39 +0000 (09:06 +0000)]
re PR tree-optimization/38977 (bash no longer builds with profile-feedback)
2009-02-06 Richard Guenther <rguenther@suse.de>
PR middle-end/38977
* tree-cfg.c (need_fake_edge_p): Force a fake edge for
fork because we may expand it as __gcov_fork.
From-SVN: r143982
Nick Clifton [Fri, 6 Feb 2009 09:02:37 +0000 (09:02 +0000)]
* config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
From-SVN: r143981
Paolo Bonzini [Fri, 6 Feb 2009 07:33:05 +0000 (07:33 +0000)]
re PR target/35659 (Miscompiled code with -O2 (but not with -O2 -funroll-loops) on ia64)
2009-02-06 Paolo Bonzini <bonzini@gnu.org>
PR tree-optimization/35659
* tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
vn_phi_eq): Shortcut if hashcode does not match.
(vn_reference_op_compute_hash): Do not call iterative_hash_expr for
NULL operands.
* tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
and avoid iterative_hash_expr.
(FOR_EACH_VALUE_ID_IN_SET): New.
(value_id_compare): Remove.
(sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
sort expressions by value id.
From-SVN: r143980
Chris Fairles [Fri, 6 Feb 2009 06:01:40 +0000 (06:01 +0000)]
tuple (_Head_base<>::_Head_base(_UHead&&)): Formatting.
2009-02-05 Chris Fairles <cfairles@gcc.gnu.org>
* include/std/tuple (_Head_base<>::_Head_base(_UHead&&)): Formatting.
(_Head_base<>::__swap_impl): Rename to _M_swap_impl.
(_Tuple_impl<>::__swap_impl): Likewise and make protected to avoid
exposing it in public std::tuple interface.
From-SVN: r143979
Kaz Kojima [Fri, 6 Feb 2009 00:29:03 +0000 (00:29 +0000)]
re PR target/38991 (SH: ICE in extract_insn at recog.c:1990)
PR target/38991
* config/sh/predicates.md (general_movsrc_operand): Don't check
the subreg of system registers here.
From-SVN: r143978
GCC Administrator [Fri, 6 Feb 2009 00:16:37 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r143976
Jakub Jelinek [Thu, 5 Feb 2009 21:54:06 +0000 (22:54 +0100)]
re PR c++/39106 (aliased to undefined symbol error with thunks)
PR c++/39106
* cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
on the copied decl.
* g++.dg/opt/thunk3.C: New test.
From-SVN: r143973
Paolo Bonzini [Thu, 5 Feb 2009 18:29:11 +0000 (18:29 +0000)]
re PR rtl-optimization/39110 (Revision 143939 breaks bootstrap on Linux/ia64)
2009-02-05 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/39110
* rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
addresses, not aligned ones.
From-SVN: r143971
Chris Fairles [Thu, 5 Feb 2009 17:47:56 +0000 (17:47 +0000)]
thread (__thread_data_base): Nest class in std::thread.
2009-02-05 Chris Fairles <cfairles@gcc.gnu.org>
Benjamin Kosnik <bkoz@redhat.com>
* include/std/thread (__thread_data_base): Nest class in std::thread.
(__thread_data): Likewise.
(__thread_data_ptr): Nest typedef in std::thread.
* src/thread.cc (__thread_proxy): Qualify the above names.
* config/abi/pre/gnu.ver: Remove unused exports.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r143969
Andreas Schwab [Thu, 5 Feb 2009 15:29:52 +0000 (15:29 +0000)]
Makefile.tpl (stage_last): Define $r and $s before using $(RECURSE_FLAGS_TO_PASS).
* Makefile.tpl (stage_last): Define $r and $s before using
$(RECURSE_FLAGS_TO_PASS).
* Makefile.in: Regenerate
From-SVN: r143967
Nick Clifton [Thu, 5 Feb 2009 11:59:20 +0000 (11:59 +0000)]
20080625-1.c: Skip for M32C.
* gcc.c-torture/compile/
20080625-1.c: Skip for M32C.
* gcc.c-torture/compile/limits-stringlit.c: Likewise.
* gcc.dg/cdce1.c: Likewise.
* gcc.dg/cpp/_Pragma6.c: Likewise.
* g++.dg/cpp/_Pragma1.C: Likewise.
* gcc.dg/utf32-2.c: Xfail for M32C.
* gcc.dg/utf32-1.c: Likewise.
* gcc.dg/utf32-3.c: Likewise.
* gcc.dg/Wtype-limits.c: Add expected warning messages for 16-bit
targets.
* gcc.dg/Wtype-limits-Wextra.c: Likewise.
* gcc.dg/utf32-4.c: Only run for 32-bit+ targets.
* gcc.dg/Wconversion-5.c: Likewise.
* gcc.dg/tree-ssa/data-dep-1.c: Likewise.
* gcc.dg/tree-ssa/ldist-3.c: Likewise.
* gcc.dg/tree-ssa/ldist-5.c: Likewise.
* gcc.dg/utf-inc-init.c: Likewise.
* gcc.dg/pr11492.c: Xfail for 16-bit targets.
* gcc.dg/utf-array.c: Add expected warning messages for M32C.
* gcc.dg/utf-array-short-wchar.c: Likewise.
* gcc.dg/tree-ssa/pr33920.c: Expect a warning from all 16-bit targets.
* gcc.dg/mallign.c: Use size_t instead of long.
From-SVN: r143962
Uros Bizjak [Thu, 5 Feb 2009 08:28:18 +0000 (09:28 +0100)]
pr31863.C: Generalize dg-timeout-factor.
* g++.dg/torture/pr31863.C: Generalize dg-timeout-factor.
From-SVN: r143958
Daniel Berlin [Thu, 5 Feb 2009 07:09:44 +0000 (07:09 +0000)]
re PR tree-optimization/39100 (-fstrict-aliasing miscompilation)
2009-02-05 Daniel Berlin <dberlin@dberlin.org>
Richard Guenther <rguenther@suse.de>
PR tree-optimization/39100
* tree-ssa-structalias.c (do_ds_constraint): Actually do what the
comment says and add edges.
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r143951
Benjamin Kosnik [Thu, 5 Feb 2009 01:50:18 +0000 (01:50 +0000)]
unique_ptr.h: Remove private __this_type typedef.
2009-02-04 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/unique_ptr.h: Remove private __this_type typedef.
* include/bits/stl_vector.h: Remove private vector_type typedef.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Fix line numbers.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Same.
* testsuite/20_util/unique_ptr/assign/assign.cc: Same.
From-SVN: r143949
Joseph Myers [Thu, 5 Feb 2009 01:18:02 +0000 (01:18 +0000)]
re PR c/35435 (ICE with attribute tls_model in typedef)
PR c/35435
* c-common.c (handle_tls_model_attribute): Ignore attribute for
non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
testsuite:
* gcc.dg/tls/diag-6.c: New test.
From-SVN: r143948
Tobias Grosser [Thu, 5 Feb 2009 00:29:48 +0000 (00:29 +0000)]
graphite.c (bb_in_sese_p, [...]): Moved.
2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
* graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
register_bb_in_sese, new_sese, free_sese): Moved.
(dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
outermost_loop_in_scop, build_scop_iteration_domain,
expand_scalar_variables_ssa_name, get_vdef_before_scop,
limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
Use loop_in_sese_p instead of loop_in_scop_p.
(new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
(new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
(scopdet_basic_block_info): Fix bug in scop detection.
(new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
eq_loop_to_cloog_loop): Remove.
(nb_loops_around_loop_in_scop, nb_loop
ref_nb_loops): Moved here...
* graphite.h (ref_nb_loops): ... from here.
(struct scop): Remove bbs_b bitmap and loop2cloog_loop.
(loop_domain_dim, loop_iteration_vector_dim): Remove.
(SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
* testsuite/gcc.dg/graphite/scop-19.c: New
From-SVN: r143947
GCC Administrator [Thu, 5 Feb 2009 00:17:10 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r143945
Paolo Bonzini [Wed, 4 Feb 2009 20:54:36 +0000 (20:54 +0000)]
re PR rtl-optimization/37889 (SEGV, conditional execution proactively executed the false arm.)
2009-02-04 Paolo Bonzini <bonzini@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
PR rtl-optimization/37889
* rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
Move offset handling from PLUS to before the switch. Use new
arguments when considering SYMBOL_REFs too.
(rtx_addr_can_trap_p): Pass dummy offset and size.
(enum may_trap_p_flags): Remove.
(may_trap_p_1): Pass size from MEM_SIZE.
PR rtl-optimization/38921
* loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
* rtl.h (may_trap_after_code_motion_p): Delete prototype.
* rtlanal.c (may_trap_after_code_motion_p): Delete.
(may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
Co-Authored-By: Hans-Peter Nilsson <hp@axis.com>
From-SVN: r143939
H.J. Lu [Wed, 4 Feb 2009 20:09:30 +0000 (20:09 +0000)]
AVX Programming Reference (January, 2009)
gcc/
2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
AVX Programming Reference (January, 2009)
* config/i386/sse.md (*vpclmulqdq): New.
gcc/testsuite/
2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
AVX Programming Reference (January, 2009)
* gcc.target/i386/avx-vpclmulqdq.c: New.
* gcc.target/i386/pclmul-avx-check.h: Likewise.
* gcc.target/i386/i386.exp (check_effective_target_vpclmul): New.
* gcc.target/i386/pclmulqdq.c (CHECK_H): New.
(TEST): Likewise.
Include CHECK_H instead of "pclmul-check.h".
(pclmul_test): Renamed to ...
(TEST): This.
From-SVN: r143938
Jakub Jelinek [Wed, 4 Feb 2009 19:50:58 +0000 (20:50 +0100)]
re PR tree-optimization/38977 (bash no longer builds with profile-feedback)
PR tree-optimization/38977
PR gcov-profile/38292
* calls.c (special_function_p): Disregard __builtin_
prefix.
From-SVN: r143937
Jakub Jelinek [Wed, 4 Feb 2009 16:50:22 +0000 (17:50 +0100)]
re PR c++/39095 (Mangling changes break ABI)
PR c++/39095
* operators.def: Use COMPONENT_REF code for ->/pt operator again,
remove ./dt operator.
* mangle.c (write_expression): Handle COMPONENT_REF after handling
ADDR_EXPR, for COMPONENT_REF without ARROW_EXPR inside of it
write_string ("dt") instead of using operators.def.
* g++.dg/abi/mangle31.C: New test.
From-SVN: r143933
Hariharan Sandanagobalane [Wed, 4 Feb 2009 16:17:47 +0000 (16:17 +0000)]
picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow non-indexable addresses even before reload.
* config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
non-indexable addresses even before reload.
From-SVN: r143929
Joseph Myers [Wed, 4 Feb 2009 00:59:21 +0000 (00:59 +0000)]
re PR c/29129 ([DR#341] unnamed parameters using [*])
PR c/29129
* c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
as having variable size. Do not give an error for unnamed
parameters with [*] declarators. Give a warning for type names
with [*] declarators and mark them as variable size.
* c-parser.c (c_parser_sizeof_expression): Do not give an error
for sizeof applied to [*] type names.
testsuite:
* c90-arraydecl-1.c: Do not expect error for [*] in abstract
declarator.
* vla-6.c: Likewise. Expect warning not error for [*] lexically
inside function prototype but not part of parameter declarator.
* vla-11.c: New test.
From-SVN: r143918
GCC Administrator [Wed, 4 Feb 2009 00:16:40 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r143916
Paolo Carlini [Tue, 3 Feb 2009 23:44:53 +0000 (23:44 +0000)]
re PR libstdc++/25191 (exception_defines.h #defines try/catch)
2009-02-03 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/25191
* libsupc++/exception_defines.h: Depending on __EXCEPTIONS,
deal consistently with __try and __catch too.
* src/localename.cc: Replace try -> __try, catch -> __catch.
* src/ios.cc: Likewise.
* src/locale.cc: Likewise.
* src/istream.cc: Likewise.
* src/thread.cc: Likewise.
* src/compatibility.cc: Likewise.
* src/bitmap_allocator.cc: Likewise.
* src/ios_init.cc: Likewise.
* include/debug/deque: Likewise.
* include/debug/list: Likewise.
* include/tr1_impl/hashtable: Likewise.
* include/std/bitset: Likewise.
* include/ext/pb_ds/detail/resize_policy/
hash_load_check_resize_trigger_imp.hpp: Likewise.
* include/ext/pb_ds/detail/resize_policy/
hash_standard_resize_policy_imp.hpp: Likewise.
* include/ext/pb_ds/detail/cc_hash_table_map_/
resize_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/cc_hash_table_map_/
constructor_destructor_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/pat_trie_/
split_join_branch_bag.hpp: Likewise.
* include/ext/pb_ds/detail/pat_trie_/
constructors_destructor_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/bin_search_tree_/
constructors_destructor_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/gp_hash_table_map_/
resize_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/gp_hash_table_map_/
constructor_destructor_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/binary_heap_/
constructors_destructor_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/binary_heap_/
erase_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/binary_heap_/
split_join_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/left_child_next_sibling_heap_/
constructors_destructor_fn_imps.hpp: Likewise.
* include/ext/pb_ds/detail/debug_map_base.hpp: Likewise.
* include/ext/pb_ds/detail/list_update_map_/
constructor_destructor_fn_imps.hpp: Likewise.
* include/ext/slist: Likewise.
* include/ext/memory: Likewise.
* include/ext/rc_string_base.h: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/vstring.tcc: Likewise.
* include/ext/rope: Likewise.
* include/ext/sso_string_base.h: Likewise.
* include/bits/shared_ptr.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/locale_classes.tcc: Likewise.
* include/bits/locale_facets.tcc: Likewise.
* include/bits/locale_classes.h: Likewise.
* include/bits/forward_list.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/istream.tcc: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/vector.tcc: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/deque.tcc: Likewise.
* include/bits/basic_string.tcc: Likewise.
* include/bits/ostream_insert.h: Likewise.
* include/bits/locale_facets_nonio.tcc: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/fstream.tcc: Likewise.
* include/tr1/shared_ptr.h: Likewise.
* include/tr1/hypergeometric.tcc: Likewise.
* include/backward/hashtable.h: Likewise.
* libsupc++/exception_ptr.h: Likewise.
* libsupc++/eh_personality.cc: Likewise.
* libsupc++/eh_call.cc: Likewise.
* config/locale/gnu/monetary_members.cc: Likewise.
* config/locale/gnu/time_members.h: Likewise.
* config/locale/generic/time_members.h: Likewise.
From-SVN: r143913