Commit Graph

91084 Commits

Author SHA1 Message Date
Jan Hubicka
877a0b76e1 i386.h (CONDITIONAL_REGISTER_USAGE): Initialize for current function ABI.
* i386.h (CONDITIONAL_REGISTER_USAGE): Initialize for current function
	ABI.
	* i386.c (ix86_call_abi_override): Do not trigger target re-init and
	do not try to modify call used regs.
	(ix86_maybe_switch_abi): New function.
	(TARGET_EXPAND_TO_RTL_HOOK): New macro.

Co-Authored-By: Kai Tietz <kai.tietz@onevision.com>

From-SVN: r142810
2008-12-18 13:48:36 +00:00
Kenneth Zadeck
02b47899e1 re PR rtl-optimization/37922 (code generation error)
2008-12-18  Kenneth Zadeck <zadeck@naturalbridge.com>

	PR rtl-optimization/37922
	* dse.c (bb_info): Added regs_live field.
	(look_for_hardregs): New function.
	(replace_read): Added regs_live parameter and code to check that
	shift sequence does not clobber live hardregs.
	(check_mem_read_rtx): Added parameter to replace_read.
	(dse_step1): Added regs_live bitmap and initialize it.
	(rest_of_handle_dse): Added DF_NOTES problem and earlier call to
	df_analyze.
	* df-problems.c Renamed to 
	df_simulate_initialize_backwards.
	(df_simulate_one_insn): Renamed to
	df_simulate_one_insn_backwards.
	(df_simulate_artificial_refs_at_top): Renamed to 
	df_simulate_finalize_backwards.
	(df_simulate_initialized_forwards,
	df_simulate_one_insn_forwards,
	df_simulate_finalize_backwards): New functions.
	* df.h (df_simulate_artificial_refs_at_end): Renamed to 
	df_simulate_initialize_backwards.
	(df_simulate_one_insn): Renamed to
	df_simulate_one_insn_backwards.
	(df_simulate_artificial_refs_at_top): Renamed to 
	df_simulate_finalize_backwards.
	(df_simulate_initialized_forwards,
	df_simulate_one_insn_forwards,
	df_simulate_finalize_backwards): New functions.
	* ra-conflict.c (global_conflicts): Renamed
	df_simulate_artificial_refs_at_end to
	df_simulate_initialize_backwards.
	* sel-sched.c (propagate_lv_set): Renamed df_simulate_one_insn to
	df_simulate_one_insn_backwards.
	* ifcvt.c (dead_or_predicable): Renamed
	df_simulate_artificial_refs_at_end to
	df_simulate_initialize_backwards. Renamed df_simulate_one_insn to
	df_simulate_one_insn_backwards.
	* recog.c (peephole2_optimize): Ditto.
	* rtl-factoring (collect_pattern_seqs, clear_regs_live_in_seq): Ditto.

2008-12-18  Kenneth Zadeck <zadeck@naturalbridge.com>

	PR rtl-optimization/37922
	* g++.dg/torture/pr37922.C: New test.

From-SVN: r142809
2008-12-18 13:38:39 +00:00
Daniel Kraft
fb5bc08bb3 re PR fortran/31822 (Missing run-time bound checks for character pointer => target)
2008-12-18  Daniel Kraft  <d@domob.eu>

	PR fortran/31822
	* gfortran.h (gfc_check_same_strlen): Made public.
	* trans.h (gfc_trans_same_strlen_check): Made public.
	* check.c (gfc_check_same_strlen): Made public and adapted error
	message output to be useful not only for intrinsics.
	(gfc_check_merge): Adapt to gfc_check_same_strlen change.
	* expr.c (gfc_check_pointer_assign): Use gfc_check_same_strlen for
	string length compile-time check.
	* trans-expr.c (gfc_trans_pointer_assignment): Add runtime-check for
	equal string lengths using gfc_trans_same_strlen_check.
	* trans-intrinsic.c (gfc_trans_same_strlen_check): Renamed and made
	public from conv_same_strlen_check.
	(gfc_conv_intrinsic_merge): Adapted accordingly.

2008-12-18  Daniel Kraft  <d@domob.eu>

	PR fortran/31822
	* gfortran.dg/char_pointer_assign_2.f90: Updated expected error message
	to be more detailed.
	* gfortran.dg/char_pointer_assign_4.f90: New test.
	* gfortran.dg/char_pointer_assign_5.f90: New test.

From-SVN: r142808
2008-12-18 11:05:54 +01:00
Jakub Jelinek
ec81df7d4e re PR middle-end/38533 (tree-ssa-reassoc.c increases register pressure several times)
PR middle-end/38533
	* tree-ssa-reassoc.c (remove_visited_stmt_chain): New function.
	(rewrite_expr_tree): Add moved argument, move stmts together if
	needed.  Call remove_visited_stmt_chain.
	(linearize_expr_tree): Don't move stmts here.
	(reassociate_bb): Call remove_visited_stmt_chain if num ops is 1.
	Adjust rewrite_expr_tree caller.

	* gcc.dg/tree-ssa/pr38533.c: New test.
	* gcc.c-torture/execute/pr38533.c: New test.

From-SVN: r142807
2008-12-18 08:54:43 +01:00
Jakub Jelinek
9f68560cb5 re PR middle-end/38505 (Revision 142061 caused ICE on __builtin_memcpy)
PR middle-end/38505
	* tree-ssa.c (useless_type_conversion_p_1): Return
	false if inner_type is incomplete and outer_type is complete.

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

From-SVN: r142806
2008-12-18 08:52:07 +01:00
Ben Elliston
18430d277c * config.sub, config.guess: Update from upstream sources.
From-SVN: r142805
2008-12-18 14:27:27 +11:00
GCC Administrator
27937508d1 Daily bump.
From-SVN: r142803
2008-12-18 00:16:47 +00:00
Jason Merrill
a77f94e240 semantics.c (describable_type): New function.
gcc/cp:
        * semantics.c (describable_type): New function.
        (finish_decltype_type): Use it for dependent exprs.
        * cp-tree.h: Declare it.
        * mangle.c (write_type) [DECLTYPE_TYPE]: Set skip_evaluation.
        (write_expression): If skip_evaluation, use type stubs.
        * tree.c (cp_tree_equal): Handle PARM_DECLs from different
        declarations of a function.
        * init.c (build_new): Do auto deduction if type is describable.
        * decl.c (cp_finish_decl): Likewise.
        * parser.c (cp_parser_omp_for_loop): Likewise.
gcc/testsuite:
        * g++.dg/cpp0x/auto6.C: Test more stuff.
        * g++.dg/cpp0x/auto12.C: New test.
libiberty:
        * cp-demangle.c (d_expression): Handle rvalue stubs too.
        [DEMANGLE_COMPONENT_CAST]: Update mangling.
        (d_print_comp): Avoid extra ", " with empty template argument packs.
        Remove handling for obsolete T() mangling.

From-SVN: r142799
2008-12-17 14:08:14 -05:00
Sebastian Pop
3aea2d1ce2 install.texi (Prerequisites): Document PPL and CLooG-PPL dependences and the configure options.
2008-12-17  Sebastian Pop  <sebastian.pop@amd.com>
        
        * doc/install.texi (Prerequisites): Document PPL and CLooG-PPL
        dependences and the configure options.
        (Configuration): Document --with-cloog, --with-ppl, --with-cloog-lib,
         --with-ppl-lib, --with-cloog-incude, --with-ppl-include.

From-SVN: r142798
2008-12-17 18:56:33 +00:00
Jack Howarth
d711bdded5 c99_classification_macros_c.cc: Don't xfail test on darwin8 or later.
2008-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>

        * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
	Don't xfail test on darwin8 or later.

From-SVN: r142797
2008-12-17 17:51:49 +00:00
H.J. Lu
130423d789 re PR middle-end/38556 (Revision 142792 breaks bootstrap)
2008-12-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/38556
	* calls.c (expand_call): Check outgoing_reg_parm_stack_space
	only if REG_PARM_STACK_SPACE is defined.

From-SVN: r142794
2008-12-17 09:05:05 -08:00
Jan Hubicka
0e45662527 calls.c (expand_call): Do not sibcall if outgoing_reg_parm_stack_space does not match.
* calls.c (expand_call): Do not sibcall if
	outgoing_reg_parm_stack_space does not match.

Co-Authored-By: Kai Tietz <kai.tietz@onevision.com>

From-SVN: r142792
2008-12-17 12:03:04 +00:00
Daniel Kraft
8c13133cc3 re PR fortran/38137 (MERGE: -fbounds-check runtime check for same string length)
2008-12-17  Daniel Kraft  <d@domob.eu>

	PR fortran/38137
	* trans-intrinsic.c (conv_same_strlen_check): New method.
	(gfc_conv_intrinsic_merge): Call it here to actually do the check.

2008-12-17  Daniel Kraft  <d@domob.eu>

	PR fortran/38137
	* gfortran.dg/merge_char_3.f90: New test.

From-SVN: r142791
2008-12-17 11:16:28 +01:00
GCC Administrator
af8a63d21d Daily bump.
From-SVN: r142789
2008-12-17 00:17:41 +00:00
Anatoly Sokolov
f15a9aa2e4 avr.c (avr_mcu_t): Add attiny87...
* config/avr/avr.c (avr_mcu_t): Add attiny87, attiny327, at90pwm81,
	atmega16m1, at90scr100, atmega128rfa1, m3000f, m3000s and m3001b
	devices.
	* config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
	* config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).

From-SVN: r142783
2008-12-17 00:05:59 +03:00
Jack Howarth
91102877a1 c99_classification_macros_c.cc: Don't xfail excessive errors on darwin8 or later.
2008-12-16  Jack Howarth  <howarth@bromo.med.uc.edu>

        * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
	Don't xfail excessive errors on darwin8 or later.

From-SVN: r142782
2008-12-16 18:54:30 +00:00
Hariharan Sandanagobalane
95ffe01c05 re PR preprocessor/38842 (Problem with SystemC compilation using GCC 4.3.2)
PR target/38842
        * config/picochip/picochip.opt (mae): Squeezed the comments onto one
        line.

From-SVN: r142781
2008-12-16 16:30:26 +00:00
Rainer Orth
5e87dc23ef configure.ac (gcc_cv_ld_hidden): Sun ld on Solaris 9 and up supports hidden.
* configure.ac (gcc_cv_ld_hidden): Sun ld on Solaris 9 and up
	supports hidden.
	* configure: Regenerate.

From-SVN: r142779
2008-12-16 13:09:57 +00:00
Richard Earnshaw
01577df779 re PR target/37436 (arm-cross-g++. internal compiler error: in extract_insn, at recog.c:1990)
PR target/37436
* arm.c (arm_legitimate_index): Only accept addresses that are in
canonical form.
* predicates.md (arm_reg_or_extendqisi_mem_op): New predicate.
* arm.md (extendqihi2): Use arm_reg_or_extendqisi_mem_op predicate
for operand1.
(extendqisi2): Likewise.
(arm_extendqisi, arm_extendqisi_v6): Use arm_extendqisi_mem_op
predicate for operand1.

From-SVN: r142778
2008-12-16 12:03:41 +00:00
Benjamin Kosnik
d4e1b0727a cstdatomic: Remove assert include.
2008-12-15  Benjamin Kosnik  <bkoz@redhat.com>

	* include/c_global/cstdatomic: Remove assert include.
	* include/debug/debug.h: Consolidate __replacement_assert...
	* include/parallel/base.h: Consolidate __replacement_assert...
	* include/bits/c++config: ...here.
	* include/bits/atomic_0.h: Use it.
	* include/bits/atomic_2.h: Same.
	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust line numbers.
	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.

From-SVN: r142777
2008-12-16 01:28:46 +00:00
GCC Administrator
f2d6c7fb16 Daily bump.
From-SVN: r142775
2008-12-16 00:17:29 +00:00
Adam Nemet
4cba945dad mips.c (mips_output_conditional_branch): Assert that openrands[1] is a CODE_LABEL.
* config/mips/mips.c (mips_output_conditional_branch): Assert that
	openrands[1] is a CODE_LABEL.

From-SVN: r142772
2008-12-15 21:59:51 +00:00
Richard Sandiford
aaeee6d616 mips.c (mips_expand_builtin_direct): Set TARGET to the result of mips_prepare_builtin_target.
gcc/
	* config/mips/mips.c (mips_expand_builtin_direct): Set TARGET to
	the result of mips_prepare_builtin_target.

From-SVN: r142771
2008-12-15 21:23:37 +00:00
Richard Sandiford
cf51e47926 mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls if TARGET_ABICALLS is true.
gcc/
	* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls
	if TARGET_ABICALLS is true.

From-SVN: r142770
2008-12-15 21:11:09 +00:00
Richard Sandiford
dd021c27bf mips.md (move_doubleword_fpr<mode>): Use TARGET_FLOAT64 && !TARGET_64BIT to detect the mxhc1 case.
gcc/
	* config/mips/mips.md (move_doubleword_fpr<mode>): Use
	TARGET_FLOAT64 && !TARGET_64BIT to detect the mxhc1 case.

From-SVN: r142769
2008-12-15 21:10:00 +00:00
Steve Ellcey
8739b9c795 inclhack.def (hpux_spu_info): Match PA as well as IA64.
* inclhack.def (hpux_spu_info): Match PA as well as IA64.
	* fixincl.x: Regenerate.

From-SVN: r142767
2008-12-15 18:11:19 +00:00
Mikael Morin
ea4547bbfa re PR fortran/38487 (Bogus Warning: INTENT(INOUT) actual argument might interfere with actual argument)
2008-12-15  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/38487
	* gfortran.dg/elemental_dependency_2.f90: New test.

2008-12-15  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/38487
	* dependency.c (gfc_is_data_pointer): New function.
	(gfc_check_argument_var_dependency): Disable the warning
	in the pointer case.
	(gfc_check_dependency): Use gfc_is_data_pointer.

From-SVN: r142766
2008-12-15 18:08:42 +00:00
Hariharan Sandanagobalane
5c08ab4eae picochip.c (picochip_override_options): Disable CFI asm and change the signature of brev and byteSwap functions to use...
* config/picochip/picochip.c (picochip_override_options): Disable CFI
        asm and change the signature of brev and byteSwap functions to use
        unsigned values.
        * config/picochip/picochip.md (commsTestPort): This is a complex
        instruction and should not be vliwed. Dont set insn type.

From-SVN: r142765
2008-12-15 16:20:44 +00:00
Mikael Morin
618f4f46bd re PR fortran/38113 (on warning/error: skip whitespaces, move position marker to actual variable name)
2008-12-15  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/38113
	* error.c (show_locus): Start counting columns at 0.
	* primary.c (match_actual_arg): Eat spaces
	before copying the current locus.
	(match_variable): Copy the locus before matching.

From-SVN: r142763
2008-12-15 14:46:22 +00:00
Wolfgang Gellerich
d277db6b0f s390.c (s390_swap_cmp): New function.
2008-12-15  Wolfgang Gellerich  <gellerich@de.ibm.com>

	* config/s390/s390.c (s390_swap_cmp): New function.
	(s390_non_addr_reg_read_p): New function.
	(s390_z10_optimize_cmp): New function.
	(s390_reorg): Added call to s390_optimize_cmp.
	* config/s390/s390.md (nop1): New insn.

From-SVN: r142762
2008-12-15 14:24:03 +00:00
GCC Administrator
d7fda78bf4 Daily bump.
From-SVN: r142760
2008-12-15 00:16:51 +00:00
Uros Bizjak
ef7e6df5d6 i386-5.C: Include x86intrin.h.
* g++.dg/other/i386-5.C: Include x86intrin.h.
	* g++.dg/other/i386-6.C: Ditto.

From-SVN: r142752
2008-12-14 20:51:03 +01:00
Paul Thomas
18dd272dfd re PR fortran/35937 (Wrong type for charlength of function)
2008-12-14  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/35937
	* trans-expr.c (gfc_finish_interface_mapping): Fold convert the
	character length to gfc_charlen_type_node.

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

	PR fortran/35937
	* gfortran.dg/char_length_14.f90: New test.

From-SVN: r142750
2008-12-14 16:00:25 +00:00
Jerry DeLisle
7379374526 re PR fortran/38504 (double minus sign when printing integer?)
2008-12-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38504
	* gfortran.dg/fmt_int_sign.f90: New test.

From-SVN: r142748
2008-12-14 06:58:38 +00:00
Jerry DeLisle
07e9d8beb7 re PR fortran/38504 (double minus sign when printing integer?)
2008-12-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38504
	io/write.c (write_decimal): Skip extra sign '-' at beginning of string
	returned by gfc_itoa.

From-SVN: r142747
2008-12-14 06:50:53 +00:00
GCC Administrator
7b5be687fc Daily bump.
From-SVN: r142745
2008-12-14 00:16:49 +00:00
Benjamin Kosnik
1a6e675339 atomic.cc: Revert last change.
2008-12-13  Benjamin Kosnik  <bkoz@redhat.com>

	* src/atomic.cc: Revert last change.
	* include/bits/atomic_2.h: Move cassert include to...
	* include/c_global/cstdatomic: ...here.
	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust line numbers.
	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.

From-SVN: r142742
2008-12-13 20:01:57 +00:00
Sebastian Pop
521f3e9930 pr38409.c: Fixed commit problem.
* gcc.dg/graphite/pr38409.c: Fixed commit problem.

From-SVN: r142741
2008-12-13 19:53:29 +00:00
Uros Bizjak
98c62941ac sse-12.c: Include x86intrin.h.
* gcc.target/i386/sse-12.c: Include x86intrin.h.
	(dg-options): Use -mavx instead of -msse4. Add -maes -mpclmul.
	* gcc.target/i386/sse-13.c: Include x86intrin.h. Define immintrin.h
	intrinsics that require immediate arguments.
	(dg-options): Use -mavx instead of -msse4.
	* gcc.target/i386/sse-14.c: Include x86intrin.h. Define immintrin.h
	intrinsics that require immediate arguments.
	(test_3): New macro.
	(dg-options): Use -mavx instead of -msse4.
	* g++.dg/other/i386-2.C: Include x86intrin.h.
	(dg-options): Use -mavx instead of -msse4.
	* g++.dg/other/i386-3.C: Include x86intrin.h.
	(dg-options): Use -mavx instead of -msse4.

From-SVN: r142739
2008-12-13 15:10:28 +01:00
Benjamin Kosnik
7581b88af9 Makefile.am: Remove -x c++ for atomic build rules.
2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am: Remove -x c++ for atomic build rules.
	* src/Makefile.in: Regenerate.
	* src/atomic.cc: Move mutex include before cstdatomic.

From-SVN: r142738
2008-12-13 07:57:51 +00:00
H.J. Lu
81ff169c9e re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp)
2008-12-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR libstdc++/37144
	* testsuite/util/regression/trait/assoc/type_trait.hpp
	(regression_test_type_traits): Add const to pair_type_rebind.

From-SVN: r142736
2008-12-12 17:40:15 -08:00
Benjamin Kosnik
b0c2c850bd atomic.cc: Correct guards to match mutex.cc.
2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>

	* src/atomic.cc: Correct guards to match mutex.cc.

From-SVN: r142735
2008-12-13 00:40:06 +00:00
GCC Administrator
d9db9855de Daily bump.
From-SVN: r142732
2008-12-13 00:17:03 +00:00
Rainer Emrich
67df8b1f51 re PR bootstrap/38383 (fails to build cross gcc for target hppa64-hp-hpux11.00)
PR bootstrap/38383
	* pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Don't hardcode search path
	for the milli.a library.

From-SVN: r142729
2008-12-13 00:14:15 +00:00
Andrew Pinski
a893ac80da re PR target/24779 (Python miscompilation - TOC reload)
2008-12-12  Andrew Pinski  <andrew_pinskia@playstation.sony.com>
            Peter Bergner <bergner@vnet.ibm.com>

        PR target/24779
        * config/rs6000/rs6000.md (call_indirect_aix32): Move the load of the
        TOC into the call pattern.
        (call_indirect_aix64): Likewise.
        (call_value_indirect_aix32): Likewise.
        (call_value_indirect_aix64): Likewise.
        (call_indirect_nonlocal_aix32_internal): New insn and split patterns
        to split off the load of the TOC.
        (call_indirect_nonlocal_aix32): Enable only after reload.
        (call_indirect_nonlocal_aix64_internal): New insn and split patterns
        to split off the load of the TOC.
        (call_indirect_nonlocal_aix64): Enable only after reload.
        (call_value_indirect_nonlocal_aix32_internal): New insn and split
        patterns to split off the load of the TOC.
        (call_value_indirect_nonlocal_aix32): Enable only after reload.
        (call_value_indirect_nonlocal_aix64_internal): New insn and split
        patterns to split off the load of the TOC.
        (call_value_indirect_nonlocal_aix64): Enable only after reload.



Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com>

From-SVN: r142727
2008-12-12 14:54:09 -08:00
Uros Bizjak
9bf6b5c1d3 re PR testsuite/38163 (gcc.dg/tree-ssa/loop-3.c failure at -m64 on i686-apple-darwin9)
PR testsuite/38163
	* gcc.dg/tree-ssa/loop-3.c: Compile only on nonpic x86 targets.
	Remove dg-skip-if directive.

From-SVN: r142726
2008-12-12 23:39:43 +01:00
Janis Johnson
72c282c6e3 re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90))
PR libgfortran/24685
	* gfortran.dg/default_format_denormal_2.f90: Change XFAIL to check
	for size of long double.

From-SVN: r142724
2008-12-12 22:17:31 +00:00
Janis Johnson
03901b8852 re PR objc++/31032 (expected tree that contains 'decl with RTL' structure, have 'field_decl' in assemble_external_real, at varasm.c:2225)
PR objc++/31032
	* obj-c++.dg/bitfield-1.mm: Remove XFAIL for ICE.

From-SVN: r142723
2008-12-12 22:14:39 +00:00
Andreas Schwab
8ce9fd5d70 revert: cfgrtl.c (rtl_verify_flow_info_1): Don't apply BLOCK_FOR_INSN on a BARRIER insn.
Revert:
2008-12-12  Andreas Schwab  <schwab@suse.de>
* cfgrtl.c (rtl_verify_flow_info_1): Don't apply BLOCK_FOR_INSN on
a BARRIER insn.

From-SVN: r142721
2008-12-12 21:16:09 +00:00
Janis Johnson
04f182b1b0 * gcc.dg/pr35442.c: Ignore a possible warning.
From-SVN: r142720
2008-12-12 20:39:06 +00:00