Commit Graph

58145 Commits

Author SHA1 Message Date
Paolo Bonzini c520783756 Complete last checkin:
2004-04-29  Paolo Bonzini  <bonzini@gnu.org>

	Complete last checkin:
        * combine.c (combine_simplify_rtx): Adjust call to use
        simplify_relational_operation.  Do not use SELECT_CC_MODE
        when a comparison already has a MODE_CC mode.

From-SVN: r81283
2004-04-29 08:08:44 +00:00
Paolo Bonzini c6fb08ad28 combine.c (combine_simplify_rtx): Adjust call to use simplify_relational_operation.
2004-04-29  Paolo Bonzini  <bonzini@gnu.org>

        * combine.c (combine_simplify_rtx): Adjust call to use
        simplify_relational_operation.  Do not use SELECT_CC_MODE
        when a comparison already has a MODE_CC mode.
        (simplify_set): simplify_relational_operation may now
        return another relational expression.
        * cse.c (fold_rtx): simplify_relational_operation now
        takes of computing the comparison mode.
        * dojump.c (compare_from_rtx): Use simplify_relational_operation,
        remove dead code.
        (do_compare_rtx_and_jump): Likewise.
        * integrate.c (subst_constants): simplify_relational_operation
        may now return another relational expression.
        * simplify-rtx.c (simplify_gen_relational): Move most code to
        the new simplify_relational_operation and
        simplify_relational_operation_1 functions.
        (simplify_relational_operation): Rewritten.
        (simplify_relational_operation_1): New function.
        (simplify_ternary_operation): simplify_relational_operation
        may now return another relational expression.
        (simplify_rtx): Remove unnecessary temp variable.

From-SVN: r81282
2004-04-29 07:50:55 +00:00
Paolo Bonzini 6cf1ac42db acx.m4: Fix fastcompare support for new-bootstrap.
2004-04-28  Paolo Bonzini  <bonzini@gnu.org>

        * config/acx.m4: Fix fastcompare support for new-bootstrap.
        * configure: Regenerate.

From-SVN: r81281
2004-04-29 07:40:05 +00:00
Uros Bizjak f964bd29f1 reg-stack.c (swap_to_top): New function.
2004-04-23  Uros Bizjak  <uros@kss-loka.si>

        * reg-stack.c (swap_to_top): New function.
        (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use\
        swap_to_top().
        (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
        (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
        UNSPEC_FSCALE_EXP.

        * config/i386/i386.md (UNSPEC_FSCALE): Remove.
        (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
        (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
        x87's fscale insn.
        (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
        (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
        patterns.

From-SVN: r81278
2004-04-29 09:19:25 +02:00
Uros Bizjak fe6663350d * MAINTAINERS: Add myself to write-after-approval.
From-SVN: r81277
2004-04-29 09:06:46 +02:00
Serge Belyshev cb83302cce re PR gcov-profile/14944 ([3.4 only] ICE when gcc reads *.gcda file of different version)
Patch from Serge Belyshev.
PR 14944
* coverage.c (read_counts_file): Fix usage of warning () call.
* pretty-print.c (pp_base_format_text): Fix typo in the comment.

From-SVN: r81276
2004-04-28 23:28:59 -07:00
Ben Elliston 5ad7ae7f4d invoke.texi (Objective-C Dialect Options): Don't prefix options with "-" in the option index.
* doc/invoke.texi (Objective-C Dialect Options): Don't prefix
	options with "-" in the option index.
	(SPARC Options): Likewise.
	(M32R/D Options): Likewise.

From-SVN: r81272
2004-04-29 14:26:51 +10:00
Kaveh Ghazi c4b8e5de4b Fix typo.
From-SVN: r81270
2004-04-29 01:19:40 +00:00
Kaveh R. Ghazi 332d782c3d convert.c (convert_to_integer): Convert (long)round -> lround, etc.
* convert.c (convert_to_integer): Convert (long)round -> lround,
	etc.

testsuite:
	* gcc.dg/torture/builtin-convert-2.c: New test.

From-SVN: r81269
2004-04-29 00:36:20 +00:00
GCC Administrator b5bfe58403 Daily bump.
From-SVN: r81266
2004-04-29 00:16:12 +00:00
Andrew Pinski 90f81f99b1 rs6000.c (registers_ok_for_quad_peep): Return false if we do not have fp register.
2004-04-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
        Return false if we do not have fp register.
        (addrs_ok_for_quad_peep): Rename to ...
        (mems_ok_for_quad_peep): this.
        Add check for volatile memory.
        * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
        Rename to ...
        (mems_ok_for_quad_peep): this.
        * config/rs6000/rs6000.md: Change peephole's for lfq/stq
        to peephole2's.
        (lfq_power2): New instruction.
        (stfq_power2): Likewise.

2004-04-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/rs6000-power2-1.c: New test.
        * gcc.dg/rs6000-power2-2.c: New test.

From-SVN: r81262
2004-04-28 16:03:31 -07:00
Ulrich Weigand ea16c81bfa Makefile.in: Add target macro definitions for s390*-linux*.
* Makefile.in: Add target macro definitions for s390*-linux*.
	* system-linux-s390.ads: New file.
	* system-linux-s390x.ads: New file.

From-SVN: r81261
2004-04-28 21:02:02 +00:00
Jan Hubicka 902edd367b re PR c/15004 ([unit-at-a-time] no warning for unused paramater in static function)
* gcc.dg/unused-6.c: New test.

	PR c/15004
	* function.c (do_warn_unused_parameter): Break out form ...
	(expand_function_end): ... here; warn only when not using cgraphunit.
	* function.h (do_warn_unused_parameter): Declare.
	* cgraphunit.c: Include function.h.
	(cgraph_finalize_function): Do unused parameter warning.
	* Makefile.in (cgraphunit.o): Depend on function.h

From-SVN: r81260
2004-04-28 20:40:55 +00:00
Joseph Myers a89f5df3d9 Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition calling install-info on $(DESTDIR)$(infodir)/dir already being...
* Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
	calling install-info on $(DESTDIR)$(infodir)/dir already being
	present.

From-SVN: r81256
2004-04-28 19:00:05 +01:00
Paul Brook 40f0b3eeab * dwarf2out.c (mem_loc_descriptor): Handle shifts.
From-SVN: r81252
2004-04-28 15:13:42 +00:00
Joseph Myers f0e6f84591 * gnat_ugn.texi: Correct argument to @setfilename.
From-SVN: r81251
2004-04-28 15:57:15 +01:00
Ulrich Weigand e8c2eedc9b a-exexpr.adb (Unwind_Word): New data type.
* a-exexpr.adb (Unwind_Word): New data type.
	(Unwind_Exception): Use it as type of Private1 and Private2.

	* raise.c (db_action_for): Fix debug printf.

From-SVN: r81250
2004-04-28 14:36:34 +00:00
Ulrich Weigand c2e2375e23 gcse.c (find_moveable_store): Do not accept store insns with REG_EH_REGION note.
* gcse.c (find_moveable_store): Do not accept store insns with
	REG_EH_REGION note.

From-SVN: r81249
2004-04-28 14:34:51 +00:00
Paul Brook 9e1622ed25 calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
* calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
	* function.c (assign_temp): Ditto.
	* system.h (PROMOTE_FOR_CALL_ONLY): Poison.

From-SVN: r81247
2004-04-28 13:25:59 +00:00
Paul Brook e0d4a859ee * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
From-SVN: r81246
2004-04-28 13:24:30 +00:00
Arnaud Charlet c470d7c9d3 Makefile.in: Add target pairs for powerpc darwin* tasking support.
* Makefile.in: Add target pairs for powerpc darwin*
	tasking support.

	* a-intnam-darwin.ads, s-osinte-darwin.adb,
	s-osinte-darwin.ads, system-darwin-ppc.ads: New files.

From-SVN: r81245
2004-04-28 11:38:51 +02:00
Josef Zlomek 83532fb78e var-tracking.c (variable_different_p): Add a parameter compare_current_location...
* var-tracking.c (variable_different_p): Add a parameter
	compare_current_location, compare current location of variable parts
	if it is true.
	(dataflow_set_different_1): Pass compare_current_location == false.
	(dataflow_set_different_2): Pass compare_current_location == false.
	(emit_notes_for_differences_1): Pass compare_current_location == true.

From-SVN: r81242
2004-04-28 06:00:45 +00:00
Ulrich Weigand cfa2949646 s390.md ("casesi"): Mark jump table access as non-trapping and unchanging.
* config/s390/s390.md ("casesi"): Mark jump table access as
	non-trapping and unchanging.

From-SVN: r81240
2004-04-28 02:45:57 +00:00
GCC Administrator 7989b0e40b Daily bump.
From-SVN: r81237
2004-04-28 00:16:15 +00:00
John David Anglin 23959f19da re PR debug/14829 (Bootstrap comparison failure on hppa64-hp-hpux11.11)
PR debug/14829
	* dwarf2out.c (reg_number): Rename to dbx_reg_number.  Adjust all
	callers.
	(multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
	number for indexing hard_regno_nregs array.

From-SVN: r81233
2004-04-27 23:24:01 +00:00
Geoffrey Keating 2f70eed18e darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
* config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
	* config/darwin-crt2.c: Only have contents on __ppc__.

From-SVN: r81230
2004-04-27 23:07:52 +00:00
Bob Wilson f1dfe7049d xtensa.c (call_insn_operand): Check SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
* config/xtensa/xtensa.c (call_insn_operand): Check
	SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
	* config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
	* config/xtensa/xtensa.md (call, call_value): Likewise.

From-SVN: r81228
2004-04-27 22:47:56 +00:00
Wu Yongwei 80408cac16 gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
2004-04-27  Wu Yongwei  <adah@sh163.net>

	* gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
	(__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
	(__gthread_mutex_init_function): Replace CreateMutex with
	initialization of custom mutex using CreateSemaphore.
	(__gthread_mutex_lock): Use InterlockedIncrement.
	(__gthread_mutex_trylock): Use InterlockedCompareExchange.
	(__gthread_mutex_unlock): Use InterlockedDecrement and
	ReleaseSemaphore to unlock
	* config/i386/gthr-win32.c (__gthread_mutex_init_function,
	__gthread_mutex_lock, __gthread_mutex_trylock,
	__gthread_mutex_unlock): Adjust to match inline versions in
	gthr-win32.h.

From-SVN: r81227
2004-04-27 21:38:05 +00:00
Rainer Orth 1f1d584b73 backport: configure.in (mips*-*-irix5*): Enable ld.
Merge from src:
	2004-04-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
	* configure.in (mips*-*-irix5*): Enable ld.
	* configure: Regenerate.

From-SVN: r81225
2004-04-27 14:20:35 -04:00
Paul Brook 70301b45ac arm.c (arm_promote_prototypes): New function.
* config/arm/arm.c (arm_promote_prototypes): New function.
	(TARGET_PROMOTE_PROTOTYPES): Use it.

From-SVN: r81223
2004-04-27 14:20:10 +00:00
Paolo Bonzini 632933d5d0 revert: Makefile.def (flags_to_pass): Remove *dir variables that are passed to the modules via...
2004-04-27  Paolo Bonzini  <bonzini@gnu.org>

	Revert:
	2004-04-26  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.def (flags_to_pass): Remove *dir variables that
	are passed to the modules via TOPLEVEL_CONFIGURE_ARGUMENTS,
	as well as prefix and exec_prefix.
	* Makefile.in: Regenerate.

From-SVN: r81221
2004-04-27 11:58:38 +00:00
Arnaud Charlet f2c9e65ac5 [multiple changes]
2004-04-27  Ed Schonberg  <schonberg@gnat.com>

	* a-wtmoio.ads: Formal type must be a modular type, not a signed
	integer type.

2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* decl.c (gnat_to_gnu_entity, case object): Call
	__builtin_update_setjmp_buf.

	* gigi.h (update_setjmp_buf): Deleted.
	(ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.

	* misc.c: (update_setjmp_buf): Deleted.

	* trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
	around block of RTL.

	* utils.c (init_gigi_decls): Initialize update_setjmp_buf.

From-SVN: r81218
2004-04-27 12:49:37 +02:00
Paul Brook 4b763d779c * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
From-SVN: r81216
2004-04-27 10:23:32 +00:00
Bernard Giroud 7053a0e246 Patch from Bernard Giroud.
* config/alpha.c (alpha_end_function): For OpenVMS gas,
correctly output .pdesc directive before .end.

From-SVN: r81214
2004-04-26 23:35:17 -07:00
Robert Millan 80dc6aa062 Patch from Robert Millan.
Add patches from libtool CVS.
* libtool.m4: Add kfreebsd*-gnu and knetbsd*-gnu.
* ltconfig: Likewise.
* ltcf-c.sh: Likewise.
* ltcf-cxx.sh: Likewise.
* ltcf-gcj.sh: Likewise.

From-SVN: r81213
2004-04-26 23:14:30 -07:00
Joe Buck c9b93377e3 Bug 15093
Bug 15093
* configure.ac: Test for existence of mmap and sys/mman.h before
checking blacklist.  Fix suggested by Jim Wilson.
* configure: Regenerate.

From-SVN: r81212
2004-04-26 22:41:45 -07:00
James E Wilson 6d7870d1a9 Bug 14927
Bug 14927
* config/ia64/ia64.md (movxf): New local op0.  Handle case where
operands[0] is a SUBREG.  Handle case where operands[1] is a GR reg.

From-SVN: r81211
2004-04-26 22:19:49 -07:00
Matt Austern cf90fd1b5b Patch 14922
Patch 14922
	* src/powerpc/darwin.S: Go through a non-lazy pointer for initial
	FDE location.
	* src/powerpc/darwin_closure.S: Likewise.

From-SVN: r81209
2004-04-27 01:45:19 +00:00
GCC Administrator 95d68a9f60 Daily bump.
From-SVN: r81206
2004-04-27 00:16:14 +00:00
Zack Weinberg 7dd7fb88f0 hpux.h: Predefine __STDCPP__ when compiling C++.
* config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
	* config/pa/pa-hpux10.h: Likewise.
	* config/pa/pa-hpux11.h: Likewise.

From-SVN: r81202
2004-04-27 00:12:30 +00:00
Laurent GUERBY 0c04dd0ded run_all.sh: Define $target variable.
* ada/acats/run_all.sh: Define $target variable.

Co-Authored-By: Ulrich Weigand <uweigand@de.ibm.com>

From-SVN: r81201
2004-04-26 21:15:54 +00:00
Geoffrey Keating 488061c8bd invoke.texi (Overall Options): Document default for -o for PCH files.
* doc/invoke.texi (Overall Options): Document default for -o
	for PCH files.

From-SVN: r81199
2004-04-26 19:23:52 +00:00
Richard Kenner 2b92e7f5cd builtins.c (expand_builtin_update_setjmp_buf): New function.
* builtins.c (expand_builtin_update_setjmp_buf): New function.
	(expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
	* builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.

From-SVN: r81198
2004-04-26 14:11:32 -04:00
Paolo Carlini 479864fe80 istream.tcc: Fix comment.
2004-04-26  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/istream.tcc: Fix comment.

From-SVN: r81193
2004-04-26 15:26:18 +00:00
Arnaud Charlet cad79eea44 Makefile.in: Put back merge of some targets to avoid code duplication.
* Makefile.in: Put back merge of some targets to avoid code duplication.
	Remove at the same obsolete variable GNATLIBLDFLAGS.

From-SVN: r81192
2004-04-26 16:52:20 +02:00
Maciej W. Rozycki 6489430a36 configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
* configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
	* configure: Regenerate.

From-SVN: r81191
2004-04-26 14:21:49 +00:00
Paul Brook 3657dc3e38 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
From-SVN: r81189
2004-04-26 13:56:00 +00:00
Andrew Pinski 72fcb5d12b re PR c++/15119 (internal compiler error: in substitute_placeholder_in_expr, at tree.c:2155)
2004-04-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/15119
        * g++.dg/other/vararg-1.C: New test.

        PR c++/4794
        * g++.dg/eh/cleanup3.C: New test.

From-SVN: r81188
2004-04-26 05:54:55 -07:00
Arnaud Charlet 35b7fa6a40 [multiple changes]
2004-04-26  Thomas Quinot  <quinot@act-europe.fr>

	* sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
	subprogram for which no pragma All_Calls_Remote applies, store the
	address of the real subprogram in the underlying record type, so local
	dereferences do not go through the PCS.

2004-04-26  Robert Dewar  <dewar@gnat.com>

	* i-c.ads: Add some type qualifications to avoid ambiguities when
	compiling with s-auxdec.ads and a non-private address type.

2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>

	* Makefile.rtl: Fix error in previous check-in:
	Add s-addope.o to non tasking object list (rather than tasking object
	list).

2004-04-26  Javier Miranda  <miranda@gnat.com>

	* sem_aggr.adb: Fix typo in comments
	(Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
	Required to check the null-exclusion attribute.

	* sem_attr.adb (Resolve_Attribute): Check the accessibility level in
	case of anonymous access types in record and array components. For a
	component definition the level is the same of the enclosing composite
	type.

	* sem_ch3.adb (Analyze_Component_Declaration): In case of components
	that are anonymous access types the level of accessibility depends on
	the enclosing type declaration. In order to have this information, set
	the scope of the anonymous access type to the enclosing record type
	declaration.
	(Array_Type_Declaration): In case of components that are anonymous
	access types the level of accessibility depends on the enclosing type
	declaration. In order to have this information, set the scope of the
	anonymous access type to the enclosing array type declaration.

	* sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
	access type.

	* sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
	renaming of anonymous access-to-constant types allowed if and only if
	the renamed object is access-to-constant.

	* sem_util.adb (Type_Access_Level): In case of anonymous access types
	that are component_definition or discriminants of a nonlimited type,
	the level is the same as that of the enclosing component type.

2004-04-26  Sergey Rybin  <rybin@act-europe.fr>

	* sem_elim.adb: Some minor code reorganization from code reading. Fix
	misprint in the function name (File_Name_Match).

From-SVN: r81186
2004-04-26 14:29:41 +02:00
Paolo Bonzini e11283f1b4 Makefile.def (host_modules): Mark with the bootstrap flag packages on which gcc depends.
2004-04-26  Paolo Bonzini  <bonzini@gnu.org>

        * Makefile.def (host_modules): Mark with the bootstrap
        flag packages on which gcc depends.
        * Makefile.tpl (all-bootstrap): Use it.
        * Makefile.in: Regenerate.

From-SVN: r81185
2004-04-26 12:08:07 +00:00