Commit Graph

65368 Commits

Author SHA1 Message Date
Kazu Hirata 6d77cdc3aa * gcse.c (null_pointer_info): Remove.
From-SVN: r94122
2005-01-23 19:18:39 +00:00
Kazu Hirata 15f0d971d1 cgraph.c (cgraph_varpool_n_nodes): Remove.
* cgraph.c (cgraph_varpool_n_nodes): Remove.
	(cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
	* cgraph.h: Remove the corresponding declaration.

From-SVN: r94121
2005-01-23 19:17:09 +00:00
Kazu Hirata f3b303fd7f c-common.c (explicit_flag_signed_bitfields, [...]): Remove.
* c-common.c (explicit_flag_signed_bitfields,
	lang_statement_code_p, lang_expand_function_end): Remove.
	* c-common.h: Remove the corresponding declarations.
	* c-opts.c (c_common_handle_option): Remove all write access
	to explicit_flag_signed_bitfields.

From-SVN: r94120
2005-01-23 19:15:36 +00:00
Kazu Hirata d0754bc6fc cse.c (max_reg, [...]): Remove.
* cse.c (max_reg, max_insn_uid): Remove.
	(cse_main): Don't access max_reg or max_insn_uid.

From-SVN: r94119
2005-01-23 19:13:50 +00:00
Paul Brook 2d304c90bd Update Copyright.
From-SVN: r94118
2005-01-23 17:16:43 +00:00
James A. Morrison 587579571d re PR fortran/19294 (intrinsic_transpose.f90 runtime crash)
2005-01-23  James A. Morrison  <phython@gcc.gnu.org>
	Paul Brook  <paul@codesourcery.com>

	PR fortran/19294
	* iresolve.c (gfc_resolve_transpose): Resolve to transpose_c4 or
	transpose_c8 for complex types.
libgfortran/
	* Makefile.am: Add transpose_c4.c and transpose_c8.c.
	* intrinsics/cshift0.c: Use separate optimized loops for complex types.
	* m4/transpose.m4: Include type letter in function name.
	* Makefile.in: Regenerate.
	* generated/transpose_*.c: Regenerate.

Co-Authored-By: Paul Brook <paul@codesourcery.com>

From-SVN: r94116
2005-01-23 17:01:00 +00:00
Roger Sayle b975043470 combine.c (simplify_logical): Only simplify logical expressions of the form ior(and(x,y),z) by the inverse...
* combine.c (simplify_logical): Only simplify logical expressions
	of the form ior(and(x,y),z) by the inverse distributive law if the
	result is cheaper than the original.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>

From-SVN: r94114
2005-01-23 15:43:56 +00:00
Kazu Hirata 6ccf2f7d07 * typeck.c: Fix a comment typo.
From-SVN: r94113
2005-01-23 15:22:18 +00:00
Kazu Hirata 35fd3193de alias.c, [...]: Fix comment typos.
* alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
	fold-const.c, gimplify.c, params.h, tree-data-ref.c,
	tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
	tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
	config/freebsd-spec.h, config/arm/arm.h,
	config/h8300/h8300.md, config/i386/i386.md,
	config/i386/predicates.md, config/i386/sse.md,
	config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
	config/vax/vax.md: Fix comment typos.  Follow spelling
	conventions.

From-SVN: r94112
2005-01-23 15:05:49 +00:00
Kazu Hirata e7dc5b4f22 data.c, [...]: Fix comment typos.
* data.c, dependency.c, f95-lang.c, io.c, trans-array.c,
	trans-decl.c, trans-expr.c, trans-intrinsic.c, trans-io.c,
	trans-stmt.c, trans-types.c, trans.h: Fix comment typos.
	Follow spelling conventions.

From-SVN: r94111
2005-01-23 14:36:26 +00:00
Bud Davis dae245345d re PR libfortran/19313 (inquire(pad=) not implemented)
2005-01-22  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/19313
        * trans-io.c (gfc_trans_inquire): Added code to support
        pad.

        PR fortran/19313
        * gfortan.dg/inquire_6.f90: New test.

From-SVN: r94110
2005-01-23 14:19:54 +00:00
Steven Bosscher a62a0172a3 gengtype.c (walk_type): Produce `not equal to' compares for loop tests, instead of `less than'.
* gengtype.c (walk_type): Produce `not equal to' compares for loop
	tests, instead of `less than'.

From-SVN: r94109
2005-01-23 11:49:24 +00:00
Kazu Hirata 0aa99dbbb3 * MAINTAINERS (Write After Approval): Add Michael Matz.
From-SVN: r94108
2005-01-23 11:22:25 +00:00
Paolo Carlini 96144e13e2 type_traits (aligned_storage): Use __aligned__ instead of aligned.
2005-01-23  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (aligned_storage): Use __aligned__ instead
	of aligned.

From-SVN: r94107
2005-01-23 11:10:37 +00:00
Paolo Carlini 0554d39aed re PR libstdc++/19343 (New warnings in libstdc++-v3 since 2004-01-05)
2005-01-23  Paolo Carlini  <pcarlini@suse.de>
	    Andreas Jaeger  <aj@suse.de>

	PR libstdc++/19343
	* include/bits/functexcept.h: Mark the helpers as 'noreturn'.

Co-Authored-By: Andreas Jaeger <aj@suse.de>

From-SVN: r94106
2005-01-23 10:45:01 +00:00
Kazu Hirata 54a12711c8 * MAINTAINERS: Remove obsolete entries.
From-SVN: r94105
2005-01-23 10:42:38 +00:00
Richard Sandiford a561d88b93 function.c (assign_parm_setup_block): When creating a new stack slot for a parameter...
* function.c (assign_parm_setup_block): When creating a new stack slot
	for a parameter, get its alignment from the parameter's DECL_ALIGN
	rather than the type's TYPE_ALIGN.  Make sure that the parameter
	is at least word aligned.

From-SVN: r94104
2005-01-23 08:27:47 +00:00
Roger Sayle d2ebe27c9a re PR target/19378 (ICE during bootstrap compiling __fixdfdi)
PR middle-end/19378
	* config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.

From-SVN: r94102
2005-01-23 04:51:28 +00:00
Thomas Koenig 0e69bba9fc re PR libfortran/19451 (Read after a write with a read only file)
2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/19451
	* io/transfer.c (finalize_transfer):  Don't do anything if
	there is an error condition.
	* open_readonly_1.f90:  New test.

From-SVN: r94101
2005-01-23 02:18:33 +00:00
GCC Administrator c2d8571d91 Daily bump.
From-SVN: r94093
2005-01-23 00:16:24 +00:00
David Edelsohn fbac336391 re PR libfortran/19052 (unit 0 not preconnected to standard error)
PR libgfortran/19052
        * libgfortran.h (options_t): Add stderr_unit.
        * io/io.h (error_stream): Declare.
        * io/open.c (new_unit): Do not terminate abnormally if opening
        file preconnected to stdin, stdout, or stderr.
        * io/unit.c (init_units): Initialize stderr_unit.
        * io/unix.c (error_stream): New function.
        * runtime/environ.c (GFORTRAN_STDERR_UNIT): New environment variable.

From-SVN: r94090
2005-01-22 19:14:31 -05:00
Richard Henderson a059cdb863 re PR target/19506 (PovRay produces wrong pictures with -mfpmath=sse -ffast-math.)
PR target/19506
        * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
        in both compare operands.
        (movdfcc_1_sse_max): Likewise.
        (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
        (movdfcc_1_sse): Likewise.
        * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
        scratch register as needed.

From-SVN: r94087
2005-01-22 15:07:53 -08:00
Richard Henderson b8f0658696 * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
From-SVN: r94086
2005-01-22 14:59:33 -08:00
Richard Henderson eabd294f38 * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
From-SVN: r94085
2005-01-22 14:56:11 -08:00
Richard Henderson 5ccbd3098f genopinit.c (optabs): Use smin/smax for floating point too.
* genopinit.c (optabs): Use smin/smax for floating point too.
        * doc/md.texi: Update to match.  Clarify that floating point
        results are undefined for +0/-0 and NaN.
        * doc/rtl.texi: Likewise.
        * rtl.def (SMIN, SMAX): Likewise
        * tree.def (MIN_EXPR, MAX_EXPR): Likewise.

        * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
        leading 's' to the name.
        * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
        smaxxf3, sminxf3): Likewise.
        * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
        Likewise.

From-SVN: r94084
2005-01-22 14:54:07 -08:00
Richard Henderson 7ae4d8d421 genopinit.c (optabs): Use smin/smax for floating point too.
* genopinit.c (optabs): Use smin/smax for floating point too.
        * doc/md.texi: Update to match.  Clarify that floating point
        results are undefined for +0/-0 and NaN.
        * doc/rtl.texi: Likewise.
        * rtl.def (SMIN, SMAX): Likewise
        * tree.def (MIN_EXPR, MAX_EXPR): Likewise.

        * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
        leading 's' to the name.
        * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
        smaxxf3, sminxf3): Likewise.
        * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
        Likewise.

From-SVN: r94083
2005-01-22 14:49:06 -08:00
Steven G. Kargl 190607885a intrinsic.c (make_alias): Add standard argument.
2005-01-22  Steven G. Kargl  <kargls@comcast.net>

	* intrinsic.c (make_alias):  Add standard argument.
	(add_functions): Update make_alias calls.

From-SVN: r94082
2005-01-22 22:32:06 +00:00
Paul Brook b4b2332cf9 arm.md: Use "Uy" constraint for wcgr load/stores.
2005-01-22  Paul Brook  <paul@codesourcery.com>

	* config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.

[[Split portion of a mixed commit.]]

From-SVN: r94080.2
2005-01-22 22:23:39 +00:00
Mark Dettinger 6fa5b3907c s390.c (struct processor_costs): New fields dlgr, dlr, dr, dsgfr, dsgr.
2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>

	* config/s390/s390.c (struct processor_costs): New fields
	dlgr, dlr, dr, dsgfr, dsgr.
	(z900_cost, z990_cost): Values for new fields.
	(s390_rtx_costs): New cases MEM und COMPARE in switch
	statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
	DIV, MOD, UDIV, UMOD.

From-SVN: r94079
2005-01-22 21:57:56 +00:00
Ulrich Weigand eb862a88ba s390.md ("doloop_si64"): Reload input value directly into the register being decremented.
* config/s390/s390.md ("doloop_si64"): Reload input value directly
	into the register being decremented.
	("doloop_si31", "doloop_di"): Likewise.
	("*doloop_si_long"): Adapt pattern.

From-SVN: r94078
2005-01-22 21:50:56 +00:00
Ulrich Weigand 3776ada0a9 s390.h (HARD_REGNO_NREGS): Fix computation for access registers.
* config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
	access registers.
	(CLASS_MAX_NREGS): Likewise.

From-SVN: r94077
2005-01-22 21:48:01 +00:00
Thomas Koenig d02b2c6474 re PR libfortran/18982 (open(status="new") does not generate an error if the file exists)
2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/18982
	* io/unix.c (regular_file):  No need to change flags->action
	if an error occurs.  Document this.
	No need to call stat() for STATUS_OLD, open() will
	fail anyway.
	For ACTION_UNSPECIFIED, try open for read-write, then for
	read-only if open fails with EACCES, then for write-only
	if that fails with EACCES again.
	* io/unix.c (open_external): Document changed behavior of
	regular_file.
testsuite/
	* gfortran.dg/open_new.f90: New file.

From-SVN: r94076
2005-01-22 19:49:18 +00:00
Daniel Berlin d7c71ee3e6 tree-ssa.texi (Statement Operands): Add example for new must-def macro.
2005-01-21  Daniel Berlin  <dberlin@dberlin.org>

	* doc/tree-ssa.texi (Statement Operands): Add example for new
	must-def macro. Note deprecation of old operands interface.

From-SVN: r94075
2005-01-22 19:23:57 +00:00
Paul Brook 1438a8c909 * trans-expr.c (gfc_conv_function_call): Remove bogus TODO.
From-SVN: r94074
2005-01-22 19:20:01 +00:00
Paul Brook af30f793c9 gfortran.h (gfc_check_access): Add prototype.
2005-01-22  Paul Brook  <paul@codesourcery.com>

	* gfortran.h (gfc_check_access): Add prototype.
	* match.c (gfc_match_namelist): Remove TODO.
	* module.c (check_access): Rename ...
	(gfc_check_access): ... to this.  Boolify.  Update callers.
	* resolve.c (resolve_symbol): Check for private objects in public
	namelists.
testsuite/
	* namelist_1.f90: New test.

From-SVN: r94073
2005-01-22 18:23:43 +00:00
Richard Sandiford d7f3fc1990 re PR tree-optimization/19484 (function pointer propagation fails for noreturn functions)
PR tree-optimization/19484
	* tree-cfg.c (remove_fallthru_edge): New function.
	(cleanup_control_flow): Remove fallthru edges from calls that are
	now known not to return.

From-SVN: r94070
2005-01-22 17:52:44 +00:00
Daniel Berlin 111e0c9f4b re PR tree-optimization/19038 (tree-ssa causing loops to have more than one BB)
2005-01-20  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR tree-optimization/19038
	* tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
	copies with loop variant ones.

From-SVN: r94069
2005-01-22 16:48:23 +00:00
Kazu Hirata 6aa9e91ac1 * java-except.h, java-tree.h: Remove unused prototypes.
From-SVN: r94068
2005-01-22 16:45:08 +00:00
Kazu Hirata 28773f15a8 tree-cfg.c (remove_forwarder_block_with_phi): Look at the first label to see if it is a nonlocal label.
* tree-cfg.c (remove_forwarder_block_with_phi): Look at the
	first label to see if it is a nonlocal label.

From-SVN: r94067
2005-01-22 16:13:40 +00:00
Paul Brook 0dd973dd97 primary.c (gfc_match_rvalue): Only apply implicit type if variable does not have an explicit type.
2005-01-22  Paul Brook  <paul@codesourcery.com>

	* primary.c (gfc_match_rvalue): Only apply implicit type if variable
	does not have an explicit type.
	(gfc_match_variable): Resolve implicit derived types in all cases.
	Resolve contained function types from their own namespace, not the
	parent.
	* resolve.c (resolve_contained_fntype): Remove duplicate sym->result
	checking.  Resolve from the contained namespace, not the parent.
testsuite/
	* gfortran.dg/implicit_2.f90: New test.

From-SVN: r94066
2005-01-22 15:24:09 +00:00
Tobias Schlüter b8d5e92646 re PR fortran/19194 (Missing RECL parameter in OPEN statement)
gcc/fortran/
PR fortran/19194
* trans-io.c (ADD_STRING): Use gfc_charlen_type_node for string
length parameters.
(gfc_build_io_library_fndecls): 'rec' and 'recl_in' are not
pointer fields.

libgfortran/
PR fortran/19194
* io/io.h (st_parameter): Use 'GFC_INTEGER_4' instead of 'int',
use CHARACTER macro for definition of string valued paramters.

Also fix years in recent ChangeLog entries.

From-SVN: r94065
2005-01-22 15:37:39 +01:00
Kazu Hirata 1e052c19d5 cfganal.c, [...]: Update copyright.
* cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
	config/alpha/alpha-protos.h, config/alpha/alpha.h,
	config/alpha/alpha.md, config/alpha/predicates.md,
	config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
	config/sparc/sol2.h: Update copyright.

From-SVN: r94064
2005-01-22 12:53:25 +00:00
Bud Davis b1a807057e re PR libfortran/19314 (inquire(position=) segfaults at runtime)
2004-01-22  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/19314
        * io/inquire.c(inquire_via_unit): implement POSITION=.
        * io/transfer.c(next_record): update position for
        INQUIRE.
        * io/rewind.c(st_rewind): update position for
        INQUIRE.

        * gfortran.dg/inquire_5.f90: New test.

From-SVN: r94060
2005-01-22 03:51:12 +00:00
David Edelsohn 987732e0c8 re PR target/19491 (va_start incorrect, Number of floating point and integer registers counted incorrectly)
2005-01-20  David Edelsohn  <edelsohn@gnu.org>
            Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/19491
        * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
        maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>

From-SVN: r94059
2005-01-21 22:09:23 -05:00
Ralf Corsepius 80d15bce46 rtems.h: Update copyright.
2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>

	* config/rs6000/rtems.h: Update copyright.

From-SVN: r94057
2005-01-22 03:57:47 +01:00
Ralf Corsepius b9d13999f3 re PR target/19548 (RTEMS CPP specs not merged from 3.2/3.2 branches)
2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>

	PR target/19548
	* config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
	(CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
	(SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.

From-SVN: r94056
2005-01-22 03:26:12 +01:00
Tobias Schlüter 6ba692b44c re PR middle-end/19543 ([4.1 only] fortran LOGICAL*8 not consistently distinguished from 32 bit integers)
PR fortran/19543
* trans-const.c (gfc_conv_constant_to_tree): Give logical
constants the correct type.

From-SVN: r94054
2005-01-22 01:29:33 +01:00
GCC Administrator 41bd881c9a Daily bump.
From-SVN: r94052
2005-01-22 00:17:34 +00:00
Volker Reichelt 209136895d re PR c/18809 (ICE after a couple of errors with a simple invalid C code)
PR c/18809
	* c-typeck.c (convert_arguments): Check for error_mark_node.

	* gcc.dg/pr18809-1.c: New test.

From-SVN: r94049
2005-01-22 00:12:27 +00:00
Ian Lance Taylor 15c8b2d40a * gcc.dg/20050121-1.c: New test.
From-SVN: r94029
2005-01-21 19:23:06 +00:00