58007 Commits

Author SHA1 Message Date
Richard Kenner
dbb5c281c6 Revert my previous store_constructor* change
From-SVN: r81417
2004-05-02 18:54:03 -04:00
Gerald Pfeifer
02c672d58b crontab: Move GCC 3.4 snapshots from Wednesday afternoon to Friday night...
* crontab: Move GCC 3.4 snapshots from Wednesday afternoon to
	Friday night, where gcc.gnu.org has less load.

From-SVN: r81413
2004-05-02 17:38:33 +00:00
Eric Botcazou
cfa29a4cc9 re PR middle-end/14988 (Analysis of ACATS cxg2006 failures at -O1)
PR middle-end/14988
	* function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
	when passed -2 as 'align'.
	(put_var_into_stack): Use 'bool' as the type for the three local
	predicates.  Adjust calls to put_reg_into_stack.
	When passed a CONCAT, instruct put_reg_into_stack to use
	a consecutive stack slot for the second part.
	(put_reg_into_stack): Remove 'promoted_mode' parameter, add
	'consecutive_p' parameter.  Turn the three predicates into 'bool'
	parameters.  Retrieve the register mode from 'reg'.
	When consecutive_p is true, instruct assign_stack_local_1 to use
	BITS_PER_UNIT alignment.
	(put_addressof_into_stack): Use 'bool' as the type for the two
	local predicates. Adjust call to put_reg_into_stack.

From-SVN: r81411
2004-05-02 13:46:23 +00:00
Kaveh R. Ghazi
fc62753005 fold-const.c (fold_convert_const, fold): Add missing FIX_ROUND_EXPR case.
* fold-const.c (fold_convert_const, fold): Add missing
	FIX_ROUND_EXPR case.

From-SVN: r81410
2004-05-02 13:41:20 +00:00
Gerald Pfeifer
eb4c9b54b4 crontab: Adjust temporary directory used for snapshot generation.
* crontab: Adjust temporary directory used for snapshot generation.
	Move GCC 3.3 snapshots to Wednesday 22:32, where gcc.gnu.org has
	less load.

From-SVN: r81409
2004-05-02 12:44:11 +00:00
Alexandre Oliva
9850f34a3c configure.ac (FLEX, BISON): Only use tools from the build tree if build equals host.
* configure.ac (FLEX, BISON): Only use tools from the build tree
if build equals host.
* configure: Rebuilt.

From-SVN: r81406
2004-05-02 07:48:53 +00:00
Alexandre Oliva
764678d17d frv-protos.h (frv_expand_epilogue, [...]): Add bool argument.
* config/frv/frv-protos.h (frv_expand_epilogue,
frv_expand_fdpic_call): Add bool argument.
* config/frv/frv.c (frv_function_ok_for_sibcall): New.
(TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
(frv_expand_epilogue): Use new argument to decide whether to emit
return instruction or copy the return address to LR.
(frv_expand_fdpic_call): Inline PLT entry when emitting direct
sibcalls.
(sibcall_operand): New.
* config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
PLUS nor LABEL_REF.  Add sibcall_operand.
* config/frv/frv.md (call, call_value): Pass false to
frv_expand_fdpic_call.
(call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
(sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
sibcall_value_internal, sibcall_value_fdpicdi): New.
(return_unsigned_true, return_unsigned_false): New.
(epilogue): Adjust call to frv_expand_epilogue.
(sibcall_epilogue): New.

From-SVN: r81405
2004-05-02 04:57:47 +00:00
Alexandre Oliva
afbe7e61fe frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
* config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
(CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
before redefining them.

From-SVN: r81404
2004-05-02 04:50:04 +00:00
Kaveh R. Ghazi
ca3df64369 builtins.c (fold_fixed_mathfn): New function.
* builtins.c (fold_fixed_mathfn): New function.
	(fold_builtin_lround, fold_builtin): Use it.

testsuite:
	* gcc.dg/torture/builtin-integral-1.c: Reorg and add more cases.
	* gcc.dg/torture/builtin-convert-3.c: New test.

From-SVN: r81403
2004-05-02 02:53:05 +00:00
GCC Administrator
3c2d679772 Daily bump.
From-SVN: r81400
2004-05-02 00:16:10 +00:00
Jakub Jelinek
f2c0cb15bc linux64.h (TARGET_DEFAULT): Make 64-bit by default also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
* config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
	also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.

From-SVN: r81396
2004-05-01 23:12:55 +02:00
Zack Weinberg
f8e7a389e9 decl.c (reshape_init): Do not apply TYPE_DOMAIN to a VECTOR_TYPE.
* decl.c (reshape_init): Do not apply TYPE_DOMAIN to a VECTOR_TYPE.
	Instead, dig into the representation type to find the array bound.

From-SVN: r81393
2004-05-01 19:12:46 +00:00
Kazu Hirata
ea2637ebba * config/cris/cris.h: Revert my "fix comment typos" patch.
From-SVN: r81392
2004-05-01 16:27:45 +00:00
Richard Sandiford
6c3db3ab8d TARGET->TUNE in last entry.
From-SVN: r81391
2004-05-01 12:57:13 +00:00
Richard Sandiford
d0cb84e926 * config/mips/mips.h (TARGET_MACC_CHAINS): Fix comment.
From-SVN: r81390
2004-05-01 12:55:23 +00:00
Falk Hueffner
ebade076e7 alpha.md (builtin_insbl, [...]): Disallow 0 as first input operand.
* config/alpha/alpha.md (builtin_insbl, builtin_inswl,
	builtin_insll): Disallow 0 as first input operand.

From-SVN: r81387
2004-05-01 14:26:28 +02:00
Falk Hueffner
0962c33d83 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
From-SVN: r81386
2004-05-01 14:21:51 +02:00
Ulrich Weigand
e2655d15d9 re PR middle-end/15054 (Bad code due to overlapping stack temporaries)
PR middle-end/15054
	* expr.c (expand_expr_real): Do not call preserve_temp_slots
	on a TARGET_EXPR temp.
	* function.c (assign_stack_temp_for_type): Set 'keep' flag for
	TARGET_EXPR temp slots.

	PR middle-end/15054
	* g++.dg/opt/pr15054.C: New test.

From-SVN: r81384
2004-05-01 11:37:39 +00:00
Paolo Bonzini
77306e3e64 simplify-rtx.c (simplify_ternary_operation): When converting an IF_THEN_ELSE to a relational op, return correct mode.
2004-05-01  Paolo Bonzini  <bonzini@gnu.org>

        * simplify-rtx.c (simplify_ternary_operation): When
        converting an IF_THEN_ELSE to a relational op, return
        correct mode.

From-SVN: r81383
2004-05-01 09:36:55 +00:00
Kaveh R. Ghazi
3bf0574872 builtins.c (fold_builtin_round): Fix comment typo.
* builtins.c (fold_builtin_round): Fix comment typo.
	(fold_builtin_lround): New function.
	(fold_builtin): Use it.

testsuite:
	* gcc.dg/torture/builtin-rounding-1.c: New test.
	* gcc.dg/builtins-25.c: Delete.
	* gcc.dg/builtins-29.c: Delete.

From-SVN: r81380
2004-05-01 01:51:33 +00:00
Andrew Pinski
c08732313c re PR target/11608 (testcase gcc.dg/debug/20020327-1.c fails with -gstabs1 etc.)
2004-04-20  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/11608
        * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
        more like the one in config/dbxelf.h.

From-SVN: r81379
2004-04-30 17:48:33 -07:00
GCC Administrator
21ccb11310 Daily bump.
From-SVN: r81376
2004-05-01 00:16:12 +00:00
Zack Weinberg
5c5214a92e tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK and adjust definition accordingly.
* tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
	and adjust definition accordingly.
	(TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
	(TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
	* expr.c (store_constructor): Do not access TYPE_DOMAIN of a
	VECTOR_TYPE.

From-SVN: r81373
2004-05-01 00:08:17 +00:00
Jason Merrill
672149847f re PR c++/14587 (Multiple inheriance/DLL testcase (g++.dg/ext/dllexport-MI1.C) failures)
PR c++/14587
        * config/i386/winnt.c (associated_type): Look for attributes on
        the TYPE_MAIN_VARIANT of *this.
        * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
        apply the attributes to the variants.

From-SVN: r81369
2004-04-30 18:26:48 -04:00
Paul Brook
269c559dab Trivial comment typo in previous change.
From-SVN: r81367
2004-04-30 20:35:15 +00:00
Paul Brook
b73f075a43 config.gcc: Simplify arm --with-{cpu,tune} test.
* config.gcc: Simplify arm --with-{cpu,tune} test.
	* config/arm/arm-cores.def: Document whitespace restrictions.

From-SVN: r81365
2004-04-30 20:29:23 +00:00
Rainer Orth
5076da17d2 re PR other/1963 (collect2 interprets "-oldstyle_liblookup" as "-o ldstyle_liblookup")
PR other/1963
	* config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.

From-SVN: r81363
2004-04-30 20:09:51 +00:00
Brian Ford
d38bc60179 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
(DWARF2_DEBUGGING_INFO): Define to enable.
	(DBX_REGISTER_NUMBER): Define to use the svr4 register map for
	DWARF2.
	* configure.ac (Target-specific assembler checks)
	<i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
	relocs.
	* configure: Regenerate.
	* config.in: Likewise.

	* config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
	(ASM_OUPUT_DWARF_OFFSET): Define.

From-SVN: r81359
2004-04-30 18:50:28 +00:00
Ranjit Mathew
55ce9c52a2 re PR java/15133 (gcjh generates wrong method signatures)
* testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
	additional option "-Wmissing-prototypes" for compiling C sources.
	Print actual filename for pass/fail rather than $name.c.
	* testsuite/libjava.jni/PR15133.java: New testcase file.
	* testsuite/libjava.jni/PR15133.c: Likewise.
	* testsuite/libjava.jni/PR15133.out: Likewise.

Co-Authored-By: Tom Tromey <tromey@redhat.com>

From-SVN: r81358
2004-04-30 18:19:37 +00:00
Ranjit Mathew
3fb577a589 re PR java/15133 (gcjh generates wrong method signatures)
Fixes PR java/15133
	* gjavah.c (struct method_name): Add member is_native.
	(overloaded_jni_method_exists_p): Match candidate method only if
	it is native.
	(print_method_info): Initialise is_native flag from the method's
	access flags.

From-SVN: r81357
2004-04-30 18:14:07 +00:00
Brian Ford
693446fc33 * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r81356
2004-04-30 18:11:53 +00:00
Jason Merrill
00bfffa4c0 Refer to base members using COMPONENT_REFs where possible.
* class.c (build_simple_base_path): New fn.
        (build_base_path): Use it for non-virtual base references.
        (layout_class_type): Change base fields to their real type
        after layout is done.
        * cp-tree.h (IS_FAKE_BASE_TYPE): New macro.
        * cp-lang.c (cxx_get_alias_set): Use it.

From-SVN: r81349
2004-04-30 13:25:42 -04:00
Andreas Krebbel
ed9676cf0c s390-protos.h (s390_emit_epilogue): Parameter added.
2004-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>

ChangeLog:

	* config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
	(s390_emit_call): New function prototype added.
	(s390_tls_get_offset): Function removed.
	* config/s390/s390.c (s390_function_ok_for_sibcall,
	s390_call_saved_register_used_p): New functions.
	(TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
	(s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
	(s390_emit_tls_call_insn): New function.
	(legitimize_tls_address): Call s390_emit_tls_call_insn instead of
	emit_call_insn.
	(s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
	(s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
	added.
	* config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
	register number used to hold the target address for sibcalls.
	* config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
	New expanders.
	("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
	"*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
	("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
	Expanders removed.
	("call", "call_value"): Call s390_emit_call to emit the call patterns.
	("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
	"*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
	("epilogue"): Changed the call to s390_emit_epilogue to use the
	new parameter.

testsuite/ChangeLog:

	* gcc.dg/sibcall-3.c: Delete s390 from expected fail list.
	* gcc.dg/sibcall-4.c: Likewise.
	* gcc.dg/sibcall-6.c: Enable s390 as test platform.

From-SVN: r81347
2004-04-30 16:40:22 +00:00
Kazu Hirata
1ae58c30e2 bb-reorder.c, [...]: Fix comment typos.
* bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
	cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
	reg-stack.c, varasm.c, config/alpha/ev4.md,
	config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
	config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
	config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
	config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
	config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
	config/ia64/itanium2.md, config/ip2k/ip2k.c,
	config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
	config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
	comment typos.

From-SVN: r81345
2004-04-30 16:27:30 +00:00
Kazu Hirata
a692ad2ece class.c, [...]: Fix comment typos.
* class.c, cp-tree.h, decl.c, decl2.c, pt.c, rtti.c: Fix
	comment typos.

From-SVN: r81344
2004-04-30 15:51:53 +00:00
Kazu Hirata
2fe8b9c8f9 20040331-1.c: Don't use too wide a bit-field on 16-bit targets.
* gcc.c-torture/execute/20040331-1.c: Don't use too wide a
	bit-field on 16-bit targets.

From-SVN: r81343
2004-04-30 15:30:55 +00:00
Kazu Hirata
99c4eea1c4 20040409-2.c: Fix constants used on 16-bit targets.
* gcc.c-torture/execute/20040409-2.c: Fix constants used on
	16-bit targets.

From-SVN: r81342
2004-04-30 14:19:05 +00:00
Roger Sayle
2d99c042fc builtins.c (java_builtins): Add acos, asin, ceil and floor.
* builtins.c (java_builtins): Add acos, asin, ceil and floor.
	(initialize_builtins): Likewise, define acos, asin, ceil and floor.

	* testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
	ceil and floor.

From-SVN: r81341
2004-04-30 14:15:08 +00:00
Paul Brook
2d84a437b0 Fit typo in previous patch
Fit typo in previous patch
	* config.gcc: Default ep9312 to hard-float.

From-SVN: r81338
2004-04-30 13:14:02 +00:00
Andrew Pinski
3fbf917d46 rs6000-power2-1.c: Change to compile only.
2004-04-30  Andrew Pinski  <pinskia@physics.uc.edu>

        * rs6000-power2-1.c: Change to compile only.
        * rs6000-power2-2.c: Likewise.

From-SVN: r81337
2004-04-30 05:19:32 -07:00
Paul Brook
78011587df configure.gcc: Default ep9312 to hard-float.
* configure.gcc: Default ep9312 to hard-float.
	* config/arm/arm-cores.def: Add ARCH field.
	* config/arm/arm.c (FL_FOR_ARCH*): Define.
	(arm_arch_cirrus): New variable.
	(all_cores): Set and use arch.
	(all_architectures): Ditto.
	(arm_arch_name): New variable.
	(arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
	Set and use arm_arch_cirrus.
	* config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
	(enum processor_type): Update ARM_CORE define.
	(enum target_cpus): Add.  Replaces TARGET_CPU_* defines.
	(CPP_SPEC): Remove %(cpp_cpu_arch).
	(CPP_ARCH_DEFAULT_SPEC): Remove.
	(CPP_CPU_ARCH_SPEC): Remove.
	(EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
	(FPUTYPE_DEFAULT): Don't define here.

From-SVN: r81336
2004-04-30 12:13:49 +00:00
Richard Kenner
5ecfc99a62 expr.c (store_constructor): SIZE operand is now in bits...
* expr.c (store_constructor): SIZE operand is now in bits; CLEARED
	less than zero now means emitted CLOBBER already.
	(store_constructor_field, expand_expr_real): Reflect above changes.

From-SVN: r81335
2004-04-30 08:09:28 -04:00
J"orn Rennecke
e344dbf315 flow.c (propagate_one_insn): Call mark_set_regs for stack pointer updates too.
* flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
	updates too.

From-SVN: r81334
2004-04-30 12:28:57 +01:00
Paul Brook
65a939f7ac * arm.c (arm_needs_doubleword_align): Use mode alignment.
From-SVN: r81332
2004-04-30 10:54:37 +00:00
Paolo Bonzini
0bf87ea5a0 altivec.h [...] (vec_subsubs): Rename to vec_sububs.
2004-04-30  Paolo Bonzini  <bonzini@gnu.org>

        * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
        vec_sububs.
        [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
        duplicates.

From-SVN: r81331
2004-04-30 09:59:01 +00:00
Uros Bizjak
a6bf61c753 i386.md (atansf2, [...]): Move near atan2?f3 expanders.
2004-04-30  Uros Bizjak  <uros@kss-loka.si>

        * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
        atan2?f3 expanders.

From-SVN: r81326
2004-04-30 08:04:57 +02:00
Nick Clifton
150e407ad0 Patch from Nick Clifton.
Bug 14093
* config/sh/sh-protos.h (sh_promote_prototypes): Declare.
* config/sh/sh.c (sh_promote_prototypes): Remove declaration.
Delete static from definition.
* config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.

From-SVN: r81325
2004-04-29 22:59:06 -07:00
Uros Bizjak
6862f97f45 reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS, UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
2004-04-30  Uros Bizjak  <uros@kss-loka.si>

        * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
        UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
        <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
        <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.

From-SVN: r81324
2004-04-30 07:31:48 +02:00
Richard Guenther
c65a01af06 Patch from Richard Guenther.
* commom.opt (Wfatal-errors): Add it.
* diagnostic.c (flag_fatal_errors): Define it.
(diagnostic_action_after_output): Check for flag_fatal_errors.
* flags.h (flag_fatal_errors): Declare it.
* opts.c (common_handle_option): Add OPT_Wfatal_errors.
* doc/invoke.texi (Warning Options): Document -Wfatal-errors.

From-SVN: r81323
2004-04-29 22:29:23 -07:00
Josef Zlomek
d1c6a40144 gcse.c (remove_reachable_equiv_notes): Delete notes also in blocks which have kill flag set.
* gcse.c (remove_reachable_equiv_notes): Delete notes also in
	blocks which have kill flag set.

From-SVN: r81322
2004-04-30 05:26:54 +00:00