Commit Graph

95316 Commits

Author SHA1 Message Date
Dave Korn 197c68cc97 Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
libgomp/ChangeLog:

	* Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
	* Makefile.in: Regenerate.

ChangeLog:

	* ltmain.sh (func_normal_abspath): New function.
	(func_relative_path): Likewise.
	(func_mode_help): Document new -bindir option for link mode.
	(func_mode_link): Add new -bindir option, and use it to place
	output DLL if specified.

libgfortran/ChangeLog:

	* Makefile.am (LTLDFLAGS): Add -bindir flag.
	* Makefile.in: Regenerate.

libssp/ChangeLog:

	* Makefile.am (libssp_la_LDFLAGS): Add -bindir flag.
	* Makefile.in: Regenerate.

libjava/libltdl/ChangeLog:

	* Makefile.am (libltdl_la_LDFLAGS): Add -bindir flag.
	* Makefile.in: Regenerate.

libjava/classpath/ChangeLog:

	* ltmain.sh (func_normal_abspath): New function.
	(func_relative_path): Likewise.
	(func_mode_help): Document new -bindir option for link mode.
	(func_mode_link): Add new -bindir option, and use it to place
	output DLL if specified.

From-SVN: r150960
2009-08-20 11:11:34 +00:00
Uros Bizjak 7e9f2c0f33 alpha.c (alpha_end_function): Do not clear crtl->emit structure and free insn locators if...
* config/alpha/alpha.c (alpha_end_function): Do not clear
	crtl->emit structure and free insn locators if cfun->is_thunk is true,
	this is now handled in generic code.

From-SVN: r150959
2009-08-20 12:40:44 +02:00
Edward Smith-Rowland a15afcc6f2 gamma.tcc: Change include guard from _TR1_GAMMA_TCC to _GLIBCXX_TR1_GAMMA_TCC to match the...
2009-08-20  Edward Smith-Rowland  <3dw4rd@verizon.net>

	* include/tr1/gamma.tcc: Change include guard from _TR1_GAMMA_TCC
	to _GLIBCXX_TR1_GAMMA_TCC to match the rest of the headers in tr1.
	* include/tr1/exp_integral.tcc: Replace _TR1_GAMMA_TCC with
	__numeric_constants<_Tp>::__gamma_e().

From-SVN: r150958
2009-08-20 09:45:03 +00:00
Janus Weil e4c1aa1996 re PR fortran/41121 (compile-time error when building BLAS with -fimplicit-none)
2009-08-20  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41121
	* resolve.c (resolve_symbol): Don't resolve formal_ns of intrinsic
	procedures.

2009-08-20  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41121
	* gfortran.dg/intrinsic_5.f90: New.

From-SVN: r150957
2009-08-20 11:33:01 +02:00
Andreas Krebbel b0f86a7e6b s390.c (Z10_PREDICT_DISTANCE): New macro.
2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
	(s390_z10_fix_long_loop_prediction): New function.
	(s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
	(s390_reorg): Walk over the INSNs and invoke
	s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.

From-SVN: r150955
2009-08-20 09:21:13 +00:00
Andreas Krebbel f114923514 s390.md ("*brx_stage1_<GPR:mode>", [...]): New patterns.
2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
	"*brx_64bit", "*brx_31bit"): New patterns.
	* config/s390/s390.c ('E'): New output modifier.

From-SVN: r150954
2009-08-20 09:19:53 +00:00
Ramana Radhakrishnan a552b644fb Fix twolf ICE for ARM
2009-08-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
            Richard Earnshaw  <richard.earnshaw@arm.com>

        * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
        * config/arm/arm.md (*arm_movtas_ze): New pattern for
        movt.

2009-08-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
            Richard Earnshaw  <richard.earnshaw@arm.com>

        * testsuite/gcc.target/arm/20090811-1.c: New test.

Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>

From-SVN: r150953
2009-08-20 08:09:29 +00:00
John David Anglin 2fd74bffec pa.md (reload_inhi, [...]): New patterns.
* pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
	patterns.
	* pa.c (emit_move_sequence): Check if address of operand1 is valid
	for mode mode of operand0 when doing secondary reload for SAR.

From-SVN: r150951
2009-08-20 01:36:11 +00:00
GCC Administrator d394401349 Daily bump.
From-SVN: r150950
2009-08-20 00:16:42 +00:00
Jakub Jelinek b8e444f438 re PR middle-end/41123 (ICE in expand_expr_real_1)
PR middle-end/41123
	* expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
	of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.

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

From-SVN: r150946
2009-08-20 00:51:20 +02:00
Ralf Wildenhues 0115d4a36f Disable option checking in the toplevel, avoid 2.64 fopen glitch.
/:
	* configure.ac: Call AC_DISABLE_OPTION_CHECKING.
	(baseargs): Add --disable-option-checking.
	* configure: Regenerate.

config/:
	* override.m4 (AC_DISABLE_OPTION_CHECKING): Define to be
	empty if not defined, to avoid error with 2.59.
	(_AC_LANG_IO_PROGRAM): When the Autoconf version is exactly
	2.64, avoid per-language instances to drop fopen from test
	program.

From-SVN: r150945
2009-08-19 22:19:37 +00:00
Ralf Wildenhues 58af276a30 Fix toplevel target defs.
/:
	* Makefile.def (configure-target-libiberty): Depend on
	all-binutils and all-ld.
	(configure-target-newlib): Likewise.
	* Makefile.in: Regenerate.

From-SVN: r150944
2009-08-19 21:57:58 +00:00
Jason Merrill 6c8794823d invoke.texi (C++ Dialect Options): Note change of minimum supported template depth in C++0x.
* doc/invoke.texi (C++ Dialect Options): Note change of minimum
	supported template depth in C++0x.

From-SVN: r150941
2009-08-19 14:53:57 -04:00
Jason Merrill 62906aaa5c tweak comment
From-SVN: r150940
2009-08-19 14:24:13 -04:00
Jason Merrill 595de3023d re PR c++/41119 (Revision 150805 failed 447.dealII in SPEC CPU 2006)
PR c++/41119
	PR c++/41120
	* decl2.c (mark_used): Increment function_depth during synthesis.
	* parser.c (cp_parser_default_argument): Not here.

From-SVN: r150939
2009-08-19 13:14:33 -04:00
Jakub Jelinek dc0c6451cd method.c (use_thunk): Call free_after_compilation after assemble_end_function.
* method.c (use_thunk): Call free_after_compilation after
	assemble_end_function.

	* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
	free_after_compilation.
	* config/score/score7.c (score7_output_mi_thunk): Likewise.
	* config/score/score3.c (score3_output_mi_thunk): Likewise.
	* config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
	* config/mips/mips.c (mips_output_mi_thunk): Likewise.
	* config/sh/sh.c (sh_output_mi_thunk): Likewise.
	* config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
	* config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.

From-SVN: r150938
2009-08-19 17:27:48 +02:00
Ian Lance Taylor 9302a06142 md.texi (Insn Canonicalizations): Correct canonicalization of (plus (mult (neg B) C) A).
* doc/md.texi (Insn Canonicalizations): Correct canonicalization
	of (plus (mult (neg B) C) A).

From-SVN: r150937
2009-08-19 15:21:16 +00:00
Michael Matz 9600efe1a6 omp-low.c (optimize_omp_library_calls): Use types_compatible_p instead of comparing TYPE_MAIN_VARIANT for equality.
* omp-low.c (optimize_omp_library_calls): Use types_compatible_p
        instead of comparing TYPE_MAIN_VARIANT for equality.
        * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
        vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
        * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
        * gimplify.c (goa_lhs_expr_p): Ditto and use
        STRIP_USELESS_TYPE_CONVERSION.

From-SVN: r150936
2009-08-19 14:29:52 +00:00
Michael Matz 10174ddf5d tree-ssa-structalias.c (create_variable_info_for): Also mark first field in a struct.
* tree-ssa-structalias.c (create_variable_info_for): Also mark
        first field in a struct.
        (intra_create_variable_infos): Don't deal with flag_argument_noalias.

fortran/
        * trans-expr.c (gfc_conv_substring): Don't evaluate casted decl early,
        change order of length calculation to (end - start) + 1.
        (gfc_get_interface_mapping_array): Adjust call to
        gfc_get_nodesc_array_type.
        * trans-array.c (gfc_trans_create_temp_array,
        gfc_build_constant_array_constructor, gfc_conv_expr_descriptor): Ditto.
        * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
        * trans.c (gfc_add_modify): Assignment between base type and nontarget
        type are equal enough.
        (gfc_call_malloc): Use prvoid_type_node for return value of
        __builtin_malloc.
        (gfc_allocate_with_status): Ditto.
        * trans-types.c (gfc_array_descriptor_base): Double size of this array.
        (gfc_init_types): Build prvoid_type_node.
        (gfc_build_array_type): New bool parameter "restricted".
        (gfc_get_nodesc_array_type): Ditto, build restrict qualified pointers,
        if it's true.
        (gfc_get_array_descriptor_base): Ditto.
        (gfc_get_array_type_bounds): Ditto.
        (gfc_sym_type): Use symbol attributes to feed calls to above functions.
        (gfc_get_derived_type): Ditto.
        * trans.h (struct lang_type): Add nontarget_type member.
        * trans-types.h (prvoid_type_node): Declare.
        (gfc_get_array_type_bounds, gfc_get_nodesc_array_type): Declare new
        parameter.
        * trans-decl.c (gfc_finish_var_decl): Give scalars that can't be
        aliased a type with a different alias set than the base type.
        (gfc_build_dummy_array_decl): Adjust call to gfc_get_nodesc_array_type.

testsuite/
        * gfortran.dg/vect/vect-gems.f90: New test.
        * gcc.dg/tree-ssa/alias-1.c: Remove, it checks something broken.

From-SVN: r150934
2009-08-19 10:17:33 +00:00
Tobias Burnus 693d54f279 re PR fortran/41102 (Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h)
2009-08-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41102
        omp_lib.h.in: Fix -std=f95 errors.

From-SVN: r150931
2009-08-19 08:38:29 +02:00
DJ Delorie 40986754d7 wrapper.exp: Move load of target-libpath.exp from here...
* lib/wrapper.exp: Move load of target-libpath.exp from here...
* lib/gcc-defs.exp: ... to here.

From-SVN: r150929
2009-08-18 21:40:24 -04:00
GCC Administrator 75f1f22501 Daily bump.
From-SVN: r150925
2009-08-19 00:17:03 +00:00
Alexandre Oliva 5830150a57 * compare-debug: Drop .eh_frame relocations too.
From-SVN: r150901
2009-08-18 19:44:04 +00:00
H.J. Lu c2d88223c8 re PR testsuite/40704 (^M? in testsuite log leads to binary attachment)
2009-08-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/40704
	* test_summary: Filter out "\r".

From-SVN: r150898
2009-08-18 12:40:48 -07:00
DJ Delorie 488b329c8f wrapper.exp (${tool}_maybe_build_wrapper): Set up GCC_EXEC_PREFIX before building the wrapper.
* lib/wrapper.exp (${tool}_maybe_build_wrapper): Set up
GCC_EXEC_PREFIX before building the wrapper.

From-SVN: r150889
2009-08-18 14:36:58 -04:00
Uros Bizjak e72cee90d5 alpha.c (alpha_output_mi_thunk_osf): Allocate insn locators before emit_insn is called.
* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
	locators before emit_insn is called.  Remove assert that
	cfun->is_thunk.
	(alpha_end_function): Clear crtl->emit structure and free insn
	locators if cfun->is_thunk is true.

From-SVN: r150883
2009-08-18 19:50:44 +02:00
Jason Merrill e31bcd1b96 elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object type if available.
* config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
	type if available.
	* configure.ac: Test for it.
	* configure, config.in: Regenerate.
	* doc/install.texi: Document --enable-gnu-unique-object.

From-SVN: r150882
2009-08-18 13:01:36 -04:00
Nathan Froyd 8fd962e39c vect.exp: Add new stanza for aligned-section-anchors-* tests.
* gcc.dg/vect/vect.exp: Add new stanza for aligned-section-anchors-*
	tests.
	* gcc.dg/vect/section-anchors-nest-1.c: Rename to...
	* gcc.dg/vect/aligned-section-anchors-nest-1.c: ...this.  Remove
	dg-options.  Fix dg-final clause.

From-SVN: r150880
2009-08-18 16:58:35 +00:00
Uros Bizjak f0962d64ac cdce3.C: Add -mieee for alpha*-*-* targets.
* g++.dg/cdce3.C: Add -mieee for alpha*-*-* targets.

From-SVN: r150877
2009-08-18 17:57:25 +02:00
Janus Weil 37513ce90a re PR fortran/40870 ([F03] include formal args in backend_decl of PPCs)
2009-08-18  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40870
	* trans-types.c (gfc_get_ppc_type): Include formal args in backend_decl
	using the interface symbol. Character types are returned by reference.
	(gfc_get_derived_type): Prevent infinite recursion loop
	if a PPC has a derived-type formal arg.

2009-08-18  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40870
	* gfortran.dg/proc_ptr_comp_13.f90: Extended.


Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>

From-SVN: r150875
2009-08-18 16:23:35 +02:00
Richard Guenther 776e717416 re PR middle-end/41094 (Erroneous optimization of pow() with -ffast-math)
2009-08-18  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41094
	* builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
	pow(x,y*z) only if x is nonnegative.

	* gcc.dg/torture/pr41094.c: New testcase.
	* gcc.dg/torture/builtin-power-1.c: Adjust.
	* gcc.dg/builtins-10.c: Likewise.

From-SVN: r150874
2009-08-18 13:40:18 +00:00
Jakub Jelinek f3252b3c18 re PR target/40971 (ICE in memory_address)
PR target/40971
	* config/rs6000/rs6000.c (rs6000_legitimize_address): For
	[DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.

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

From-SVN: r150869
2009-08-18 13:42:07 +02:00
Jakub Jelinek 68a315304b bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump on jumps.
* bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
	on jumps.

From-SVN: r150868
2009-08-18 13:16:46 +02:00
GCC Administrator fb3e79b2b3 Daily bump.
From-SVN: r150866
2009-08-18 00:16:57 +00:00
DJ Delorie 65655f7921 m32c.md (UNS_FSETB, UNS_FREIT): New.
* config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
* config/m32c/prologue.md (epilogue_freit): New.
(fset_b): New.
* config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
(bank_switch_p): Likewise.
(fast_interrupt_p): Likewise.
(interrupt_p): Likewise.
(m32c_conditional_register_usage): Round memregs size up.
(need_to_save): We only need to save $a0 when we use ENTER.
(interrupt_p): Check for fast_interrupt too.
(bank_switch_p): New.
(fast_interrupt_p): New.
(m32c_attribute_table): Add bank_switch and fast_interrupt.
(m32c_emit_prolog): Support bank switching and fast interrupts.
* doc/extend.texi (Function Attributes): Add bank_switch and
fast_interrupt.

From-SVN: r150862
2009-08-17 18:25:06 -04:00
Ralf Wildenhues df15255add Install gcj.pdf in $(pdfdir)/gcc alongside other manuals.
gcc/java/
	* Make-lang.in (java.install-pdf): Install gcj.pdf in
	$(pdfdir)/gcc, alongside the other manuals.

From-SVN: r150859
2009-08-17 20:22:41 +00:00
Paul Thomas 1151ccc922 re PR fortran/41062 (ICE in gfc_trans_use_stmts, at fortran/trans-decl.c:3438)
2008-08-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/41062
	* trans-decl.c (gfc_trans_use_stmts):  Keep going through use
	list if symbol is not use associated.

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

	PR fortran/41062
	* gfortran.dg/use_only_4.f90: New test.

From-SVN: r150858
2009-08-17 20:17:12 +00:00
Benjamin Kosnik e83fd9d7f5 typedefs.cc: New.
2009-08-17  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/30_threads/packaged_task/requirements/typedefs.cc: New.

From-SVN: r150857
2009-08-17 19:21:38 +00:00
Daniel Kraft b325faf9d9 re PR fortran/37425 (Fortran 2003: GENERIC bindings as operators)
2009-08-17  Daniel Kraft  <d@domob.eu>

	PR fortran/37425
	* resolve.c (get_checked_tb_operator_target): New routine to do checks
	on type-bound operators in common between intrinsic and user operators.
	(resolve_typebound_intrinsic_op): Call it.
	(resolve_typebound_user_op): Ditto.

2009-08-17  Daniel Kraft  <d@domob.eu>

	PR fortran/37425
	* gfortran.dg/typebound_operator_2.f03: Test for error with illegal
	NOPASS bindings as operators.

From-SVN: r150856
2009-08-17 20:55:30 +02:00
Tom Tromey 709a22df79 re PR preprocessor/41067 (Inconsistency in warnings on invalid \-escapes)
PR preprocessor/41067:
	* charset.c (convert_escape): Add missing ":" to error text.

From-SVN: r150854
2009-08-17 17:34:53 +00:00
Andrew Haley de383aecd4 Makefile.am (libgcj_bc_la_LIBADD): Delete.
2009-08-17  Andrew Haley  <aph@redhat.com>

        * Makefile.am (libgcj_bc_la_LIBADD): Delete.
        * libgcj.spec.in: (LIBGCJ_BC_SPEC): New spec.
        * configure.ac (LIBGCJ_BC_SPEC): New spec.

From-SVN: r150853
2009-08-17 17:30:10 +00:00
Uros Bizjak f32c6a2b10 * lib/target-supports.exp
(check_effective_target_vect_cmdline_needed):: Add alpha to the list
	of targets that do not need command line argument to enable SIMD.

From-SVN: r150852
2009-08-17 19:01:53 +02:00
Kaveh R. Ghazi 2679ab00c6 target-supports.exp (check_effective_target_mpc_pow): Fix typo in cache name.
* lib/target-supports.exp (check_effective_target_mpc_pow): Fix
	typo in cache name.

From-SVN: r150851
2009-08-17 16:44:00 +00:00
Douglas B Rupp dfe6ba6df9 alpha.c (vms_valid_pointer_mode): New function.
* config/alpha/alpha.c (vms_valid_pointer_mode): New function.
	* config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.

From-SVN: r150849
2009-08-17 16:22:48 +00:00
David Edelsohn be274b21f7 inclhack.def (aix_complex): Redefine _Complex_I.
* inclhack.def (aix_complex): Redefine _Complex_I.  Do not
        redefine I.
        * (aix_stdint_[12345]): New fixes.
        * fixincl.x: Regenerate.
        * tests/base/complex.h: Update check.
        * tests/base/stdint.h: Add AIX stdint.h checks.

From-SVN: r150846
2009-08-17 11:22:04 -04:00
Jerry DeLisle 2d8980b01e re PR fortran/41075 ([F2008] Implement unlimited format item)
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* gfortran.dg/unlimited_fmt_1.f90: New test.

From-SVN: r150845
2009-08-17 14:40:40 +00:00
Jerry DeLisle e2cec2c358 re PR fortran/41075 ([F2008] Implement unlimited format item)
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* io/io.h (enum format_token): Add FMT_STAR.
	* io/format.c (format_lex): Add case for FMT_STAR.
	(parse_format_list): Parse FMT_STAR and check for left paren
	after. (next_format0): Modify helper function to check for
	unimited format and return the repeated format node.  Update
	comments to clarify.

From-SVN: r150844
2009-08-17 14:27:29 +00:00
Jerry DeLisle b823d9ebdf re PR fortran/41075 ([F2008] Implement unlimited format item)
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* scanner.c (gfc_next_char_literal): Add comment to improve 
	readability.
	* io.c (enum format_token): Add FMT_STAR. (format_lex): Add case
	for '*'. (check_format): Check for left paren after '*'.  Change
	format checks to use %L to improve format string error locus.

From-SVN: r150843
2009-08-17 14:25:38 +00:00
Aurelien Jarno dee285096f s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
* s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
	(stack_t): New record type.
	(sigaltstack): New imported function.
	(Alternate_Stack): New imported variable.
	(Alternate_Stack_Size): New constant.

From-SVN: r150840
2009-08-17 12:08:20 +00:00
Richard Guenther 22521c89b6 decl.c (build_ptrmemfunc_type): Keep variant chain intact.
2009-08-16  Richard Guenther  <rguenther@suse.de>

	* decl.c (build_ptrmemfunc_type): Keep variant chain intact.
	Avoid useless copy.
	(finish_enum): Keep variant chain intact.
	* tree.c (cp_build_reference_type): Likewise.

From-SVN: r150839
2009-08-17 11:03:59 +00:00