Commit Graph

49540 Commits

Author SHA1 Message Date
GCC Administrator
5f7505af23 Daily bump.
From-SVN: r65394
2003-04-09 00:17:13 +00:00
Roger Sayle
5fce2c6539 fold-const.c (fold): Use "fold" following build in more places.
* fold-const.c (fold):  Use "fold" following build in more places.
	Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
	pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).

	* gcc.dg/builtins-11.c: New test case.

From-SVN: r65387
2003-04-08 23:28:28 +00:00
Roger Sayle
531878a68e builtins.c (fold_builtin): Constant fold expressions as x*0.5 instead of x/2.0.
* builtins.c (fold_builtin):  Constant fold expressions as x*0.5
	instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
	log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
	pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
	Delete function scope "fcode" variable to avoid shadowing.

	* gcc.dg/builtins-9.c: New test case.
	* gcc.dg/builtins-10.c: New test case.

From-SVN: r65386
2003-04-08 23:24:38 +00:00
Kevin Buettner
c583e7c354 dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, [...]): Take into account DWARF_INITIAL_LENGTH_SIZE.
* dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
	Take into account DWARF_INITIAL_LENGTH_SIZE.

From-SVN: r65385
2003-04-08 22:54:13 +00:00
Joel Sherrill
71fb704d58 MAINTAINERS: Add my email address.
2003-04-08  Joel Sherrill  <joel@oarcorp.com>

	* MAINTAINERS: Add my email address.

From-SVN: r65384
2003-04-08 22:30:26 +00:00
Hans-Peter Nilsson
5a82c0b12b reorg.c (fill_slots_from_thread): When considering changing the insn following a reg-to-reg copy insn to use the...
* reorg.c (fill_slots_from_thread): When considering changing the
	insn following a reg-to-reg copy insn to use the source reg of the
	copy, bail out if there's overlap between the registers.

From-SVN: r65381
2003-04-08 20:16:54 +00:00
Zdenek Dvorak
8a5275eb09 function.c (postponed_insns): New.
* function.c (postponed_insns): New.
	(purge_addressof_1): Postpone processing of insns if addressofs
	are not put into stack.
	(purge_addressof): Process postponed insns.

From-SVN: r65380
2003-04-08 19:53:34 +00:00
J"orn Rennecke
ac55736a0a sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD, this is FP_MODE_DOUBLE .
* sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
	this is FP_MODE_DOUBLE .
	* sh.c (ra.h): #include.
	(push_regs): Add second parameter.  Changed all callers.
	If necessary, set fpscr before saving floating point registers.
	(calc_live_regs): If interrupt handler and TARGET_FMOVD, always
	do saves / restores with SZ == 1.
	(sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
	(sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
	registers are being restored, restore FPSCR only after restoring them.

From-SVN: r65379
2003-04-08 18:31:24 +01:00
Richard Henderson
f4f2b07a86 New test.
From-SVN: r65378
2003-04-08 10:10:32 -07:00
Aldy Hernandez
3fdaa45aeb rs6000.c (rs6000_init_builtins): Set opaque types regardless of architecture.
2003-04-08  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
        regardless of architecture.
        (spe_init_builtins): Change V2SI and V2SF types to opaque types.

From-SVN: r65374
2003-04-08 14:01:58 +00:00
J"orn Rennecke
490dbac747 sh.c (push_regs, [...]): Return int.
* sh.c (push_regs, calc_live_regs): Return int.  Take single
	HARD_REG_SET * parameter.  Changed all callers.

From-SVN: r65373
2003-04-08 14:16:03 +01:00
Alexandre Oliva
e9fcab6251 sstream.tcc (overflow): Make sure operands of min and max have the same type.
* include/bits/sstream.tcc (overflow): Make sure operands of min
and max have the same type.

From-SVN: r65368
2003-04-08 12:03:26 +00:00
Jan Hubicka
799b33a028 i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the GOTOFF operand.
* i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
	GOTOFF operand.
	(legitimize_pic_address): Move plus outside the unspec.
	* i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
	for validity.

From-SVN: r65367
2003-04-08 09:14:06 +00:00
Nathan Sidwell
3e71e0028f gcov-io.h (gcov_save_position): Remove __inline__ from declaration.
* gcov-io.h (gcov_save_position): Remove __inline__ from
	declaration.

From-SVN: r65366
2003-04-08 08:59:05 +00:00
Matt Kraai
7ba4ca6373 install.texi: Use @command and @samp for single- and multi-word commands respectively.
* doc/install.texi: Use @command and @samp for single- and
	multi-word commands respectively.
	* doc/makefile.texi: Likewise.
	* doc/sourcebuild.texi: Likewise.

From-SVN: r65364
2003-04-08 06:39:15 +00:00
Christian Ehrhardt
f8d4be5756 re PR c/9516 (Internal error when using a big array)
PR c/9516
        * expr.c (safe_from_p): Rearrange to avoid deep recursion in
        favour of looping and tail recursion for TREE_LIST and binops.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r65363
2003-04-07 17:23:17 -07:00
GCC Administrator
12031a6266 Daily bump.
From-SVN: r65361
2003-04-08 00:17:08 +00:00
Zdenek Dvorak
760e8e420f loop.h (REGNO_FIRST_LUID, [...]): Provide defaults for insns without luid.
* loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
	for insns without luid.

From-SVN: r65354
2003-04-07 23:34:25 +00:00
Glen Nakamura
b0a3412c46 re PR rtl-optimization/8634 (incorrect code for inlining of memcpy under -O2)
PR opt/8634
        * explow.c (maybe_set_unchanging): Don't flag non-static const
        aggregate type initializers with RTX_UNCHANGING_P.

From-SVN: r65352
2003-04-07 15:57:41 -07:00
Richard Henderson
c5a1e3d69a re PR rtl-optimization/8634 (incorrect code for inlining of memcpy under -O2)
PR opt/8634
        * function.c (purge_addressof_1): Don't try arithmetics for
        unchanging memories.

From-SVN: r65351
2003-04-07 15:05:49 -07:00
Janis Johnson
7760d7f9b7 sourcebuild.texi (Test Suites): Update description of gcov tests.
2003-04-07  Janis Johnson  <janis187@us.ibm.com>

	* doc/sourcebuild.texi (Test Suites): Update description of gcov
	tests.

From-SVN: r65350
2003-04-07 21:51:27 +00:00
Janis Johnson
138d4703b2 sourcebuild.texi (Test Suites): Document testing support for gcov and profile-directed optimizations...
2003-04-07  Janis Johnson  <janis187@us.ibm.com>

	* doc/sourcebuild.texi (Test Suites): Document testing support for
	gcov and profile-directed optimizations; describe gcc.misc-tests.

From-SVN: r65347
2003-04-07 21:37:59 +00:00
Jan Hubicka
1d5b4e0b11 re PR target/10077 (gcc -msse2 generates movd to move dwords between xmm regs)
PR target/10077
	* i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.

From-SVN: r65346
2003-04-07 20:22:50 +00:00
Eric Botcazou
60ba917e16 rtl.texi (Comparison operations): Update to record the allowed comparison modes.
* doc/rtl.texi (Comparison operations): Update to
	record the allowed comparison modes.

From-SVN: r65341
2003-04-07 20:13:29 +00:00
Aldy Hernandez
2abe3e28f3 rs6000.c (rs6000_common_init_builtins): Rename all V2SI_type_node to opaque_V2SI_type_node.
2003-04-07  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
        V2SI_type_node to opaque_V2SI_type_node.  Rename all
        V2SF_type_node to opaque_V2SF_type_node.
        (rs6000_init_builtins): Define opaque_V2SI_type_node and
        opaque_V2SF_type_node.
        (is_ev64_opaque_type): The types opaque_V2SI_type_node and
        opaque_V2SF_type_node are opaque types.

From-SVN: r65340
2003-04-07 20:09:14 +00:00
J"orn Rennecke
9a318d3046 * gcse.c (replace_store_insn): Use single_set.
From-SVN: r65339
2003-04-07 21:00:08 +01:00
Nathan Sidwell
546d2adb91 Change gcov file interface to single file at a time.
* gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
	Convert to C89 prototypes.
	(gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
	gcov_error, gcov_modified): New static variables.
	(gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
	functions.
	(gcov_write_unsigned, gcov_write_counter, gcov_write_string,
	gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
	(gcov_read_summary, gcov_write_summary): Adjust.
	(gcov_save_position, gcov_reserve_length, gcov_write_length):
	Adjust.
	(gcov_resync, gcov_skip, gcov_skip_string): Adjust.
	(da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
	(da_file_position, da_file_seek, da_file_write, da_file_read):
	Remove.
	(gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
	* gcov.c (gcov_type): Don't typedef here.
	(IN_GCOV): #define
	(read_graph_file, read_count_file): Adjust.
	* gcov-dump.c (gcov_type): Don't typedef here.
	(IN_GCOV): #define.
	(tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
	Remove FILE parameter, adjust.
	(struct tag_format): Adjust proc member.
	(dump_file): Adjust.
	* libgcov.c (IN_LIBGCOV): #define.
	(gcov_exit): Adjust.
	* loop-init.c: Don't #include gcov-io.h
	* profile.c (struct counts_entry): New structure to hold counter
	values.
	(struct section_reference, struct da_index_entry): Remove.
	(bbg_file, da_file): Remove.
	(htab_counts_index_hash, htab_counts_index_eq,
	htab_counts_index_del): Replace with ...
	(htab_counts_entry_hash, htab_counts_entry_eq,
	htab_counts_entry_del): ... these.
	(cleanup_counts_index, index_counts_file): Remove.
	(read_counts_file): New function.
	(get_exec_counts): Adjust.
	(compute_branch_probabilities): Don't free the exec counts here.
	(branch_prob): Adjust.
	(init_branch_prob): Adjust.
	(end_branch_prob): Adjust.

From-SVN: r65338
2003-04-07 19:37:12 +00:00
Aldy Hernandez
5da702b196 invoke.texi (RS/6000 and PowerPC Options): Document -mfloat-gprs.
2003-04-07  Aldy Hernandez  <aldyh@redhat.com>

        * doc/invoke.texi (RS/6000 and PowerPC Options): Document
        -mfloat-gprs.

        * config/rs6000/rs6000.c: Delete rs6000_fprs.
        Declare rs6000_float_gprs.
        Declare rs6000_float_gprs_string.
        (rs6000_parse_float_gprs_option): New.
        (rs6000_override_options): Genericize rs6000_parse_* calls to use
        rs6000_parse_yes_no_option.
        Change check for cpu=8540, to use TARGET_E500.
        (rs6000_parse_isel_option): Delete.
        (rs6000_parse_spe_option): Delete.
        (rs6000_parse_vrsave_option): Delete.

        * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
        Define rs6000_float_gprs_string.
        (TARGET_OPTIONS): Add rs6000_float_gprs option.

        * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.

        * config/rs6000/eabispe.h: Set rs6000_float_gprs.

From-SVN: r65336
2003-04-07 18:49:11 +00:00
Jan Hubicka
cde1d5bf91 re PR rtl-optimization/10024 ([HP-PA] inline optimization ICE)
PR opt/10024
	* cfglayout.c (cfg_layout_redirect_edge):
	Redirect any branch edges unified with the fallthru one.
	* cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
	case fallthru edges when called via cfglayout.c

From-SVN: r65330
2003-04-07 12:36:59 +00:00
Aaron M. Renn
30da09694b 2003-04-07 Aaron M. Renn (arenn@urbanophile.com)
* java/io/ObjectStreamException
	* java/io/FileFilter
	* java/io/FilenameFilter
	* java/io/ObjectInput
	* java/io/ObjectOutput
	* java/io/ObjectStreamConstants
	Minor doc fixes, format fixes, spelling corrections, etc.
	* java/io/DataInput
	Corrected code samples in Javadocs to match reality
	* java/io/DataOutput
	* java/io/ObjectInputValidation
	Major documentation fixes - all Javadocs re-written or updated

From-SVN: r65329
2003-04-07 12:25:08 +00:00
J"orn Rennecke
d5019ba399 c-typeck.c (output_init_element): Check for type == error_mark_node.
gcc:
	* c-typeck.c (output_init_element): Check for type == error_mark_node.
gcc/testsuite:
	* gcc.dg/noncompile/init-4.c.c: New test.

From-SVN: r65328
2003-04-07 12:55:27 +01:00
Kazu Hirata
093b05b68f h8300.md (*zero_extendqisi2_h8300hs): Always split.
* config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
	split.
	(a splitter): Do zero-extension via HImode.

From-SVN: r65327
2003-04-07 10:17:24 +00:00
James A. Morrison
9a94f7f323 invoke.texi: Eliminate extra white-space caused by @gccoptlist{ on its own line.
* doc/invoke.texi: Eliminate extra white-space caused by
	@gccoptlist{ on its own line.
	* doc/invoke.texi: Ensured there are two spaces between each option.
	* doc/invoke.texi: Re-wrapped option lines that were too wide.
	Added @gol to options that didn't have them.

From-SVN: r65326
2003-04-07 08:12:41 +00:00
James A Morrison
85ebf0c676 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
From-SVN: r65324
2003-04-07 07:31:47 +00:00
Zack Weinberg
d78e771d46 tree.c (tree_size): For all 'c' and 'x' nodes...
* tree.c (tree_size): For all 'c' and 'x' nodes, look directly
        at the sizes of the relevant structures, rather than relying
        on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
        sizes of any such we don't know about.  Use
        lang_hooks.identifier_size for IDENTIFIER_NODE.

        (initializer_zerop): Use CONSTRUCTOR_ELTS.
        * tree.def: Update commentary.  Make fourth element of
        the definition for all 'c' and 'x' nodes zero.

        * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
        * langhooks-def.h: Update to match.
        * langhooks.c: New default, lhd_tree_size.

        * c-common.def (SRCLOC): Kill.
        * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
        Remove entirely - was already #if-ed out.

ada:
        * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
        * misc.c (gnat_tree_size): New function.
        (LANG_HOOKS_TREE_SIZE): Override.
cp:
        * cp-tree.def: Make fourth element for all 'c' and 'x' nodes zero.
        * cp-lang.c (cp_tree_size): New function.
        (LANG_HOOKS_TREE_SIZE): Override.

        * cp-tree.h (SOURCE_LOCUS, SRCLOC_FILE, SRCLOC_LINE, struct
        tree_srcloc, TS_CP_COMMON, TS_CP_SRCLOC): Kill.
        (union lang_tree_node): Remove common and srcloc members.
        (build_srcloc_here): Don't prototype.
        * decl.c (cp_tree_node_structure): Kill SRCLOC case.
        * pt.c (pending_templates): Correct comment.
        * tree.c (build_srcloc, build_srcloc_here): Kill.

From-SVN: r65323
2003-04-07 06:03:17 +00:00
Zack Weinberg
a9c89a57f6 Oops, this belongs with the previous calls.c commit
From-SVN: r65322
2003-04-07 05:52:07 +00:00
Zack Weinberg
48a7934255 mklibgcc.in: Use a here document to avoid running afoul of shells that generate control-A...
* mklibgcc.in: Use a here document to avoid running afoul of
shells that generate control-A from "echo \1".

From-SVN: r65321
2003-04-07 05:34:50 +00:00
Zack Weinberg
d2a6f3c03e call.c: Include intl.h.
* call.c: Include intl.h.
        (print_z_candidate): Always use inform; get rid of errfn
        argument. Reorganize so that all the strings get picked up
        by xgettext.  Note obligation of caller to pass first argument
        through gettext.
        (print_z_candidates): Update to match.  Indent second and
        successive candidates by strlen() of translated message.
        (joust): Restructure ambiguous-conversion pedwarn so that
        translators see a complete sentence.  Update calls to
        print_z_candidate.

        * Make-lang.in (cp/call.o): Update dependencies.

From-SVN: r65320
2003-04-07 05:33:12 +00:00
Aldy Hernandez
993f19a873 invoke.texi (RS/6000 and PowerPC Options): Document -mspe option.
2003-04-06  Aldy Hernandez  <aldyh@redhat.com>

        * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
        option.

        * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
        rs6000_spe.

        * config/rs6000/eabi.h (TARGET_E500): Define.

        * config/rs6000/rs6000.h (TARGET_E500): Define.
        (TARGET_OPTIONS): Add spe= option.
        Declare rs6000_spe and rs6000_spe_string extern.

        * config/rs6000/rs6000.c (branch_positive_comparison_operator):
        Change TARGET_SPE to TARGET_E500.
        (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
        !TARGET_FPRS.
        (print_operand): Same.
        (rs6000_generate_compare): Same.
        (output_cbranch): Same.
        (rs6000_spe): Declare.
        (rs6000_spe_string): Declare.
        (rs6000_override_options): Call rs6000_parse_spe_option.
        (rs6000_parse_spe_option): New.

From-SVN: r65319
2003-04-07 02:48:54 +00:00
GCC Administrator
4877d67e3b Daily bump.
From-SVN: r65317
2003-04-07 00:18:14 +00:00
Steven Bosscher
95ec27aaf2 hashtable.c (gcc_obstack_init): Delete this function and everything related to it.
2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>

	* hashtable.c (gcc_obstack_init): Delete this function
	and everything related to it.
	* hashtable.h: Remove prototype.
	* bitmap.c (bitmap_element_allocate): Cleanup redundant
	defines.  Cleanup some unnecessary whitespace.
	* defaults.h (obstack_chunk_alloc): Redefine with
	appropriate casts for libiberty obstacks.
	(obstack_chunk_free): Ditto.
	(OBSTACK_CHUNK_SIZE): Define, default to 0.
	(gcc_obstack_init): Define as a call to _obstack_begin.
	* tree.c (print_obstack_statistics): Delete this unused
	function.
	* tree.h (obstack): Don't forward-declare.
	(print_obstack_statistics): Delete prototype.
	(print_obstack_name): Ditto.
	(gcc_obstack_init): Ditto.
	* rtl.h (gcc_obstack_init): Ditto.
	* java/jv-scan.c (gcc_obstack_init): Delete this
	function, its prototype and related defines.
	* java/jvgenmain.c (gcc_obstack_init): Delete this
	function, and related defines.
	* java/parse-scan.y (obstack_chunk_alloc): Don't define.
	(obstack_chunk_free): Ditto

From-SVN: r65308
2003-04-06 21:44:09 +00:00
Geoffrey Keating
62e64b0b86 dbxout.c (dbxout_handle_pch): Move prototype out from #if defined DBX_DEBUGGING_INFO.
* dbxout.c (dbxout_handle_pch): Move prototype out from
	#if defined DBX_DEBUGGING_INFO.

From-SVN: r65307
2003-04-06 19:02:54 +00:00
Michael Koch
ce7e39367a URLConnection.java: Import classes directly.
2003-04-06  Michael Koch  <konqueror@gmx.de>

	* java/net/URLConnection.java:
	Import classes directly.
	(URLConnection): Merged class documentation with classpath.
	(url): Moved, documentation from classpath added.
	(doInput): Moved, documentation from classpath added.
	(doOutput): Moved, documentation from classpath added.
	(allowUserInteraction): Moved.
	(useCaches): Moved, documentation from classpath added.
	(ifModifiedSince): Moved, documentation from classpath added.
	(connected): Moved, documentation from classpath added.

From-SVN: r65301
2003-04-06 16:11:13 +00:00
Michael Koch
af5fcbd02e 2003-04-06 Michael Koch <konqueror@gmx.de>
* java/io/FileInputStream.java
	(skip): Renamed some variables to match classpath, added
	checks from classpath.

From-SVN: r65300
2003-04-06 15:51:06 +00:00
Nathan Sidwell
10b7602f3f gcov.c (struct arc_info): Replace local_span with cycle.
.	* gcov.c (struct arc_info): Replace local_span with cycle.
	(struct block_info): Replace u.span with u.cycle. Add is_call_return.
	(solve_flow_graph): Set is_call_return.
	(add_line_counts): Adjust. In block mode, blocks attach to last line.
	(accumulate_line_counts): Find graph cycles, not spanning tree.
	(output_branch_count): Adjust.
	(output_lines): Adjust.
	* doc/gcov.texi: Update.
testsuite:
	* gcc.misc-test/gcov-9.c: New test.
	* gcc.misc-test/gcov-10.c: New test
	* gcc.misc-test/gcov-11.c: New test.

From-SVN: r65299
2003-04-06 13:18:41 +00:00
Kazu Hirata
910c46b516 h8300.md (*zero_extendqisi2_h8300hs): Change the second alternative to "#".
* config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
	the second alternative to "#".

From-SVN: r65295
2003-04-06 05:13:51 +00:00
Kazu Hirata
ef378bbee7 h8300.c (single_one_operand): Use GET_MODE_MASK.
* config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
	(single_zero_operand): Likewise.

From-SVN: r65291
2003-04-06 02:17:39 +00:00
GCC Administrator
73205f20af Daily bump.
From-SVN: r65287
2003-04-06 00:17:09 +00:00
Zack Weinberg
b8460b2932 re PR rtl-optimization/10024 ([HP-PA] inline optimization ICE)
PR optimization/10024
	* gcc.c-torture/compile/20030405-1.c: New test.

From-SVN: r65280
2003-04-06 00:11:27 +00:00
Bruce Korb
8e33fb63f7 Clean up hand edited version with generated version
From-SVN: r65279
2003-04-05 23:12:47 +00:00