Commit Graph

67560 Commits

Author SHA1 Message Date
Kazu Hirata
a0ce797889 re PR tree-optimization/20657 ([tcb] VRP does not get rid of a redundant "if" statement.)
gcc/
	PR tree-optimization/20657
	* tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
	create an appropriate range from it.

testsuite/
	PR tree-optimization/20657
	* gcc.dg/tree-ssa/pr20657.c: New.

From-SVN: r98134
2005-04-14 13:34:57 +00:00
Kazu Hirata
c44001c643 cp-tree.h (SET_TMPL_ARG, [...]): Remove.
* cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
	CLASSTYPE_TEMPLATE_LEVEL): Remove.

From-SVN: r98133
2005-04-14 12:22:49 +00:00
Uros Bizjak
4a92766451 reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and <UNSPEC_FIST_CEIL> case.
* reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
	<UNSPEC_FIST_CEIL> case.

	* config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
	(*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
	(fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
	to implement lfloor and llfloor built-ins as x87 intrinsic function.
	(fistdi2_floor, fist<mode>2_floor splitters): New splitters.
	(lfloor<mode>2): New expanders.
	(*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
	(fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
	to implement lceil and llceil built-ins as x87 intrinsic function.
	(fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
	(lceil<mode>2): New expanders.

From-SVN: r98132
2005-04-14 13:31:04 +02:00
Uros Bizjak
2ec76fdb24 convert.c (convert_to_integer): Convert (long int)trunc{,f,l}, and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
* convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
	and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.

testsuite:

	* gcc.dg/builtins-53.c: Also check (int)trunc* and
	(long long int)trunc*.

From-SVN: r98131
2005-04-14 13:26:45 +02:00
Ulrich Weigand
559be41a51 re PR target/20927 (ICE in smallest_mode_for_size, at stor-layout.c:221 (s390x))
ChangeLog:

	PR target/20927
	* config/s390/s390-modes.def: Define TFmode.

testsuite/ChangeLog:

	PR target/20927
	* gcc.dg/pr20927.c: New test.

From-SVN: r98128
2005-04-14 08:25:00 +00:00
François-Xavier Coudert
907d22fd44 ChangeLog: Added comment on gfc_match_if for the 2005-04-09 entry on match.c.
* ChangeLog: Added comment on gfc_match_if for the
	2005-04-09 entry on match.c.

From-SVN: r98127
2005-04-14 08:09:19 +00:00
Kaveh R. Ghazi
27c556ecda libiberty.h (fopen_unlocked, [...]): Remove parameter names.
* libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked):
	Remove parameter names.

From-SVN: r98121
2005-04-14 01:42:05 +00:00
GCC Administrator
fba36601e3 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r98118.2
2005-04-14 00:16:48 +00:00
Richard Sandiford
568e700eef mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
* config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
	(JUMP_TABLES_IN_TEXT_SECTION): Define.
	* config/mips/mips.c (mips16_insn_length): Remove reference to
	JUMP_TABLES_IN_TEXT_SECTION.

From-SVN: r98111
2005-04-13 20:46:28 +00:00
Richard Sandiford
6c013920cd pr19683-1.c: Guard with #ifndef __mips16.
* gcc.dg/torture/pr19683-1.c: Guard with #ifndef __mips16.
	* gcc.target/mips/asm-1.c: Likewise.

From-SVN: r98110
2005-04-13 20:33:11 +00:00
Fariborz Jahanian
6bd1354069 Fix result of folding of xor operation on two identical vectors.
OKed by Roger Sayle.

From-SVN: r98107
2005-04-13 19:47:30 +00:00
Dale Johannesen
fda5e9366c objc-fast-4.m: New.
2005-04-13  Dale Johannesen  <dalej@apple.com>

        * objc.dg/objc-fast-4.m:  New.

From-SVN: r98106
2005-04-13 19:32:31 +00:00
Dale Johannesen
43f479d63f Make-lang.in (objc-lang.o): Depend on tree-gimple.h.
2005-04-13  Dale Johannesen  <dalej@apple.com>

        * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
        (objc-act.o):  Ditto.
        * objc/objc-act.c (objc_gimplify_expr):  New.
        (objc_get_callee_fndecl):  New.
        * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
        * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
        (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.

From-SVN: r98105
2005-04-13 19:28:31 +00:00
Devang Patel
f3b2c50692 tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra temp variables.
* tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
       temp variables.

From-SVN: r98104
2005-04-13 12:02:31 -07:00
Hans-Peter Nilsson
d29b4b1bc6 CRIS prologue as RTL.
* config/cris/cris-protos.h (cris_emit_movem_store)
	(cris_expand_prologue): Prototype.
	* config/cris/cris.c (struct machine_function): New member
	stdarg_regs.
	(cfa_label_num, cris_target_asm_function_prologue): Remove.
	(TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
	(cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
	(cris_load_multiple_op, cris_return_address_on_stack)
	(cris_return_address_on_stack_for_return): ISO-Cify.
	(cris_store_multiple_op): New predicate function.
	(cris_expand_prologue, cris_emit_movem_store): New functions.
	(cris_print_operand) <case 'O'>: Handle modifications other than
	post-increment.
	(cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
	(cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
	(cris_gen_movem_load): Rearrange slightly to make local variable
	src a parameter, removing osrc.
	(cris_setup_incoming_varargs): Set machine_function member
	stdarg_regs to correspond to the number of registers that need to
	be saved.
	* config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
	CRIS_UNSPEC_GOT.
	(PREDICATE_CODES): Add cris_store_multiple_op.  Make
	cris_general_operand_or_gotless_symbol accept UNSPEC.
	* config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
	("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
	("*cris_store_multiple"): New pattern.  Tweak common comment above
	this and "*cris_load_multiple".
	("prologue"): New define_expand.

From-SVN: r98103
2005-04-13 18:34:23 +00:00
Hans-Peter Nilsson
a6dfafa047 cris.md ("epilogue"): Conditionalize on TARGET_PROLOGUE_EPILOGUE.
* config/cris/cris.md ("epilogue"): Conditionalize on
	TARGET_PROLOGUE_EPILOGUE.

From-SVN: r98102
2005-04-13 18:22:42 +00:00
Hans-Peter Nilsson
e190b0b574 cris-torture.exp: New driver in new directory.
* gcc.target/cris/torture/cris-torture.exp: New driver in new
	directory.
	* gcc.target/cris/torture/no-pro-epi-1.c: New test.

From-SVN: r98101
2005-04-13 18:19:41 +00:00
Mark Wielaard
f5e002ce85 natRuntime.cc (insertSystemProperties): Set java.class.path to CLASSPATH if not already set.
* java/lang/natRuntime.cc (insertSystemProperties): Set
       java.class.path to CLASSPATH if not already set.

From-SVN: r98099
2005-04-13 16:46:47 +00:00
Thomas Fitzsimmons
23a8ae8d46 prims.cc (parse_verbose_args): Fix verbose argument parsing.
2005-04-07  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* prims.cc (parse_verbose_args): Fix verbose argument parsing.

From-SVN: r98097
2005-04-13 16:37:20 +00:00
Steve Ellcey
4a36a3f164 re PR target/20924 (inline float divide does not set correct fpu status flags)
PR target/20924
	* config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
	fpsr 0 instead of fpsr 1.
	(divsf3_internal_thr): Ditto.
	(divdf3_internal_lat): Ditto.
	(divdf3_internal_thr): Ditto.
	(divxf3_internal_lat): Ditto.
	(divxf3_internal_thr): Ditto.

From-SVN: r98095
2005-04-13 15:57:37 +00:00
Kazu Hirata
41f717fb6b basic-block.h, [...]: Fix comment typos.
* basic-block.h, tree-ssa-uncprop.c, varasm.c,
	config/i386/sse.md: Fix comment typos.

From-SVN: r98094
2005-04-13 15:55:01 +00:00
David Edelsohn
e9976393ce ppc-vector-memcpy.c: XFAIL on AIX and SPE.
* gcc.dg/ppc-vector-memcpy.c: XFAIL on AIX and SPE.
        * gcc.dg/ppc-vector-memset.c: XFAIL on AIX and SPE.

From-SVN: r98093
2005-04-13 11:42:34 -04:00
David Edelsohn
542f103e0b * gcc.dg/ucnid-[23456].c: XFAIL on AIX.
From-SVN: r98092
2005-04-13 11:34:34 -04:00
Kazu Hirata
60b4ccde85 re PR tree-optimization/20913 (copy-prop does not fold conditionals)
gcc/
	PR tree-optimization/20913
	* tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.

testsuite/
	PR tree-optimization/20913
	* gcc.dg/tree-ssa/pr20913.c: New.

From-SVN: r98091
2005-04-13 15:33:17 +00:00
Kazu Hirata
9fb6cbd90e re PR tree-optimization/20913 (copy-prop does not fold conditionals)
gcc/
	PR tree-optimization/20913
	* tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.

testsuite/
	PR tree-optimization/20913
	* gcc.dg/tree-ssa/pr20913.c: New.

From-SVN: r98090
2005-04-13 15:28:55 +00:00
Julian Brown
e22a7bcf26 elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from being used for symbols with vague linkage when...
* gcc/config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
	from being used for symbols with vague linkage when
	HAVE_GAS_COMDAT_GROUP is true.
	* gcc/java/decl.c (finish_method): Give methods once-only linkage.

From-SVN: r98089
2005-04-13 15:24:03 +00:00
Kazu Hirata
2c43a1491e rtl.h (NOTE_PREDICTION_ALG, [...]): Remove.
* rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
	NOTE_PREDICT): Remove.

From-SVN: r98088
2005-04-13 15:11:25 +00:00
Kazu Hirata
978fb452a7 * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
From-SVN: r98087
2005-04-13 14:42:12 +00:00
Kazu Hirata
fddc29b17b genattrtab.c (NULL_ATTR): Remove.
* genattrtab.c (NULL_ATTR): Remove.
	* ifcvt.c (NULL_EDGE): Likewise.

From-SVN: r98086
2005-04-13 14:39:28 +00:00
Kazu Hirata
f0e4ea10f9 basic-block.h, [...]: Fix comment typos.
* basic-block.h, tree-ssa-uncprop.c, varasm.c,
	config/i386/sse.md: Fix comment typos.

From-SVN: r98085
2005-04-13 14:34:13 +00:00
Gabriel Dos Reis
fec02a2d77 Fix typos.
From-SVN: r98084
2005-04-13 13:50:30 +00:00
Gabriel Dos Reis
0e0af50b89 argv.c (dupargv): Mallocate space of argv[argc], not sizeof(char *) of that amuont.
* argv.c (dupargv): Mallocate space of argv[argc], not
	sizeof(char *) of that amuont.  Cast result to char *.

From-SVN: r98083
2005-04-13 13:49:19 +00:00
Volker Reichelt
5782c29da3 re PR c++/13744 (ICE when using implicit copy constructor for struct defined in template function)
PR c++/13744
	* g++.dg/inherit/local3.C: New test.

From-SVN: r98082
2005-04-13 12:01:03 +00:00
Eric Botcazou
367e831921 configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
* configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
	* configure: Regenerate.
	* config.in: Likewise.
	* system.h: Declare vsnprintf if not already declared.

From-SVN: r98080
2005-04-13 09:13:27 +00:00
Eric Botcazou
e8bb9922f8 Add missing entry for previous checkin.
From-SVN: r98079
2005-04-13 08:59:43 +00:00
Eric Botcazou
fe609b0fdf optc-gen.awk: Handle stand-alone Mask records.
* optc-gen.awk: Handle stand-alone Mask records.
	* opth-gen.awk: Likewise.
	* doc/options.texi (Option file format): Document them.
	* config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
	sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
	(sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
	* config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
	MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
	MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
	MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
	MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
	MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
	(TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
	TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
	TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
	TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
	TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
	TARGET_LONG_DOUBLE_128): Likewise.
	(TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
	(TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
	* config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
	* config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
	* config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
	* config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
	* config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
	* config/sparc/sparc.c (fpu_option_set): New global.
	(sparc_handle_option): New function.
	(sparc_override_options): Test fpu_option_set.
	(TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
	(TARGET_HANDLE_OPTION): Set to sparc_handle_option.
	* config/sparc/sparc.opt: New file.
	* config/sparc/little-endian.opt: Likewise.
	* config/sparc/long-double-switch.opt: Likewise.

From-SVN: r98078
2005-04-13 08:47:23 +00:00
Bernd Schmidt
c8de0f3bab bfin.c (bfin_lib_id_given): New static variable.
* config/bfin/bfin.c (bfin_lib_id_given): New static variable.
	(bfin_handle_options): Set it if -mshared-library-id= is seen.
	* config/bfin/bfin.opt (mshared-library-id=): Lose
	Var(bfin_lib_id_given).

From-SVN: r98077
2005-04-13 08:29:46 +00:00
Matt Thomas
6348db1ffc sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before defining.
2005-04-13  Matt Thomas  <matt@3am-software.com>

        * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
        defining.

From-SVN: r98076
2005-04-13 06:50:23 +00:00
Kazu Hirata
556a791ce4 * tree-inline.c (INSNS_PER_STMT): Remove.
From-SVN: r98073
2005-04-13 06:15:51 +00:00
Kazu Hirata
bec4464718 tree-ssa-forwprop.c (vars, [...]): Remove.
* tree-ssa-forwprop.c (vars,
	record_single_argument_cond_exprs,
	substitute_single_use_vars): Remove.
	(forward_propagate_into_cond_1, forward_propagate_into_cond):
	New.
	(tree_ssa_forward_propagate_single_use_vars): Call
	forward_propagate_into_cond for each COND_EXPR.

From-SVN: r98072
2005-04-13 06:07:03 +00:00
Kazu Hirata
8450a17040 * cgraphunit.c (INSNS_PER_CALL): Remove.
From-SVN: r98071
2005-04-13 05:51:39 +00:00
Kazu Hirata
a0ec266ccc * rtl.h (CLEAR_RTX_FLAGS): Remove.
From-SVN: r98070
2005-04-13 05:47:29 +00:00
Richard Henderson
ab8efbd824 i386.c (ix86_prepare_sse_fp_compare_args): Split ...
* config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
        (ix86_expand_sse_fp_minmax): ... from ...
        (ix86_expand_fp_movcc): ... here.
        (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
        * config/i386/i386-protos.h: Update.
        * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
        (sse_setccsf, sse_setccdf): Allow before reload.
        (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
        (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
        (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
        * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
        (anddf3, nanddf3, iordf3, xordf3): New.

From-SVN: r98068
2005-04-12 21:59:33 -07:00
Jeff Law
0b90f180b7 * gcc.dg/tree-ssa/20050412-1.c: New test.
From-SVN: r98067
2005-04-12 22:48:14 -06:00
Jeff Law
fef0657c25 Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
* Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
	(tree-ssa-uncprop.o): Add dependencies.
	* tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
	* tree-flow.h (remove_useless_stmts): Remove prototype.
	* tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
	remove_useless_stmts.
	* timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
	* tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
	* tree-pass.h (pass_uncprop): Declare.
	* tree-ssa-uncprop.c: New file.

From-SVN: r98066
2005-04-12 22:29:40 -06:00
Mike Stump
6dab073ba7 * configure: Regenerate.
From-SVN: r98065
2005-04-13 01:41:26 +00:00
Mike Stump
bf070c29a3 * libtool.m4: Update AC_LIBTOOL_SYS_MAX_CMD_LEN bits from upstream.
From-SVN: r98064
2005-04-13 01:12:15 +00:00
Gabriel Dos Reis
e7590e9543 Fix missed replacements.
From-SVN: r98063
2005-04-13 01:02:40 +00:00
Gabriel Dos Reis
4cf88ac343 regex.c (wcs_re_match_2_internal, [...]): Replace not with negate.
* regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
        Replace not with negate.

From-SVN: r98062
2005-04-13 00:52:16 +00:00
James E Wilson
43a0798307 Fix problem with FP reg r29 being corrupted on stack unwind.
PR target/20670
* unwind-ia64.c (uw_intall_context): Add missing load of r27.

From-SVN: r98061
2005-04-12 17:50:34 -07:00