Commit Graph

63200 Commits

Author SHA1 Message Date
Adam Nemet fcf750eec2 re PR middle-end/18160 (ICE on taking register variable address)
PR middle-end/18160
	* gcc.dg/register-var-1.c: New test.
	* gcc.dg/register-var-2.c: New test.
	* gcc.dg/asm-7.c: Taking the address of a register variable is an
	error now.

From-SVN: r89773
2004-10-28 19:31:25 +00:00
Adam Nemet 0039fa5565 re PR middle-end/18160 (ICE on taking register variable address)
PR middle-end/18160
	* c-typeck.c (c_mark_addressable): Issue error if address of a
	register variable is taken.  Use "%qD" to print DECL_NAME.

From-SVN: r89772
2004-10-28 19:30:49 +00:00
Dorit Naishlos 5c588b22b5 re PR other/18172 (execution failure in vect-[20,22].c on ppc-linux)
PR other/18172
        * gcc.dg/vect/vect-20.c: Use 'signed char' instaed of 'char'. Remove
        unused variables.
        * gcc.dg/vect/vect-22.c: Likewise.

From-SVN: r89771
2004-10-28 19:00:39 +00:00
Diego Novillo 85a59cea22 * opts.c (decode_options): Don't run PRE at -Os.
From-SVN: r89770
2004-10-28 14:18:46 -04:00
Richard Henderson 283dd63338 alpha.md (movqicc_internal): Allow exactly one zero in the conditional.
* config/alpha/alpha.md (movqicc_internal): Allow exactly one
        zero in the conditional.
        (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.

From-SVN: r89766
2004-10-28 10:21:00 -07:00
Richard Henderson 9d80ef7c82 cse.c (memory_extend_rtx): Remove.
* cse.c (memory_extend_rtx): Remove.
        (cse_main): Don't set it.
        (cse_insn): Use a local buffer instead.

From-SVN: r89765
2004-10-28 09:26:25 -07:00
Andreas Krebbel f3df954136 profile.c (branch_prob): Call to init_edge_profiler added.
* profile.c (branch_prob): Call to init_edge_profiler added.
	* rtl-profile.c (rtl_init_edge_profiler): New function.
	(rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
	call to safe_insert_insn_on_edge.
	(rtl_profile_hooks): rtl_init_edge_profiler added.
	* tree-profile.c (tree_init_edge_profiler): New function.
	(tree_profile_hooks): tree_init_edge_profiler added.
	* value-prof.h (profile_hooks) init_edge_profiler prototype added.

From-SVN: r89764
2004-10-28 16:19:26 +00:00
David Daney 86ce0e3d22 Output_UnicodeLittleUnmarked.java: New file.
2004-10-28  David Daney  <ddaney@avtrex.com>

	* gnu/gcj/convert/Output_UnicodeLittleUnmarked.java: New file.
	* Makefile.am: Build it.
	* Makefile.in: Regenerate.

From-SVN: r89763
2004-10-28 15:22:44 +00:00
Nick Clifton 9054261dcf (iq2000_expand_epilogue): Use emit_jump_insn() to generate the return
instruction.

From-SVN: r89762
2004-10-28 14:52:49 +00:00
Kazu Hirata 50d895a7d6 * tree-phinodes.c: Remove trailing whitespace.
From-SVN: r89760
2004-10-28 14:41:05 +00:00
Kazu Hirata 1c170b5eba tree-ssa-loop-ivopts.c: Fix a comment typo.
* tree-ssa-loop-ivopts.c: Fix a comment typo.
	* doc/invoke.texi: Fix a typo.

From-SVN: r89759
2004-10-28 14:24:29 +00:00
Kazu Hirata f340a501f7 * Makefile.in (OBJS-common): Remove duplicates.
From-SVN: r89758
2004-10-28 13:37:33 +00:00
Kazu Hirata 7188204628 lambda-code.c (nestify_update_pending_stmts): Remove.
* lambda-code.c (nestify_update_pending_stmts): Remove.
	(perfect_nestify): Use flush_pending_stmts instead of
	nestify_update_pending_stmts.
	* tree-cfg.c (tree_make_forwarder_block): Use
	flush_pending_stmts.
	* tree-flow.h: Add a prototype for flush_pending_stmts.
	* tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
	Use flush_pending_stmts.
	(lv_update_pending_stmts): Remove.
	(tree_ssa_loop_version): Use flush_pending_stmts instead of
	lv_update_pending_stmts.
	* tree-ssa.c (flush_pending_stmts): New.

From-SVN: r89757
2004-10-28 13:31:53 +00:00
Andrew Pinski 63058091fa decl.c (bad_specifiers): Move the q after the %.
2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>

        * decl.c (bad_specifiers): Move the q after the %.

From-SVN: r89756
2004-10-28 06:27:51 -07:00
Jakub Jelinek 83ff1f252f * gcc.dg/i386-rotate-1.c: New test.
From-SVN: r89755
2004-10-28 15:07:00 +02:00
Paolo Carlini 53a8d0f021 locale_facets.tcc (num_get<>::_M_extract_float): Cache *__beg in __c when parsing exponent sign too.
2004-10-28  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
	Cache *__beg in __c when parsing exponent sign too.
	(num_get<>::do_get(..., bool&)): Cache *__beg.
	(money_get<>::_M_extract)): Likewise, in money_base::value.

From-SVN: r89753
2004-10-28 12:47:36 +00:00
Ulrich Weigand fd326ba823 re PR target/15286 (ICE cause by reload)
PR target/15286
	* final.c (alter_subreg): Compute correct offset to use with
	paradoxical SUBREGs of memory operands.
	* recog.c (general_operand): Allow paradoxical SUBREGs of
	memory operands after reload.
	* simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
	has failed when passed a hard register.

From-SVN: r89752
2004-10-28 12:47:21 +00:00
Aldy Hernandez 4af46a327e * function.c (assign_parm_setup_block): Handle parallels correctly.
From-SVN: r89750
2004-10-28 12:29:36 +00:00
Kaz Kojima 5921f276c7 * final.c (shorten_branches): Initialize flags structure.
From-SVN: r89746
2004-10-28 10:34:04 +00:00
Nathan Sidwell b66a64f16c tree.c (int_cst_node, [...]): New variables.
* tree.c (int_cst_node, int_cst_hash_table): New variables.
	(init_ttree): Initialize them.
	(int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
	(build_int_cst_wide): Use hash table for oversized integers.

From-SVN: r89745
2004-10-28 10:08:03 +00:00
Nick Clifton 0b4828effe oops - fixed typo in previous delta
From-SVN: r89744
2004-10-28 08:49:48 +00:00
Nick Clifton fb002e78fa (DBX_OUTPUT_SOURCE_LINE): Define begin_label.
From-SVN: r89743
2004-10-28 08:35:46 +00:00
Mark Mitchell 2419a74bca * g++.dg/init/ref12.C: New test.
From-SVN: r89739
2004-10-28 05:24:21 +00:00
Mark Mitchell 391c4bc5af re PR c++/17435 (Binding a temporary of derived type to reference of base)
PR c++/17435
	* call.c (convert_like_real): Fix formatting.
	(initialize_reference): When binding a temporary to a base class,
	ensure that the nominal copy made is to the derived class, not the
	base class.

	PR c++/18140
	* parser.c (cp_parser_next_token_ends_template_argument_p): Do not
	include ">>".

	PR c++/17435
	* g++.dg/init/ref12.C: New test.

	PR c++/18140
	* g++.dg/template/shift1.C: New test.
	* g++.dg/template/error10.C: Adjust error markers.

From-SVN: r89738
2004-10-28 05:17:14 +00:00
Richard Henderson 0da34ce409 re PR middle-end/18163 (libffi test case ICE's on darwin)
PR middle-end/18163
        * expr.c (emit_group_load): Don't go force temporary for memory
        or concat source.
        (emit_group_store): Similarly.

From-SVN: r89735
2004-10-27 20:53:31 -07:00
Andrew Pinski 744e6f334d re PR other/18186 (Spelling error)
2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>

        PR other/18186
        * common.opt (--param): Fix spelling of parameter.

From-SVN: r89731
2004-10-27 20:42:22 -07:00
Andrew Pinski 8e14584d63 re PR tree-optimization/17529 (ICE in get_indirect_ref_operands)
2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17529
        * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
        Don't fold statement.
        <case ASM_EXPR>: Fold the statement.

2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17529
        * gcc.c-torture/compile/pr17529.c: Remove the xfail.

From-SVN: r89730
2004-10-27 20:03:48 -07:00
Kazu Hirata 269da1e916 tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Use EDGE_COUNT instead of GOTO_DESTINATION.
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
	<COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.

From-SVN: r89729
2004-10-28 02:56:50 +00:00
Andrew Pinski 425834072e decl.c: Move the q after the %.
2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>

        * decl.c: Move the q after the %.

From-SVN: r89728
2004-10-27 19:32:44 -07:00
Andrew Pinski 2fbe488952 parser.c (cp_parser_diagnose_invalid_type_name): Move the q after the %.
2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>

        * parser.c (cp_parser_diagnose_invalid_type_name): Move the q after
        the %.

From-SVN: r89727
2004-10-27 19:17:46 -07:00
Paolo Carlini 5536e07dad basic_string.h (assign(const basic_string&)): Move out of line...
2004-10-27  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h (assign(const basic_string&)):
	Move out of line...
	* include/bits/basic_string.tcc: ... here.

From-SVN: r89726
2004-10-28 01:04:35 +00:00
Joseph Myers 78466c0eb5 contrib.texi, [...]: Improve Texinfo formatting.
* doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
	doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
	doc/libgcc.texi, doc/md.texi, doc/passes.texi,
	doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.

From-SVN: r89725
2004-10-28 02:00:31 +01:00
Joseph Myers d78aa55cc9 c-tree.texi, [...]: Put punctuation outside quotes.
* doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
	doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
	punctuation outside quotes.

From-SVN: r89724
2004-10-28 01:20:42 +01:00
Geoffrey Keating 98f61f572f typeof-2.c: Needs aliases as well as weak.
* gcc.dg/weak/typeof-2.c: Needs aliases as well as weak.
	* gcc.dg/weak/weak-3.c: Likewise.
	* gcc.dg/weak/weak-5.c: Likewise.
	* gcc.dg/weak/weak-9.c: Likewise.
	* lib/file-format.exp (gcc_target_object_format): Darwin has Mach-O.
	* lib/target-supports.exp (check_weak_available): Mach-O does weak.

From-SVN: r89723
2004-10-28 00:16:57 +00:00
GCC Administrator 02c2429ce9 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89721.2
2004-10-28 00:16:23 +00:00
GCC Administrator 821d7b632b Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89720.2
2004-10-28 00:16:16 +00:00
Geoffrey Keating 005c1a13e5 Index: fixincludes/ChangeLog
2004-10-27  Geoffrey Keating  <geoffk@apple.com>

	* inclhack.def (darwin_gcc4_breakage): New.
	* fixincl.x: Regenerate.

Index: gcc/ChangeLog
2004-10-27  Geoffrey Keating  <geoffk@apple.com>

	* config/rs6000/rs6000.c (rs6000_attribute_table): Add
	SUBTARGET_ATTRIBUTE_TABLE.
	* config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
	(SUBTARGET_ATTRIBUTE_TABLE): Define.
	* config/darwin.c (darwin_handle_weak_import_attribute): New.
	(HAVE_DEAD_STRIP): Delete.
	(no_dead_strip): Don't test HAVE_DEAD_STRIP.
	* config/darwin-protos.h (darwin_handle_weak_import_attribute):
	Prototype.

Index: gcc/testsuite/ChangeLog
2004-10-27  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/darwin-weakimport-1.c: New.

From-SVN: r89716
2004-10-27 23:02:39 +00:00
David Mosberger 9a3137c336 correct attribution for last patch
From-SVN: r89715
2004-10-27 15:46:18 -07:00
David Mosberger a8f5224e01 IA-64 sibcall unwind bug, PR target/13158
IA-64 sibcall unwind bug, PR target/13158
* config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
sibcall alloc instruction.
(process_set): Handle sibcall alloc instruction.

From-SVN: r89714
2004-10-27 15:44:07 -07:00
Geoffrey Keating 09afda707e * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
From-SVN: r89713
2004-10-27 21:17:08 +00:00
Geoffrey Keating 72747d40e9 * config/darwin.h (GTHREAD_USE_WEAK): Define.
From-SVN: r89712
2004-10-27 21:03:43 +00:00
Ben Elliston 61b5800161 params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
* params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
	(PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
	* params.h (SRA_MAX_STRUCTURE_SIZE): New.
	(SRA_FIELD_STRUCTURE_RATIO): Likewise.
	* tree-sra.c: Include "params.h".
	(decide_block_copy): Use new parameters.
	* doc/invoke.texi (Optimize Options): Document new SRA pass
	parameters sra-max-structure-size and sra-field-structure-ratio.

[testsuite]
	* gcc.dg/tree-ssa/sra-1.c: Pass --param sra-max-structure-size.

From-SVN: r89711
2004-10-28 07:02:16 +10:00
Nicolas Pitre 72111a1f4b * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
From-SVN: r89709
2004-10-27 20:32:02 +00:00
Zdenek Dvorak 38b0dcb81e re PR tree-optimization/18048 (mgrid loop performance regression with ivopts (register pressure))
PR tree-optimization/18048
	* fold-const.c (try_move_mult_to_index): New function.
	(fold): Use try_move_mult_to_index.
	* tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
	* tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
	an all-ones unsigned constant without extra bits.
	* tree.c (build_low_bits_mask): New function.
	* tree.h (build_low_bits_mask): Declare.

From-SVN: r89708
2004-10-27 20:27:20 +00:00
David Edelsohn 89e73849fd re PR target/17956 (ICE in rs6000_emit_minmax, config/rs6000/rs6000.c:11725)
PR target/17956
	* config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
	final condition.
	(minsf3): Same.
	(maxdf3): Same.
	(mindf3): Same.

From-SVN: r89707
2004-10-27 16:18:42 -04:00
Aaron W. LaFramboise 13cf7262ac re PR bootstrap/17832 (Bootstrap broken by fixincludes failures)
PR bootstrap/17832

	* fixfixes.c (main): Check for _PC_NAME_MAX.
----------------------------------------------------------------------

From-SVN: r89706
2004-10-27 14:13:57 -06:00
Kazu Hirata 0b371c72fe tree-cfg.c (thread_jumps): Speed up by reordering the two conditions for entering basic blocks into worklist.
* tree-cfg.c (thread_jumps): Speed up by reordering the two
	conditions for entering basic blocks into worklist.

From-SVN: r89700
2004-10-27 18:33:26 +00:00
Kazu Hirata af88d4ec96 tree-cfg.c (thread_jumps): Speed up by pretending to have ENTRY_BLOCK_PTR in worklist.
* tree-cfg.c (thread_jumps): Speed up by pretending to have
	ENTRY_BLOCK_PTR in worklist.

From-SVN: r89699
2004-10-27 18:24:13 +00:00
Kazu Hirata 7f604986cc tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't let an explicit GOTO_EXPR slip through.
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
	<GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.

From-SVN: r89698
2004-10-27 18:20:26 +00:00
Geoffrey Keating 36b8a0315c btest-gcc.sh (TESTLOGS): The libstdc++-v3 test log is called libstd++.sum not libstdc++-v3.sum.
* btest-gcc.sh (TESTLOGS): The libstdc++-v3 test log is called
	libstd++.sum not libstdc++-v3.sum.

From-SVN: r89697
2004-10-27 18:19:41 +00:00