Commit Graph

30191 Commits

Author SHA1 Message Date
Paolo Bonzini ec6c739264 Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS too.
2006-06-15  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS
	too.
	* Makefile.in: Regenerate.

gcc:
2006-06-15  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (CFLAGS): Get them from the toplevel or from the
	configure invocation.
	* configure: Regenerate.
	* Makefile.in (CFLAGS): Substitute value provided by configure.

From-SVN: r114673
2006-06-15 06:26:59 +00:00
Mark Mitchell fe89d79748 re PR c++/26559 (ICE with __builtin_constant_p in template argument)
2006-06-14  Mark Mitchell  <mark@codesourcery.com>

	PR c++/26559
	* c-common.h (c_finish_omp_atomic): Adjust declaration.
	* c-omp.c (c_finish_omp_atomic): Return the expression to perform,
	rather than calling add_stmt on it.
	* c-parser.c (c_parser_omp_atomic): Adjust accordingly.

2006-06-14  Mark Mitchell  <mark@codesourcery.com>

	PR c++/26559
	* pt.c (tsubst_expr): Use finish_omp_atomic.
	(value_dependent_expression_p): All CALL_EXPRs are dependent.
	* semantics.c (finish_omp_atomic): Rework to use standard
	paradigms for handling non-dependent expressions.

2006-06-14  Mark Mitchell  <mark@codesourcery.com>

	PR c++/26559
	* g++.dg/template/builtin1.C: New test.
	* g++.dg/gomp/tpl-atomic-2.C: Remove XFAIL.

From-SVN: r114665
2006-06-15 03:26:38 +00:00
Andreas Krebbel 184f4c5647 re PR middle-end/27959 (s390x miscompilation due to clobbering literal pool base reg)
2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR middle-end/27959
	* reload1.c (reload): Remove registers returned by update_eliminables
	from used_spill_regs.

2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR middle-end/27959
	* gcc.dg/pr27959.c: New testcase.

From-SVN: r114640
2006-06-14 14:19:54 +00:00
Ian Lance Taylor d02f34e7df Correct typo: initialize_constant_valid_p =>
initializer_constant_valid_p.

From-SVN: r114635
2006-06-14 04:54:41 +00:00
DJ Delorie e3d437c056 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
From-SVN: r114632
2006-06-13 23:16:43 -04:00
Carlos O'Donell 9288b84507 Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL, html__strip_dir, html__mkdir_p.
gcc/

2006-06-13  Carlos O'Donell  <carlos@codesourcery.com>

	* Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
	html__strip_dir, html__mkdir_p. Enhance install-html target.
	* configure.ac: AC_SUBST datarootdir, docdir and htmldir. 
	* configure: Regenerate.

From-SVN: r114620
2006-06-13 19:13:47 +00:00
Fariborz Jahanian 6b4e957600 Check for Objective-C++ in deciding certain COND_EXPR folding.
Check for Objective-C++ in deciding certain COND_EXPR
folding.
OKed by Geoff Keating.

From-SVN: r114619
2006-06-13 19:02:49 +00:00
J"orn Rennecke 31b6f0aee8 re PR target/28014 (space-optimized divide used inconsistently)
PR target/28014:

        gcc:
        * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
        * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
        * config/sh/lib1funcs.h (SL, SL1): Define.
        * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
        * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
        * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
        (OBJS_Os_4_200): New variable.
        ($(T)libgcc-Os-4-200.a): Use it.
        * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
        when dividing 1 and/or by 0.

        gcc/testsuite:
        * g++.dg/eh/div.C: New test.

From-SVN: r114616
2006-06-13 18:44:56 +01:00
Roger Sayle de4fb767a9 configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h> before <ucontext.h> to define sigset_t required by...
* configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
	before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
	* configure: Regenerate.

From-SVN: r114614
2006-06-13 16:36:40 +00:00
Jie Zhang f0f1c408bc bfin.c (bfin_reorg_loops): Only call recog_memoized () for real instruction.
* config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
	for real instruction.

From-SVN: r114608
2006-06-13 09:39:05 +00:00
Maxim Kuvyrkov cd8d4e24e0 re PR middle-end/26807 (FAIL: gcc.dg/torture/pr24626-1.c -O2 (test for excess errors))
2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	PR middle-end/26807
	* haifa-sched.c (check_cfg): Handle special case.

From-SVN: r114606
2006-06-13 09:00:52 +00:00
Eric Botcazou 5123ad0975 re PR debug/26754 (Wrong debug info for variable accessed non-locally)
PR debug/26754
	* gimplify.c (declare_tmp_vars): Rename into declare_vars.
	Add debug_info parameter.  Chain the vars to the BLOCK instead
	of the BIND_EXPR if debug info are requested for them.
	(pop_gimplify_context): Adjust for above change.
	(gimple_add_tmp_var): Likewise.
	* tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
	Add bool parameter.
	* tree-nested.c (convert_nonlocal_reference): Adjust for above change.
	(convert_local_reference): Likewise.
	(get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
	(finalize_nesting_tree_1): Request that debug info be emitted
	for debug_var_chain.

From-SVN: r114605
2006-06-13 08:55:40 +00:00
Maxim Kuvyrkov 6f2ba390ae re PR target/27863 (ICE in check_cfg, at haifa-sched.c:4615)
2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	* haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
	for PR target/27863.

2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	* gcc.c-torture/compile/20060609-1.c: New test.
	
	PR target/27863
	* gcc.c-torture/compile/pr27863.c: New test.

From-SVN: r114604
2006-06-13 08:50:53 +00:00
Richard Guenther cda5bf3902 re PR middle-end/27536 (-fsection-anchors breaks Ada)
2006-06-13  Richard Guenther  <rguenther@suse.de>

	PR middle-end/27536
	* except.c (output_ttype): Expand type with EXPAND_INITIALIZER.

From-SVN: r114601
2006-06-13 07:23:59 +00:00
Richard Guenther 8e85fd14bf re PR tree-optimization/27830 (ICE: verify_stmts failed (invalid operand to unary operator))
2006-06-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27830
	* tree-inline.c (copy_body_r): For copying the operand
	of an ADDR_EXPR make sure to fold &* afterwards.

	* g++.dg/tree-ssa/pr27830.C: New testcase.

From-SVN: r114600
2006-06-13 07:22:04 +00:00
Eric Botcazou 02a5eac483 gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other lvalues in the fb_none case with side-effects.
* gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
	lvalues in the fb_none case with side-effects.

From-SVN: r114576
2006-06-12 19:57:44 +00:00
Kazu Hirata c90b053bea tree-flow.h: Remove the prototype for compute_phi_arg_on_exit.
* tree-flow.h: Remove the prototype for
	compute_phi_arg_on_exit.
	* tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
	protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
	Remove.

From-SVN: r114569
2006-06-12 13:52:51 +00:00
Mark Shinwell dda69cbfb7 builtins.c (expand_builtin_return_addr): Only use frame_pointer_rtx when count == 0 and we are expanding...
gcc/
	* builtins.c (expand_builtin_return_addr): Only use
	frame_pointer_rtx when count == 0 and we are expanding
	__builtin_return_address.

From-SVN: r114567
2006-06-12 12:56:52 +00:00
Fred Fish 0901c5a3d9 mips.c (mips_file_start): Create special section ".gcc_compiled_longXX" for o64 ABI as well as EABI.
2006-06-12  Fred Fish  <fnf@specifix.com>

	* config/mips/mips.c (mips_file_start): Create special section
	".gcc_compiled_longXX" for o64 ABI as well as EABI.

From-SVN: r114566
2006-06-12 11:03:57 +00:00
Eric Christopher f7eb0dcd45 re PR middle-end/27948 (MS -bitfield struct layout test fails)
2006-06-11  Eric Christopher  <echristo@apple.com>

        PR middle-end/27948
        * stor-layout.c (place_field): Remove check for
        remaining_in_alignment when aligning at the end of a run.

2006-06-11  Eric Christopher  <echristo@apple.com>

	PR middle-end/27948
        * gcc.dg/bf-ms-layout.c: Run on darwin.
        * gcc.dg/bf-no-ms-layout: Ditto.
        * gcc.dg/attr-ms_struct-2.c: New.
        * gcc.dg/bf-ms-layout-2.c: Ditto.

From-SVN: r114562
2006-06-12 06:53:33 +00:00
Eric Christopher 6bb7beac5f re PR target/27542 (the ms_struct pragma is not documented)
2006-06-11  Eric Christopher  <echristo@apple.com>

        PR 27542
        * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
        pragma.

From-SVN: r114561
2006-06-12 06:44:23 +00:00
Roger Sayle 4119019bd7 re PR target/27858 (ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha)
PR target/27858
	Revert incorrect fix for PR target/27158
	2006-05-08  Roger Sayle  <roger@eyesopen.com>
	* reload.c (find_reloads_toplev): Only return the simplified SUBREG
	of a reg_equiv_constant if the result is a legitimate constant.

From-SVN: r114559
2006-06-12 02:10:24 +00:00
Roger Sayle 0972012c8a re PR target/27158 (ICE in extract_insn with -maltivec)
PR target/27158
	* config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
	extract a CONST_VECTOR element and interpret it as an integer.
	(vspltis_constant): Use const_vector_elt_as_int instead of the
	macro CONST_VECTOR_ELT in order to handle FP vector modes.
	* config/rs6000/predicates.md (easy_vector_const): Consider
	floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.

From-SVN: r114558
2006-06-12 02:02:14 +00:00
Kaz Kojima cb3123765e re PR middle-end/27942 (packed union doesn't make the unaligned magic on sh64-*)
PR middle-end/27942
	* stor-layout.c (update_alignment_for_field): Don't add extra
	alignment for packed non-bitfield fields in ms_bitfield_layout_p
	code.

	* gcc.dg/attr-ms_struct-packed1.c: New.

From-SVN: r114552
2006-06-11 23:09:58 +00:00
Ralf Corsepius 53e9592145 t-rtems: Add EL/EB multilib variants.
2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>

	* config/mips/t-rtems: Add EL/EB multilib variants.

From-SVN: r114537
2006-06-10 04:25:41 +02:00
Mike Stump 71d0c1008f c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
* c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
testsuite:
	* gcc.dg/vla-7.c: Add.

From-SVN: r114530
2006-06-10 00:14:03 +00:00
David Daney 549fb079d3 * doc/install.texi: Add binutils version recommendation for mips-*-*.
From-SVN: r114512
2006-06-09 16:44:25 +00:00
Andreas Krebbel 6c65d7577c reload.c (find_reloads): Unset force_reload for 'X' constraint.
2006-06-09  Andreas Krebbel  <krebbel1@de.ibm.com>

	* reload.c (find_reloads): Unset force_reload for 'X' constraint.

From-SVN: r114508
2006-06-09 14:23:57 +00:00
Richard Guenther 96b2034b6f re PR bootstrap/26998 (bootstrap failure building libdecnumber, ICE in compare_values, tree-vrp.c:432)
2006-06-09  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/26998
	* tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
	of signed types, only TYPE_MIN_VALUE is special, but for both,
	minimum and maximum value.  Likewise VR_ANTI_RANGE is special
	in this case, as is -fwrapv.

	* gcc.dg/torture/pr26998.c: New testcase.
	* gcc.dg/tree-ssa/vrp29.c: New testcase.

From-SVN: r114507
2006-06-09 12:39:11 +00:00
Mike Stump 23f99493bc re PR target/26427 (with -fsection-anchors with zero sized structs)
PR target/26427
	* config/darwin.c (darwin_asm_output_anchor): Disable
	-fsection-anchors on darwin for now.
	* config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
	* rs6000/rs6000.c (optimization_options): Likewise.

testsuite:
	* gcc.dg/pr26427.c: Test to ensure that -fsection-anchors doesn't
	produce bad code on darwin.

From-SVN: r114498
2006-06-08 22:23:17 +00:00
Volker Reichelt 118ed72a74 re PR target/27421 (ICE with invalid array in struct)
PR target/27421
	* config/i386/i386.c (classify_argument): Skip fields with invalid
	types in unions.

	* gcc.dg/union-3.c: New test.

From-SVN: r114494
2006-06-08 20:50:24 +00:00
Steven Bosscher 524e3576e6 cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
* cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
        (cse_insn): Likewise for the stack_pointer_rtx.

From-SVN: r114492
2006-06-08 19:22:07 +00:00
Roger Sayle 14b41b5f66 tree-ssa-dom.c (record_conditions): Only record "unordered" conditions from floating point comparisons.
* tree-ssa-dom.c (record_conditions): Only record "unordered"
	conditions from floating point comparisons.

From-SVN: r114489
2006-06-08 16:48:30 +00:00
Paolo Bonzini 33b881ca3a re PR middle-end/27733 (Large compile time regression)
2006-06-08  Paolo Bonzini  <bonzini@gnu.org>

	PR middle-end/27733
	* expmed.c (struct alg_hash_entry): Fix type of field T
	to match synth_mult argument.
	(NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.

From-SVN: r114488
2006-06-08 15:40:48 +00:00
Maxim Kuvyrkov f70b22c942 re PR target/27863 (ICE in check_cfg, at haifa-sched.c:4615)
2006-06-08  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	PR target/27863
	* haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
	block boundaries.

From-SVN: r114484
2006-06-08 08:51:13 +00:00
Richard Guenther 960f80d1ee re PR middle-end/27116 (Incorrect integer division (wrong sign).)
2006-06-08  Richard Guenther  <rguenther@suse.de>

	PR middle-end/27116
	* fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
	only, if overflow is defined and not trapping.
	(negate_expr): Likewise.

	* gcc.dg/torture/pr27116.c: New testcase.
	* gcc.dg/pr15785-1.c: Remove test for invalid transformation.

From-SVN: r114483
2006-06-08 08:49:19 +00:00
Zdenek Dvorak 8e08deebfc re PR rtl-optimization/27872 (Internal compiler error in verify_loop_structure)
PR tree-optimization/27872
	* tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
	flag on the new exit edge of the unrolled loop.

From-SVN: r114482
2006-06-08 08:19:50 +00:00
Zdenek Dvorak 136778e9b4 re PR rtl-optimization/26449 (ICE in loop invariant motion)
PR rtl-optimization/26449
	* loop-invariant.c (move_invariant_reg): Fail if force_operand fails.

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

From-SVN: r114481
2006-06-08 08:17:05 +00:00
Andrew MacLeod 4b5e2dbc97 re PR middle-end/27793 (num_ssa_names inconsistent or immediate use iterator wrong)
2006-06-07  Andrew MacLeod  <amacleod@redhat.com>

	PR middle-end/27793
	* tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate 
	referenced_variables with matching DECL_UID's.
	(find_referenced_vars): Make sure duplicate list is empty to start.
	(referenced_var_p): Remove.
	(referenced_var_check_and_insert): Renamed from referenced_var_insert.  
	Check if var is in the list, and add if needed.  Update the duplicate
	list if a different var is in the list with the same DECL_UID.
	(add_referenced_var): Call routine to check and insert.
	* tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
	* tree-flow.h (referenced_vars_dup_list): External declaration.

From-SVN: r114480
2006-06-08 01:18:16 +00:00
Fred Fish dd286892c4 t-elf (MULTILIB_MATCHES): Combine two entries into single entry.
* config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
	into single entry.

From-SVN: r114472
2006-06-07 17:46:23 +00:00
Paolo Bonzini 190e953465 re PR target/27390 (gcc.target/x86_64/abi/test_complex_returning.c execution fails at -O0)
2006-06-07  Paolo Bonzini  <bonzini@gnu.org>

	PR target/27390
	* reg-stack.c (subst_stack_regs_pat): Reorder resetting of
	the imaginary and real parts of a clobbered register.
	Emit insn to set the imaginary part.

From-SVN: r114462
2006-06-07 12:07:24 +00:00
Peter Lemieszewski 7c78582a31 t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c in lieu of unwind-dw2-fde.c.
2006-06-06  Peter Lemieszewski  <lemie@us.ibm.com>

	* config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
	in lieu of unwind-dw2-fde.c.

From-SVN: r114443
2006-06-06 18:11:44 +00:00
Francois-Xavier Coudert 33815e0c91 time.c: New file.
* config/mingw32/time.c: New file.
	* configure.tgt: Use it.

	* config/i386/mingw32.h (GOMP_SELF_SPECS): Define.

From-SVN: r114442
2006-06-06 17:54:02 +00:00
Ulrich Weigand 8cf0db2bcd re PR target/27842 (Miscompile of Altivec vec_abs (float) inside loop)
PR target/27842
	* config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
	("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
	("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
	V4SImode temporaries and operations instead.

	PR target/27842
	* gcc.dg/vmx/pr27842.c: New test.

From-SVN: r114438
2006-06-06 17:01:27 +00:00
Joseph Myers 406af897d0 t-linux64 (tp-bit.c): Append to tp-bit.c, not dp-bit.c.
* config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
	dp-bit.c.

From-SVN: r114433
2006-06-06 13:51:24 +01:00
Mike Stump 22482f746b Makefile.in: Rename to htmldir to build_htmldir to avoid installing during build.
* Makefile.in: Rename to htmldir to build_htmldir to avoid
	installing during build.

java,fortran:
	* Make-lang.in: Rename to htmldir to build_htmldir to avoid
	installing during build.

treelang:
	* Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid
	installing during build.

From-SVN: r114426
2006-06-06 10:15:12 +00:00
Maxim Kuvyrkov bb83aa4bef params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default value to 0.
2006-06-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	* params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
	value to 0.
	* doc/invoke.texi (max-sched-extend-regions-iters): Document.
	* config/ia64/ia64.c (params.h): New header.
	(ia64_optimization_options): New function to adjust parameters.
	* config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
	* config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
	* config/ia64/t-ia64 (ia64.o): Add dependence from params.h .

From-SVN: r114425
2006-06-06 09:44:17 +00:00
Kazu Hirata 0c397f9c8d * stor-layout.c (debug_rli): Fix a typo in a debug message.
From-SVN: r114409
2006-06-05 20:25:53 +00:00
Steve Ellcey 1f4a2e84b4 re PR target/27051 (Compiler generates .sdata when -mno-sdata specified)
PR target/27051
	* config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.

From-SVN: r114390
2006-06-05 15:13:01 +00:00
Dorit Nuzman a8b2849215 re PR tree-optimization/26360 (Autovectorization of char -> int loop gets ICE)
Changelog:
        PR tree-optimization/26360
        * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
        stmts.

testsuite/Changelog:
        PR tree-optimizations/26360
        * gcc.dg/vect/vect.exp: Compile tests prefixed with "no-tree-dce"
        with -fno-tree-dce.
        * gcc.dg/vect/no-tree-dce-pr26360.c: New test.



Co-Authored-By: Victor Kaplansky <victork@il.ibm.com>

From-SVN: r114386
2006-06-05 08:56:49 +00:00