Richard Sandiford [Sat, 21 Feb 2009 09:15:13 +0000 (09:15 +0000)]
loop-iv.c (truncate_value): New function.
gcc/
* loop-iv.c (truncate_value): New function.
(iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
of lowpart_subreg.
(lowpart_subreg): Move to...
* emit-rtl.c: ...here.
From-SVN: r144348
Benjamin Kosnik [Sat, 21 Feb 2009 03:56:21 +0000 (03:56 +0000)]
this_thread: Move...
2009-02-20 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/30_threads/thread/this_thread: Move...
* testsuite/30_threads/this_thread: ...here.
* testsuite/20_util/unique_ptr/assign/assign.cc: Move...
* testsuite/20_util/unique_ptr/assign/assign_neg.cc: ...here.
* testsuite/20_util/ratio/cons/cons_overflow.cc: Move...
* testsuite/20_util/ratio/cons/cons_overflow_neg.cc: ...here.
* testsuite/20_util/ratio/operations/ops_overflow.cc: Move...
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: ...here.
From-SVN: r144346
Danny Smith [Sat, 21 Feb 2009 03:21:44 +0000 (03:21 +0000)]
winnt.c (i386_pe_asm_output_aligned_decl_common): Revert accidental And undocumented change at revision 140860.
* config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
accidental And undocumented change at revision 140860.
From-SVN: r144345
Joseph Myers [Sat, 21 Feb 2009 02:18:01 +0000 (02:18 +0000)]
arm.c (arm_gimplify_va_arg_expr): Update prototype to take gimple_seq * arguments.
* config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
take gimple_seq * arguments.
(arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
types_compatible_p langhook.
From-SVN: r144344
Benjamin Kosnik [Sat, 21 Feb 2009 00:45:21 +0000 (00:45 +0000)]
user.cfg.in: Tweaks.
2009-02-20 Benjamin Kosnik <bkoz@redhat.com>
* doc/doxygen/user.cfg.in: Tweaks.
* doc/doxygen/doxygroups.cc: Prefer markup that can be elsewhere,
be elsewhere.
* include/tr1_impl/unordered_map: Just use most specialized
container module.
* include/tr1_impl/unordered_set: Same.
* include/tr1_impl/array: Same.
* include/bits/stl_list.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_queue.h: Same.
* include/bits/stl_set.h: Same.
* include/bits/stl_stack.h: Same.
* include/bits/forward_list.h: Same.
* include/bits/basic_string.h: Same.
* include/bits/stl_multimap.h: Same.
* include/bits/stl_vector.h: Same.
* include/bits/stl_deque.h: Same.
* include/bits/stl_multiset.h: Same.
* include/bits/stl_bvector.h: Same.
* include/backward/binders.h: Change binder module to binders.
* include/std/complex: Add complex_numers module.
* include/tr1_impl/complex: Same.
* include/std/valarray: Add numeric_arrays module.
* include/bits/gslice_array.h: Same.
* include/bits/gslice.h: Same.
* include/bits/mask_array.h: Same.
* include/bits/slice_array.h: Same.
* include/bits/indirect_array.h: Same.
* include/bits/allocator.h: Add allocators module.
* include/ext/throw_allocator.h
* include/ext/pool_allocator.h
* include/ext/bitmap_allocator.h
* include/ext/new_allocator.h
* include/ext/malloc_allocator.h
* include/ext/array_allocator.h
* include/ext/mt_allocator.h
* include/ext/debug_allocator.h
* include/ext/extptr_allocator.h
* include/tr1_impl/functional: Move namespace markup here.
* include/tr1_impl/regex: Same.
* include/tr1_impl/type_traits: Add metaprogramming module.
* include/std/type_traits: Same.
* include/std/memory: Add memory module.
* include/std/ratio: Add ratio module.
* include/std/chrono: Move namespace markup here, add time module.
* include/std/thread: Move namespace markup here, add concurrency
module.
* include/std/mutex: Use concurrency module.
* include/std/condition_variable: Same.
* include/bits/ios_base.h: Refine io module.
* include/bits/basic_ios.h: Same.
* include/std/fstream: Same.
* include/std/istream: Same.
* include/std/ostream: Same.
* include/std/sstream: Same.
* include/ext/vstring.h: Correct parameter markup.
* include/bits/shared_ptr.h: Add pointer_abstractions module.
* include/bits/unique_ptr.h: Same.
* include/bits/algorithmfwd.h: Add mutating_algorithms,
non_mutating_algorithms, sorting_algorithms. Adjust nesting.
* include/bits/stl_heap.h: Add markup for new groupings.
* include/bits/stl_algobase.h: Same.
* include/bits/stl_algo.h: Same.
* include/c_compatibility/stdatomic.h: Add atomics module.
* include/c_global/cstdatomic: Same.
* libsupc++/exception: Add exceptions module.
* libsupc++/typeinfo: Same.
* libsupc++/new: Same.
* libsupc++/exception_ptr.h: Same.
* include/std/system_error: Same.
* include/std/stdexcept: Same.
* libsupc++/cxxabi.h: Move doxygroups.cc markup here.
* libsupc++/cxxabi-forced.h: Same.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Fix up line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
* testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Same.
* 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/29_atomics/atomic/cons/assign_neg.cc: Same.
* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Same.
* 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/23_containers/deque/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/20_util/duration/cons/1_neg.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Same.
* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Same.
* testsuite/20_util/unique_ptr/assign/assign.cc: Same.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/ratio/cons/cons_overflow.cc: Same.
* testsuite/20_util/ratio/operations/ops_overflow.cc: Same.
From-SVN: r144343
GCC Administrator [Sat, 21 Feb 2009 00:16:48 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144341
Jakub Jelinek [Fri, 20 Feb 2009 15:20:38 +0000 (16:20 +0100)]
Update Copyright years for files modified in 2008 and/or 2009.
From-SVN: r144324
Mark Mitchell [Fri, 20 Feb 2009 15:19:38 +0000 (15:19 +0000)]
arm.c (arm_builtin_va_list): New function.
2009-02-20 Mark Mitchell <mark@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* config/arm/arm.c (arm_builtin_va_list): New function.
(arm_expand_builtin_va_start): Likewise.
(arm_gimplify_va_arg_expr): Likewise.
(TARGET_BUILD_BUILTIN_VA_LIST): Define.
(TARGET_BUILD_BUILTIN_VA_START): Likewise.
(TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
(va_list_type): New variable.
(arm_mangle_type): Mangle va_list_type appropriately.
testsuite:
* gcc.target/arm/va_list.c: New test.
* g++.dg/abi/arm_va_list.C: Likewise.
* lib/target-supports.exp (check_effective_target_arm_eabi): New
function.
* g++.dg/cpp0x/temp-va-arg-bug.C, g++.dg/other/stdarg1.C,
g++.dg/warn/miss-format-1.C, g++.dg/warn/miss-format-3.C,
g++.dg/warn/miss-format-4.C, g++.dg/warn/miss-format-5.C,
g++.dg/warn/miss-format-6.C, g++.old-deja/g++.other/vaarg2.C,
g++.old-deja/g++.other/vaarg3.C, g++.old-deja/g++.other/vaarg4.C,
g++.old-deja/g++.pt/builtin.C: Use -Wno-abi on ARM EABI targets.
Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r144323
Jakub Jelinek [Fri, 20 Feb 2009 12:56:01 +0000 (13:56 +0100)]
re PR middle-end/39157 (Code that compiles fine in 1GB of memory with 4.1.2 requires > 20GB in 4.2.* and higher)
PR middle-end/39157
* Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
* params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
* params.def (loop-invariant-max-bbs-in-loop): New parameter.
* opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
parameter to 1000 for -O1 by default.
* doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
parameter.
* loop-invariant.c: Include params.h.
(move_loop_invariants): Don't call move_single_loop_invariants on
very large loops.
From-SVN: r144320
Jack Howarth [Fri, 20 Feb 2009 11:25:42 +0000 (12:25 +0100)]
re PR testsuite/38164 (gcc.target/i386/amd64-abi-3.c fails at -m64 on i686-apple-darwin9)
PR testsuite/38164
* gcc.target/i386/amd64-abi-3.c: Add -fomit-frame-pointer
to dg-options.
From-SVN: r144318
Jaka Mocnik [Fri, 20 Feb 2009 11:19:34 +0000 (12:19 +0100)]
calls.c (emit_library_call_value_1): Use slot_offset instead of offset when calculating bounds for indexing...
* calls.c (emit_library_call_value_1): Use slot_offset instead of
offset when calculating bounds for indexing stack_usage_map. Fixes
a buffer overflow with certain target setups.
From-SVN: r144317
Jakub Jelinek [Fri, 20 Feb 2009 10:13:17 +0000 (11:13 +0100)]
re PR target/39240 (Invalid sibcall optimization with promoted return types and differing signedness)
PR target/39240
* calls.c (expand_call): Clear try_tail_call if caller and callee
disagree in promotion of function return value.
* gcc.c-torture/execute/pr39240.c: New test.
From-SVN: r144316
Jason Merrill [Fri, 20 Feb 2009 05:32:40 +0000 (00:32 -0500)]
re PR c++/39225 (ICE if destructor doen't match class name)
PR c++/39225
* decl.c (grokdeclarator): Handle ~identifier.
From-SVN: r144314
GCC Administrator [Fri, 20 Feb 2009 00:16:49 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144311
Kazu Hirata [Thu, 19 Feb 2009 21:33:38 +0000 (21:33 +0000)]
* gcc.c-torture/execute/
20090219-1.c: New.
From-SVN: r144307
Adam Nemet [Thu, 19 Feb 2009 21:26:34 +0000 (21:26 +0000)]
mips.exp: Comment !CPU in the isa* pseudo-options.
* gcc.target/mips/mips.exp: Comment !CPU in the isa* pseudo-options.
(mips-dg-options): When matching isa* pseudo-options make
'value' optional and accept ! entries. Use $spec instead of
$isa_spec in the isa pseudo-option error message. Only
perform the ISA-range check when 'value' is set. If arch is
matching any CPU in the ! entries switch to its generic ISA.
* gcc.target/mips/branch-1.c: Pass isa=!octeon.
* gcc.target/mips/dmult-1.c: Pass isa=64!octeon rather than
-mips64.
From-SVN: r144306
Jakub Jelinek [Thu, 19 Feb 2009 21:15:12 +0000 (22:15 +0100)]
re PR target/39175 (ICE while compiling qt-4.5.0-rc1)
PR target/39175
* c-common.c (c_determine_visibility): If visibility changed and
DECL_RTL has been already set, call make_decl_rtl to update symbol
flags.
* decl2.c (determine_visibility): If visibility changed and
DECL_RTL has been already set, call make_decl_rtl to update symbol
flags.
* gcc.dg/visibility-20.c: New test.
* g++.dg/ext/visibility/visibility-11.C: New test.
From-SVN: r144305
Daniel Franke [Thu, 19 Feb 2009 18:23:20 +0000 (13:23 -0500)]
scanner.c (load_line): At end of line, skip '\r' without setting the truncation flag.
2009-02-19 Daniel Franke <franke.daniel@gmail.com>
* scanner.c (load_line): At end of line, skip '\r' without setting
the truncation flag.
From-SVN: r144303
H.J. Lu [Thu, 19 Feb 2009 15:22:28 +0000 (15:22 +0000)]
re PR c++/39188 (G++ doesn't handle static anonymous union right)
gcc/
2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39188
* varasm.c (assemble_variable): Don't check DECL_NAME when
globalizing a variable.
gcc/cp/
2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39188
* cp-tree.h (maybe_commonize_var): New.
* decl.c (maybe_commonize_var): Make it extern.
* decl2.c (finish_anon_union): Call maybe_commonize_var.
gcc/testsuite/
2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39188
* g++.dg/abi/pr39188-1a.C: New.
* g++.dg/abi/pr39188-1b.C: Likewise.
* g++.dg/abi/pr39188-1.h: Likewise.
* g++.dg/abi/pr39188-2a.C: Likewise.
* g++.dg/abi/pr39188-2b.C: Likewise.
* g++.dg/abi/pr39188-2.h: Likewise.
* g++.dg/abi/pr39188-3a.C: Likewise.
* g++.dg/abi/pr39188-3b.C: Likewise.
* g++.dg/abi/pr39188-3.h: Likewise.
From-SVN: r144297
Joseph Myers [Thu, 19 Feb 2009 13:56:00 +0000 (13:56 +0000)]
re PR c/38483 (generated aborts lose previous side-effects)
PR c/38483
* builtins.c (gimplify_va_arg_expr): Evaluate the va_list
expression before any __builtin_trap call.
* c-typeck.c (build_function_call): Convert and check function
arguments before generating a call to a trap. Evaluate the
function arguments before the trap.
testsuite:
* gcc.c-torture/execute/call-trap-1.c,
gcc.c-torture/execute/va-arg-trap-1.c, gcc.dg/call-diag-1.c: New
tests.
From-SVN: r144296
Uros Bizjak [Thu, 19 Feb 2009 10:51:04 +0000 (11:51 +0100)]
re PR target/39228 (387 optimised __builtin_isinf() gives incorrect result)
PR target/39228
* config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
(UNSPEC_FXAM_MEM): New unspec.
(fxam<mode>2_i387_with_temp): New insn and split pattern.
(isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
memory using fxam<mode>2_i387_with_temp to remove excess precision.
testsuite/ChangeLog:
PR target/39228
* gcc.c-torture/execute/pr39228.c: New test.
From-SVN: r144293
Richard Guenther [Thu, 19 Feb 2009 10:12:25 +0000 (10:12 +0000)]
re PR tree-optimization/39207 (Strict aliasing warnings in libstdc++ headers)
2009-02-19 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39207
PR tree-optimization/39074
* tree-ssa-structalias.c (storedanything_id, var_storedanything,
storedanything_tree): New.
(do_ds_constraint): Simplify ANYTHING shortcutting. Update
the STOREDANYTHING solution if the lhs solution contains
ANYTHING.
(build_succ_graph): Add edges from STOREDANYTHING to all
non-direct nodes.
(init_base_vars): Initialize STOREDANYTHING.
(compute_points_to_sets): Free substitution info after
building the succ graph.
(ipa_pta_execute): Likewise.
* gcc.dg/torture/pr39074.c: New testcase.
* gcc.dg/torture/pr39074-2.c: Likewise.
* gcc.dg/torture/pr39074-3.c: Likewise.
* tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
field.
(do_ds_constraint): Do not add to special var or non-pointer
field solutions.
(type_could_have_pointers): Split out from ...
(could_have_pointers): ... here. For arrays use the element type.
(create_variable_info_for): Initialize may_have_pointers.
(new_var_info): Likewise.
(handle_lhs_call): Make the HEAP variable unknown-sized.
(intra_create_variable_infos): Use a type with pointers for
PARM_NOALIAS, make it unknown-sized.
From-SVN: r144292
Benjamin Kosnik [Thu, 19 Feb 2009 08:15:15 +0000 (08:15 +0000)]
doxygroups.cc: Move algorithm groups into algorithmfwd.h.
2009-02-18 Benjamin Kosnik <bkoz@redhat.com>
* doc/doxygen/doxygroups.cc: Move algorithm groups into algorithmfwd.h.
* doc/doxygen/user.cfg.in: Update.
* scripts/run_doxygen: Adjust for new group names.
* include/tr1_impl/random: Update doxygen group markup.
* include/tr1_impl/unordered_map: Same.
* include/tr1_impl/unordered_set: Same.
* include/tr1_impl/array: Same.
* include/std/numeric: Same.
* include/std/utility: Same.
* include/std/bitset: Same.
* include/std/iosfwd: Same.
* include/bits/stl_list.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_algobase.h: Same.
* include/bits/stl_queue.h: Same.
* include/bits/stl_set.h: Same.
* include/bits/stl_stack.h: Same.
* include/bits/stl_iterator_base_types.h: Same.
* include/bits/forward_list.h: Same.
* include/bits/basic_string.h: Same.
* include/bits/stl_multimap.h: Same.
* include/bits/stl_vector.h: Same.
* include/bits/stl_deque.h: Same.
* include/bits/stl_multiset.h: Same.
* include/bits/stl_algo.h: Same.
* include/bits/stl_bvector.h: Same.
* include/bits/algorithmfwd.h: Same.
* include/bits/stl_function.h: Same.
* include/tr1/cmath: Same.
* include/backward/binders.h: Same.
From-SVN: r144290
H.J. Lu [Thu, 19 Feb 2009 01:58:15 +0000 (01:58 +0000)]
re PR c++/39219 (attribute doesn't work with enums properly)
gcc/cp
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39219
* parser.c (cp_parser_enum_specifier): Apply all attributes.
gcc/testsuite/
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39219
* g++.dg/parse/attr3.C: New.
From-SVN: r144284
GCC Administrator [Thu, 19 Feb 2009 00:16:37 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144282
Jack Howarth [Wed, 18 Feb 2009 23:17:56 +0000 (23:17 +0000)]
re PR testsuite/38165 (g++.dg/pubtypes.C fails at -m32/-m64 on i686-apple-darwin9)
2009-02-18 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/38165
* g++.dg/pubtypes.C: Adopt Radar
4535968 fix to testcase.
From-SVN: r144277
Jack Howarth [Wed, 18 Feb 2009 22:19:26 +0000 (22:19 +0000)]
re PR testsuite/38166 (g++.dg/ext/visibility/class1.C fails at -m64 on i686-apple-darwin9)
2009-02-18 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/38166
* g++.dg/ext/visibility/class1.C: Revert revision 122348
and skip on Darwin.
From-SVN: r144274
H.J. Lu [Wed, 18 Feb 2009 21:40:08 +0000 (21:40 +0000)]
re PR target/39224 (ABI attribute doesn't work with long double)
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
PR target/39224
* config/i386/i386.c (ix86_return_in_memory): Properly check
ABI.
From-SVN: r144272
Jason Merrill [Wed, 18 Feb 2009 21:03:05 +0000 (16:03 -0500)]
revert accidental commit
From-SVN: r144271
Jason Merrill [Wed, 18 Feb 2009 21:01:03 +0000 (16:01 -0500)]
re PR target/39179 (Wrong code in c++ for const members initialized in external file)
PR target/39179
* tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
value if DECL_EXTERNAL.
* tree-sra.c (sra_walk_gimple_assign): Likewise.
* target.h (gcc_target::binds_local_p): Clarify module.
* tree.h (TREE_PUBLIC): Clarify module.
From-SVN: r144270
Jason Merrill [Wed, 18 Feb 2009 20:59:38 +0000 (15:59 -0500)]
fix typo
From-SVN: r144269
Daniel Kraft [Wed, 18 Feb 2009 18:54:41 +0000 (19:54 +0100)]
gfortran.texi: New chapter about compiler characteristics.
2009-02-18 Daniel Kraft <d@domob.eu>
* gfortran.texi: New chapter about compiler characteristics.
(Compiler Characteristics): Document KIND type parameters here.
From-SVN: r144268
H.J. Lu [Wed, 18 Feb 2009 18:37:00 +0000 (10:37 -0800)]
misc.c (gnat_post_options): Turn off warn_psabi.
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
* gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
From-SVN: r144267
Tobias Burnus [Wed, 18 Feb 2009 18:09:38 +0000 (19:09 +0100)]
intrinsic.texi (MALLOC): Make example more portable.
2009-02-18 Tobias Burnus <burnus@net-b.de>
* intrinsic.texi (MALLOC): Make example more portable.
From-SVN: r144266
H.J. Lu [Wed, 18 Feb 2009 17:06:33 +0000 (17:06 +0000)]
callabi.exp: Moved to ...
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/callabi/callabi.exp: Moved to ...
* gcc.target/x86_64/abi/callabi/callabi.exp: Here. Only run
in 64bit mode.
* gcc.target/x86_64/abi/callabi/func-1.c: Don't check target.
* gcc.target/x86_64/abi/callabi/func-indirect.c: Likewise.
* gcc.target/x86_64/abi/callabi/func-indirect.c: Likewise.
* gcc.target/x86_64/abi/callabi/pr38891.c: Likewise.
* gcc.target/x86_64/abi/callabi/vaarg-1.c: Likewise.
* gcc.target/x86_64/abi/callabi/vaarg-2.c: Likewise.
* gcc.target/x86_64/abi/callabi/vaarg-3.c: Likewise.
* gcc.dg/callabi/callabi.h: Moved to ...
* gcc.target/x86_64/abi/callabi/callabi.h: Here.
* gcc.dg/callabi/func-1.c: Moved to ...
* gcc.target/x86_64/abi/callabi/func-1.c: Here.
* gcc.dg/callabi/func-indirect.c: Moved to ...
* gcc.target/x86_64/abi/callabi/func-indirect.c: Here.
* gcc.dg/callabi/pr38891.c: Moved to ...
* gcc.target/x86_64/abi/callabi/pr38891.c: Here.
* gcc.dg/callabi/vaarg-1.c: Moved to ...
* gcc.target/x86_64/abi/callabi/vaarg-1.c: Here.
* gcc.dg/callabi/vaarg-2.c: Moved to ...
* gcc.target/x86_64/abi/callabi/vaarg-2.c: Here.
* gcc.dg/callabi/vaarg-3.c: Moved to ...
* gcc.target/x86_64/abi/callabi/vaarg-3.c: Here.
From-SVN: r144264
Bingfeng Mei [Wed, 18 Feb 2009 09:55:15 +0000 (09:55 +0000)]
MAINTAINERS (Write After Approval): Add myself.
2009-02-18 Bingfeng Mei <bmei@broadcom.com>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r144260
Benjamin Kosnik [Wed, 18 Feb 2009 07:35:36 +0000 (07:35 +0000)]
system_error (system_category): To system_category().
2009-02-17 Benjamin Kosnik <bkoz@redhat.com>
* include/std/system_error (system_category): To system_category().
(generic_category): To generic_category. DR 890.
* src/system_error.cc: Define.
* include/bits/functexcept.h: Only one __throw_system_error.
* src/functexcept.cc: Same.
* include/std/mutex: Fixup for changes above.
* testsuite/19_diagnostics/error_condition/cons/1.cc: Same.
* testsuite/19_diagnostics/error_code/cons/1.cc: Same.
* testsuite/19_diagnostics/system_error/cons-1.cc: Same.
* config/abi/pre/gnu.ver: Clean up exports.
From-SVN: r144259
H.J. Lu [Wed, 18 Feb 2009 06:17:52 +0000 (22:17 -0800)]
re PR target/38891 (using ms_abi function attribute with -mno-sse generates an internal compiler error)
gcc/
2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
PR target/38891
* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
initialization for MS_ABI prior to the hunk of !TARGET_MMX.
gcc/testsuite
2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
PR target/38891
* gcc.dg/callabi/pr38891.c: New.
2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/callabi/callabi.exp: New.
From-SVN: r144258
H.J. Lu [Wed, 18 Feb 2009 02:16:03 +0000 (02:16 +0000)]
re PR target/39082 (union with long double doesn't follow x86-64 psABI)
gcc/
2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
PR target/39082
* c.opt (Wabi): Support C and ObjC.
(Wpsabi): New.
* c-opts.c (c_common_handle_option): Handle OPT_Wabi.
* config/i386/i386.c (classify_argument): Warn once about the ABI
change when passing union with long double.
* doc/invoke.texi: Update -Wabi for warning psABI changes.
gcc/testsuite/
2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
PR target/39082
* g++.dg/compat/struct-layout-1_generate.c (dg_options): Add
-Wno-abi for x86.
* gcc.dg/compat/struct-layout-1_generate.c (dg_options): Likewise.
* gcc.target/i386/pr39082-1.c: New.
* gcc.target/x86_64/abi/abi-x86_64.exp (additional_flags): Add
-Wno-abi.
* gcc.target/x86_64/abi/args.h (XMM_T): Add _m64 and _m128 if
CHECK_M64_M128 is defined.
(check_f_arguments): Add "do".
(check_vector_arguments): New.
(check_m64_arguments): Likewise.
(check_m128_arguments): Likewise.
* gcc.target/x86_64/abi/defines.h: Include <xmmintrin.h>.
(CHECK_M64_M128): Define.
* gcc.target/x86_64/abi/test_m64m128_returning.c: New. Based
on abitest.
* gcc.target/x86_64/abi/test_passing_m64m128.c: Likewise.
* gcc.target/x86_64/abi/test_passing_structs.c: Define __m128
tests only if CHECK_M64_M128 is defined.
* gcc.target/x86_64/abi/test_passing_structs.c (m128_struct): New.
(m128_2_struct): Likewise.
(check_struct_passing5): Likewise.
(check_struct_passing6): Likewise.
(main): Test struct with __m128 if CHECK_M64_M128 is defined.
* gcc.target/x86_64/abi/test_passing_unions.c (un4): New.
(un5): Likewise.
(check_union_passing4): Likewise.
(main): Test union with __m128 if CHECK_M64_M128 is defined.
From-SVN: r144257
Joseph Myers [Wed, 18 Feb 2009 00:38:28 +0000 (00:38 +0000)]
re PR c/35447 (ICE with broken statement expression)
PR c/35447
* c-parser.c (c_parser_compound_statement): Always enter and leave
a scope.
testsuite:
* gcc.dg/noncompile/pr35447-1.c: New test.
From-SVN: r144256
GCC Administrator [Wed, 18 Feb 2009 00:16:49 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144254
John David Anglin [Tue, 17 Feb 2009 23:42:44 +0000 (23:42 +0000)]
re PR target/34587 (gcc.dg/initpri1.c fails on *-apple-darwin)
PR target/34587
* config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
From-SVN: r144251
Jakub Jelinek [Tue, 17 Feb 2009 23:21:23 +0000 (00:21 +0100)]
re PR tree-optimization/36922 (ICE in tree-data-ref.c with -ftree-loop-linear)
PR tree-optimization/36922
* tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
* tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
Likewise.
* gfortran.dg/pr36922.f: New test.
From-SVN: r144250
Richard Sandiford [Tue, 17 Feb 2009 21:10:43 +0000 (21:10 +0000)]
mips.c (mips_override_options): Set flag_dwarf2_cfi_asm to 0 for EABI64.
gcc/
* config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
to 0 for EABI64.
From-SVN: r144247
Richard Sandiford [Tue, 17 Feb 2009 20:52:58 +0000 (20:52 +0000)]
mips.md (type): Reclassify lui_movf as "unknown".
gcc/
* config/mips/mips.md (type): Reclassify lui_movf as "unknown".
From-SVN: r144246
Richard Sandiford [Tue, 17 Feb 2009 20:46:01 +0000 (20:46 +0000)]
mips.c (mips_gimplify_va_arg_expr): Fix invalid tree sharing.
gcc/
* config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
tree sharing.
From-SVN: r144244
Ruan Beihong [Tue, 17 Feb 2009 20:26:22 +0000 (20:26 +0000)]
2009-02-xx Ruan Beihong <ruanbeihong@gmail.com> Richard Sandiford <rdsandiford@googlemail.com>
gcc/
2009-02-xx Ruan Beihong <ruanbeihong@gmail.com>
Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
* config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
(loongson_biadd): ...this.
Co-Authored-By: Richard Sandiford <rdsandiford@googlemail.com>
From-SVN: r144243
Janis Johnson [Tue, 17 Feb 2009 18:45:27 +0000 (18:45 +0000)]
examples: New directory.
* examples: New directory.
* examples/gcc-svn-env: New.
* examples/reg-watch: New.
* examples/reg-watch.awk: New.
* examples/common.config: New.
* examples/testall: New.
* examples/28970.config: New.
* examples/28970.list: New.
* examples/28970.c: New.
* examples/28970.log: New.
* examples/29106.config: New.
* examples/29106.list: New.
* examples/29106.test: New.
* examples/29106.cc: New.
* examples/29106.log: New.
* examples/29478.config: New.
* examples/29478.list: New.
* examples/29478.c: New.
* examples/29478.log: New.
* examples/29906a.config: New.
* examples/29906a.list: New.
* examples/29906a.cc: New.
* examples/29906a.log: New.
* examples/29906b.config: New.
* examples/29906b.list: New.
* examples/29906b.cc: New.
* examples/29906b.log: New.
* examples/30643.config: New.
* examples/30643.list: New.
* examples/30643.c: New.
* examples/30643.test: New.
* examples/30643.log: New.
From-SVN: r144242
Janis Johnson [Tue, 17 Feb 2009 18:35:24 +0000 (18:35 +0000)]
bin: New directory.
* bin: New directory.
* bin/reg-hunt: New.
* bin/reg_periodic: New.
* bin/gcc-svn-update: New.
* bin/gcc-svn-update-fix: New.
* bin/gcc-build-simple: New.
* bin/gcc-build-full: New.
* bin/gcc-cleanup: New.
* bin/reg-test: New.
* bin/reg-newmid: New.
* bin/gcc-test-ice-on-valid-code: New.
* bin/gcc-test-ice-on-invalid-code: New.
* bin/gcc-test-compiler-hangs: New.
* bin/gcc-test-missing-warning: New.
* bin/gcc-test-bogus-warning: New.
* bin/gcc-test-segfault-on-valid-code: New.
* bin/gcc-test-rejects-valid: New.
* bin/gcc-test-accepts-invalid: New.
* bin/gcc-test-wrong-code: New.
* bin/gcc-svn-patchlist: New.
* bin/gcc-svn-checkfail: New.
* bin/gcc-svn-recordfail: New.
* bin/gcc-svn-report: New.
* bin/gcc-svn-ids: New.
From-SVN: r144240
Janis Johnson [Tue, 17 Feb 2009 18:27:28 +0000 (18:27 +0000)]
date_based: New directory.
* date_based: New directory.
* README: Move from here ...
* date_based/README: to here.
* reg_search: Move from here ...
* date_based/reg_search: to here.
* reg_periodic: Move from here ...
* date_based/reg_periodic: to here.
* reg_test_template: Move from here ...
* date_based_reg_test_template: to here.
From-SVN: r144238
Richard Guenther [Tue, 17 Feb 2009 16:01:53 +0000 (16:01 +0000)]
re PR tree-optimization/39202 (internal compiler error: in collapse_rest_of_var, at tree-ssa-structalias.c:3296)
2009-02-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39202
* tree-ssa-structalias.c (do_structure_copy): Before collapsing
a var make sure to follow existing collapses.
* gcc.c-torture/compile/pr39202.c: New testcase.
From-SVN: r144235
Richard Guenther [Tue, 17 Feb 2009 15:20:18 +0000 (15:20 +0000)]
re PR middle-end/39214 (internal compiler error: Segmentation fault)
2009-02-17 Richard Guenther <rguenther@suse.de>
PR middle-end/39214
* langhooks.c (lhd_print_error_function): Check for NULL block.
From-SVN: r144234
Richard Guenther [Tue, 17 Feb 2009 15:01:40 +0000 (15:01 +0000)]
re PR tree-optimization/39204 (ICE in compute_antic)
2009-02-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39204
* tree-ssa-pre.c (phi_translate_1): Lookup the value-number
of the PHI arg.
* gcc.dg/torture/pr39204.c: New testcase.
From-SVN: r144233
Bingfeng Mei [Tue, 17 Feb 2009 14:28:06 +0000 (14:28 +0000)]
vect-outer-5.c: Require vect_float support.
2009-02-17 Bingfeng Mei <bmei@broadcom.com>
* gcc.dg/vect/vect-outer-5.c: Require vect_float support.
* gcc.dg/vect/vect-outer-6.c: Ditto.
From-SVN: r144232
Uros Bizjak [Tue, 17 Feb 2009 13:50:31 +0000 (14:50 +0100)]
double.h: Update from glibc CVS.
* config/soft-fp/double.h: Update from glibc CVS.
From-SVN: r144229
Richard Guenther [Tue, 17 Feb 2009 13:38:06 +0000 (13:38 +0000)]
re PR tree-optimization/39207 (Strict aliasing warnings in libstdc++ headers)
2009-02-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39207
* tree-ssa-structalias.c (find_what_p_points_to): Do not emit
strict-aliasing warnings for pointers pointing to NULL.
From-SVN: r144228
GCC Administrator [Tue, 17 Feb 2009 00:17:12 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r144222
Joseph Myers [Mon, 16 Feb 2009 22:55:56 +0000 (22:55 +0000)]
re PR c/35446 (ICE with invalid array initializer)
PR c/35446
* c-parser.c (c_parser_braced_init): Call pop_init_level when
skipping until next close brace.
testsuite:
* gcc.dg/noncompile/init-5.c: New test.
* gcc.dg/init-bad-4.c: Adjust expected errors.
From-SVN: r144216
H.J. Lu [Mon, 16 Feb 2009 20:37:49 +0000 (20:37 +0000)]
re PR target/37049 (Unaligned move used on aligned destination of push insn)
gcc/
2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
PR target/37049
* config/i386/i386.c (ix86_expand_push): Set memory alignment
to function argument boundary.
gcc/testsuite/
2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
PR target/37049
* gcc.target/i386/push-1.c: New.
From-SVN: r144209
Andrew Haley [Mon, 16 Feb 2009 15:33:46 +0000 (15:33 +0000)]
gcjwebplugin.cc: Cope with the changed header file format.
2009-02-05 Andrew Haley <aph@redhat.com>
* native/plugin/gcjwebplugin.cc: Cope with the changed header file
format. https://bugzilla.mozilla.org/show_bug.cgi?id=455458
(GCJ_GetJavaClass): Likewise.
(NP_Initialize): Likewise.
From-SVN: r144203
Hariharan Sandanagobalane [Mon, 16 Feb 2009 13:46:51 +0000 (13:46 +0000)]
picochip.md (lea_add): Allow any nonimmediate in the lea_add.
* config/picochip/picochip.md (lea_add): Allow any nonimmediate
in the lea_add. Reload eventually constraints it properly.
* config/picochip/constraints.md : Remove the target constraint
"b", since it is not needed anymore.
From-SVN: r144202
Jakub Jelinek [Mon, 16 Feb 2009 12:19:34 +0000 (13:19 +0100)]
gthr-dce.h: Uglify function parameter and local variable names.
* gthr-dce.h: Uglify function parameter and local variable names.
* gthr-gnat.h: Likewise.
* gthr-mipssde.h: Likewise.
* gthr-nks.h: Likewise.
* gthr-posix95.h: Likewise.
* gthr-posix.h: Likewise.
* gthr-rtems.h: Likewise.
* gthr-single.h: Likewise.
* gthr-solaris.h: Likewise.
* gthr-tpf.h: Likewise.
* gthr-vxworks.h: Likewise.
* gthr-win32.h: Likewise.
From-SVN: r144201
Eric Botcazou [Mon, 16 Feb 2009 12:11:20 +0000 (12:11 +0000)]
* gcc-interface/deftarg.c: Remove.
From-SVN: r144199
GCC Administrator [Mon, 16 Feb 2009 00:16:49 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144196
H.J. Lu [Sun, 15 Feb 2009 20:12:41 +0000 (20:12 +0000)]
re PR rtl-optimization/39196 (ICE in copyprop_hardreg_forward_1, at regrename.c:1603 during libjava compile)
2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
PR target/39196
* config/i386/i386.md: Restrict the new peephole2 to move
between MMX/SSE registers.
From-SVN: r144191
Paolo Carlini [Sun, 15 Feb 2009 16:47:57 +0000 (16:47 +0000)]
re PR libstdc++/39168 (Incorrect interpretation of CHAR_MAX inside grouping string in monetary and numeric facets.)
2009-02-15 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/39168
* src/locale_facets.cc (__verify_grouping(const char*, size_t,
const string&)): Also check that the value != CHAR_MAX.
* include/bits/locale_facets.tcc (__numpunct_cache<>::
_M_cache(const locale&), __add_grouping(_CharT*, _CharT,
const char*, size_t, const _CharT*, const _CharT*)): Likewise.
* include/bits/locale_facets_nonio.tcc (__moneypunct_cache<>::
_M_cache(const locale&)): Likewise.
* testsuite/22_locale/money_put/put/wchar_t/39168.cc: New.
* testsuite/22_locale/money_put/put/char/39168.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/39168.cc: Likewise.
* testsuite/22_locale/money_get/get/char/39168.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/39168.cc: Likewise.
* testsuite/22_locale/num_get/get/char/39168.cc: Likewise.
From-SVN: r144190
Richard Guenther [Sun, 15 Feb 2009 11:11:13 +0000 (11:11 +0000)]
revert: configure.ac: Enable LFS.
Revert
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: r144189
Uros Bizjak [Sun, 15 Feb 2009 08:07:17 +0000 (09:07 +0100)]
w_prof_single_str_global.c: Mask return value.
* gcc.dg/struct/w_prof_single_str_global.c: Mask return value.
From-SVN: r144187
GCC Administrator [Sun, 15 Feb 2009 00:16:53 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144185
Ulrich Weigand [Sat, 14 Feb 2009 01:32:17 +0000 (01:32 +0000)]
spu_internals.h (spu_sr, [...]): Define.
ChangeLog:
* config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
spu_srqwbyte, spu_srqwbytebc): Define.
* config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
* config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
"shrqby_<mode>"): New insn-and-split patterns.
* config/spu/spu.c (expand_builtin_args): Determine and return
number of operands using spu_builtin_description data.
(spu_expand_builtin_1): Use it.
testsuite/ChangeLog:
* gcc.target/spu/intrinsics-sr.c: New test.
From-SVN: r144178
GCC Administrator [Sat, 14 Feb 2009 00:16:49 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r144176
Chris Fairles [Fri, 13 Feb 2009 23:08:50 +0000 (23:08 +0000)]
thread (_Impl_base): Move _M_id out and into ...
2009-02-13 Chris Fairles <cfairles@gcc.gnu.org>
Benjamin Kosnik <bkoz@redhat.com>
* include/std/thread (_Impl_base): Move _M_id out and into ...
(thread): ...here. Call _M_make_routine in body of constructors.
Adjust data member usage to reflect changes.
(_M_make_routine): From _M_make_shared_data.
(_M_start_thread): Add __shared_base_type argument.
* src/thread.cc: Fixups for above.
* config/abi/pre/gnu.ver: Adjust exports.
* testsuite/30_threads/thread/native_handle/typesizes.cc: Enable.
* testsuite/30_threads/thread/cons/assign_neg.cc: Adjust line numbers.
* testsuite/30_threads/thread/cons/copy_neg.cc: Same.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r144171
Mikael Morin [Fri, 13 Feb 2009 22:16:20 +0000 (23:16 +0100)]
re PR fortran/38259 (Add version number to .mod file)
2009-02-13 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/38259
* module.c (gfc_dump_module,gfc_use_module): Add module
version number.
From-SVN: r144169
Steve Ellcey [Fri, 13 Feb 2009 21:59:32 +0000 (21:59 +0000)]
re PR target/38056 (Missed tail calls on ia64)
PR target/38056
* config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
TARGET_CONST_GP.
* gcc.target/ia64/sibcall-opt-1.c: New test.
* gcc.target/ia64/sibcall-opt-2.c: New test.
From-SVN: r144168
Paul Thomas [Fri, 13 Feb 2009 21:12:34 +0000 (21:12 +0000)]
re PR fortran/36703 (ICE (segfault) in reduce_binary0 (arith.c:1778))
2009-02-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/36703
PR fortran/36528
* trans-expr.c (gfc_conv_function_val): Stabilize Cray-pointer
function references to ensure that a valid expression is used.
(gfc_conv_function_call): Pass Cray pointers to procedures.
2009-02-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/36528
* gfortran.dg/cray_pointers_8.f90: New test.
PR fortran/36703
* gfortran.dg/cray_pointers_9.f90: New test.
From-SVN: r144164
Jason Merrill [Fri, 13 Feb 2009 19:14:07 +0000 (14:14 -0500)]
re PR c++/39070 (ICE with typeof() (... and __decltype))
PR c++/39070
* semantics.c (finish_call_expr): Change koenig_p parm to int.
If -1, don't set KOENIG_LOOKUP_P but do keep hidden candidates.
* cp-tree.h: Adjust prototype.
* pt.c (tsubst_copy_and_build) [CALL_EXPR]: Pass -1.
From-SVN: r144161
H.J. Lu [Fri, 13 Feb 2009 17:48:20 +0000 (17:48 +0000)]
re PR target/39149 (Typo in i386.c)
2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
PR target/39149
* config/i386/i386.c (override_options): Correct warning
messages for -malign-loops, -malign-jumps and
-malign-functions.
From-SVN: r144160
H.J. Lu [Fri, 13 Feb 2009 14:37:11 +0000 (14:37 +0000)]
re PR target/39152 (Revision 144098 breaks 416.gamess in SPEC CPU 2006)
gcc/
2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
PR target/39152
* config/i386/i386.md: Restrict the new peephole2 to move
between the general purpose registers.
gcc/testsuite/
2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
PR target/39152
* gfortran.dg/gomp/pr39152.f90: New.
From-SVN: r144158
H.J. Lu [Fri, 13 Feb 2009 14:34:00 +0000 (14:34 +0000)]
re PR target/39162 (Gcc doesn't warn __m256 when -mavx isn't used)
gcc/
2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
PR target/39162
* config/i386/i386.c (type_natural_mode): Add a new argument.
Return the original mode and warn ABI change if vector size
is 32byte.
(function_arg_advance): Updated.
(function_arg): Likewise.
(ix86_function_value): Likewise.
(ix86_return_in_memory): Likewise.
(ix86_sol10_return_in_memory): Likewise.
(ix86_gimplify_va_arg): Likewise.
(function_arg_32): Don't warn ABX ABI change here.
(function_arg_64): Likewise.
gcc/testsuite/
2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
PR target/39162
* gcc.target/i386/pr39162.c: New.
From-SVN: r144157
Joseph Myers [Fri, 13 Feb 2009 13:21:34 +0000 (13:21 +0000)]
* zh_CN.po: Update.
From-SVN: r144156
Bernd Schmidt [Fri, 13 Feb 2009 11:41:22 +0000 (11:41 +0000)]
bfin.c (find_prev_insn_start): New function.
* config/bfin/bfin.c (find_prev_insn_start): New function.
(bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
(find_next_insn_start): Move.
From-SVN: r144153
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