Commit Graph

91831 Commits

Author SHA1 Message Date
H.J. Lu
8592acaf3c re PR rtl-optimization/39241 (ICE in subreg_get_info, at rtlanal.c:3104)
gcc/

2008-02-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR rtl-optimization/39241
	* jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
	to subreg_offset_representable_p.

gcc/testsuite/

2008-02-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR rtl-optimization/39241
	* gcc.dg/torture/pr39241.c: New.

From-SVN: r144430
2009-02-25 10:49:28 -08:00
Paolo Bonzini
62d049cf1e regmove.c (regmove_optimize): Conform to struct rtl_opt_pass execute function prototype.
2009-02-25  Paolo Bonzini  <bonzini@gnu.org>

	* regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
	execute function prototype.  Get f and nregs from max_reg_num
	and get_insns.  Remove the first backward pass as it's dead,
	guard the forward pass by flag_expensive_optimizations.
	(rest_of_handle_regmove): Delete.
	(pass_regmove): Replace it with regmove_optimize.

From-SVN: r144429
2009-02-25 18:12:29 +00:00
Martin Jambor
f618d33ef1 tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and alls_alloca function flags.
2009-02-25  Martin Jambor  <mjambor@suse.cz>

	* tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
	alls_alloca function flags.
	(copy_bb): Set calls_setjmp and alls_alloca function flags if such
	calls are detected.

From-SVN: r144428
2009-02-25 18:34:40 +01:00
Laurent GUERBY
054efbba9d a-teioed.adb (Expand): Fix Result overflow.
2009-02-25  Laurent GUERBY  <laurent@guerby.net>

        * a-teioed.adb (Expand): Fix Result overflow.

From-SVN: r144427
2009-02-25 17:22:58 +00:00
Laurent GUERBY
2692d7f533 Makefile.in: Fix multilib handling for sparc64-linux.
2009-02-25  Laurent GUERBY <laurent@guerby.net>

        * gcc-interface/Makefile.in: Fix multilib handling for
        sparc64-linux.

From-SVN: r144426
2009-02-25 16:59:13 +00:00
Paolo Bonzini
c8a05f7c57 regmove.c (discover_flags_reg, [...]): Delete.
2009-02-25  Paolo Bonzini  <bonzini@gnu.org>

	* regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
	flags_set_1_rtx, flags_set_1_set): Delete.
	(regmove_optimize): Do not call mark_flags_life_zones.

From-SVN: r144425
2009-02-25 14:08:14 +00:00
Julian Brown
6d2538f5f9 re PR target/35965 ([4.3 only] -fstack-protector produces segfaulting binaries on arm/armel)
2009-02-24  Julian Brown  <julian@codesourcery.com>

	PR target/35965
	* config/arm/arm.c (require_pic_register): Only set
	cfun->machine->pic_reg once per function.

	Patch commited by Doug Kwan <dougkwan@google.com>

From-SVN: r144424
2009-02-25 07:18:01 +00:00
Sandra Loosemore
a2fa6772d2 invoke.texi (Link Options): Document an easier way to pass options that take arguments to the GNU linker...
2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi (Link Options): Document an easier way to pass
	options that take arguments to the GNU linker using -Xlinker and
	-Wl.

From-SVN: r144423
2009-02-24 20:44:45 -05:00
GCC Administrator
c6fddadf2a Daily bump.
From-SVN: r144421
2009-02-25 00:17:07 +00:00
Michael Eager
5e8c155263 Fix typo.
From-SVN: r144418
2009-02-25 00:12:42 +00:00
Steve Ellcey
5472de36b6 re PR target/33785 (TARGET_C99_FUNCTIONS default wrong in tm.texi)
PR target/33785
	* doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.

From-SVN: r144411
2009-02-24 16:28:07 +00:00
Michael Eager
b48d5f6888 Add self to MAINTAINERS.
From-SVN: r144410
2009-02-24 16:20:22 +00:00
Richard Guenther
ccfbd8805b re PR c++/39242 (Inconsistent reject / accept of code)
2009-02-24  Richard Guenther  <rguenther@suse.de>

	PR c++/39242
	* pt.c (instantiate_decl): Do not instantiate extern, non-inline
	declared functions.

	* g++.dg/template/instantiate10.C: New testcase.

From-SVN: r144408
2009-02-24 14:50:30 +00:00
Richard Guenther
844216f381 re PR debug/39285 (Missing debug info for enum members in C++)
2009-02-24  Richard Guenther  <rguenther@suse.de>

	PR debug/39285
	* dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.

From-SVN: r144407
2009-02-24 14:47:30 +00:00
Richard Guenther
71adbef3ea re PR tree-optimization/39233 (ivopts + vrp miscompilation)
2009-02-24  Richard Guenther  <rguenther@suse.de>
	Zdenek Dvorak  <ook@ucw.cz>

	PR tree-optimization/39233
	* tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
	from converting them to a generic type.

	* gcc.c-torture/execute/pr39233.c: New testcase.

Co-Authored-By: Zdenek Dvorak <ook@ucw.cz>

From-SVN: r144405
2009-02-24 11:05:15 +00:00
Sebastian Pop
f1a558e048 re PR middle-end/39260 (Failed to build lame-3.98-2 source with graphite)
2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/39260
	* graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
	contains a condition with a real type.
	(build_scop_conditions_1): Conditions are always last_stmt of a bb.

	* gcc.dg/graphite/pr39260.c: New.

From-SVN: r144403
2009-02-24 06:47:56 +00:00
H.J. Lu
e62a4cc1b9 static-init1.C: Replace int with __PTRDIFF_TYPE__.
2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

	* g++.dg/init/static-init1.C: Replace int with __PTRDIFF_TYPE__.

From-SVN: r144402
2009-02-23 21:29:04 -08:00
GCC Administrator
7bdf151b41 Daily bump.
From-SVN: r144399
2009-02-24 00:16:42 +00:00
H.J. Lu
8c8d4a46a8 re PR c++/36411 (ICE with invalid template template parameter)
gcc/cp

2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/36411
	* pt.c (coerce_template_template_parms): Return 0 if parameter
	is error_mark_node.

gcc/testsuite/

2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/36411
	* g++.dg/template/void14.C: New.

From-SVN: r144396
2009-02-23 14:34:50 -08:00
Jason Merrill
d8028f2cc3 re PR c++/38880 (g++.dg/init/const7.C XFAILed)
PR c++/38880
        * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
        narrowing_initializer_constant_valid_p.
        (narrowing_initializer_constant_valid_p): Don't return
        null_pointer_node for adding a pointer to itself.

From-SVN: r144395
2009-02-23 16:23:58 -05:00
Adam Nemet
68c512f66d abi.exp: Add multilib support.
* testsuite/libstdc++-abi/abi.exp: Add multilib support.
	* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Remove MULTISUBDIR
	from baseline_dir.
	* configure: Regenerate.
	* testsuite/Makefile.am (baseline_file): Remove variable.
	(site.exp): Set baseline_dir rather than baseline_file.
	(check-abi): Pass AM_RUNTESTFLAGS and RUNTESTFLAGS to runtest.
	* testsuite/Makefile.in: Regenerate.

From-SVN: r144394
2009-02-23 20:42:53 +00:00
Jason Merrill
2604de9d9f pt.c (unify): Call maybe_adjust_types_for_deduction when deducing from an initializer list.
* pt.c (unify): Call maybe_adjust_types_for_deduction when
        deducing from an initializer list.

From-SVN: r144392
2009-02-23 15:28:50 -05:00
Jan Hubicka
9283b51332 re PR c/12245 (Uses lots of memory when compiling large initialized arrays)
PR c/12245
	* ggc.h (htab_create_ggc): Use ggc_free to free hashtable when resizing.

From-SVN: r144384
2009-02-23 16:46:32 +00:00
Rainer Orth
ea675ec341 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
From-SVN: r144382
2009-02-23 16:37:20 +00:00
Jan Hubicka
61e043223d re PR tree-optimization/37709 (inlining causes explosion in debug info)
PR tree-optimization/37709                                              
	* tree.c (block_ultimate_origin): Move here from dwarf2out.             
	* tree.h (block_ultimate_origin): Declare.                              
	* dwarf2out.c (block_ultimate_origin): Move to tree.c                   
	* tree-ssa-live.c (remove_unused_scope_block_p):
	Eliminate blocks containig no instructions nor live variables nor
	nested blocks.
	(dump_scope_block): New function.
	(remove_unused_locals): Enable removal of dead blocks by default;
	enable dumping at TDF_DETAILS.

From-SVN: r144381
2009-02-23 13:10:53 +00:00
GCC Administrator
791c5e4821 Daily bump.
From-SVN: r144379
2009-02-23 00:16:38 +00:00
Mark Mitchell
8c9abf1f38 make-temp-file.c (<windows.h>): Include on Windows.
* make-temp-file.c (<windows.h>): Include on Windows.
	(choose_tmpdir): On Windows, use GetTempPath.

From-SVN: r144375
2009-02-22 18:43:30 +00:00
Joseph Myers
1f20025aa2 * zh_CN.po: Update.
From-SVN: r144374
2009-02-22 17:04:04 +00:00
H.J. Lu
5339d3ead9 i386.c (classify_argument): Don't allow COImode and OImode.
2008-02-21  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (classify_argument): Don't allow COImode
	and OImode.
	(function_arg_advance_32): Don't allow OImode.
	(function_arg_32): Likewise.
	(function_value_32): Likewise.
	(return_in_memory_32): Likewise.
	(function_arg_64): Remove OImode comment.

From-SVN: r144367
2009-02-21 17:10:29 -08:00
H.J. Lu
f161e1584d re PR target/39261 (_mm256_set_epi64x failed on 32bit)
2008-02-21  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39261
	* config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
	ix86_expand_vector_set for V4DImode in 64bit mode only.
	(ix86_expand_vector_init_one_var): Likewise.

From-SVN: r144366
2009-02-21 16:44:23 -08:00
GCC Administrator
f592b0b3f1 Daily bump.
From-SVN: r144365
2009-02-22 00:16:48 +00:00
Thomas Koenig
543af7abbe re PR fortran/38914 ([4.3 only] ICE with array inquiry functions above contains in parameter expression)
2008-02-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/38914
	* array.c (ref_dimen_size):  Rename to gfc_ref_dimen_size,
	make global.  Change function name in error messages.
	(ref_size):  Change ref_dimen_size to gfc_ref_dimen_size.
	(gfc_array_ref_shape):  Likewise.
	* gfortran.h:  Add prototype for gfc_ref_dimen_size.
	* simplify.c (simplify_bound_dim):  Add ref argument.
	If the reference isn't a full array, return one for
	the lower bound and the extent for the upper bound.
	(simplify_bound):  For array sections, take as from the
	argument.  Add reference to all to simplify_bound_dim.

2008-02-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/38914
	* bound_simplification_2.f90:  New test case.
	* bound_7.f90:  New test case.

From-SVN: r144362
2009-02-21 22:25:06 +00:00
Joseph Myers
4bb09c26bc lex.c (lex_string): Return a CPP_LESS token for missing '>' in a header name.
libcpp:
	* lex.c (lex_string): Return a CPP_LESS token for missing '>' in a
	header name.
	(_cpp_lex_direct): Handle this.

gcc/testsuite:
	* gcc.dg/cpp/include4.c: New test.

From-SVN: r144361
2009-02-21 21:25:39 +00:00
H.J. Lu
8e361f234b Mention PR bootstrap/39257.
From-SVN: r144360
2009-02-21 11:08:44 -08:00
Sebastian Pop
dcd739a603 graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite.c (graphite_trans_loop_block): Adjust tile size to 51.

From-SVN: r144358
2009-02-21 17:09:35 +00:00
Richard Sandiford
6c3b938d31 Revert last change.
From-SVN: r144357
2009-02-21 16:48:05 +00:00
H.J. Lu
4c64d3ddec re PR target/39256 (__m256 isn't returned in ymm0 in 32bit)
gcc/

2008-02-21  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39256
	* config/i386/i386.c (type_natural_mode): Remove an extra
	space in the warning message.
	(function_value_32): Handle 32-byte vector modes.
	(return_in_memory_32): Likewise.

gcc/testsuite/

2008-02-21  Uros Bizjak  <ubizjak@gmail.com>

	PR target/39256
	* gcc.target/i386/abi-2.c: New.

From-SVN: r144355
2009-02-21 07:55:53 -08:00
Kaz Kojima
b46513275f pr39228.x: New.
* gcc.c-torture/execute/pr39228.x: New.

From-SVN: r144353
2009-02-21 12:33:00 +00:00
Gerald Pfeifer
ef11e5cc16 update_version_svn (ADD_BRANCHES): Remove autovect-branch and document format.
* update_version_svn (ADD_BRANCHES): Remove autovect-branch
	and document format.

From-SVN: r144352
2009-02-21 11:12:28 +00:00
Uros Bizjak
f814e489fe abi-1.c: Use scan-assembler-times "..." 1 instead of scan-assembler to check for xmm0...
* gcc.target/i386/abi-1.c: Use scan-assembler-times "..." 1 instead of
	scan-assembler to check for xmm0 register.

From-SVN: r144349
2009-02-21 10:34:36 +01:00
Richard Sandiford
2ec62529e9 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
2009-02-21 09:15:13 +00:00
Benjamin Kosnik
4e0bdc5e22 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
2009-02-21 03:56:21 +00:00
Danny Smith
ecb8c3cced 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
2009-02-21 03:21:44 +00:00
Joseph Myers
ae46a823a7 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
2009-02-21 02:18:01 +00:00
Benjamin Kosnik
5b9daa7e60 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
2009-02-21 00:45:21 +00:00
GCC Administrator
791838fa91 Daily bump.
From-SVN: r144341
2009-02-21 00:16:48 +00:00
Jakub Jelinek
66647d441f Update Copyright years for files modified in 2008 and/or 2009.
From-SVN: r144324
2009-02-20 16:20:38 +01:00
Mark Mitchell
07d8efe385 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
2009-02-20 15:19:38 +00:00
Jakub Jelinek
b1fb9f5699 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
2009-02-20 13:56:01 +01:00
Jack Howarth
da9c199f2c 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
2009-02-20 12:25:42 +01:00