gcc.git
21 years agocfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies at all if edge is...
Zdenek Dvorak [Thu, 3 Jul 2003 23:50:05 +0000 (01:50 +0200)]
cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies at all if edge is not specified.

* cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
at all if edge is not specified.
(can_copy_bbs_p, copy_bbs): New.
* cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
* cfgloop.c (get_loop_body): Comment more precisely.
* cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
(scale_bbs_frequencies): Fix comment typo.
(can_duplicate_loop_p): Use can_copy_bbs_p.
(duplicate_loop_to_header_edge): Simplify by using copy_bbs.

From-SVN: r68906

21 years ago2003-7-03 Devang Patel <dpatel@apple.com>
Devang Patel [Thu, 3 Jul 2003 23:17:53 +0000 (16:17 -0700)]
2003-7-03  Devang Patel <dpatel@apple.com>

        * c-opts.c (c_common_parse_file): Remove extra
        debug_hooks->start_source_file call.

From-SVN: r68905

21 years agomisc.c (gnat_argv): Revert last change.
Matt Kraai [Thu, 3 Jul 2003 21:49:54 +0000 (21:49 +0000)]
misc.c (gnat_argv): Revert last change.

* misc.c (gnat_argv): Revert last change.
(gnat_handle_option, gnat_init_options): Copy arguments.

From-SVN: r68904

21 years agoreal.c (real_trunc, [...]): New functions to implement trunc, floor and ceil respecti...
Roger Sayle [Thu, 3 Jul 2003 21:38:55 +0000 (21:38 +0000)]
real.c (real_trunc, [...]): New functions to implement trunc, floor and ceil respectively.

* real.c (real_trunc, real_floor, real_ceil): New functions
to implement trunc, floor and ceil respectively.
* real.h (real_trunc, real_floor, real_ceil): Prototype here.
* builtins.c (integer_valued_real_p): New function to test if
a floating point expression has an integer valued result.
(fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
foo(x) where foo is an integer rounding function.  Similarly,
optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
(double)(int)x when both foo and bar are integer rounding
functions and we don't need to honor errno.
(fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
New functions to fold trunc, floor and ceil.
(fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
to fold BUILT_IN_CEIL*.
* fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
the remaining integer rounding functions.

* gcc.dg/builtins-25.c: New testcase.
* gcc.dg/builtins-26.c: New testcase.

From-SVN: r68903

21 years agovector-defs.h: New file.
Janis Johnson [Thu, 3 Jul 2003 20:37:42 +0000 (20:37 +0000)]
vector-defs.h: New file.

* gcc.dg/compat/vector-defs.h: New file.
* gcc.dg/compat/vector-setup.h: New file.
* gcc.dg/compat/vector-check.h: New file.
* gcc.dg/compat/vector-1_main.c: New file.
* gcc.dg/compat/vector-1_x.c: New file.
* gcc.dg/compat/vector-1_y.c: New file.
* gcc.dg/compat/vector-2_main.c: New file.
* gcc.dg/compat/vector-2_x.c: New file.
* gcc.dg/compat/vector-2_y.c: New file.

From-SVN: r68902

21 years agofnptr-by-value-1_main.c: New file.
Janis Johnson [Thu, 3 Jul 2003 20:15:48 +0000 (20:15 +0000)]
fnptr-by-value-1_main.c: New file.

* 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

21 years agosparc.c (function_arg_partial_nregs): Use SPARC_INT_ARG_MAX to determine where to...
Eric Botcazou [Thu, 3 Jul 2003 18:49:50 +0000 (20:49 +0200)]
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

21 years agobasic-block.h (create_basic_block, [...]): Kill.
Jan Hubicka [Thu, 3 Jul 2003 18:40:29 +0000 (20:40 +0200)]
basic-block.h (create_basic_block, [...]): Kill.

* 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

21 years agocompat-common.h (DEBUG_FINI): New.
Janis Johnson [Thu, 3 Jul 2003 18:31:59 +0000 (18:31 +0000)]
compat-common.h (DEBUG_FINI): New.

* 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

21 years agoMakefile.in: Use dependency variables in lieu of explicit files throughout.
Kaveh R. Ghazi [Thu, 3 Jul 2003 18:22:27 +0000 (18:22 +0000)]
Makefile.in: Use dependency variables in lieu of explicit files throughout.

* Makefile.in: Use dependency variables in lieu of explicit
files throughout.

From-SVN: r68896

21 years agocall.c (build_scoped_method_call): Use convert_to_void.
Mark Mitchell [Thu, 3 Jul 2003 18:13:44 +0000 (18:13 +0000)]
call.c (build_scoped_method_call): Use convert_to_void.

* 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

21 years ago* gcc.dg/i386-call-1.c: New test.
Eric Botcazou [Thu, 3 Jul 2003 17:57:45 +0000 (19:57 +0200)]
* gcc.dg/i386-call-1.c: New test.

From-SVN: r68892

21 years agortl.h (ECF_*, [...]): Move from here...
Steven Bosscher [Thu, 3 Jul 2003 17:03:21 +0000 (17:03 +0000)]
rtl.h (ECF_*, [...]): Move from here...

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

21 years ago2064.md: Fix comment typos.
Kazu Hirata [Thu, 3 Jul 2003 16:25:52 +0000 (16:25 +0000)]
2064.md: Fix comment typos.

* 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

21 years agore PR c++/9162 ([New parser] Problem with default argument in a friend function)
Nathan Sidwell [Thu, 3 Jul 2003 16:10:52 +0000 (16:10 +0000)]
re PR c++/9162 ([New parser] Problem with default argument in a friend function)

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

21 years agoMakefile.in (ifcvt.o): Depend on OPTABS_H.
Kelley Cook [Thu, 3 Jul 2003 15:11:05 +0000 (15:11 +0000)]
Makefile.in (ifcvt.o): Depend on OPTABS_H.

2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>

        * Makefile.in (ifcvt.o): Depend on OPTABS_H.

From-SVN: r68885

21 years ago7.cc: Guard with _GLIBCPP_USE_WCHAR_T.
David Edelsohn [Thu, 3 Jul 2003 14:20:29 +0000 (14:20 +0000)]
7.cc: Guard with _GLIBCPP_USE_WCHAR_T.

        * testsuite/22_locale/num_put/put/char/7.cc: Guard with
        _GLIBCPP_USE_WCHAR_T.

From-SVN: r68883

21 years ago* config/mips/mips.h (save_argv): Delete.
Kaveh R. Ghazi [Thu, 3 Jul 2003 13:24:04 +0000 (13:24 +0000)]
* config/mips/mips.h (save_argv): Delete.

From-SVN: r68882

21 years agoclass.c (add_method, [...]): Fix format specifier.
Kaveh R. Ghazi [Thu, 3 Jul 2003 13:16:01 +0000 (13:16 +0000)]
class.c (add_method, [...]): Fix format specifier.

* 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

21 years agore PR target/10700 (ICE in copy_to_mode_reg on 64-bit targets)
Roger Sayle [Thu, 3 Jul 2003 13:08:10 +0000 (13:08 +0000)]
re PR target/10700 (ICE in copy_to_mode_reg on 64-bit targets)

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

21 years agom32r.c: Fix comment typos.
Kazu Hirata [Thu, 3 Jul 2003 12:34:09 +0000 (12:34 +0000)]
m32r.c: Fix comment typos.

* 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

21 years agodbxout.c (pending_bincls): Move decl down inside DBX_DEBUGGING_INFO || XCOFF_DEBUGGIN...
Andreas Schwab [Thu, 3 Jul 2003 10:18:18 +0000 (10:18 +0000)]
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

21 years agortl.h (NOTE_DATA): Refer to whole union.
Nathan Sidwell [Thu, 3 Jul 2003 09:52:26 +0000 (09:52 +0000)]
rtl.h (NOTE_DATA): Refer to whole union.

* rtl.h (NOTE_DATA): Refer to whole union.
* emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.

From-SVN: r68874

21 years ago* g++.dg/template/local3.C: Remove extra semicolon.
Mark Mitchell [Thu, 3 Jul 2003 08:10:54 +0000 (08:10 +0000)]
* g++.dg/template/local3.C: Remove extra semicolon.

From-SVN: r68872

21 years agore PR rtl-optimization/11381 (volatile memory access optimized away)
Eric Botcazou [Thu, 3 Jul 2003 07:30:03 +0000 (09:30 +0200)]
re PR rtl-optimization/11381 (volatile memory access optimized away)

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

21 years agoexpr.c (do_store_flag): Remove special case folding for single bit tests.
Jeff Law [Thu, 3 Jul 2003 05:42:57 +0000 (23:42 -0600)]
expr.c (do_store_flag): Remove special case folding for single bit tests.

* 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

21 years ago* misc.c (save_argv): Make const.
Neil Booth [Thu, 3 Jul 2003 05:37:36 +0000 (05:37 +0000)]
* misc.c (save_argv): Make const.

From-SVN: r68866

21 years agogcse.c: Fix misspelling.
Matt Kraai [Thu, 3 Jul 2003 05:26:31 +0000 (05:26 +0000)]
gcse.c: Fix misspelling.

* gcse.c: Fix misspelling.
* line-map.c: Likewise.
* config/dsp16xx/dsp16xx.h: Likewise.

From-SVN: r68865

21 years agosystem.h: Include filenames.h.
Zack Weinberg [Thu, 3 Jul 2003 04:24:01 +0000 (04:24 +0000)]
system.h: Include filenames.h.

* 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

21 years agopex-win32.c (fix_argv): Ensure that the executable pathname uses Win32 backslashes.
Danny Smith [Thu, 3 Jul 2003 04:21:13 +0000 (04:21 +0000)]
pex-win32.c (fix_argv): Ensure that the executable pathname uses Win32 backslashes.

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

21 years agoDaily bump.
GCC Administrator [Thu, 3 Jul 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r68860

21 years agoemmintrin.h: Fix comment typos.
Kazu Hirata [Wed, 2 Jul 2003 21:33:54 +0000 (21:33 +0000)]
emmintrin.h: Fix comment typos.

* config/i386/emmintrin.h: Fix comment typos.
* config/i386/i386.c: Likewise.
* config/i386/i386.h: Likewise.
* config/i386/sco5.h: Likewise.
* config/ia64/ia64.c: Likewise.
* config/ia64/itanium2.md: Likewise.

From-SVN: r68857

21 years agoFix a typo.
Wolfgang Bangerth [Wed, 2 Jul 2003 21:32:58 +0000 (15:32 -0600)]
Fix a typo.

From-SVN: r68856

21 years agodbxout.c (pending_bincls): Replace DBX_USE_BINCLS with DBX_USE_BINCL.
H.J. Lu [Wed, 2 Jul 2003 21:28:03 +0000 (21:28 +0000)]
dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with DBX_USE_BINCL.

2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>

* dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
DBX_USE_BINCL.
(emit_bincl_stab): Same.
(emit_pending_bincls): Same.

From-SVN: r68855

21 years agoh8300.c (compute_mov_length): Fix the length of loading CONST0_RTX (SFmode).
Kazu Hirata [Wed, 2 Jul 2003 20:48:04 +0000 (20:48 +0000)]
h8300.c (compute_mov_length): Fix the length of loading CONST0_RTX (SFmode).

* config/h8300/h8300.c (compute_mov_length): Fix the length of
loading CONST0_RTX (SFmode).
* config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
'G' to CONST0_RTX (SFmode).
* config/h8300/h8300.md (movsf_h8300): Change the first
constraint to 'G'.
(movsf_h8300h): Likewise.

From-SVN: r68854

21 years ago* misc.c (save_argc, save_argv): Keep non-static!
Neil Booth [Wed, 2 Jul 2003 20:40:41 +0000 (20:40 +0000)]
* misc.c (save_argc, save_argv): Keep non-static!

From-SVN: r68853

21 years ago* Make-lang.in: Use C_COMMON_H
Neil Booth [Wed, 2 Jul 2003 20:29:06 +0000 (20:29 +0000)]
* Make-lang.in: Use C_COMMON_H

From-SVN: r68852

21 years agoc-common.h (c_common_init_options): New prototype.
Neil Booth [Wed, 2 Jul 2003 20:15:46 +0000 (20:15 +0000)]
c-common.h (c_common_init_options): New prototype.

* c-common.h (c_common_init_options): New prototype.
* c-opts.c (deferred_size): Remove.
(defer_opt): Array is now pre-allocated.
(c_common_init_options): Pre-allocate deferred_opts.  Make
lang_flags unsigned.
(push_command_line_options): Free deferred_opts.
* hooks.c (hook_uint_uint_constcharptrptr_0): New.
* hooks.h (hook_uint_uint_constcharptrptr_0): New.
* langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
* langhooks.h (struct lang_hooks): New prototype for init_options.
* main.c (main): Cast argv.
* opts.c (handle_option, handle_options): Update prototypes.
(decode_options): save_argc, save_argv are not global.  Constify.
* opts.h (decode_options): New prototype.
* toplev.c (general_init): New protoype.
(save_argv): Make static.
(save_argc): Remove.
(print_switch_values, general_init): Constify.
(toplev_main): Save argv.
* toplev.h (toplev_main): Update prototype.
(save_argc, save_argv): Remove.
ada:
* misc.c (save_argc, save_argv): Make static.
(gnat_init_options): New prototype.
(gnat_init_options): Update.
f:
* top.c (ffe_init_options): Update prototype.
* top.h (ffe_init_options): Update prototype.
java:
* lang.c (java_init_options): Update prototype.
treelang:
* tree1.c (treelang_init_options): Update prototype.
* treelang.h (treelang_init_options): Update prototype.

From-SVN: r68850

21 years agobasic_string.tcc (_M_replace_aux): Constify __n1 and __off1.
Paolo Carlini [Wed, 2 Jul 2003 19:36:40 +0000 (21:36 +0200)]
basic_string.tcc (_M_replace_aux): Constify __n1 and __off1.

2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.tcc (_M_replace_aux): Constify
__n1 and __off1.

From-SVN: r68849

21 years agodbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
David Edelsohn [Wed, 2 Jul 2003 17:50:37 +0000 (17:50 +0000)]
dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.

        * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
        (emit_bincl_stab): Same.
        (emit_pending_bincls): Same.

From-SVN: r68848

21 years agore PR fastjar/9532 (jar -C flag is incompatible with Sun's (fastjar uses nonportable...
Nathanael Nerode [Wed, 2 Jul 2003 17:20:54 +0000 (17:20 +0000)]
re PR fastjar/9532 (jar -C flag is incompatible with Sun's (fastjar uses nonportable feature of getcwd))

PR java/9532
* jartool.c (add_to_jar): Return 1 on failure to open file.
Split out -C case to:
* jartool.c (add_to_jar_with_dir): New function.

From-SVN: r68847

21 years agore PR c++/11072 (Implementation of offsetof macro)
Nathan Sidwell [Wed, 2 Jul 2003 14:30:53 +0000 (14:30 +0000)]
re PR c++/11072 (Implementation of offsetof macro)

PR c++/11072
* ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
testsuite:
PR c++/11072
* g++.dg/other/offsetof2.C: XFAIL.
* g++.dg/other/offsetof5.C: New.

From-SVN: r68831

21 years ago* dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
Andreas Schwab [Wed, 2 Jul 2003 11:40:12 +0000 (11:40 +0000)]
* dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.

From-SVN: r68829

21 years agostl_bvector.h: Fully qualify standard functions with std::, thus avoiding Koenig...
Paolo Carlini [Wed, 2 Jul 2003 10:37:33 +0000 (12:37 +0200)]
stl_bvector.h: Fully qualify standard functions with std::, thus avoiding Koenig lookup.

2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/stl_bvector.h: Fully qualify standard
functions with std::, thus avoiding Koenig lookup.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.

From-SVN: r68828

21 years ago7.cc: Include <testsuite_hooks.h>, tweak.
Paolo Carlini [Wed, 2 Jul 2003 10:35:14 +0000 (12:35 +0200)]
7.cc: Include <testsuite_hooks.h>, tweak.

2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/22_locale/num_put/put/char/7.cc: Include
<testsuite_hooks.h>, tweak.
* testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.

From-SVN: r68827

21 years agoActually remove iris[34].h.
Rainer Orth [Wed, 2 Jul 2003 10:30:50 +0000 (10:30 +0000)]
Actually remove iris[34].h.

From-SVN: r68826

21 years agore PR c++/10219 (ICE in maybe_adjust_types_for_deduction on invalid code)
Nathan Sidwell [Wed, 2 Jul 2003 09:41:52 +0000 (09:41 +0000)]
re PR c++/10219 (ICE in maybe_adjust_types_for_deduction on invalid code)

cp:
PR c++/10219
* pt.c (type_unification_real): Don't unify exprs of error type.
* tree.c (error_type): Don't die on error_type.
testsuite:
PR c++/10219
* g++.dg/template/error1.C: New.

From-SVN: r68825

21 years agore PR c++/9779 (ICE in type_unknown_p when casting in static member)
Nathan Sidwell [Wed, 2 Jul 2003 09:36:20 +0000 (09:36 +0000)]
re PR c++/9779 (ICE in type_unknown_p when casting in static member)

cp:
PR c++/9779
* decl2.c (arg_assoc_class): Don't die on NULL type.
* typeck.c (type_unknown_p): Don't die on untyped expressions.
testsuite:
PR c++/9779
* g++.dg/template/dependent-expr1.C: New.

From-SVN: r68824

21 years agore PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed...
Eric Botcazou [Wed, 2 Jul 2003 07:41:07 +0000 (09:41 +0200)]
re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed to unsigned char)

PR optimization/11210
* expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
about the behaviour with regard to bitfields.
* fold-const (decode_field_reference): Record outermost type in
case the expression is a NOP. Strip all NOPs. Set the signedness
to that of the outermost type (if any) when the bitsize is equal
to the size of the type.

From-SVN: r68823

21 years agomips.md (addsi3): Remove workaround for adds of -32768.
Richard Sandiford [Wed, 2 Jul 2003 07:36:04 +0000 (07:36 +0000)]
mips.md (addsi3): Remove workaround for adds of -32768.

* config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
(addsi3_internal, adddi3, adddi3_internal_2): Likewise.
(adddi3_internal_3, addsi3_internal_2): Likewise.

From-SVN: r68822

21 years agomips.c (machine_function): Add new fields: ignore_hazard_length_p and all_noreorder_p.
Richard Sandiford [Wed, 2 Jul 2003 07:34:27 +0000 (07:34 +0000)]
mips.c (machine_function): Add new fields: ignore_hazard_length_p and all_noreorder_p.

* config/mips/mips.c (machine_function): Add new fields:
ignore_hazard_length_p and all_noreorder_p.
(mips_flag_delayed_branch): New variable.
(override_options): Treat '/' as an operand punctuation character.
Set up mips_flag_delayed_branch.
(print_operand): Handle '/'.
(mips_output_function_prologue): Put the whole function in
.set noreorder and .set nomacro if all_noreorder_p is true.
(mips_output_function_epilogue): End the noreorder/nomacro sequence.
(mips16_optimize_gp): Remove "first insn" parameter.
(mips16_lay_out_constants): New function, split out from mips_reorg.
(mips_avoid_hazard, mips_avoid_hazards): New functions.
(mips_reorg): For mips16 code, call mips16_lay_out_constant
and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
do delayed-branch scheduling followed by hazard detection.
(mips_adjust_insn_length): Only account for hazards if
!ignore_hazard_length_p.
(mips_output_load_label): Add a nop to the o32 sequence if
the target suffers from load delays.
(mips_output_conditional_branch): Add %/ to the end of branches.
(mips_output_division): Fill the branch delay slot with %#.
* config/mips/mips.md: Remove redundant '%*' from mips16 branch
instructions.  End all other %* branches with %/.
(ffssi2, ffsdi2): Fix lengths.
(truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
(fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
(fix_truncsfsi2_macro): Likewise.
(mov_lwl): Set hazard to "none".
(ashldi3_internal): Fill the branch delay slot with %#.
(ashrdi3_internal, lshrdi3_internal): Likewise.
(exception_receiver): Explicitly set $28.
(hazard_nop): New pattern.

From-SVN: r68821

21 years agocgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_in...
Jan Hubicka [Wed, 2 Jul 2003 06:14:50 +0000 (08:14 +0200)]
cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_inlinable_function_p.

* cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
before calling tree_inlinable_function_p.

From-SVN: r68819

21 years agore PR c++/6949 (ICE in tsubst_decl, at cp/pt.c:5733)
Mark Mitchell [Wed, 2 Jul 2003 04:11:30 +0000 (04:11 +0000)]
re PR c++/6949 (ICE in tsubst_decl, at cp/pt.c:5733)

PR c++/6949
* decl2.c (grokfield): Create TEMPLATE_DECLs for methods in local
classes.

PR c++/6949
* g++.dg/template/local3.C: New test.

From-SVN: r68818

21 years agoMakefile.am (AM_MAKEFLAGS): Set to -j1 (affects check* targets, but not libs/programs).
Phil Edwards [Wed, 2 Jul 2003 01:40:59 +0000 (01:40 +0000)]
Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects check* targets, but not libs/programs).

2003-07-01  Phil Edwards  <pme@gcc.gnu.org>

* testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
check* targets, but not libs/programs).
* testsuite/Makefile.in:  Regenerate.

From-SVN: r68813

21 years agoinclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> too.
Rainer Orth [Wed, 2 Jul 2003 01:30:10 +0000 (01:30 +0000)]
inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> too.

* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
<internal/stdio_core.h> too.
(stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
<internal/wchar_core.h> too.
Substitute va_list uses in inline definition.
* fixinc/fixincl.x: Regenerate.

From-SVN: r68811

21 years ago* error.c (locate_error): %P takes an `int', not a `tree'.
Kaveh R. Ghazi [Wed, 2 Jul 2003 01:11:21 +0000 (01:11 +0000)]
* error.c (locate_error): %P takes an `int', not a `tree'.

From-SVN: r68809

21 years agoiris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
Rainer Orth [Wed, 2 Jul 2003 00:21:56 +0000 (00:21 +0000)]
iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.

* config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
Undef before redefinition.
(LABEL_AFTER_LOC): Likewise.
(DEFAULT_SIGNED_CHAR): Likewise.
(ASM_OUTPUT_ASCII): Moved here from iris4.h.
Fix IRIX spelling.

* config/mips/iris3.h: Remove, unused.
* config/mips/iris4.h: Likewise.

* config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.

* config/mips/iris5.h (TARGET_DEFAULT): Move ...
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
target_cpu_default.

* config/mips/iris5.h: Move explicit includes ...
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.

* config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
tm_defines.

* config/mips/iris6.h (TARGET_DEFAULT): Move ...
* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
target_cpu_default.

* config/mips/iris6.h: Fix IRIX spelling.
(MULTILIB_DEFAULTS): Undef before redefinition.

* config/mips/iris6.h: Move explicit includes ...
* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.

From-SVN: r68808

21 years agocgraph.c (cgraph_mark_needed_node, [...]): Use next_needed field instead of aux to...
Jan Hubicka [Wed, 2 Jul 2003 00:17:38 +0000 (02:17 +0200)]
cgraph.c (cgraph_mark_needed_node, [...]): Use next_needed field instead of aux to maintain the queue.

* cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
Use next_needed field instead of aux to maintain the queue.
* cgraph.h (cgraph_node): Add next_needed.
(cgraph_varpool_node): Add next_needed; remove aux.
* cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.

From-SVN: r68807

21 years agoDaily bump.
GCC Administrator [Wed, 2 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r68805

21 years agocgraphunit.c (cgraph_finalize_function): Set finalized.
Jan Hubicka [Wed, 2 Jul 2003 00:14:44 +0000 (02:14 +0200)]
cgraphunit.c (cgraph_finalize_function): Set finalized.

* cgraphunit.c (cgraph_finalize_function): Set finalized.
(cgraph_finalize_function): Do not examine inlinablility.
(cgraph_finalize_compilation_unit): Do it here.
* cgraph.h (cgraph_local_info): Add finalized field.

From-SVN: r68803

21 years agoggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
Rainer Orth [Wed, 2 Jul 2003 00:12:23 +0000 (00:12 +0000)]
ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.

* ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
(gt_pch_restore): Likewise.

From-SVN: r68802

21 years agodecl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
Jan Hubicka [Wed, 2 Jul 2003 00:12:10 +0000 (02:12 +0200)]
decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.

* decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
(finish-file): Do not process function with DECL_DEFER_OUTPUT clear;
clear DECL_DEFER_OUTPUT once function is processed; avoid flags
massaging.

* cp-tree.h (DECL_NEEDED_P): Support unit-at-a-time
(expand_or_defer_fn): Declare.
(lower_function): Declare.
* decl.c (start_cleanup_fn): Use expand_or_defer_fn.
* decl2.c: Include cgraph.h and varpool.h
(maybe_emit_vtables):  Make explicit instantations as needed.
(mark_member_pointers, lower_function): New functions.
(finish_file): Do unit-at-a-time.
* method.c (synthesize_method): Use expand_or_defer_fn.
* optimize.c (maybe_clone_body): Use expand_or_defer_fn.
* parser.c (cp_parser_function_definition_after_decl): Use
expand_or_defer_fn.
* pt.c (instantiate_decl): Likewise.
* semantics.c: Include cgraph.h
(expand_or_defer_fn): Break out from ...
(expand_body): ... here; deal with unit-at-a-time.
* cp-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Define.

From-SVN: r68801

21 years agoalpha.c: Fix comment typos.
Kazu Hirata [Tue, 1 Jul 2003 23:26:43 +0000 (23:26 +0000)]
alpha.c: Fix comment typos.

* config/alpha/alpha.c: Fix comment typos.
* config/alpha/elf.h: Likewise.
* config/arm/arm.c: Likewise.
* config/arm/arm.h: Likewise.
* config/arm/arm.md: Likewise.
* config/arm/t-arm-coff: Likewise.
* config/arm/t-strongarm-pe: Likewise.
* config/arm/xscale-elf.h: Likewise.
* config/avr/avr.h: Likewise.

From-SVN: r68800

21 years agoMake-lang.in: Update.
Neil Booth [Tue, 1 Jul 2003 21:25:52 +0000 (21:25 +0000)]
Make-lang.in: Update.

treelang:
* Make-lang.in: Update.
* tree1.c: Include c-common.h.  Define c_language.

From-SVN: r68796

21 years agoacinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
Roger Sayle [Tue, 1 Jul 2003 21:09:11 +0000 (21:09 +0000)]
acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.

2003-07-01  Roger Sayle  <roger@eyesopen.com>

* acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
(GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.

From-SVN: r68793

21 years agoacinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
Benjamin Kosnik [Tue, 1 Jul 2003 20:55:19 +0000 (20:55 +0000)]
acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.

2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>

* acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
* aclocal.m4: Regenerated.
* configure: Regenerated.

From-SVN: r68792

21 years ago* filenames.h: New file imported from binutils.
Zack Weinberg [Tue, 1 Jul 2003 20:29:16 +0000 (20:29 +0000)]
* filenames.h: New file imported from binutils.

From-SVN: r68791

21 years ago* stmt.c (any_pending_cleanups): Further simplification.
Jeff Law [Tue, 1 Jul 2003 19:45:30 +0000 (13:45 -0600)]
* stmt.c (any_pending_cleanups): Further simplification.

From-SVN: r68789

21 years agors6000.md (ctr{s,d}i_internal?): Add earlyclobber for MEM case.
David Edelsohn [Tue, 1 Jul 2003 19:07:40 +0000 (19:07 +0000)]
rs6000.md (ctr{s,d}i_internal?): Add earlyclobber for MEM case.

        * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
        for MEM case.

Co-Authored-By: J"orn Rennecke <joern.rennecke@superh.com>
From-SVN: r68788

21 years agodbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
Devang Patel [Tue, 1 Jul 2003 19:04:18 +0000 (12:04 -0700)]
dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.

2003-07-01  Devang Patel  <dpatel@apple.com>

        * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
        (binclstatus): New.
        (struct dbx_file): New members - bincl_status, pending_bincl_name and
        prev.
        (pending_bincls): New.
        (dbxout_init): Initialize new dbx_file members.
        (dbxout_start_source_file): Same.
        (emit_bincl_stab): New function.
        (emit_pending_bincls): Same.
        (emit_pending_bincls_if_required): Same.
        (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
        processed.
        (dbxout_begin_block): Emit pending BINCL stabs.
        (dbxout_end_block): Same.
        (dbxout_function_decl): Same.
        (dbxout_continue): Same.
        (dbxout_type): Same.
        (dbxout_class_name_qualifiers): Same.
        (dbxout_symbol): Same.
        (dbxout_symbol_location): Same.
        (dbxout_parms): Same.

From-SVN: r68787

21 years agocall.c (resolve_scoped_fn_name): Return error_mark_node for erroneous cases.
Mark Mitchell [Tue, 1 Jul 2003 18:48:36 +0000 (18:48 +0000)]
call.c (resolve_scoped_fn_name): Return error_mark_node for erroneous cases.

* call.c (resolve_scoped_fn_name): Return error_mark_node for
erroneous cases.

From-SVN: r68786

21 years agoc-semantics.c (genrtl_case_label): Fix format specifier bug.
Kaveh R. Ghazi [Tue, 1 Jul 2003 18:28:27 +0000 (18:28 +0000)]
c-semantics.c (genrtl_case_label): Fix format specifier bug.

* c-semantics.c (genrtl_case_label): Fix format specifier bug.
* cfgrtl.c (rtl_verify_flow_info_1): Likewise.

From-SVN: r68784

21 years agore PR c++/11149 (ICE on error when instantiation with call function of a base type)
Mark Mitchell [Tue, 1 Jul 2003 17:36:00 +0000 (17:36 +0000)]
re PR c++/11149 (ICE on error when instantiation with call function of a base type)

PR c++/11149
* call.c (resolve_scoped_fn_name): Check that the qualifying scope
is a class type.

PR c++/11149
* g++.dg/lookup/scoped6.C: New test.

From-SVN: r68782

21 years agore PR libstdc++/11389 (Unbuffered wfilebuf fails to read single-byte UTF-8 characters.)
Paolo Carlini [Tue, 1 Jul 2003 17:13:01 +0000 (19:13 +0200)]
re PR libstdc++/11389 (Unbuffered wfilebuf fails to read single-byte UTF-8 characters.)

2003-07-01  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11389
* include/bits/fstream.tcc (underflow): For encoding() == 0
don't read more than __buflen chars.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.

From-SVN: r68780

21 years agoAdd missing entry.
Andreas Jaeger [Tue, 1 Jul 2003 17:06:12 +0000 (19:06 +0200)]
Add missing entry.

From-SVN: r68779

21 years agofold-const.c: Convert prototypes to ISO C90.
Andreas Jaeger [Tue, 1 Jul 2003 16:20:39 +0000 (18:20 +0200)]
fold-const.c: Convert prototypes to ISO C90.

* fold-const.c: Convert prototypes to ISO C90.
* function.c: Likewise.
* function.h: Likewise.

From-SVN: r68778

21 years agogcc_release (BRANCH): Rename to...
Gerald Pfeifer [Tue, 1 Jul 2003 16:04:42 +0000 (18:04 +0200)]
gcc_release (BRANCH): Rename to...

* gcc_release (BRANCH): Rename to...
(CVSBRANCH): ...new macro, and use BRANCH for the variant users
will see.
(FTP_BRANCH): For snapshots, include ${BRANCH} in the last part
of the directory name.
Use .snapshot_date-${BRANCH} instead of .snapshot_date.

From-SVN: r68777

21 years agore PR c++/8046 (ICE on illegal code involving destructor being treated as bit-not...
Giovanni Bajo [Tue, 1 Jul 2003 15:39:04 +0000 (17:39 +0200)]
re PR c++/8046 (ICE on illegal code involving destructor being treated as bit-not expression)

2003-07-01  Giovanni Bajo  <giovannibajo@libero.it>

        PR c++/8046
        * g++.dg/other/error7.C: New test.

From-SVN: r68776

21 years agore PR c++/8046 (ICE on illegal code involving destructor being treated as bit-not...
Giovanni Bajo [Tue, 1 Jul 2003 15:38:02 +0000 (17:38 +0200)]
re PR c++/8046 (ICE on illegal code involving destructor being treated as bit-not expression)

2003-07-01  Giovanni Bajo  <giovannibajo@libero.it>

        PR c++/8046
        * error.c (dump_decl): Handle BIT_NOT_EXPR as
        pseudo destructor calls.

From-SVN: r68775

21 years ago2003-07-01 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 1 Jul 2003 14:42:38 +0000 (14:42 +0000)]
2003-07-01  Michael Koch  <konqueror@gmx.de>

* gnu/gcj/convert/natIconv.cc
(iconv_init): Fixed possible memory leak by releasing allocated iconv
handle.

From-SVN: r68774

21 years agocontrib.texi: Fix typos.
Kazu Hirata [Tue, 1 Jul 2003 14:39:20 +0000 (14:39 +0000)]
contrib.texi: Fix typos.

* doc/contrib.texi: Fix typos.
* doc/invoke.texi: Likewise.
* doc/passes.texi: Likewise.
* doc/sourcebuild.texi: Likewise.
* doc/tm.texi: Likewise.

From-SVN: r68772

21 years agoChangeLog.6: Fix misspellings.
Matt Kraai [Tue, 1 Jul 2003 13:10:26 +0000 (13:10 +0000)]
ChangeLog.6: Fix misspellings.

* ChangeLog.6: Fix misspellings.
* ChangeLog.7: Likewise.

(testsuite):
* gcc.c-torture/execute/20030125-1.c: Likewise.

From-SVN: r68771

21 years agobasic-block.h: Fix comment typos.
Kazu Hirata [Tue, 1 Jul 2003 12:18:01 +0000 (12:18 +0000)]
basic-block.h: Fix comment typos.

* basic-block.h: Fix comment typos.
* bb-reorder.c: Likewise.
* c-format.c: Likewise.
* cfgcleanup.c: Likewise.
* cfghooks.h: Likewise.
* cfgloop.c: Likewise.
* cfgloopmanip.c: Likewise.
* cfgrtl.c: Likewise.
* cgraph.h: Likewise.
* cgraphunit.c: Likewise.
* combine.c: Likewise.
* convert.c: Likewise.
* dbxout.c: Likewise.
* df.c: Likewise.
* df.h: Likewise.
* diagnostic.c: Likewise.
* dwarf2out.c: Likewise.
* et-forest.h: Likewise.
* flow.c: Likewise.
* fold-const.c: Likewise.
* function.h: Likewise.
* gcov-io.h: Likewise.
* gcov.c: Likewise.
* gcse.c: Likewise.
* genautomata.c: Likewise.
* ggc-common.c: Likewise.
* ggc-page.c: Likewise.
* loop-unroll.c: Likewise.
* loop-unswitch.c: Likewise.
* loop.c: Likewise.
* mips-tfile.c: Likewise.
* optabs.c: Likewise.
* ra-build.c: Likewise.
* ra-colorize.c: Likewise.
* ra-rewrite.c: Likewise.
* ra.h: Likewise.
* regmove.c: Likewise.
* reload.c: Likewise.
* rtlanal.c: Likewise.
* sched-ebb.c: Likewise.
* sched-int.h: Likewise.
* sched-vis.c: Likewise.
* sreal.c: Likewise.
* ssa-ccp.c: Likewise.
* ssa.c: Likewise.
* toplev.c: Likewise.
* tree-inline.c: Likewise.
* value-prof.c: Likewise.
* value-prof.h: Likewise.

From-SVN: r68770

21 years agovbase1.C: Fix comment typos.
Kazu Hirata [Tue, 1 Jul 2003 12:01:44 +0000 (12:01 +0000)]
vbase1.C: Fix comment typos.

* g++.old-deja/g++.abi/vbase1.C: Fix comment typos.
* g++.old-deja/g++.abi/vtable3.h: Likewise.
* g++.old-deja/g++.law/code-gen5.C: Likewise.
* g++.old-deja/g++.other/union2.C: Likewise.
* gcc.dg/c90-const-expr-2.c: Likewise.
* gcc.dg/c90-const-expr-3.c: Likewise.
* gcc.dg/c99-const-expr-2.c: Likewise.
* gcc.dg/c99-const-expr-3.c: Likewise.
* gcc.dg/concat.c: Likewise.

From-SVN: r68769

21 years agognat_ug.texi: Remove unlikely characters from @vars.
Matt Kraai [Tue, 1 Jul 2003 11:21:12 +0000 (11:21 +0000)]
gnat_ug.texi: Remove unlikely characters from @vars.

* gnat_ug.texi: Remove unlikely characters from @vars.
* gnat_ug_vms.texi: Regenerate.

From-SVN: r68768

21 years agortl.h (emit_line_note_after): Remove.
Nathan Sidwell [Tue, 1 Jul 2003 09:17:52 +0000 (09:17 +0000)]
rtl.h (emit_line_note_after): Remove.

* rtl.h (emit_line_note_after): Remove.
(emit_note_copy_after, emit_note_copy): New.
* emit-rtl.c (reorder_insns_with_line_notes): Replace
emit_line_note_after with emit_note_copy_after.
(emit_insn_after_with_line_notes): Likewise.
(emit_line_note_after): Kill.
(emit_note_copy_after): New.
(emit_note_copy): New.
* function.c (emit_return_into_block): Use emit_note_copy_after.
(thread_prologue_and_epilogue_insns): Likewise.
* integrate.c (expand_inline_function): Use emit_note_copy.
(copy_insn_list): Likewise.
* unroll.c (copy_loop_body): Likewise.
* cfglayout.c (duplicate_insn_chain): Likewise.

From-SVN: r68767

21 years agoc-tree.h (define_label): Replace filename and lineno arguments with a location_t.
Nathan Sidwell [Tue, 1 Jul 2003 09:00:45 +0000 (09:00 +0000)]
c-tree.h (define_label): Replace filename and lineno arguments with a location_t.

* c-tree.h (define_label): Replace filename and lineno arguments
with a location_t.
* c-decl.c (poplevel): Adjust define_label call.
(pop_label_level): Likewise.
(define_label): Replace filename and lineno arguments with a
location_t.
(store_parm_decls): Use DECL_SOURCE_LOCATION.
* c-parse.in (label): Adjust define_label call.

* cp/cp-tree.h (define_label): Replace filename and lineno
arguments with a location_t.
* cp/decl.c (pop_label): Adjust define_label call.
(define_label): Replace filename and lineno arguments with a
location_t.
* cp/semantics.c (finish_label): Adjust define_label call.

* java/decl.c (poplevel): Adjust define_label call.

From-SVN: r68766

21 years agore PR c++/9559 (ICE with invalid initialization of a static const member)
Mark Mitchell [Tue, 1 Jul 2003 07:17:03 +0000 (07:17 +0000)]
re PR c++/9559 (ICE with invalid initialization of a static const member)

PR c++/9559
* decl2.c (grokfield): Do not build NOP_EXPRs around the
error_mark_node.

PR c++/9559
* g++.dg/init/static1.C: New test.

From-SVN: r68764

21 years agosol2.h, [...]: Use c_dialect_ macros.
Neil Booth [Tue, 1 Jul 2003 05:45:19 +0000 (05:45 +0000)]
sol2.h, [...]: Use c_dialect_ macros.

* config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.

From-SVN: r68763

21 years ago7.cc: New.
Jerry Quinn [Tue, 1 Jul 2003 05:44:42 +0000 (05:44 +0000)]
7.cc: New.

2003-07-01  Jerry Quinn  <jlquinn@optonline.net>

* 22_locale/num_put/put/char/7.cc: New.
* 22_locale/num_put/put/wchar_t/7.cc: New.

From-SVN: r68762

21 years agolocale.cc (__use_cache<numpunct>): Revert previous relocation.
Jerry Quinn [Tue, 1 Jul 2003 05:38:04 +0000 (05:38 +0000)]
locale.cc (__use_cache<numpunct>): Revert previous relocation.

2003-06-30  Jerry Quinn  <jlquinn@optonline.net>

* src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
* include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.

From-SVN: r68761

21 years agofinal.c: Convert prototypes to ISO C90.
Andreas Jaeger [Tue, 1 Jul 2003 05:00:18 +0000 (07:00 +0200)]
final.c: Convert prototypes to ISO C90.

* final.c: Convert prototypes to ISO C90.
* flow.c: Likewise.
* flags.h: Likewise.

From-SVN: r68760

21 years agore PR middle-end/6578 (-ftrapv doesn't catch multiplication overflow)
Bruno Haible [Tue, 1 Jul 2003 04:04:13 +0000 (04:04 +0000)]
re PR middle-end/6578 (-ftrapv doesn't catch multiplication overflow)

2003-06-30  Bruno Haible  <bruno@clisp.org>

PR middle-end/6578
* libgcc2.c (__subvsi3): Remove simplification that would not work
when subtracting -0x80000000.
(__subvdi3): Remove simplification that would return a wrong result.
(__mulvsi3): Fix overflow check.
(__absvdi2): Fix simplification that would return a wrong result.
(__mulvdi3): Fix overflow check.

From-SVN: r68758

21 years ago1-in.cc: New.
Benjamin Kosnik [Tue, 1 Jul 2003 03:04:43 +0000 (03:04 +0000)]
1-in.cc: New.

2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>

* 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
* 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
* 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
* 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
* 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
* 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
* 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
* 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
* 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
* 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
* 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
* 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
* 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
* 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
* 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
* 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
* 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
* 27_io/basic_filebuf/seekpos/char/2.cc: Change.
* 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
* 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
* 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
* 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
  * data/seekoff-1.tst: Remove.
* data/seekoff-1io.tst: New.
* data/seekoff-1out.tst: New.
* data/seekoff-2.tst: Remove.
* data/seekoff-2io.tst: New.
* data/seekoff-2out.tst: New.
* data/seekoff.txt
* data/seekpos-1.tst: Remove.
* data/seekpos-1io.tst: New.
* data/seekpos-1out.tst: New.
* data/seekpos-2.tst: Remove.
* data/seekpos-2io.tst: New.
* data/seekpos-2out.tst: New.
* data/seekpos.txt: New.

From-SVN: r68757

21 years agolocale.cc (__use_cache<numpunct>): Move from here ...
Jerry Quinn [Tue, 1 Jul 2003 02:55:20 +0000 (02:55 +0000)]
locale.cc (__use_cache<numpunct>): Move from here ...

2003-06-27  Jerry Quinn  <jlquinn@optonline.net>

* src/locale.cc (__use_cache<numpunct>): Move from here ...
* include/bits/locale_facets.tcc (__use_cache<numpunct>): To
here.

From-SVN: r68756

21 years agostmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it was always passed in...
Jeff Law [Tue, 1 Jul 2003 02:04:11 +0000 (20:04 -0600)]
stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it was always passed in the value '1'.

        * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
        was always passed in the value '1'.  Simplify body appropriately.
        * tree.h (any_pending_cleanups): Corresponding changes.
        * calls.c: (expand_call): Corresponding changes.

From-SVN: r68754

21 years agocombine.c (distribute_notes): Don't bother REG_WAS_0.
Kazu Hirata [Tue, 1 Jul 2003 01:15:07 +0000 (01:15 +0000)]
combine.c (distribute_notes): Don't bother REG_WAS_0.

* combine.c (distribute_notes): Don't bother REG_WAS_0.
* cse.c (cse_insn): Likewise.
* final.c (final_scan_insn): Likewise.
* jump.c (duplicate_loop_exit_test): Likewise.
* rtl.c (reg_note_name): Remove REG_WAS_0.
* rtl.h (REG_WAS_0): Remove.
* unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
* config/avr/avr.c (output_movqi): Don't use reg_was_0.
(output_movhi): Likewise.
(output_movsisf): Likewise.
(reg_was_0): Remove.
* config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
REG_WAS_0.
(m68hc11_gen_movqi): Likewise.
* config/vax/vax-protos.h: Remove the prototype for
reg_was_0_p.
* config/vax/vax.c (follows_p): Remove.
(reg_was_0_p): Likewise.
* config/vax/vax.md (movsi): Don't use reg_was_0_p.
(movhi): Likewise.
(movqi): Likewise.
* doc/rtl.texi (REG_WAS_0): Remove.

From-SVN: r68753

21 years agospe.h (__ev_set_spefscr_frmc): Set the flag.
Mark Mitchell [Tue, 1 Jul 2003 01:11:53 +0000 (01:11 +0000)]
spe.h (__ev_set_spefscr_frmc): Set the flag.

* config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.

[[Split portion of a mixed commit.]]

From-SVN: r68751.2

21 years agoDaily bump.
GCC Administrator [Tue, 1 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r68749

21 years agoxtensa-config.h: New file imported from binutils.
Bob Wilson [Tue, 1 Jul 2003 00:14:33 +0000 (00:14 +0000)]
xtensa-config.h: New file imported from binutils.

include/ChangeLog:
* xtensa-config.h: New file imported from binutils.

gcc/ChangeLog:
* config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
top-level include directory.
* config/xtensa/lib2funcs.S: Likewise.
* config/xtensa/xtensa.h: Likewise.
* config/xtensa/xtensa-config.h: Remove.
* doc/install.texi: Update location of "xtensa-config.h" header.

From-SVN: r68747