1. 03 Jul, 2003 26 commits
    • fnptr-by-value-1_main.c: New file. · 0964c98c
      	* gcc.dg/compat/fnptr-by-value-1_main.c: New file.
      	* gcc.dg/compat/fnptr-by-value-1_x.c: New file.
      	* gcc.dg/compat/fnptr-by-value-1_y.c: New file.
      	* gcc.dg/compat/struct-align-1.h: New file.
      	* gcc.dg/compat/struct-align-1_main.c: New file.
      	* gcc.dg/compat/struct-align-1_x.c: New file.
      	* gcc.dg/compat/struct-align-1_y.c: New file.
      	* gcc.dg/compat/struct-align-2.h: New file.
      	* gcc.dg/compat/struct-align-2_main.c: New file.
      	* gcc.dg/compat/struct-align-2_x.c: New file.
      	* gcc.dg/compat/struct-align-2_y.c: New file.
      
      From-SVN: r68901
      Janis Johnson committed
    • sparc.c (function_arg_partial_nregs): Use SPARC_INT_ARG_MAX to determine where… · c3427c7d
      sparc.c (function_arg_partial_nregs): Use SPARC_INT_ARG_MAX to determine where to split unnamed complex FP arguments.
      
      	* config/sparc/sparc.c (function_arg_partial_nregs): Use
      	SPARC_INT_ARG_MAX to determine where to split unnamed
      	complex FP arguments.
      
      From-SVN: r68900
      Eric Botcazou committed
    • basic-block.h (create_basic_block, [...]): Kill. · bc35512f
      	* basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
      	* cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
      	(merge_blocks_move_predecessor_nojumps,
      	 merge_blocks_move_successor_nojumps): Use merge_blocks.
      	(try_optimize_cfg): Use merge_blocks_move.
      	* cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
      	(merge_blocks_nomove): Rename to rtl_merge_blocks.
      	(cfg_layout_create_basic_block): New.
      	(rtl_can_merge_blocks): New.
      	(cfg_layout_split_block): Do not alloc aux by hand.
      	* cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
      	merge_blocks.
      	(create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
      	* cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
      	* cfgloopmanip.c (loop_split_edge_with): Likewise.
      	* ifcvt.c (merge_if_block): Use merge_blocks_nomove.
      
      	* basic-block.h (basic_block_def): Add field 'rbi'.
      	* bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
      	find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
      	* cfg.c (entry_exit_blocks): Add new field.
      	* cfglayout.c: Include alloc-pool.h;
      	(cfg_layout_pool): New.
      	(record_effective_endpoints, fixup_reorder_chain,
      	fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
      	of rbi.
      	(cfg_layout_initialize_rbi): New function.
      	(cfg_layout_initialize): Use it.
      	(cfg_layout_finalize): Clear rbi fields.
      	* cfglayout.h (RBI): Kill.
      	(cfg_layout_initialize_rbi): Declare.
      	* cfgloopmanip.c (copy_bbs): Use rbi.
      	(record_exit_edges): Likewise.
      	(duplicate_loop_to_header_edge): Likewise.
      	* cfgrtl.c (cfg_layout_create_basic_block): Use
      	cfg_layout_initialize_rbi.
      	(cfg_layout_split_block): Use rbi.
      	(cfg_layout_delete_block): Likewise.
      	* loop-init.c (loop_optimizer_finalize): Likewise.
      	* loop-unswitch.c (unswitch_loop): Likewise.
      	* tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
      
      	* cfgrtl.c: Update comments.
      	(try_redirect_by_replacing_jump): New argument.
      	(redirect_branch_edge): Break out from ...
      	(rtl_redirect_edge_and_branch): ... this one.
      	(update_cfg_after_block_merging): Break out from ...
      	(rtl_merge_blocks): ... this one.
      	(cfg_layout_split_edge): New.
      	(cfg_layout_merge_blocks): New.
      	(cfg_layout_can_merge_blocks_p): New.
      	(cfg_layout_redirect_edge_and_branch): Reorganize.
      	(cfg_layout_rtl_cfg_hooks): Fill in.
      	(cfg_layout_delete_block): Kill barriers.
      	* cfganal.c (can_fallthru): Deal with exit blocks
      	* cfglayout.c (cfg_layout_function_header): New function
      	(record_effective_endpoints): Record function header.
      	(fixup_reorder_chain): Fixup dead jumptables; place header
      
      	* basic-block.h (CLEANUP_CFGLAYOUT): New flag.
      	* bb-reorder.c (cfg_layout_initialize): Update call.
      	* cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
      	edges in cfglayout mode.
      	* cfglayout.c (cleanup_unconditional_jumps): Kill.
      	(cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
      	* cfglayout.h (cfg_layout_initialize): Update prototype.
      	* cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
      	* cfgloopmanip.c (loop_split_edge_with): Use split_edge.
      	* flow.c (propagate_block): Do not crash when basic block ends
      	by first insn in the chain.
      	* loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
      	do loop discovery.
      	* tracer.c (tracer): Update call of cfg_layout_initialize.
      
      From-SVN: r68899
      Jan Hubicka committed
    • compat-common.h (DEBUG_FINI): New. · 9b269fc7
      	* gcc.dg/compat/compat-common.h (DEBUG_FINI): New.
      	* gcc.dg/compat/scalar-by-value-1_x.c: Use it.
      	* gcc.dg/compat/scalar-by-value-2_x.c: Ditto.
      	* gcc.dg/compat/scalar-by-value-3_x.c: Ditto.
      	* gcc.dg/compat/scalar-by-value-4_x.c: Ditto.
      	* gcc.dg/compat/scalar-return-1_x.c: Ditto.
      	* gcc.dg/compat/scalar-return-2_x.c: Ditto.
      	* gcc.dg/compat/scalar-return-3_x.c: Ditto.
      	* gcc.dg/compat/scalar-return-4_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-10_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-11_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-12_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-13_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-14_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-15_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-16_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-17_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-18_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-2_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-3_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-4_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-5_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-6_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-7_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-8_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-9_x.c: Ditto.
      	* gcc.dg/compat/struct-return-10_x.c: Ditto.
      	* gcc.dg/compat/struct-return-2_x.c: Ditto.
      	* gcc.dg/compat/struct-return-3_x.c: Ditto.
      
      From-SVN: r68898
      Janis Johnson committed
    • Makefile.in: Use dependency variables in lieu of explicit files throughout. · dd220c49
      	* Makefile.in: Use dependency variables in lieu of explicit
      	files throughout.
      
      From-SVN: r68896
      Kaveh R. Ghazi committed
    • call.c (build_scoped_method_call): Use convert_to_void. · 8d245821
      	* call.c (build_scoped_method_call): Use convert_to_void.
      	(build_method_call): Likewise.
      	* class.c (check_field_decls): Remove dead code.
      	* cvt.c (convert_from_reference): Remove OFFSET_TYPE handling.
      	* decl2.c (grok_array_decl): Remove dead code.
      	(arg_assoc_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE
      	as pointer-to-member representation.
      	* init.c (build_offset_ref): Tidy.
      	(build_vec_delete_1): Use convert_to_void.
      	* mangle.c (write_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE
      	as pointer-to-member representation.
      
      From-SVN: r68895
      Mark Mitchell committed
    • * gcc.dg/i386-call-1.c: New test. · ee41cff4
      From-SVN: r68892
      Eric Botcazou committed
    • rtl.h (ECF_*, [...]): Move from here... · fa5b060f
      2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
      	* tree.h: ...to here.
      
      From-SVN: r68890
      Steven Bosscher committed
    • 2064.md: Fix comment typos. · fae778eb
      	* config/s390/2064.md: Fix comment typos.
      	* config/s390/2084.md: Likewise.
      	* config/s390/s390.c: Likewise.
      	* config/s390/s390.md: Likewise.
      	* config/sh/sh.c: Likewise.
      	* config/sh/sh.h: Likewise.
      	* config/sh/sh.md: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/sparc/sparc.h: Likewise.
      	* config/sparc/sparc.md: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/stormy16/stormy16.h: Likewise.
      	* config/stormy16/stormy-abi: Fix a typo.
      
      From-SVN: r68887
      Kazu Hirata committed
    • re PR c++/9162 ([New parser] Problem with default argument in a friend function) · 8db1028e
      cp:
      	PR c++/9162
      	* decl.c (grokdeclarator): Return friend decls, not
      	void_type_node.
      	* decl2.c (grokfield): Alter friend decl check.
      	* parser.c (struct cp_parser): Document default_arg chain on
      	unparsed_functions_queue.
      	(cp_parser_save_default_args): New.
      	(cp_parser_init_declarator, cp_parser_function_definition,
      	cp_parser_member_declaration): Call it.
      	(cp_parser_class_specifier): Remove unused variable. Alter
      	processing of unparsed_functions_queue.
      testsuite:
      	PR c++/9162
      	* g++.dg/parse/defarg4.C: New.
      
      From-SVN: r68886
      Nathan Sidwell committed
    • Makefile.in (ifcvt.o): Depend on OPTABS_H. · 58eabcb1
      2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
      
              * Makefile.in (ifcvt.o): Depend on OPTABS_H.
      
      From-SVN: r68885
      Kelley Cook committed
    • 7.cc: Guard with _GLIBCPP_USE_WCHAR_T. · 304d79dc
              * testsuite/22_locale/num_put/put/char/7.cc: Guard with
              _GLIBCPP_USE_WCHAR_T.
      
      From-SVN: r68883
      David Edelsohn committed
    • * config/mips/mips.h (save_argv): Delete. · af261903
      From-SVN: r68882
      Kaveh R. Ghazi committed
    • class.c (add_method, [...]): Fix format specifier. · 04d6ccbd
      	* class.c (add_method, check_field_decl): Fix format specifier.
      	* decl.c (duplicate_decls, pushdecl, check_goto,
      	fixup_anonymous_aggr, maybe_commonize_var, grokdeclarator,
      	start_enum): Likewise.
      	* decl2.c (ambiguous_decl): Likewise.
      	* pt.c (redeclare_class_template): Likewise.
      
      From-SVN: r68878
      Kaveh R. Ghazi committed
    • re PR target/10700 (ICE in copy_to_mode_reg on 64-bit targets) · a11c61d2
      
      	PR target/10700
      	* fold-const.c (extract_muldiv_1): There's nothing that can be done
      	if the expression is a SAVE_EXPR.
      
      	* gcc.c-torture/compile/20030703-1.c: New test case.
      
      From-SVN: r68877
      Roger Sayle committed
    • m32r.c: Fix comment typos. · dab66575
      	* config/m32r/m32r.c: Fix comment typos.
      	* config/m68hc11/m68hc11.c: Likewise.
      	* config/m68hc11/m68hc11.h: Likewise.
      	* config/m68k/m68k.c: Likewise.
      	* config/mcore/mcore.c: Likewise.
      	* config/mcore/mcore.h: Likewise.
      	* config/mcore/mcore.md: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/mips/mips.h: Likewise.
      	* config/mips/mips.md: Likewise.
      	* config/mips/netbsd.h: Likewise.
      	* config/mn10300/mn10300.c: Likewise.
      
      From-SVN: r68876
      Kazu Hirata committed
    • dbxout.c (pending_bincls): Move decl down inside DBX_DEBUGGING_INFO ||… · 8837d828
      dbxout.c (pending_bincls): Move decl down inside DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
      
      	* dbxout.c (pending_bincls): Move decl down inside
      	DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
      
      From-SVN: r68875
      Andreas Schwab committed
    • rtl.h (NOTE_DATA): Refer to whole union. · dd107e66
      	* rtl.h (NOTE_DATA): Refer to whole union.
      	* emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
      
      From-SVN: r68874
      Nathan Sidwell committed
    • * g++.dg/template/local3.C: Remove extra semicolon. · 06114438
      From-SVN: r68872
      Mark Mitchell committed
    • re PR rtl-optimization/11381 (volatile memory access optimized away) · 8821d091
      	PR optimization/11381
      	* simplify-rtx.c (simplify_relational_operation): Check that
      	two equal operands have no side-effects before simplifying
      	the comparison.
      
      From-SVN: r68869
      Eric Botcazou committed
    • expr.c (do_store_flag): Remove special case folding for single bit tests. · 7960bf22
      	* expr.c (do_store_flag): Remove special case folding for
      	single bit tests.  Instead call back into the commonized folder
      	routine.
      	* fold-const.c (fold_single_bit_test): New function, mostly
      	extracted from do_store_flag, with an additional case extracted
      	from fold.
      	(fold): Call fold_single_bit_test appropriately.
      	* tree.h (fold_single_bit_test): Prototype.
      
      From-SVN: r68867
      Jeff Law committed
    • * misc.c (save_argv): Make const. · b9add449
      From-SVN: r68866
      Neil Booth committed
    • gcse.c: Fix misspelling. · 0e8a66de
      	* gcse.c: Fix misspelling.
      	* line-map.c: Likewise.
      	* config/dsp16xx/dsp16xx.h: Likewise.
      
      From-SVN: r68865
      Matt Kraai committed
    • system.h: Include filenames.h. · 3dce1408
      	* system.h: Include filenames.h.
      	(IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
      	(DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
      	define based on HAVE_DOS_BASED_FILE_SYSTEM.
      	* config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
      	* config/i386/xm-mingw32.h: Don't define
      	HAVE_DOS_BASED_FILE_SYSTEM,
      	DIR_SEPARATOR, or DIR_SEPARATOR_2.
      	* doc/hostconfig.texi: Update to match.
      
      	* cppfiles.c, gcc.c, gensupport.c, protoize.c,
      	config/i386/cygwin.h:
      	Use IS_ABSOLUTE_PATH throughout.
      	* gcc.c (DIR_UP): Delete, unused.
      	* protoize.c (IS_SAME_PATH): Define in terms of
      	FILENAME_CMP.
      	(is_abspath): Delete.
      java:
      	* jcf-path.c: Don't default-define PATH_SEPARATOR nor
      	DIR_SEPARATOR.
      	Use FILENAME_CMP.
      	* jcf-write.c: Don't default-define DIR_SEPARATOR.
      	* jcf.h: Delete COMPARE_FILENAMES definition.
      
      From-SVN: r68863
      Zack Weinberg committed
    • pex-win32.c (fix_argv): Ensure that the executable pathname uses Win32 backslashes. · bacb96b2
      2003-07-02  Danny Smith  <dannysmith@users.source.forge.net>
      
      	* pex-win32.c (fix_argv): Ensure that the executable pathname
      	uses Win32 backslashes.
      	(pexecute): Cast away constness when assigning *errmsg_arg.
      
      From-SVN: r68862
      Danny Smith committed
    • Daily bump. · cac4a1a5
      From-SVN: r68860
      GCC Administrator committed
  2. 02 Jul, 2003 14 commits