Commit Graph

90633 Commits

Author SHA1 Message Date
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
Bob Walters
b74318f12b pointer.h: Add experimental support for non-standard pointer types in containers via the...
2008-11-07  Bob Walters  <bob.s.walters@gmail.com>

	* include/ext/pointer.h: Add experimental support for non-standard
	pointer types in containers via the allocator::pointer typedef.
	(Currently only supported/working with std::vector)
	* include/ext/cast.h: Add overload-able pointer casting functions
	for use in containers supporting non-standard pointer types.
	* include/ext/extptr_allocator.h: Add _ExtPtr_allocator.
	* include/Makefile.am: Update.
	* include/precompiled/extc++.h: Likewise.
	* include/Makefile.in: Regenerate.
	* testsuite/ext/ext_pointer/1.cc: New.
	* testsuite/ext/ext_pointer/1_neg.cc: Likewise.	
	* testsuite/23_containers/vector/ext_pointer/citerators.cc: New.
	* testsuite/23_containers/vector/ext_pointer/data_access.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/resize.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/types/1.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
	Likewise.
	* testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc:
	Likewise.
	* testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc:
	Likewise.
	* testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
	1.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
	3.cc: Likewise.

From-SVN: r141674
2008-11-07 15:26:25 +00:00
Bechir Zalila
7fee6a39eb re PR ada/34289 (gnatmake -s doesn't work)
PR ada/34289
	* lib.ads: (Enable_Switch_Storing): Declare.
	* lib.adb: (Enable_Switch_Storing): New procedure.
	* switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
	* make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
	(Display): Never display -gnatea
	* gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r141673
2008-11-07 10:46:18 +00:00
Eric Botcazou
3453cb7809 Fix typo.
From-SVN: r141671
2008-11-07 10:21:38 +00:00
Thomas Quinot
9ed0e4832c trans.c (Attribute_to_gnu, [...]): Check for empty range in original base type, not converted result type.
* gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
	for empty range in original base type, not converted result type.

From-SVN: r141670
2008-11-07 10:17:40 +00:00
Eric Botcazou
f0f91b6438 Update comment.
From-SVN: r141669
2008-11-07 10:03:21 +00:00
Geert Bosch
58e9444340 trans.c (build_binary_op_trapv): Convert arguments and result for call to __gnat_mulv64.
* gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
	and result for call to __gnat_mulv64.

From-SVN: r141668
2008-11-07 09:56:33 +00:00
Eric Botcazou
a7c43bbc03 * gcc-interface/trans.c: Fix formatting nits.
From-SVN: r141667
2008-11-07 09:44:12 +00:00
Geert Bosch
2575024c21 trans.c (build_binary_op_trapv): Avoid emitting overflow check for constant result.
* gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
	overflow check for constant result.

From-SVN: r141666
2008-11-07 09:39:38 +00:00
Geert Bosch
4ae393838b trans.c (build_binary_op_trapv): Use more efficient overflow check for addition/subtraction if...
* gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
	overflow check for addition/subtraction if neither operand is constant.

From-SVN: r141665
2008-11-07 09:32:43 +00:00
Kaveh R. Ghazi
218da97236 iinline-1.C: Remove -c flag, add -fpie for PIC targets.
* g++.dg/ipa/iinline-1.C: Remove -c flag, add -fpie for PIC
	targets.

From-SVN: r141664
2008-11-07 09:00:14 +00:00
Kaveh R. Ghazi
3442b495bd inline-2.c (foo): Add 'inline' keyword.
* gcc.dg/tree-ssa/inline-2.c (foo): Add 'inline' keyword.

From-SVN: r141663
2008-11-07 08:58:55 +00:00
Sebastian Pop
5a237951ca pr37943.c: Fix missing end of file.
2008-11-06  Sebastian Pop  <sebastian.pop@amd.com>

	* gcc.dg/graphite/pr37943.c: Fix missing end of file.

From-SVN: r141662
2008-11-07 05:57:07 +00:00
GCC Administrator
2e6b4dbb51 Daily bump.
From-SVN: r141660
2008-11-07 00:16:52 +00:00
Joseph Myers
ad914b4ea8 utf-array-short-wchar.c, [...]: Use __CHAR16_TYPE__ and __CHAR32_TYPE__ typedefs.
* gcc.dg/utf-array-short-wchar.c, gcc.dg/utf-cvt.c,
	gcc.dg/utf-inc-init.c, gcc.dg/utf16-1.c, gcc.dg/utf16-2.c,
	gcc.dg/utf16-3.c, gcc.dg/utf16-4.c, gcc.dg/utf32-1.c,
	gcc.dg/utf32-2.c, gcc.dg/utf32-3.c, gcc.dg/utf32-4.c: Use
	__CHAR16_TYPE__ and __CHAR32_TYPE__ typedefs.

From-SVN: r141656
2008-11-06 22:16:38 +00:00
Uros Bizjak
0a83b1b01d reg-stack.c (reg_to_stack): Add missing braces in memset size calculation.
* reg-stack.c (reg_to_stack): Add missing braces in memset
	size calculation.

From-SVN: r141654
2008-11-06 19:01:18 +01:00
Jeff Law
d69fbecbc6 Add myself as middle end maintainer
From-SVN: r141652
2008-11-06 10:18:51 -07:00
Jeff Law
7fb71a9ef5 Add myself as middle-end maintainer
From-SVN: r141651
2008-11-06 10:17:47 -07:00
Andrew Stubbs
d53767cc2e bpabi.h (PROFILE_HOOK): New undef.
2008-11-06  Andrew Stubbs  <ams@codesourcery.com>

	* config/arm/bpabi.h (PROFILE_HOOK): New undef.
	(NO_PROFILE_COUNTERS): New define.

From-SVN: r141649
2008-11-06 15:56:53 +00:00
Andrew Stubbs
044fed6999 MAINTAINERS (Write after approval): Add myself.
* MAINTAINERS (Write after approval): Add myself.

From-SVN: r141648
2008-11-06 15:53:28 +00:00
David Edelsohn
ce75e1dd3c re PR target/26397 (Program crashes when rethrowing exception)
PR target/26397
        * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.

	cp/
        * g++spec.c (LIBSTDCXX_STATIC): New.
        (lang_spec_driver): Use LIBSTDCXX_STATIC when not shared_libgcc.

From-SVN: r141646
2008-11-06 10:32:40 -05:00