Commit Graph

64109 Commits

Author SHA1 Message Date
Nathanael Nerode f9c656237c re PR preprocessor/17651 (Erroneous preprocessor output with -g when generating dependencies)
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

	PR preprocessor/17651
	* c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
	flag_no_line_commands.
	* c-ppoutput.c (pp_file_change): Remove now-redundant check of
	flag_no_output.

From-SVN: r91436
2004-11-28 23:29:41 +00:00
Hans-Peter Nilsson a8344e3213 re PR target/18484 (mmix-knuth-mmixware testsuite failure: g++.dg/abi/empty6.C)
PR target/18484
	* g++.dg/abi/empty6.C: Xfail warning for mmix-*-*.

From-SVN: r91434
2004-11-28 23:28:05 +00:00
Theodore A. Roth 97e45d9e69 avr.c (avr_handle_fndecl_attribute): Generate a warning if the function name does not begin with "__vector" and the...
* config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
	warning if the function name does not begin with "__vector" and the
	function has either the 'signal' or 'interrupt' attribute.

From-SVN: r91433
2004-11-28 23:15:59 +00:00
Theodore A. Roth 3592022563 avr.c (avr_mcu_types): Add entries for atmega48...
* config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
	atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
	atmega325, atmega3250, atmega645 and atmega6450.
	* config/avr/avr.h (LINK_SPEC): Ditto.
	(LIB_SPEC): Ditto.
	(LIBGCC_SPEC): Ditto.
	(CRT_BINUTILS_SPECS): Ditto.
	* config/avr/t-avr (MULTILIB_MATCHES): Ditto.

From-SVN: r91432
2004-11-28 23:10:28 +00:00
Hans-Peter Nilsson 20db5bc845 re PR target/18348 (mmix-knuth-mmixware testsuite failure: gcc.dg/uninit-H.c)
PR target/18348
	* gcc.dg/uninit-H.c (ASM): For unknown targets, define to "= 0".

From-SVN: r91431
2004-11-28 22:57:38 +00:00
Mark Wielaard c8387a9379 mauve-libgcj: Disable SpinnerListModel...
* mauve-libgcj: Disable SpinnerListModel, SwingUtilities and
       XMLDecoder tests which currently don't compile.

From-SVN: r91430
2004-11-28 22:41:53 +00:00
Hans-Peter Nilsson 450bc074e9 re PR target/18345 (mmix-knuth-mmixware testsuite failure: gcc.dg/intmax_t-1.c)
PR target/18345
	* gcc.dg/intmax_t-1.c: Add mmix-*-* to dg-error.

From-SVN: r91429
2004-11-28 22:39:05 +00:00
Nathanael Nerode 283038288e re PR preprocessor/17610 (Empty #include statement halts gcc)
(libcpp)
	PR preprocessor/17610
	* directives.c (do_include_common): Error out if an empty filename
	is given for #include (or #include_next or #import).

(gcc)
	PR preprocessor/17610
	* testsuite/gcc.dg/cpp/empty-include.c: New testcase.

From-SVN: r91428
2004-11-28 22:28:13 +00:00
Hans-Peter Nilsson b20e82291e re PR target/18337 (mmix-knuth-mmixware testsuite failure: gcc.dg/array-quals-1.c)
PR target/18337
	* gcc.dg/array-quals-1.c: Xfail for mmix-*-*.

From-SVN: r91427
2004-11-28 22:14:34 +00:00
Bud Davis 905d47a950 direct_io_2.f90: New test.
2004-11-28  Bud Davis  <bdavis9659@comcast.net>

        * gcc/gcc/gfortran.dg/direct_io_2.f90: New test.

        * gcc/libgfortran/io/unix.c (mmap_alloc_w_a): check for a write
	to a location less than the mapped area.

From-SVN: r91426
2004-11-28 21:14:02 +00:00
Jeff Law 856e49c207 tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
* tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
        (pass_maybe_create_global_var): New.
        * tree-pass.h (pass_maybe_create_global_var): Declare.
        * tree-optimize.c (init_tree_optimization_passes): Link in
        pass_maybe_create_global_var.

From-SVN: r91425
2004-11-28 14:02:31 -07:00
Hans-Peter Nilsson ec017547ea re PR target/18334 (mmix-knuth-mmixware testsuite failure: gcc.dg/cpp/assert4.c)
PR target/18334
	* gcc.dg/cpp/assert4.c: Remove mmix assertion tests.

From-SVN: r91424
2004-11-28 20:52:19 +00:00
Richard Kenner 27b892b496 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
From-SVN: r91420
2004-11-28 09:02:56 -05:00
Ulrich Weigand fbee756399 re PR rtl-optimization/18420 (ICE compiling mesa at -O2)
PR rtl-optimization/18420
	* simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.

From-SVN: r91419
2004-11-28 13:02:52 +00:00
Steven Bosscher 6e1037da47 Forgot to add my own email address
From-SVN: r91418
2004-11-28 12:02:37 +00:00
Steven Bosscher 05dde071b3 vax.h (CASE_DROPS_THROUGH): Don't define.
* config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
	* config/vax/vax.md (casesi): Emit a test-and-branch to make sure
	that the case is in range, to make sure the casesi insn is always
	in range and never falls through.
	(casesi1): Add comment to explain why casesi never falls through.
	Remove the unnamed special case casesi pattern.

From-SVN: r91417
2004-11-28 12:01:20 +00:00
Hans-Peter Nilsson 69ffa7aa5a re PR target/18331 (mmix-knuth-mmixware testsuite failure: execute/ieee/fp-cmp-8.c gcc.dg/20040625-1.c)
PR target/18331
	* config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
	"*movdicc_real".  Only match reversible comparisons.
	("*movdicc_real_nonreversible"): New pattern, split from
	"*movdicc_real".  Match only nonreversible comparisons.  Exclude
	reversed alternatives.
	("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
	Similar.

From-SVN: r91416
2004-11-28 09:48:27 +00:00
Richard Henderson 78a27531e0 * gcc.c-torture/execute/20020227-1.x: Remove XFAIL.
From-SVN: r91415
2004-11-28 01:41:33 -08:00
Richard Henderson 7905f79948 ia64.md: Move all define_predicate's ...
* config/ia64/ia64.md: Move all define_predicate's ...
        * config/ia64/predicates.md: ... here.  New file.

From-SVN: r91414
2004-11-28 01:38:43 -08:00
Per Bothner ca6b99558d jcf-parse.c (set_source_filename): Improvement to Andrew's fix...
* jcf-parse.c (set_source_filename):  Improvement to Andrew's fix:
	Fix fencepost error in 'i', which got executed one too many times.
	Also, fold memcpy into explicit loop, as originally intended.
	Also, free temporary 'buf' which otherwise leaks.

From-SVN: r91411
2004-11-27 22:49:48 -08:00
Per Bothner ad50046692 expr.c (build_expr_wfl): Only declare last_file and last_filenode local static variables if...
* expr.c (build_expr_wfl): Only declare last_file and last_filenode
	local static variables if not USE_MAPPED_LOCATION.

From-SVN: r91408
2004-11-27 22:44:20 -08:00
Per Bothner 8af4d362c2 re PR bootstrap/18142 ("Unknown pseudo-op: .machine" compiling darwin-crt2.c)
PR bootstrap/18142
	Re-applied following, with two modifications: add a URL for the
	fixed cctools; only exit if $build = $target.

	2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
	* configure.ac (powerpc-*-darwin*): Require assembler to support
	.machine directive.
	* configure: Regenerate.

From-SVN: r91406
2004-11-27 22:06:26 -08:00
Joseph Myers c48cb43994 builtin-choose-expr-2.c, [...]: New tests.
* gcc.dg/builtin-choose-expr-2.c, gcc.dg/cast-1.c,
	gcc.dg/cast-2.c, gcc.dg/cast-3.c, gcc.dg/format/opt-1.c,
	gcc.dg/format/opt-2.c, gcc.dg/format/opt-3.c,
	gcc.dg/format/opt-4.c, gcc.dg/format/opt-5.c,
	gcc.dg/format/opt-6.c, gcc.dg/pointer-arith-5.c,
	gcc.dg/pointer-arith-6.c, gcc.dg/pointer-arith-7.c,
	gcc.dg/pointer-arith-8.c: New tests.

From-SVN: r91405
2004-11-28 02:16:57 +00:00
GCC Administrator 69b7944b0d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91403.2
2004-11-28 00:16:25 +00:00
GCC Administrator 0c1e33969b Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91402.2
2004-11-28 00:16:17 +00:00
Bud Davis 203f344c3d re PR libfortran/18364 (endfile does not truncate file)
2004-11-27  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/18364
        * gfortran.dg/endfile.f90: New test.
        *  io/endfile.c (st_endfile): flush the stream before truncating.

From-SVN: r91400
2004-11-27 23:35:47 +00:00
David Edelsohn 22e54023ca re PR target/16800 (PowerPC - Unnecessary rldicl)
PR target/16800
        * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
        EQ, GTU, and LTU costs.  Add costs for GT, LT, and UNORDERED.
        Distinguish between SImode and DImode CONST_INT.

From-SVN: r91399
2004-11-27 18:00:57 -05:00
Andreas Fischer 7482ad259b re PR target/16343 (invalid code when using -meabi -msdata=eabi)
PR target/16343
	* config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
	functions, strings and thread-local vars.

Co-Authored-By: Alan Modra <amodra@bigpond.net.au>

From-SVN: r91397
2004-11-28 09:21:43 +10:30
Alan Modra f57fe06890 rs6000.h (WORLD_SAVE_P): Define.
* config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
	* config/rs6000/darwin.h (WORLD_SAVE_P): Define.
	* config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
	to allow non-darwin ABIs to optimize away code.
	(rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.

From-SVN: r91396
2004-11-28 09:15:24 +10:30
Kazu Hirata 51dd24d7d0 * fold-const.c: Fix a comment typo.
From-SVN: r91395
2004-11-27 22:29:34 +00:00
Roger Sayle c812785aaa internal.h: Replace all uses of uchar with unsigned char.
* internal.h: Replace all uses of uchar with unsigned char.
	* include/cpp-id-data.h: Likewise.  Guard typedef of uchar
	with !IN_GCC, so uchar is only defined whilst building libcpp.

Co-Authored-By: Zack Weinberg <zack@codesourcery.com>

From-SVN: r91394
2004-11-27 21:59:38 +00:00
Kazu Hirata 38318b7342 * fold-const.c: Fix a comment typo.
From-SVN: r91393
2004-11-27 20:54:33 +00:00
Kazu Hirata 0b1214ef13 * class.c, decl.c, expr.c: Fix comment typos.
From-SVN: r91392
2004-11-27 20:48:17 +00:00
Kazu Hirata 270af55dd4 * pt.c: Fix a comment typo.
From-SVN: r91391
2004-11-27 20:44:30 +00:00
Paolo Carlini 84477ec3e8 re PR libstdc++/18690 (tr1/utility is broken on darwin)
2004-11-27  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/18690
	* include/tr1/utility (get(pair), get(const pair)): Change
	occurrences of _I to _Int.

From-SVN: r91390
2004-11-27 20:25:11 +00:00
Joseph Myers 4961e35da5 * gcc.pot: Regenerate.
From-SVN: r91389
2004-11-27 19:43:51 +00:00
Joseph Myers 7546e96e4a * cpplib.pot: Regenerate.
From-SVN: r91388
2004-11-27 19:39:31 +00:00
Bryce McKinlay d4edf85f2b gc_config.h.in: Add comment.
2004-11-27  Bryce McKinlay  <mckinlay@redhat.com>

        * include/gc_config.h.in: Add comment. Define only THREAD_LOCAL_ALLOC.

From-SVN: r91387
2004-11-27 17:44:31 +00:00
Kazu Hirata 51027369ac bb-reorder.c (find_traces_1_round): Speed up by using EDGE_COUNT instead of FOR_EACH_EDGE.
* bb-reorder.c (find_traces_1_round): Speed up by using
	EDGE_COUNT instead of FOR_EACH_EDGE.

From-SVN: r91386
2004-11-27 17:33:11 +00:00
Kazu Hirata cdef8bc6d1 tree.c (operand_equal_for_phi_arg_p): New.
* tree.c (operand_equal_for_phi_arg_p): New.
	* tree.h: Add a prototype for operand_equal_for_phi_arg_p.
	* tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
	Replace operand_equal_p with operand_for_phi_arg_p
	appropriately.

From-SVN: r91385
2004-11-27 17:26:17 +00:00
John David Anglin 31f16dff98 re PR pch/14940 (PCH largefile test fails on various platforms)
PR pch/14940
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.

From-SVN: r91381
2004-11-27 16:57:06 +00:00
Falk Hueffner 0c00d5f3da * gcc.dg/loop-6.c: New test.
From-SVN: r91378
2004-11-27 16:49:53 +00:00
Kazu Hirata 2fd1350624 linux.h: Fix a comment typo.
* config/i386/linux.h: Fix a comment typo.
	* doc/extend.texi: Fix a typo.

From-SVN: r91377
2004-11-27 16:45:15 +00:00
Jeff Law 086aa12e9c tree-cfg.c (cleanup_tree_cfg): Also return true if blocks are merged.
* tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
        are merged.

From-SVN: r91376
2004-11-27 09:36:30 -07:00
Andrew Haley 1daa567cf8 link.cc (ensure_class_linked): Conditionally compile _Jv_IsInterpretedClass on INTERPRETER.
2004-11-27  Andrew Haley  <aph@redhat.com>

	* link.cc (ensure_class_linked): Conditionally compile
	_Jv_IsInterpretedClass on INTERPRETER.
	(print_class_loaded): Likewise.
	(wait_for_state): Likewise.

	* include/jvm.h (ROUND): Move to here from include/java-interp.h.
	* include/java-interp.h (ROUND): Remove.

From-SVN: r91375
2004-11-27 12:37:32 +00:00
Jakub Jelinek 02a854f970 * config/i386/linux64.h (REG_NAME): Define.
From-SVN: r91374
2004-11-27 12:21:31 +01:00
Jakub Jelinek 47d42ce271 fold-const.c (extract_muldiv_1): If ctype is unsigned and type signed...
* fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
	unsigned and type signed, build ABS_EXPR with signed_type (ctype)
	and only afterwards convert to ctype.

	* gcc.c-torture/execute/20041126-1.c: New test.

From-SVN: r91373
2004-11-27 11:13:56 +01:00
Richard Sandiford 87980da05e mips-args-1.c: Don't expect _R3000 or _R4000 to be defined on IRIX.
* gcc.dg/mips-args-1.c: Don't expect _R3000 or _R4000 to be defined
	on IRIX.

From-SVN: r91372
2004-11-27 09:55:16 +00:00
Richard Sandiford 601a71a77f mips-movcc-[123].c: Pass the ?: expressions to other functions.
* gcc.dg/mips-movcc-[123].c: Pass the ?: expressions to other
	functions.

From-SVN: r91371
2004-11-27 09:54:10 +00:00
Richard Sandiford e64ca6c474 mips-protos.h (function_arg_boundary): Declare.
* config/mips/mips-protos.h (function_arg_boundary): Declare.
	* config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
	(STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
	(FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
	* config/mips/mips.c (function_arg_boundary): New function.
	Impose a maximum alignment of STACK_BOUNDARY.

From-SVN: r91370
2004-11-27 09:46:43 +00:00