Commit Graph

90796 Commits

Author SHA1 Message Date
Richard Sandiford e08be11c89 mips.h (REG_ALLOC_ORDER): Put accumulators first.
gcc/
	* config/mips/mips.h (REG_ALLOC_ORDER): Put accumulators first.
	Tweak formatting.
	* config/mips/mips.c (mips_ira_cover_classes): Don't use accumulator
	registers when not optimizing.

gcc/testsuite/
	* gcc.target/mips/dspr2-MULT.c: Just check for $ac1 and $ac2.
	* gcc.target/mips/dspr2-MULTU.c: Likewise.

From-SVN: r141955
2008-11-17 22:59:54 +00:00
Richard Sandiford 839380ee60 mips.md (*mul_acc_si): Remove middle alternative and its associated define_split.
gcc/
	* config/mips/mips.md (*mul_acc_si): Remove middle alternative
	and its associated define_split.  Expose the all-d alternative
	to the register allocator, but mark it with "?".  Mark the first
	alternative with "*?*?".
	(*mul_sub_si): Likewise.
	(*mul_acc_si_r3900): New pattern.

gcc/testsuite/
	* gcc.target/mips/madd-5.c: New test.
	* gcc.target/mips/madd-6.c: Likewise.
	* gcc.target/mips/madd-7.c: Likewise.
	* gcc.target/mips/madd-8.c: Likewise.
	* gcc.target/mips/msub-5.c: Likewise.
	* gcc.target/mips/msub-6.c: Likewise.
	* gcc.target/mips/msub-7.c: Likewise.
	* gcc.target/mips/msub-8.c: Likewise.

From-SVN: r141954
2008-11-17 22:49:05 +00:00
Richard Sandiford 2cf1a19e75 no-smartmips-ror-1.c: Use -march=mips32 instead of -march=mips32r2.
gcc/testsuite/
	* gcc.target/mips/no-smartmips-ror-1.c: Use -march=mips32 instead
	of -march=mips32r2.

From-SVN: r141953
2008-11-17 22:23:04 +00:00
Jack Howarth 77292df684 default_format_denormal_1.f90: Don't XFAIL darwin10 or later.
2008-11-17  Jack Howarth  <howarth@bromo.med.uc.edu>

	* gfortran.dg/default_format_denormal_1.f90: Don't XFAIL darwin10
	or later.

From-SVN: r141950
2008-11-17 21:02:28 +00:00
Jakub Jelinek 286ba5b307 re PR middle-end/38140 (ice for C code with -O2)
PR middle-end/38140
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If
	propagating x = &a into *x = b, add a cast if not useless
	type conversion or don't optimize if another stmt would be
	needed.

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

From-SVN: r141949
2008-11-17 21:58:52 +01:00
Jack Howarth 5ef87778f1 re PR testsuite/38099 (tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure)
2008-11-14  Jack Howarth  <howarth@bromo.med.uc.edu>
        
        PR testsuite/38099
	* gcc.dg/compat/struct-layout-1_generate.c: Also use -no-mmx on
	i?86/x86_64 darwin.
	* g++.dg/compat/struct-layout-1_generate.c: Same.

From-SVN: r141948
2008-11-17 19:39:54 +00:00
Uros Bizjak 23462d4d8f re PR middle-end/37908 (atomic NAND op generate wrong code; __sync_nand_and_fetch, __sync_fetch_and_nand)
PR middle-end/37908
	* optabs.c (expand_sync_operation): Properly handle NAND case
	by calculating ~(t1 & val) instead of (~t1 & val).
	* builtins.c (expand_builtin_sync_operation): Warn for changed
	semantics in NAND builtins.
	* c.opt (Wsync-nand): New warning option.  Describe -Wsync-nand.
	
	* doc/invoke.texi (Warning options): Add Wsync-nand.
	* doc/extend.texi (Atomic Builtins) [__sync_fetch_and_nand]: Correct
	__sync_fetch_and_nand builtin operation in the example.  Add a note
	about changed semantics in GCC 4.4.
	[__sync_nand_and_fetch]: Correct __sync_nand_and_fetch builtin
	operation in the example.  Add a note about changed semantics in
	GCC 4.4.

testsuite/ChangeLog:

	PR middle-end/37908
	* gcc.dg/pr37908.c: New test.
	* gcc.dg/ia64-sync-1.c: Correct __sync_fetch_and_nand and
	__sync_nand_and_fetch results.  Add dg-message to look for the warning
	about changed semantics of NAND builtin.
	(init_si, init_di): Change init value for __sync_fetch_and_nand to -1.
	(test_si, test_di): Change expected result of
	__sync_nand_and_fetch to ~7.
	* gcc.dg/ia64-sync-2.c: Correct __sync_fetch_and_nand and
	__sync_nand_and_fetch results.  Add dg-message to look for the warning
	about changed semantics of NAND builtin.
	(init_noret_si, init_noret_di): Change init value for
	__sync_fetch_and_nand to -1.
	(init_noret_si, init_noret_di): Change expected result of
	__sync_nand_and_fetch to ~7.
	* gcc.dg/sync-2.c: Correct __sync_fetch_and_nand and
	__sync_nand_and_fetch results.  Add dg-message to look for the warning
	about changed semantics of NAND builtin.
	(init_qi, init_qi): Change init value for __sync_fetch_and_nand to -1.
	(init_hi, init_hi): Change expected result of
	__sync_nand_and_fetch to ~7.
	* gcc.dg/sync-3.c: Copy from sync-2.c instead of including
	the c source file.
	* gcc.c-torture/compile/sync-1.c: Add dg-message to look for the
	warning about changed semantics of NAND builtin.
	* gcc.c-torture/compile/sync-2.c: Ditto.
	* gcc.c-torture/compile/sync-3.c: Ditto.

From-SVN: r141942
2008-11-17 12:19:06 +01:00
Jakub Jelinek 73ce7fcb8c re PR c++/36089 (Funny rejects valid with constant integral expression)
PR c++/36089
	* init.c (constant_value_1): Handle TREE_LIST init.

	* g++.dg/template/init8.C: New test.

From-SVN: r141941
2008-11-17 08:55:52 +01:00
GCC Administrator f92efbc3fe Daily bump.
From-SVN: r141934
2008-11-17 00:16:53 +00:00
Mikael Morin 2b0bd71482 re PR fortran/35681 (wrong result for vector subscripted array expression in MVBITS)
2008-11-16  Mikael Morin <mikael.morin@tele2.fr>

	PR fortran/35681
	* dependency.c (gfc_check_argument_var_dependency): Add
	elemental check flag. Issue a warning if we find a dependency
	but don't generate a temporary. Add the case of an elemental
	function call as actual argument to an elemental procedure.
	Add the case of an operator expression as actual argument
	to an elemental procedure.
	(gfc_check_argument_dependency): Add elemental check flag.
	Update calls to gfc_check_argument_var_dependency.
	(gfc_check_fncall_dependency): Add elemental check flag.
	Update call to gfc_check_argument_dependency.
	* trans-stmt.c (gfc_trans_call): Make call to
	gfc_conv_elemental_dependency unconditional, but with a flag
	whether we should check dependencies between variables.
	(gfc_conv_elemental_dependency): Add elemental check flag.
	Update call to gfc_check_fncall_dependency.
	* trans-expr.c (gfc_trans_arrayfunc_assign): Update call to
	gfc_check_fncall_dependency.
	* resolve.c (find_noncopying_intrinsics): Update call to
	gfc_check_fncall_dependency.
	* dependency.h (enum gfc_dep_check): New enum.
	(gfc_check_fncall_dependency): Update prototype.

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

	PR fortran/35681
	* gfortran.dg/elemental_dependency_1.f90: New test.

From-SVN: r141931
2008-11-16 22:45:10 +00:00
Jan Hubicka d3ea650c44 cgraph.c (cgraph_function_body_availability): Fix test of externally visible.
* cgraph.c (cgraph_function_body_availability): Fix test of externally
	visible.

From-SVN: r141930
2008-11-16 22:31:58 +00:00
Joshua Kinard 304b14b107 mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000 to -mips4.
gcc/
2008-11-16  Joshua Kinard  <kumba@gentoo.org>

	* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000
	to -mips4.

From-SVN: r141928
2008-11-16 21:00:12 +00:00
Mikael Morin 27f31e397e re PR fortran/37992 (ICE while resolving charlen for rejected statements)
2008-11-16  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/37992
	* gfortran.h (gfc_namespace): Added member old_cl_list, 
	backup of cl_list.
	(gfc_free_charlen): Added prototype.
	* symbol.c (gfc_free_charlen): New function.
	(gfc_free_namespace): Use gfc_free_charlen.
	* parse.c (next_statement): Backup gfc_current_ns->cl_list.
	(reject_statement): Restore gfc_current_ns->cl_list.
	Free cl_list's elements before dropping them.

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

	PR fortran/37992
	* gfotran.dg/charlen_free_1.f90: New test.

From-SVN: r141927
2008-11-16 20:44:33 +00:00
Richard Sandiford 7cc003b5c2 re PR target/38052 (genautomata segfaults when -O2 is enabled)
gcc/
	PR target/38052
	* config/mips/mips.c (mips_cfun_call_saved_reg_p)
	(mips_cfun_might_clobber_call_saved_reg_p): New functions,
	split out from...
	(mips_save_reg_p): ...here.  Always consult TARGET_CALL_SAVED_GP
	rather than call_really_used_regs when handling $gp.

From-SVN: r141926
2008-11-16 20:31:13 +00:00
Richard Sandiford 8d9d917290 re PR target/38052 (genautomata segfaults when -O2 is enabled)
gcc/
	PR target/38052
	* config/mips/mips.c (machine_function): Update the comment
	above global_pointer.
	(mips_global_pointer): Use INVALID_REGNUM rather than 0 to indicate
	that a function doesn't need a global pointer.
	(mips_current_loadgp_style): Update accordingly.
	(mips_restore_gp): Likewise.
	(mips_output_cplocal): Likewise.
	(mips_expand_prologue): Likewise.

From-SVN: r141925
2008-11-16 20:25:40 +00:00
Eric Botcazou 26237a509b sparc.c (function_arg_vector_value): Remove 'base_mode' parameter.
* config/sparc/sparc.c (function_arg_vector_value): Remove 'base_mode'
	parameter.  Use DImode for computing the number of registers.
	(function_arg): Adjust for above change.
	(function_value): Likewise.

From-SVN: r141921
2008-11-16 17:05:34 +00:00
Jerry DeLisle dfc1a404f2 re PR libfortran/38097 (I/O with blanks in exponent fails; blank="NULL", BN edit descriptor)
2008-11-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38097
	* gfortran.dg/fmt_bz_bn.f: New test.

From-SVN: r141920
2008-11-16 16:18:36 +00:00
Jerry DeLisle 264a5255d8 re PR libfortran/38097 (I/O with blanks in exponent fails; blank="NULL", BN edit descriptor)
2008-11-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38097
	* io/read.c (read_f): Initialize exponent. Fix comment. Set loop
	conditions for BZ/BN.
	* io/unit.c (get_internal_unit): Initialize flags.blank.
	* io/transfer.c (data_transfer_init): Fix whitespace.

From-SVN: r141919
2008-11-16 16:12:16 +00:00
Eric Botcazou 459348d41e * gnat.dg/boolean_bitfield.adb: New test.
From-SVN: r141918
2008-11-16 15:16:34 +00:00
Tobias Burnus 06919226fd re PR fortran/38095 (character ICE)
2008-11-16  Tobias Burnus  <burnus@net-b.de>

        PR fortran/38095
        * trans-expr.c (gfc_map_intrinsic_function): Fix pointer access.

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

        PR fortran/38095
        * gfortran.dg/char_length_13.f90: New test.

From-SVN: r141917
2008-11-16 15:19:38 +01:00
Uros Bizjak 7cf9886851 pr36246.c: Add -fomit-frame-pointer to dg-options.
* gcc.target/i386/pr36246.c: Add -fomit-frame-pointer to dg-options.
	* gcc.target/i386/pr32661-1.c: Ditto.
	* gcc.target/i386/pr34256.c: Ditto.
	* gcc.target/i386/pr22076.c: Ditto. Check for "movl" instruction on
	nonpic targets only.

From-SVN: r141916
2008-11-16 15:14:44 +01:00
Paul Thomas 2208990515 re PR fortran/38119 (character ICE in gfc_trans_create_temp_array)
2008-11-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38119
	* trans-array.c (gfc_trans_create_temp_array): Set the
	loop->from to zero and the renormalisation of loop->to for all
	dimensions.

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

	PR fortran/38119
	* gfortran.dg/array_temporaries_3.f90: New test.

From-SVN: r141915
2008-11-16 12:11:53 +00:00
Paul Thomas b800fd64b5 re PR fortran/37926 (Program gives wrong output (connected to char len))
2008-11-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/37926
	* trans-expr.c (gfc_free_interface_mapping): Null sym->formal
	(gfc_add_interface_mapping): Copy the pointer to the formal
	arglist, rather than using copy_formal_args.

From-SVN: r141914
2008-11-16 12:00:44 +00:00
Eric Botcazou e66e5d9e40 re PR ada/38127 (ACATS cd1c04e fails on sparc, hppa)
PR ada/38127
	* gcc-interface/decl.c (make_type_from_size): Do not special-case
	boolean types.
	* gcc-interface/targtyps.c: Tweak comment.

From-SVN: r141913
2008-11-16 10:05:22 +00:00
Zdenek Dvorak 4c533e5afe re PR tree-optimization/37950 (failure in polyhedron benchmark when ftree-parallelize-loops is enabled)
PR tree-optimization/37950
	* tree-flow-inline.h (memory_partition): Return NULL when aliases were
	not computed for the current function.

From-SVN: r141911
2008-11-16 04:48:25 +00:00
GCC Administrator 9ff8119f66 Daily bump.
From-SVN: r141907
2008-11-16 00:16:38 +00:00
Jerry DeLisle 7e27825940 re PR libfortran/37294 (Namelist I/O to array character internal units)
2008-11-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/37294
	* gfortran.dg/namelist_57.f90: New test.
	* gfortran.dg/namelist_print_1.f: Adjust test conditions.

From-SVN: r141893
2008-11-15 19:33:07 +00:00
Jerry DeLisle 94bc6c1e77 re PR libfortran/37294 (Namelist I/O to array character internal units)
2008-11-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/37294
	* io/write.c (namelist_write_newline): Use array loop specification to
	advance to next internal array unit record. (namelist_write): Adjust to
	accomodate the internal array unit behavior.

From-SVN: r141892
2008-11-15 19:25:35 +00:00
Paul Thomas 4d45d49566 re PR fortran/37926 (Program gives wrong output (connected to char len))
2008-11-15  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37926
        * trans-expr.c (gfc_add_interface_mapping): Transfer the formal
	arglist and the always_explicit attribute if the dummy arg is a
	procedure.

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

        PR fortran/37926
        * gfortran.dg/dummy_procedure_3.f90: New test.

From-SVN: r141890
2008-11-15 17:26:13 +00:00
Jakub Jelinek 6d8f280f7a re PR target/38123 (error: incorrect sharing of tree nodes ap->fp_offset = D.2748;)
PR target/38123
	* config/i386/i386.c (ix86_gimplify_va_arg): Don't share valist between
	gpr and other COMPONENT_REFs.

	* gcc.c-torture/compile/pr38123.c: New test.

From-SVN: r141889
2008-11-15 17:40:24 +01:00
Richard Guenther 6389463779 re PR tree-optimization/38051 (Miscompilation of glibc's memcmp)
2008-11-15  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38051
	* tree-ssa-alias.c (update_alias_info_1): Manually find
	written variables.

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

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r141887
2008-11-15 15:37:57 +00:00
Joshua Kinard ee9a72e50c invoke.texi (-mfix-r10000): Document.
gcc/
2008-11-15  Joshua Kinard  <kumba@gentoo.org>

	* doc/invoke.texi (-mfix-r10000): Document.
	* config/mips/mips.opt (mfix-r10000): New option.
	* config/mips/mips-protos.h (mips_output_sync_loop): Declare.
	* config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Use %?.
	(MIPS_COMPARE_AND_SWAP_12): Likewise.
	(MIPS_SYNC_OP): Likewise.
	(MIPS_SYNC_OP_12): Likewise.
	(MIPS_SYNC_OLD_OP_12): Likewise.
	(MIPS_SYNC_NEW_OP_12): Likewise.
	(MIPS_SYNC_OLD_OP): Likewise.
	(MIPS_SYNC_NAND): Likewise.
	(MIPS_SYNC_OLD_NAND): Likewise.
	(MIPS_SYNC_EXCHANGE): Likewise.
	(MIPS_SYNC_EXCHANGE_12): Likewise.
	(MIPS_SYNC_NEW_OP): Likewise, using %~ to fill branch-likely
	delay slots.
	(MIPS_SYNC_NEW_NAND): Likewise.
	* config/mips/mips.c (mips_print_operand_punctuation): Handle '~'.
	(mips_init_print_operand_punct): Treat '~' as a punctuation character.
	(mips_output_sync_loop): New function.
	(mips_override_options): Make -march=r10000 imply -mfix-r10000.
	Make -mfix-r10000 require branch-likely instructions.
	* config/mips/sync.md (sync_compare_and_swap<mode>): Use
	mips_output_sync_loop.
	(compare_and_swap_12): Likewise.
	(sync_add<mode>): Likewise.
	(sync_<optab>_12): Likewise.
	(sync_old_<optab>_12): Likewise.
	(sync_new_<optab>_12): Likewise.
	(sync_nand_12): Likewise.
	(sync_old_nand_12): Likewise.
	(sync_new_nand_12): Likewise.
	(sync_sub<mode>): Likewise.
	(sync_old_add<mode>): Likewise.
	(sync_old_sub<mode>): Likewise.
	(sync_new_add<mode>): Likewise.
	(sync_new_sub<mode>): Likewise.
	(sync_<optab><mode>): Likewise.
	(sync_old_<optab><mode>): Likewise.
	(sync_new_<optab><mode>): Likewise.
	(sync_nand<mode>): Likewise.
	(sync_old_nand<mode>): Likewise.
	(sync_new_nand<mode>): Likewise.
	(sync_lock_test_and_set<mode>): Likewise.
	(test_and_set_12): Likewise.

gcc/testsuite/
2008-11-15  Joshua Kinard  <kumba@gentoo.org>
	    Richard Sandiford  <rdsandiford@goolemail.com>

	* gcc.target/mips/fix-r10000-1.c: New test.
	* gcc.target/mips/fix-r10000-2.c: Likewise.
	* gcc.target/mips/fix-r10000-3.c: Likewise.
	* gcc.target/mips/fix-r10000-4.c: Likewise.
	* gcc.target/mips/fix-r10000-5.c: Likewise.
	* gcc.target/mips/fix-r10000-6.c: Likewise.
	* gcc.target/mips/fix-r10000-7.c: Likewise.
	* gcc.target/mips/fix-r10000-8.c: Likewise.
	* gcc.target/mips/fix-r10000-9.c: Likewise.
	* gcc.target/mips/fix-r10000-10.c: Likewise.
	* gcc.target/mips/fix-r10000-11.c: Likewise.
	* gcc.target/mips/fix-r10000-12.c: Likewise.
	* gcc.target/mips/fix-r10000-13.c: Likewise.
	* gcc.target/mips/fix-r10000-14.c: Likewise.
	* gcc.target/mips/fix-r10000-15.c: Likewise.

Co-Authored-By: Richard Sandiford <rdsandiford@googlemail.com>

From-SVN: r141886
2008-11-15 14:26:07 +00:00
Geert Bosch 7348f18cb1 trans.c (emit_check): Put back a final save_expr to prevent exponential expansion during gimplification.
* gcc-interface/trans.c (emit_check): Put back a final save_expr
	to prevent exponential expansion during gimplification.

From-SVN: r141885
2008-11-15 14:11:58 +00:00
Eric Botcazou 708bceb76e gcc.c (cc1_options): Fix comment.
* gcc.c (cc1_options): Fix comment.
ada/
	* gcc-interface/lang-specs.h: Expand -coverage and reorder switches.

From-SVN: r141884
2008-11-15 12:43:16 +00:00
Eric Botcazou a5b8aacdd2 decl.c (gnat_to_gnu_entity): Force constants initialized to a static constant to be statically allocated...
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
	initialized to a static constant to be statically allocated even if
	they are of a padding type, provided the original type also has
	constant size.

From-SVN: r141883
2008-11-15 12:34:00 +00:00
Laurent GUERBY 4364e85146 re PR ada/37993 (missing Ada multilib support for darwin)
2008-11-15  Laurent Guerby  <laurent@guerby.net>

	PR ada/37993
	* gcc-interface/Makefile.in: Add multilib handling for x86_64
	on darwin.
	* system-darwin-x86_64.ads: New file.

From-SVN: r141882
2008-11-15 11:22:42 +00:00
Jakub Jelinek b70cef5d74 re PR c++/37561 (Revision 140405 caused g++.old-deja/g++.mike/warn1.C)
PR c++/37561
	* c-typeck.c (build_unary_op): Don't call get_unwidened.  Use
	argtype instead of result_type.

	* typeck.c (cp_build_unary_op): Don't call get_unwidened.  Use
	argtype instead of result_type.

	* gcc.dg/pr37561.c: New test.
	* g++.dg/other/increment1.C: New test.

From-SVN: r141881
2008-11-15 10:53:02 +01:00
Jerry DeLisle 91ddf5a1e7 re PR fortran/37988 (Edit descriptor checking (compile time) for "<Holerith>T)")
2008-11-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/37988
	* gfortran.dg/fmt_error_6.f90: New test.

From-SVN: r141880
2008-11-15 05:14:33 +00:00
Jerry DeLisle 7465781218 re PR fortran/37988 (Edit descriptor checking (compile time) for "<Holerith>T)")
2008-11-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/37988
	* io.c (enum format_token): For readability replace FMT_POS with FMT_T,
	FMT_TL, and FMT_TR.  (format_lex): Use new enumerators. (check_format):
	Add check for missing positive integer.

From-SVN: r141879
2008-11-15 05:03:56 +00:00
GCC Administrator e344d69030 Daily bump.
From-SVN: r141877
2008-11-15 00:16:48 +00:00
Adam Nemet af51c885f5 ira-int.h (struct ira_loop_tree_node): Improve comments for subloop_next/next and subloops/childen fields.
* ira-int.h (struct ira_loop_tree_node): Improve comments for
	subloop_next/next and subloops/childen fields.

From-SVN: r141873
2008-11-14 23:17:14 +00:00
Ulrich Weigand 5800e0a0f2 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: r141870
2008-11-14 22:23:03 +00:00
Jason Merrill 8cc99a4d47 re PR c++/38030 (name-lookup for non-dependent name in template function is wrong)
PR c++/38030
        * semantics.c (finish_call_expr): Remember the result of
        non-dependent overload resolution.

From-SVN: r141866
2008-11-14 16:57:34 -05:00
Jason Merrill 2d2c68a3e7 re PR c++/37740 ([C++0x] "foo f{...}" form compiles, but "new foo{...}" one doesn't)
PR c++/37740
        * call.c (build_aggr_conv): Increment i.

From-SVN: r141865
2008-11-14 15:50:59 -05:00
Steve Ellcey 8b047446c3 re PR middle-end/38004 (g++.dg/vect/pr36648.cc)
PR middle-end/38004
	* g++.dg/vect/pr36648.cc: Check alignment requirement.

From-SVN: r141864
2008-11-14 20:15:11 +00:00
Jack Howarth bc0f6c3d1c re PR testsuite/38098 (gcc.dg/cpp/subframework1.c -fno-show-column fails on darwin9)
2008-11-14  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR testsuite/38098
	* gcc.dg/cpp/subframework1.c: Use -Wno-deprecated.

From-SVN: r141862
2008-11-14 18:36:41 +00:00
Paul Thomas 993ac38b0f re PR fortran/38033 (Bounds of a pointer/allocatable array not stabilized)
2008-10-14  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38033
	* trans-array.c (gfc_trans_create_temp_array): Stabilize the
	'to' expression.
	(gfc_conv_loop_setup): Use the end expression for the loop 'to'
	if it is available.

2008-10-14  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38033
	* gfortran.dg/array_section_2.f90: New test.

From-SVN: r141861
2008-11-14 18:03:05 +00:00
Vladimir Makarov 927425dffe re PR rtl-optimization/37397 (IRA performance impact on SPEC CPU 2K/2006)
2008-11-14  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/37397
	* ira-int.h (struct ira_allocno): New member bad_spill_p.
	(ALLOCNO_BAD_SPILL_P): New macro.

	* ira-color.c (push_allocnos_to_stack): Check ALLOCNO_BAD_SPILL_P.

	* ira-build.c (ira_create_allocno): Initialize
	ALLOCNO_BAD_SPILL_P.
	(create_cap_allocno, propagate_allocno_info,
	remove_unnecessary_allocnos): Set up or update
	ALLOCNO_BAD_SPILL_P.
	(update_bad_spill_attribute): New function.
	(ira_build): Call it.

	* ira-costs.c (record_reg_classes): Set up ALLOCNO_BAD_SPILL_P.

From-SVN: r141860
2008-11-14 16:41:56 +00:00
Daniel Jacobowitz 487e299ba6 re PR bootstrap/38014 (in-tree gmp and mpfr libraries no longer work)
PR bootstrap/38014
	PR bootstrap/37923

	Revert:

	2008-10-24  Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
	* Makefile.in: Regenerated.

	2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
	* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
	(EXTRA_BUILD_FLAGS): Correct typo.  Pass CPPFLAGS.
	(HOST_EXPORTS): Pass CPPFLAGS.
	(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
	(LDFLAGS_FOR_TARGET): Initialize from configure script.
	(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
	* Makefile.in, configure: Regenerated.
	* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
	and CPPFLAGS_FOR_BUILD.

From-SVN: r141859
2008-11-14 14:51:38 +00:00
Jakub Jelinek f93bc6f57c re PR tree-optimization/38104 (ICE segmentation fault (with -O3 when deref a NULL pointer in the code??))
PR tree-optimization/38104
	* gimplify.c (gimple_regimplify_operands): Add referenced vars
	before calling mark_symbols_for_renaming, not after it.

	* g++.dg/tree-ssa/pr38104.C: New test.

From-SVN: r141857
2008-11-14 13:26:05 +01:00