Commit Graph

87006 Commits

Author SHA1 Message Date
GCC Administrator 23295f3c08 Daily bump.
From-SVN: r141876
2008-11-15 00:16:33 +00:00
Ulrich Weigand c005c29d99 spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
* config/spu/spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
	(STANDARD_INCLUDE_DIR): Redefine to "/include".
	(LOCAL_INCLUDE_DIR): Undefine.
	* config/spu/t-spu-elf (NATIVE_SYSTEM_HEADER_DIR): Define.

From-SVN: r141871
2008-11-14 22:28:54 +00:00
Jason Merrill 982c4e30fa re PR c++/38030 (name-lookup for non-dependent name in template function is wrong)
PR c++/38030
        * semantics.c (finish_call_expr): Don't repeat arg-dep lookup
        for a non-dependent call.

From-SVN: r141868
2008-11-14 17:01:12 -05:00
Dodji Seketeli 2366bbc688 re PR debug/27574 (MIssing debug info at -O0 for a local variable in a C++ constructor)
gcc/ChangeLog:
	PR debug/27574
	* cgraph.h: New abstract_and_needed member to struct cgraph_node.
	* cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
	-which clones are reachable - as "abstract and needed".
	* cgraph.c (cgraph_release_function_body):  If a node is
	"abstract and needed", do not release its DECL_INITIAL() content
	will be needed to emit debug info.

gcc/testsuite/ChangeLog:
	PR debug/27574
	* g++.dg/debug/dwarf2/local-var-in-contructor.C: New test.

From-SVN: r141858
2008-11-14 14:26:59 +01:00
Paul Thomas 0348df9349 re PR fortran/37836 (ICE in gfc_trans_auto_array_allocation)
2008-11-14  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-14  Paul Thomas  <pault@gcc.gnu.org>

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

From-SVN: r141847
2008-11-14 06:14:46 +00:00
Jason Merrill 29f6a9163a tweak
From-SVN: r141845
2008-11-13 23:16:28 -05:00
Jason Merrill cf0bf4c214 re PR c++/37932 (narrowing conversion with -std=c++0x)
PR c++/37932
        * typeck2.c (process_init_constructor_record): Update bitfield
        handling.
        (check_narrowing): Update bitfield handling, print source type.

From-SVN: r141844
2008-11-13 23:16:07 -05:00
GCC Administrator 553ceb5aae Daily bump.
From-SVN: r141840
2008-11-14 00:16:44 +00:00
Uros Bizjak 1d71a2677d backport: re PR rtl-optimization/36438 (gcc ICE compiling code with mmx builtin)
Backport from mainline:
	2008-06-06  Uros Bizjak <ubizjak@gmail.com>

	PR rtl-optimization/36438
	* cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
	for vector shifts with constant scalar shift operands.

testsuite/ChangeLog:

	Backport from mainline:
	2008-06-06  Uros Bizjak <ubizjak@gmail.com>

	PR rtl-optimization/36438
	* gcc.target/i386/pr36438.c

From-SVN: r141834
2008-11-13 23:40:52 +01:00
Joseph Myers f37214ac33 * id.po: New.
From-SVN: r141832
2008-11-13 21:22:20 +00:00
GCC Administrator 5ec939be70 Daily bump.
From-SVN: r141814
2008-11-13 00:16:42 +00:00
Jason Merrill 6b195c3ace re PR c++/38007 (g++ instantiate same operator twice due to bitfield in -O0 mode, causing symbol already defined assembler error)
PR c++/38007                                                                                     
gcc/cp/                                                                                                  
        * typeck.c (cp_build_modify_expr): Update bitfield handling.                                     
gcc/                                                                                                     
        * c-common.c (c_common_signed_or_unsigned_type): Remove C++                                      
        special casing.                                                                                  
gcc/testsuite/                                                                                           
        * g++.dg/conversion/bitfield10.C: New test.                                                      
        * g++.dg/warn/pr35635.C (func1): Accept additional warning.                                      
        * g++.old-deja/g++.mike/enum1.C: Expect warn about assignment.                                   
        * g++.dg/expr/bitfield9.C: Pass -Wno-overflow.

From-SVN: r141808
2008-11-12 17:08:01 -05:00
Andreas Krebbel d8dad90846 [multiple changes]
2008-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>

	* gcc/config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Remove
	packed-stack special handling.
	(FRAME_ADDR_RTX): Add definition.

2008-11-12  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.target/s390/frame-addr1.c: New testcase.
	* gcc.target/s390/frame-addr2.c: New testcase.
	* gcc.target/s390/return-addr1.c: New testcase.
	* gcc.target/s390/return-addr2.c: New testcase.

From-SVN: r141797
2008-11-12 18:06:29 +00:00
Ira Rosen c7b104f5d8 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: r141781
2008-11-12 07:13:13 +00:00
GCC Administrator 7ede39a7f7 Daily bump.
From-SVN: r141777
2008-11-12 00:17:15 +00:00
GCC Administrator df19b390a0 Daily bump.
From-SVN: r141761
2008-11-11 00:16:37 +00:00
Eric Botcazou b94bb82e56 * g++.dg/other/anon5.C: Skip on Solaris.
From-SVN: r141750
2008-11-10 21:07:12 +00:00
Andrew Haley 91774c8fb9 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: r141736
2008-11-10 12:13:05 +00:00
Andrew Haley 8e1256c260 backport: re PR bootstrap/33304 (Bootstrap failure on solaris2 using cc due to empty macro arguments)
2008-11-10  Andrew Haley  <aph@redhat.com>

        Backport from mainline:

        PR bootstrap/33304
        * vec.h (VEC_TA): New.
        (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
        DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
        * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
        (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
        (C_COMMON_FIXED_TYPES): Remove first arg.
        (C_COMMON_FIXED_MODE_TYPES): Likewise.
        * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
        MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
        not to use empty macro arguments.

From-SVN: r141735
2008-11-10 12:08:55 +00:00
Uros Bizjak 2fc0f58c7c 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: r141734
2008-11-10 11:43:35 +01:00
GCC Administrator 346592870a Daily bump.
From-SVN: r141726
2008-11-10 00:16:37 +00:00
John David Anglin 5dd1c14f8d backport: wo_prof_global_var.c: Initialize array.
Backport from mainline:
	2008-04-22  Steve Ellcey  <sje@cup.hp.com>

	* gcc.dg/struct/wo_prof_global_var.c: Initialize array.
	* gcc.dg/struct/wo_prof_malloc_size_var.c: Ditto.
	* gcc.dg/struct/w_prof_local_var.c: Ditto.
	* gcc.dg/struct/w_prof_global_var.c: Ditto.
	* gcc.dg/struct/wo_prof_local_var.c: Ditto.

From-SVN: r141724
2008-11-09 23:55:27 +00:00
GCC Administrator 4ada2fab8c Daily bump.
From-SVN: r141710
2008-11-09 00:16:43 +00:00
Paul Thomas 93b329bd5b re PR fortran/37597 (internal procedure fails to access host-associated module procedure)
2008-11-08  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37597
        * parse.c (gfc_fixup_sibling_symbols ): Fixup contained, even
	when symbol not found.

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

        PR fortran/37597
        * gfortran.dg/host_assoc_call_5.f90: New test.

From-SVN: r141708
2008-11-08 14:17:35 +00:00
Mikael Morin 5ff69a362a re PR fortran/35820 (internal compiler error with nested FORALL)
2008-11-08  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/35820
	* resolve.c (gfc_count_forall_iterators): New function.
	(gfc_resolve_forall): Use gfc_count_forall_iterators to evaluate 
	the needed memory amount to allocate. Don't forget to free allocated 
	memory.  Add an assertion to check for memory leaks. 

2008-11-08  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/35820
	* gfortran.dg/nested_forall_1.f: New test.

From-SVN: r141707
2008-11-08 08:38:42 +00:00
Paul Thomas c1b700d2a8 re PR fortran/37445 (Host-associated proc not found if same-name generic is use-associated)
2008-11-08  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37445
        * resolve.c (resolve_call): Check host association is correct.
        (resolve_actual_arglist ): Remove return is old_sym is use
        associated.  Only reparse expression if old and new symbols
        have different types.

        PR fortran/PR35769
        * resolve.c (gfc_resolve_assign_in_forall): Change error to a
        warning.

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

        PR fortran/37445
        * gfortran.dg/host_assoc_call_3.f90: New test.
        * gfortran.dg/host_assoc_call_4.f90: New test.
        * gfortran.dg/host_assoc_function_4.f90: New test.

From-SVN: r141706
2008-11-08 06:19:12 +00:00
GCC Administrator 805c7822d9 Daily bump.
From-SVN: r141699
2008-11-08 00:16:33 +00:00
Joseph Myers 14dc1736d1 * id.po: Update.
From-SVN: r141685
2008-11-07 20:29:25 +00:00
GCC Administrator 2c76504bb0 Daily bump.
From-SVN: r141659
2008-11-07 00:16:38 +00:00
Richard Guenther cba623968b backport: re PR rtl-optimization/37489 (const_true_rtx returned for float compare)
2008-11-06  Richard Guenther  <rguenther@suse.de>
 
 	Backport from mainline:
 	2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR rtl-optimization/37489
 	* cse.c (fold_rtx): Don't return const_true_rtx for float
 	compare if FLOAT_STORE_FLAG_VALUE is undefined.

 	* g++.dg/opt/cse3.C: New testcase.
	* gcc.dg/torture/pr37969.c: New testcase.

From-SVN: r141645
2008-11-06 15:05:44 +00:00
Kazu Hirata da2ab17c99 re PR target/35574 (unrecognizable insn generated for vector move)
PR target/35574
	* config/sparc/predicates.md (const_double_or_vector_operand):
	New.
	* config/sparc/sparc.c (sparc_extra_constraint_check): Handle the
	'D' constraint.
	* config/sparc/sparc.h: Document the 'D' constraint.
	* config/sparc/sparc.md (*movdf_insn_sp32_v9, *movdf_insn_sp64):
	Use the 'D' constraint in addition to 'F' in some alternatives.
	(DF splitter): Generalize for V64mode.
	* doc/md.texi (SPARC): Document the 'D' constraint.

From-SVN: r141643
2008-11-06 14:57:15 +00:00
GCC Administrator 5f881273c7 Daily bump.
From-SVN: r141632
2008-11-06 00:16:24 +00:00
Joseph Myers b20c5b0be4 * id.po: Update.
From-SVN: r141624
2008-11-05 21:40:29 +00:00
Jakub Jelinek cb14bb6128 re PR c/37924 (ice in smallest_mode_for_size, at stor-layout.c:219)
PR c/37924
	* combine.c (make_compound_operation): Don't call make_extraction with
	non-positive length.
	(simplify_shift_const_1): Canonicalize count even if complement_p.

	* gcc.c-torture/execute/pr37924.c: New test.

From-SVN: r141621
2008-11-05 21:42:43 +01:00
Jakub Jelinek bacaf2a0d5 re PR tree-optimization/37879 (ICE with "wrong" use of noreturn attribute and optimization)
PR tree-optimization/37879
	* predict.c (tree_estimate_probability): Check if last_stmt is
	non-NULL before dereferencing it.

	* gcc.dg/pr37879.c: New test.

From-SVN: r141620
2008-11-05 21:39:50 +01:00
Jakub Jelinek 0392b4c2e4 re PR middle-end/37858 (ICE when "-fdump-ipa-all -dv" is used)
PR middle-end/37858
	* passes.c (execute_one_pass): Don't look at cfun->curr_properties
	for ipa and simple ipa passes.

	* gcc.dg/pr37858.c: New test.

From-SVN: r141619
2008-11-05 21:38:46 +01:00
Jakub Jelinek 95bc18fc73 re PR middle-end/37870 (ICE in extract_bit_field_1)
PR middle-end/37870
	* expmed.c (extract_bit_field_1): If int_mode_for_mode returns
	BLKmode for non-memory, convert using a wider MODE_INT mode
	or through memory.

	* gcc.target/i386/pr37870.c: New test.

From-SVN: r141618
2008-11-05 21:33:54 +01:00
Hans-Peter Nilsson 09824b14ff re PR target/38016 (-fno-ivopts exposes CRIS port bug, more with -fno-gcse)
PR target/38016
	* gcc.c-torture/execute/ieee/pr38016.c,
	gcc.c-torture/execute/ieee/pr38016.c: New test.

From-SVN: r141617
2008-11-05 18:11:15 +00:00
Hans-Peter Nilsson ada4ce4952 re PR target/38016 (-fno-ivopts exposes CRIS port bug, more with -fno-gcse)
PR target/38016
	* config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
	just MEM_P.

From-SVN: r141616
2008-11-05 18:10:36 +00:00
GCC Administrator 6a869caa6f Daily bump.
From-SVN: r141593
2008-11-05 00:16:26 +00:00
GCC Administrator 7f3df1d749 Daily bump.
From-SVN: r141571
2008-11-04 00:16:34 +00:00
Eric Botcazou 61c1cedc31 * tree-sra.c (bitfield_overlaps_p): Fix oversight.
From-SVN: r141557
2008-11-03 19:57:41 +00:00
GCC Administrator eb69f920e2 Daily bump.
From-SVN: r141540
2008-11-03 00:16:27 +00:00
Joseph Myers 1a979e5b8e * id.po: Update.
From-SVN: r141536
2008-11-02 16:16:46 +00:00
GCC Administrator 559a621ac0 Daily bump.
From-SVN: r141529
2008-11-02 00:16:34 +00:00
Hans-Peter Nilsson 232d81873c re PR target/37939 (CRIS port: no addi insn)
PR target/37939
	* gcc.target/cris/biap.c: New test.

From-SVN: r141527
2008-11-01 22:28:28 +00:00
Hans-Peter Nilsson cca708dc77 re PR target/37939 (CRIS port: no addi insn)
PR target/37939
	* config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
	operand.

From-SVN: r141526
2008-11-01 22:26:43 +00:00
Mikael Morin ee3fae7fe8 re PR fortran/37903 (wrong-code for complicated vector subscripts)
2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37903
        * trans-array.c (gfc_trans_create_temp_array): If n is less
	than the temporary dimension, assert that loop->from is
	zero (reverts to earlier versions). If there is at least one
	null loop->to[n], it is a callee allocated array so set the
	size to NULL and break.
	(gfc_trans_constant_array_constructor): Set the offset to zero.
	(gfc_trans_array_constructor): Remove loop shifting around the
	temporary creation.
	(gfc_conv_loop_setup): Prefer zero-based descriptors if
	possible.  Calculate the translation from loop variables to
	array indices if an array constructor.

2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37749
        * trans-array.c (gfc_trans_create_temp_array): If size is NULL
	use the array bounds for loop->to.

2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37903
        * gfortran.dg/vector_subscript_4.f90: New test.

2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37749
        * gfortran.dg/vector_subscript__5.f90: New test.

From-SVN: r141521
2008-11-01 19:45:41 +00:00
Kaz Kojima f77ed8ccf3 backport: re PR rtl-optimization/37769 (internal compiler error: in reg_overlap_mentioned_for_reload_p, at reload.c:6525)
Backport from mainline:
	2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>

	PR rtl-optimization/37769
	* regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.

From-SVN: r141513
2008-11-01 12:39:17 +00:00
GCC Administrator 157ec5d78e Daily bump.
From-SVN: r141505
2008-11-01 00:16:42 +00:00