Commit Graph

63179 Commits

Author SHA1 Message Date
Richard Earnshaw fe94b6534a * opts.c (decode_options): Lower the crossjump threshold for -Os.
From-SVN: r89843
2004-10-29 13:08:47 +00:00
Diego Novillo 0be058dd64 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
From-SVN: r89832
2004-10-29 08:28:25 -04:00
Nathan Sidwell eb59b8de04 bitmap.h (bitmap_empty_p): New.
* bitmap.h (bitmap_empty_p): New.
	(bitmap_and, bitmap_and_into, bitmap_and_compl,
	bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
	bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
	operation macros.
	(bitmap_ior_and_compl): Rename to ...
	(bitmap_ior_and_compl_into): ... here.
	* bitmap.c (bitmap_equal_p): Use bitmap_xor.
	(bitmap_ior_and_compl): Rename to ...
	(bitmap_ior_and_compl_into): ... here. Adjust. Return changed
	flag.
	(bitmap_union_of_diff): Use renamed bitmap functions.
	* basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
	XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
	* cfgrtl.c (safe_insert_insn_on_edge): Likewise.
	* df.c (df_bb_rd_local_compute)
	* flow.c (calculate_global_regs_live,
	init_propagate_block_info): Likewise.
	* ifcvt.c (find_if_case_1, find_if_case_2,
	dead_or_predicable): Likewise.
	* ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
	reset_conflicts, conflicts_between_webs): Likewise.
	* ra-rewrite.c (reloads_to_loads, rewrite_program2,
	detect_web_parts_to_rebuild): Likewise.
	* sched-ebb.c (compute_jump_reg_dependencies): Likewise.
	* tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
	* tree-sra.c (decide_instantiations): Likewise.
	* tree-ssa-alias.c (create_name_tags,
	merge_pointed_to_info): Likewise.
	* tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
	* tree-ssa-loop-im.c (move_computations): Likewise.
	* tree-ssa-operands.c (get_call_expr_operands): Likewise.
	* tree-ssa-pre.c (fini_pre): Likewise.
	* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
	* tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
	* tree-vectorizer.c (vectorize_loops): Likewise.

From-SVN: r89827
2004-10-29 08:41:10 +00:00
Nathan Sidwell ec7e5618bc typeck.c (composite_pointer_type): Remove comment about DR 195.
cp:
	* typeck.c (composite_pointer_type): Remove comment about DR 195.
	(build_reinterpret_cast_1): Revert DR195 patch. Only emit a
	warning when being pedantic.
	(build_reinterpet_cast, build_c_cast): Adjust.
testsuite:
	* g++.dg/conversion/dr195.C: Adjust expected errors for DR195 not
	being implemented.
	* g++.dg/conversion/dr195-1.C: New.
	* g++.old-deja/g++.brendan/operators4.C: Don't be pedantic.
	* g++.old-deja/g++.mike/p10148.C: Likewise.

From-SVN: r89826
2004-10-29 08:35:49 +00:00
Mark Mitchell 1dc82a999c re PR c++/17695 (ICE in add_abstract_origin_attribute)
PR c++/17695
	* decl.c (grokdeclarator): Mark TYPE_DECLs as abstract when they
	appear in a constructor/destructor that will be cloned.

	PR c++/17695
	* g++.dg/debug/typedef2.C: New test.

From-SVN: r89819
2004-10-29 07:16:50 +00:00
Nick Clifton 07c05acd82 (CONDITIONAL_REGISTER_USAGE): When adding the PIC register to the fixed_regs array...
(CONDITIONAL_REGISTER_USAGE): When adding the PIC register to the fixed_regs
  array, also add it to the call_used_regs array.

From-SVN: r89818
2004-10-29 07:15:10 +00:00
David Billinghurst 056e1c5e2e re PR fortran/13490 (Compiler rejects valid constant -2147483648 for 32-bit int)
2004-10-29  David Billinghurst <David.Billinghurst@riotinto.com>

	PR fortran/13490
	* gfortran.dg/g77/20030326-1.f: Change xfail on error to warning.
	* gfortran.dg/g77/README: Update.

From-SVN: r89806
2004-10-29 04:41:49 +00:00
Eric Botcazou e95dc99b7b gthr-posix.h (__gthread_recursive_mutex_init_function): Guard with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
* gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
	with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.

From-SVN: r89805
2004-10-29 04:23:18 +00:00
Mike Stump d1ea459307 inclhack.def (stdio_va_list): Don't fix if stdarg.h is included or ifdef va_start.
* inclhack.def (stdio_va_list): Don't fix if stdarg.h is
          included or ifdef va_start.

From-SVN: r89803
2004-10-29 02:42:54 +00:00
Daniel Berlin 8618ff5363 tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
2004-10-28  Daniel Berlin  <dberlin@dberlin.org>

	* tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
	(rewrite_blocks): Modify argument, and use it to decide which
	function to call.
	(rewrite_def_def_chains): Call rewrite_blocks with true here.
	(rewrite_into_ssa): and call it with false here.

From-SVN: r89802
2004-10-29 02:13:03 +00:00
Matt Austern f6af9a1527 c++/14124
* decl.c (finish_enum): Handle packed attribute.
* parser.c (cp_parser_enum_specifier): Process trailing attributes.
* g++.dg/ext/packed7.C: New test.

From-SVN: r89801
2004-10-29 00:50:44 +00:00
Kazu Hirata 0f84c36ef4 tree-phinodes.c (add_phi_arg): Turn an "if" that always triggers into gcc_assert.
* tree-phinodes.c (add_phi_arg): Turn an "if" that always
	triggers into gcc_assert.

From-SVN: r89800
2004-10-29 00:48:00 +00:00
GCC Administrator 1a8dfc45ba Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89798.2
2004-10-29 00:16:20 +00:00
GCC Administrator 40a6eb76a1 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89797.2
2004-10-29 00:16:15 +00:00
Andrew Pinski c2e029edd5 revert acidently committed change for gcc.dg/visibility-b.c.
From-SVN: r89794
2004-10-28 16:41:21 -07:00
Andrew Pinski d533f1cb17 visibility-[1-9a].c: Change to use scan-hidden instead of scan-assembler.
2004-10-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/visibility-[1-9a].c: Change to use scan-hidden instead of
        scan-assembler.
        * lib/scanasm.exp (hidden-scan-for): New proc.
        (scan-hidden): Use hidden-scan-for instead of constructing the scan
        string.
        (scan-not-hidden): Likewise.
        * lib/target-supports.exp (check_visibility_available): mach-o is
        support too.

From-SVN: r89793
2004-10-28 16:38:47 -07:00
Diego Novillo de66168d60 re PR tree-optimization/16728 (std::set tests for allocator/insert core in make check-performance)
PR tree-optimization/16728
	* tree-flow.h (get_ptr_info): Declare.
	* tree-ssa-alias.c (get_ptr_info): Make extern.
	* tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
	alias information.

From-SVN: r89792
2004-10-28 19:24:41 -04:00
Stan Shebs 55dbfb488e darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
* config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
        * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
        case.

From-SVN: r89791
2004-10-28 22:32:41 +00:00
Scott Robert Ladd be3a985ea6 Fix for PR fortran/13490, PR fortran/17912
From-SVN: r89790
2004-10-28 22:25:18 +00:00
Mike Stump 31eec874a1 inclhack.def: Avoid changing NULL on C++ friendly systems.
* inclhack.def: Avoid changing NULL on C++ friendly systems.
        * fixincl.x: Regenerate.

From-SVN: r89786
2004-10-28 21:44:31 +00:00
Scott Robert Ladd 14df574739 Added pedantic_min_int to gfc_integer_info Added ARITH_ASYMMETRIC to arith...
Added pedantic_min_int to gfc_integer_info
Added ARITH_ASYMMETRIC to arith
Added support for an "asymmetric integer" warning when compiling with pedantic
Set minimum integer values to reflect realities of two's complement signed integers

From-SVN: r89785
2004-10-28 21:43:46 +00:00
Frank Ch. Eigler 7ec02c04f7 tree-mudflap.c (mudflap_init): Mark cache-lookup decls to prevent their later unnecessary registration.
2004-10-28  Frank Ch. Eigler  <fche@redhat.com>

	* tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
	prevent their later unnecessary registration.
	(mf_build_check_statement_for): Remove "addr" argument, and
	related "__mf_value" generated code.  Update callers.
	(mf_decl_eligible_p): New function, factored from mx_register_decls.
	(mx_register_decls): Call it.
	(mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
	to restore support for complex nested expressions.
	(mudflap_enqueue_decl): Simplify.  Move registration call emission
	out ...
	(mudflap_finish_file): ... to here.
	(mudflap_enqueue_constant): Remove dump code.

From-SVN: r89784
2004-10-28 21:24:33 +00:00
Frank Ch. Eigler 306ae32b68 fail35-,pass53-,pass54-frag.c: New tests.
2004-10-28  Frank Ch. Eigler  <fche@redhat.com>

	* testsuite/libmudflap.c/fail35-,pass53-,pass54-frag.c: New tests.
	* testsuite/libmudflap.c/pass35-frag.c: Correct embedded warning
	message.

From-SVN: r89783
2004-10-28 21:21:59 +00:00
Chris Jefferson a30036b2fd re PR libstdc++/18159 (tr1/tuple is broken on darwin)
2004-10-28  Chris Jefferson  <chris@bubblescope.net>

	PR libstdc++/18159
	* include/tr1/tuple: Fix, change formatting.

From-SVN: r89782
2004-10-28 21:18:56 +00:00
Zack Weinberg 859ee18fb4 re PR debug/18199 (AIX XCOFF debugging broken)
PR 18199
	* dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
	(DBX_FINISH_STABS): Add (unused by default) SYM parameter.
	(dbxout_finish_complex_stabs): Update to match.
	(dbxout_symbol_location): Call emit_pending_bincls_if_required
	and FORCE_TEXT before DBX_STATIC_BLOCK_START.  Use
	dbxout_begin_complex_stabs_noforcetext.
	* xcoffout.h (DBX_FINISH_STABS): Restore special case for
	N_GSYM, using new SYM parameter.  Correct logic for special
	cases for N_FUN.

From-SVN: r89781
2004-10-28 21:00:59 +00:00
Mark Mitchell 883a2bff66 re PR c++/17132 (GCC fails to eliminate function template specialization when argument deduction fails)
PR c++/17132
	* pt.c (instantiate_class_template): Increment
	processing_template_decl when substituting into a member class
	template.

	PR c++/17132
	* g++.dg/template/memclass3.C: New test.

From-SVN: r89778
2004-10-28 20:53:04 +00:00
Zack Weinberg 40aea05cfa varasm.c (function_section): If DECL is NULL_TREE, don't try to do anything else.
* varasm.c (function_section): If DECL is NULL_TREE, don't try
	to do anything else.  Do not call get_insns if cfun or
	cfun->emit are NULL.

From-SVN: r89777
2004-10-28 20:52:42 +00:00
Benjamin Kosnik 6571df13b4 mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type.
2004-10-28  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/mt_allocator.h (__common_pool_policy): Add template
	template parameter for pool class type.
	(__per_type_pool_policy): Same.
	(__mt_allocator): Don't inherit policy. Qualify policy_type calls.
	* testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
	* testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
	* testsuite/ext/mt_allocator/instantiate.cc: Same.
	* testsuite/ext/mt_allocator/tune-1.cc: Same.
	* testsuite/ext/mt_allocator/tune-2.cc: Same.
	* testsuite/ext/mt_allocator/tune-3.cc: Same.
	* testsuite/ext/mt_allocator/tune-4.cc: Same.

From-SVN: r89776
2004-10-28 20:46:08 +00:00
Eric B. Weddington a827e21a71 re PR target/18151 (Disable building of fixincludes for avr target.)
PR target/18151
       * configure.in (case ${target}): Do not build fixincludes for avr.
       * configure: Regenerated.

From-SVN: r89774
2004-10-28 13:48:03 -06:00
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