Commit Graph

90553 Commits

Author SHA1 Message Date
DJ Delorie
d2cf2f07a9 cond.md (cond_to_int peephole2): Don't eliminate the insns if the intermediate value will be used later.
* config/m32c/cond.md (cond_to_int peephole2): Don't eliminate the
insns if the intermediate value will be used later.

From-SVN: r141788
2008-11-12 11:35:03 -05:00
Andreas Schwab
429ce9927e m68k.c (print_operand): Mask off extra extension bits when writing out the representation of real values.
* config/m68k/m68k.c (print_operand): Mask off extra extension
	bits when writing out the representation of real values.

From-SVN: r141787
2008-11-12 16:34:14 +00:00
Ira Rosen
46b0b69d25 re PR tree-optimization/38079 (gcc segfaults when using -ftree-vectorizer-verbose=9)
PR tree-optimization/38079
	* tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
	with vect_dump.

From-SVN: r141785
2008-11-12 10:36:03 +00:00
Paolo Carlini
085b55410d PR libstdc++/37986 (cont)
2008-11-12  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/37986 (cont)
	* include/tr1_impl/random (struct _Adaptor): Use only remove_reference
	on _Engine.
	(struct _Adaptor<_Engine*, _Distribution>): Add.
	* testsuite/tr1/5_numerical_facilities/random/variate_generator/
	37986.cc: Extend.

From-SVN: r141784
2008-11-12 09:59:27 +00:00
Jakub Jelinek
66e6819110 re PR c++/35334 (Broken diagnostic for complex cast)
PR c++/35334
	* c-pretty-print.c (pp_c_complex_expr): New function.
	(pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it.

	* error.c (dump_expr): Handle COMPLEX_EXPR.

	* gcc.dg/pr35334.c: New test.
	* g++.dg/other/error29.C: New test.

From-SVN: r141783
2008-11-12 09:18:45 +01:00
Jakub Jelinek
8ebec1a5dd re PR target/35366 (gfortran.dg/equiv_7.f90 fails with -m64 -Os on powerpc-apple-darwin9)
PR target/35366
	* expr.c (expand_expr_addr_expr_1): If EXP needs bigger alignment
	than INNER and INNER is a constant, forcibly align INNER as much
	as needed.

From-SVN: r141782
2008-11-12 09:16:12 +01:00
Tobias Burnus
0d6872cba7 re PR fortran/38065 (private/public confusion with a contained function)
2008-11-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/38065
        * resolve.c (resolve_fntype): Fix private derived type checking.

2008-11-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/38065
        * gfortran.dg/private_type_11.f90: New test.
        * gfortran.dg/private_type_12.f90: New test.

From-SVN: r141780
2008-11-12 07:59:33 +01:00
GCC Administrator
8a4d68e36d Daily bump.
From-SVN: r141778
2008-11-12 00:17:48 +00:00
Richard Sandiford
1300342b45 cse.c (fold_rtx): Remove redundant gen_rtx_CONST.
gcc/
	* cse.c (fold_rtx): Remove redundant gen_rtx_CONST.

From-SVN: r141775
2008-11-11 23:24:05 +00:00
Richard Sandiford
2f1e2391d8 re PR rtl-optimization/37363 (Fix for PR 36090 causes libstdc++ regressions)
gcc/
	PR rtl-optimization/37363
	* simplify-rtx.c (simplify_plus_minus): Don't create (const (minus ...))
	expresisons.

From-SVN: r141774
2008-11-11 23:23:23 +00:00
Eric Botcazou
5dbd125c5c ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO handling.
* ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO
	handling.

From-SVN: r141772
2008-11-11 18:07:39 +00:00
Paolo Carlini
285743c92b re PR libstdc++/37986 (std::tr1::variate_generator does not conform to TR1.)
2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/37986
	* include/tr1_impl/random (struct _Adaptor): Use remove_pointer
	and remove_reference on _Engine.
	* testsuite/tr1/5_numerical_facilities/random/variate_generator/
	37986.cc: New.

From-SVN: r141769
2008-11-11 14:31:48 +00:00
Paolo Carlini
9b77c3a2ba 1_neg.cc: Adjust dg-error line numbers.
2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers.

From-SVN: r141768
2008-11-11 13:49:53 +00:00
Paolo Carlini
aa06026b2e 1_neg.cc: Adjust dg-error line numbers.
2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers.

From-SVN: r141767
2008-11-11 13:49:46 +00:00
Paolo Carlini
b5aaf3268c erase.cc: Fix.
2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Fix.
	* testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
	Likewise.

From-SVN: r141766
2008-11-11 13:18:39 +00:00
Bob Walters
1b32e4e506 forward_list.h: Support non-standard pointer types
2008-11-11  Bob Walters  <bob.s.walters@gmail.com>

	* include/bits/forward_list.h: Support non-standard pointer types
	(_Fwd_list_node_base): Add _Alloc template parameter.
	(_Fwd_list_node<>): Likewise.
	(_Fwd_list_iterator<>): Likewise.
	(_Fwd_list_const_iterator<>): Likewise.
	(_Fwd_list_node_base::_M_next, _M_transfer_after, _M_reverse_after): 
	Use _Alloc<_Tp>::pointer.
	(_Fwd_list_iterator<>::_M_node): Use _Node_base::_Pointer.
	(_Fwd_list_base<>::_M_get_node, _M_create_node, _M_create_node, 
	_M_insert_after, _M_put_node, _M_erase_after): Likewise.
	(_Fwd_list_const_iterator<>::_M_node): use _Node_base::_Const_pointer.
	(forward_list<>): Use __static_pointer_cast in place of static_cast,
	and __const_pointer_cast in place of const_cast.
	* include/bits/forward_list.tcc
	(_Fwd_list_node<>::_M_sort_after): Using _Pointer typedefs in place 
	of standard pointers, __static_pointer_cast in place of static_cast.
	(_Fwd_list_base<>::_Fwd_list_base, _M_insert_after, _M_erase_after):
	Likewise.
	(forward_list<>::_M_initialize_dispatch, _M_fill_initialize, 
	splice_after, remove, remove_if, merge): Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/modifiers/1.cc: New.
	* testsuite/23_containers/forward_list/ext_pointer/modifiers/2.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/modifiers/3.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/modifiers/4.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/modifiers/5.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/operations/1.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/operations/2.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/operations/3.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/operations/4.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/operations/5.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/operations/6.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/operations/7.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/requirements/1.cc: 
	Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/requirements/
	explicit_instantiation/3.cc: Likewise.
	* testsuite/23_containers/forward_list/ext_pointer/1.cc: Likewise.

From-SVN: r141765
2008-11-11 12:16:57 +00:00
Paolo Carlini
8d8a4e9d3d extptr_allocator.h: Minor tweaks.
2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/ext/extptr_allocator.h: Minor tweaks.
	* include/ext/pointer.h: Likewise.
	* include/ext/cast.h: Likewise.

From-SVN: r141764
2008-11-11 12:15:59 +00:00
GCC Administrator
ddb47467a2 Daily bump.
From-SVN: r141762
2008-11-11 00:16:50 +00:00
Catherine Moore
23b49dbe8d no-smartmips-lwxs.c: New test.
* gcc.target/mips/no-smartmips-lwxs.c: New test.
	* gcc.target/mips/no-smartmips-ror-1.c: New test.

From-SVN: r141759
2008-11-10 19:06:10 -05:00
H.J. Lu
b297d612f7 Correct date.
From-SVN: r141755
2008-11-10 15:58:55 -08:00
Catherine Moore
7f75ae868a config.gcc (mips64vrel-*-elf*): Include the tm_file prior to vr.h.
* config.gcc (mips64vrel-*-elf*): Include the tm_file
        prior to vr.h.
        * config/mips/linux.h (LINUX_DRIVER_SELF_SPECS): New.
        (BASE_DRIVER_SELF_SPECS): Remove.
        (DRIVER_SELF_SPECS): New definition.
        * config/mips/elfoabi.h: (DRIVER_SELF_SPECS): Include
        BASE_DRIVER_SELF_SPECS.
        * config/mips/sde.h: Likewise.
        * config/mips/iris6.h: Likewise.
        * config/mips/vr.h: Likewise.
        * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): New.

From-SVN: r141754
2008-11-10 18:56:24 -05:00
Vladimir Makarov
548a63222e re PR rtl-optimization/37948 (IRA generates slower code)
2008-11-07  Vladimir Makarov  <vmakarov@redhat.com>
	    
	PR rtl-optimizations/37948
	* ira-int.h (struct ira_allocno_copy): New member constraint_p.
	(ira_create_copy, ira_add_allocno_copy): New parameter.

	* ira-conflicts.c (process_regs_for_copy): New parameter.  Pass it
	to ira_add_allocno_copy.
	(process_reg_shuffles, add_insn_allocno_copies): Pass a new
	parameter to process_regs_for_copy.
	(propagate_copies): Pass a new parameter to ira_add_allocno_copy.
	Fix typo in passing second allocno to ira_add_allocno_copy.

	* ira-color.c (update_conflict_hard_regno_costs): Use head of
	coalesced allocnos list.
	(assign_hard_reg): Ditto.  Check that assigned allocnos are not in
	the graph.
	(add_ira_allocno_to_bucket): Rename to add_allocno_to_bucket.
	(add_ira_allocno_to_ordered_bucket): Rename to
	add_allocno_to_ordered_bucket.
	(push_ira_allocno_to_stack): Rename to push_allocno_to_stack.  Use
	head of coalesced allocnos list.
	(push_allocnos_to_stack): Remove calculation of ALLOCNO_TEMP.
	Check that it is aready calculated.
	(push_ira_allocno_to_spill): Rename to push_ira_allocno_to_spill.
	(setup_allocno_left_conflicts_num): Use head of coalesced allocnos
	list.
	(coalesce_allocnos): Do extended coalescing too.

	* ira-emit.c (add_range_and_copies_from_move_list): Pass a new
	parameter to ira_add_allocno_copy.

	* ira-build.c (ira_create_copy, ira_add_allocno_copy): Add a new
	parameter.
	(print_copy): Print copy origination too.

	* ira-costs.c (scan_one_insn): Use alloc_pref for load from
	equivalent memory.

From-SVN: r141753
2008-11-10 23:21:45 +00:00
Kaz Kojima
befc25099b re PR rtl-optimization/37514 (Wrong code generated for 20021120-1.c with -O3 -fomit-frame-pointer on sh4)
PR rtl-optimization/37514
	* config/sh/sh.h (OPTIMIZATION_OPTIONS): Set
	flag_ira_share_spill_slots to 2 if it's already non-zero.
	(OVERRIDE_OPTIONS): Clear flag_ira_share_spill_slots if
        flag_ira_share_spill_slots is 2.
	* gcc.target/sh/pr37514.c: New test.

From-SVN: r141752
2008-11-10 23:10:10 +00:00
Eric Botcazou
3fe8e64bc2 * g++.dg/other/anon5.C: Skip on Solaris.
From-SVN: r141749
2008-11-10 21:06:55 +00:00
Kevin Buettner
286f9bea55 prologue.md (prologue_enter_16): Set FB to SP - 2.
* config/m32c/prologue.md (prologue_enter_16): Set FB to SP - 2.
	(prologue_enter_32): Set FB to SP - 4.

From-SVN: r141748
2008-11-10 20:37:14 +00:00
DJ Delorie
600e668e9f m32c.c (m32c_const_ok_for_constraint_p): Add ImB constraint for single-bit-clear in lower byte of HI constant...
* config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add ImB
constraint for single-bit-clear in lower byte of HI constant, vs
Imb which just ignores the upper byte.
* config/m32c/predicates.md (m32c_1mask8_operand): Use it.
* config/m32c/bitops.md (andhi3_16, andhi3_24): Use it.
(iorhi3_16): Check for single bit set, not single bit clear.

From-SVN: r141747
2008-11-10 14:37:20 -05:00
Janis Johnson
6f03c42c33 * doc/sourcebuild.texi (Torture Tests): Fix formatting for bullets.
From-SVN: r141745
2008-11-10 19:18:10 +00:00
Janis Johnson
07e5b0566f * doc/sourcebuild.texi (Torture Tests): Fix formatting in example.
From-SVN: r141744
2008-11-10 19:11:12 +00:00
Eric Botcazou
852d22b41a calls.c (store_unaligned_arguments_into_pseudos): Deal only with values living in memory and use more precise alignment information.
* calls.c (store_unaligned_arguments_into_pseudos): Deal only with
	values living in memory and use more precise alignment information.

From-SVN: r141742
2008-11-10 16:52:50 +00:00
Jakub Jelinek
959f8cd7da re PR middle-end/35314 (ICE with __builtin_setjmp and -fmudflap)
PR middle-end/35314
	* tree-mudflap.c (mf_build_check_statement_for): Split then_block
	after __mf_check call if the call must end a bb.

	* testsuite/libmudflap.c/pass67-frag.c: New test.

From-SVN: r141741
2008-11-10 14:48:06 +01:00
Paolo Carlini
c8a5f8f292 re PR libstdc++/38067 (monetary_members.cc: 4 * call to wrong C++ delete)
2008-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38067
	* config/locale/gnu/monetary_members.cc (moneypunct<>::
	_M_initialize_moneypunct(__c_locale, const char*)): Use correct vector
	delete for __wcs_ps and __wcs_ns.

From-SVN: r141740
2008-11-10 13:47:12 +00:00
Jakub Jelinek
5072c6bd2e re PR c++/38021 (C++ hang for new keywords)
PR c++/38021
	* parser.c (cp_parser_enum_specifier): After parsing :,
	parse definitely.  Don't return early if type specifier
	is erroneous.

	* g++.dg/cpp0x/enum1.C: New test.

From-SVN: r141739
2008-11-10 14:41:37 +01:00
Andrew Haley
94b5f4db22 2008-11-10 Andrew Haley <aph@redhat.com>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c 
        (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawGlyphVector): 
        Remove bogus gdk_threads_leave ();

From-SVN: r141738
2008-11-10 12:33:22 +00:00
Jakub Jelinek
93542a3108 Formatting fixes.
From-SVN: r141733
2008-11-10 10:19:05 +01:00
Ralph Loader
ff596cd202 re PR middle-end/37807 (Exponential compile time with MMX builtins.)
PR middle-end/37807
	PR middle-end/37809
	* combine.c (force_to_mode): Do not process vector types.

	* rtlanal.c (nonzero_bits1): Do not process vector types.
	(num_sign_bit_copies1): Likewise.

testsuite/ChangeLog

	PR middle-end/37807
	PR middle-end/37809
	* gcc/testsuite/gcc.target/i386/mmx-8.c: New test.

From-SVN: r141732
2008-11-10 10:08:15 +01:00
GCC Administrator
75223c1753 Daily bump.
From-SVN: r141727
2008-11-10 00:16:49 +00:00
Thomas Schwinge
2a761e46e8 config.host: Also enable for GNU/kFreeBSD and GNU/kNetBSD.
2008-11-09  Thomas Schwinge  <tschwinge@gnu.org>

	* config.host <t-tls>: Also enable for GNU/kFreeBSD and GNU/kNetBSD.

From-SVN: r141722
2008-11-09 23:57:46 +01:00
Thomas Schwinge
40b2ba118f gnu.h: Add copyright and licensing header.
2008-11-09  Thomas Schwinge  <tschwinge@gnu.org>

	* config/i386/gnu.h: Add copyright and licensing header.
	* config/gnu.h: Likewise.

From-SVN: r141721
2008-11-09 23:09:02 +01:00
Paul Thomas
5a0193eeed re PR fortran/37836 (ICE in gfc_trans_auto_array_allocation)
2008-11-09  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37836
        * intrinsic.c (add_functions): Reference gfc_simplify._minval
	and gfc_simplify_maxval.
	* intrinsic.h : Add prototypes for gfc_simplify._minval and
	gfc_simplify_maxval.
	* simplify.c (min_max_choose): New function extracted from
	simplify_min_max.
	(simplify_min_max): Call it.
	(simplify_minval_maxval, gfc_simplify_minval,
	gfc_simplify_maxval): New functions.

2008-11-09  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37836
        * gfortran.dg/minmaxval_1.f90: New test.

From-SVN: r141717
2008-11-09 17:40:30 +00:00
Eric Botcazou
82d3b03a3b ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
* gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
	(MINUS_NOMOD_EXPR): Likewise.
	* gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
	unreachable.
	<PLUS_NOMOD_EXPR>: New case.
	<MINUS_NOMOD_EXPR>: Likewise.
	* gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
	assignment statement instead of using an increment operator.

From-SVN: r141714
2008-11-09 09:50:02 +00:00
GCC Administrator
52013b9baa Daily bump.
From-SVN: r141711
2008-11-09 00:16:56 +00:00
GCC Administrator
f444b57c96 Daily bump.
From-SVN: r141700
2008-11-08 00:16:48 +00:00
Andrew Pinski
6724bb92f2 fwprop.c (fwprop_done): Call df_remove_problem.
2008-11-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * fwprop.c (fwprop_done): Call df_remove_problem.

From-SVN: r141686
2008-11-07 13:16:54 -08:00
Joseph Myers
e97789eced * id.po: Update.
From-SVN: r141684
2008-11-07 20:28:57 +00:00
Sebastian Pop
0dfb0dc632 re PR middle-end/37379 ([graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite)
2008-11-07  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/37379
	* tree-scalar-evolution.c (instantiate_scev_1): Return
	chrec_dont_know for VL_EXP_CLASS_P.

From-SVN: r141682
2008-11-07 18:03:04 +00:00
Rainer Orth
f50264425f re PR ada/37681 (Building 64-bit libada fails on Solaris/x86: alignment error)
* system-irix-n64.ads: New file.
	* gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
	multilibs.

	PR ada/37681
	* system-solaris-x86_64.ads: New file.
	* gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.

From-SVN: r141681
2008-11-07 16:25:03 +00:00
Paolo Carlini
ded0557605 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Tweak ChangeLog.

From-SVN: r141678
2008-11-07 15:47:11 +00:00
Paolo Carlini
b5b3f66baa 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141677
2008-11-07 15:44:35 +00:00
Paolo Carlini
8d200e06a4 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141676
2008-11-07 15:44:20 +00:00
Paolo Carlini
9f4a439439 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141675
2008-11-07 15:43:57 +00:00