Commit Graph

49306 Commits

Author SHA1 Message Date
Loren J. Rittle 9c59483708 porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
* docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
	(_GLIBCPP_USE_C99_DYNAMIC): New macro.
	(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
	(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
	* config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
	New macro.
	(_GLIBCPP_USE_C99_DYNAMIC): New macro.
	(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
	(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
	* include/c_std/std_cstdlib.h: Use new macros.
	* include/c_std/std_cstdio.h: Use new macros.
	* include/c_std/std_cwchar.h: Use new macros.

From-SVN: r65778
2003-04-18 09:53:58 +00:00
Loren J. Rittle c04ec67ecd std_cmath.h (C99 FP capture): Only undefine said C99 FP macros, if actually captured.
* include/c_std/std_cmath.h (C99 FP capture): Only undefine said
	C99 FP macros, if actually captured.

From-SVN: r65777
2003-04-18 06:58:42 +00:00
Eric Botcazou 6a29edeae5 re PR rtl-optimization/7675 (ICE in fixup_var_refs_1)
PR optimization/7675
	* c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
	on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
	nested functions if they refer to declarations from parent functions.
	* stmt.c (expand_decl): Don't put automatic variables in registers
	if the DECL_NONLOCAL flag is set.

From-SVN: r65774
2003-04-18 06:45:15 +00:00
Benjamin Kosnik 06e7ca50ab re PR libstdc++/9555 (ostream inserters fail to set badbit on exception)
2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/9555
	* include/bits/ostream.tcc: Catch all exceptions for formatted
	output, instead of std::exception and derivatives.
	* include/bits/istream.tcc: Same.
	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
	* testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
	* testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
	* testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
	* testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
	New.

From-SVN: r65770
2003-04-18 03:46:44 +00:00
Phil Edwards 3cfbe1789a c++config: Minor cosmetic tweaks.
2003-04-17  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/c++config:  Minor cosmetic tweaks.

From-SVN: r65768
2003-04-18 02:41:06 +00:00
Loren J. Rittle 8520f70425 testsuite_flags.in (PCHFLAGS): Find PCH in new home.
* testsuite_flags.in (PCHFLAGS): Find PCH in new home.
	* include/Makefile.am (pch_input): Find in ${target_builddir}.
	(pch_output): Rename to...
	(pch_output_builddir): ..this.  Find in ${target_builddir}.
	(pch_source): Tweak.
	(pch_build): Key off a built file.
	(pch_output rule): Rename to...
	(pch_input rule): ...this.  Produce ${pch_output_builddir}
	instead of ${pch_output}.
	(install-pch rule): Install ${pch_output_builddir}.
	* include/Makefile.in: Regenerated.

From-SVN: r65767
2003-04-18 02:03:52 +00:00
Hans-Peter Nilsson 4d3eb89ac4 gcse.c (compute_ld_motion_mems): For MEM destinations...
* gcse.c (compute_ld_motion_mems): For MEM destinations, only
	consider those to be movable where the source matches
	want_to_gcse_p.
	(update_ld_motion_stores): In comment, refer to
	compute_ld_motion_mems for validity of replacement.

From-SVN: r65766
2003-04-18 01:29:19 +00:00
GCC Administrator dc93be8dce Daily bump.
From-SVN: r65765
2003-04-18 00:17:06 +00:00
Jan Hubicka d101590bee gcov-dump.c (tag_summary): Remove max_sum
* gcov-dump.c (tag_summary): Remove max_sum
	* gcov-io.h (gcov_summary, gcov_write_summary, gcov_read_summary): Kill
	max_sum.
	* libgcov.c (gcov_exit): Do one pass over the data.  Make error message
	more verbose.

From-SVN: r65758
2003-04-17 23:33:05 +00:00
Jan Hubicka 04c5580f37 emit-rtl.c (subreg_hard_regno): Check that register is representable.
* emit-rtl.c (subreg_hard_regno):  Check that register is representable.
	* reload.c (reload_inner_reg_of_subreg):  When register is not
	representable, reload the whole thing.
	(find_reloads): Likewsie.
	* rtlanal.c (subreg_representable_p):  New function.

	* profile.c (compute_branch_probabilities):  Cleanup sanity checking;
	allow negative probabilities for edges from the call to exit.
	(branch_prob): Do not add fake edges for functions that may return twice

From-SVN: r65757
2003-04-17 23:31:41 +00:00
DJ Delorie c409ea0d30 toplev.c (target_options): Add value field.
* toplev.c (target_options): Add value field.
(set_target_switch): Handle target options with	values.
* doc/tm.texi: Document how fixed vs variable target
options work.
* config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
config/m32r/m32r.h, config/m68hc11/m68hc11.h,
config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
config/rs6000/rs6000.h, config/rs6000/sysv4.h,
config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
Add value initializer to target options.

From-SVN: r65756
2003-04-17 19:18:58 -04:00
Loren J. Rittle 368018184c * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
From-SVN: r65755
2003-04-17 23:10:17 +00:00
Kazu Hirata a211395bbb reload1.c (move2add_last_cc0): New.
* reload1.c (move2add_last_cc0): New.
	(reload_cse_move2add): Detect implicit sets.
	(move2add_note_store): Notice a store into cc0.

From-SVN: r65754
2003-04-17 21:42:19 +00:00
Roger Sayle 220a35cc8e re PR c/10375 (Function-local external decls of builtins don't get attributes)
2003-04-17  Roger Sayle  <roger@eyesopen.com>

	PR c/10375
	* c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
	function attributes.

	* cp/decl.c (duplicate_decls): Preserve "const", "noreturn"
	and "nothrow" function attributes.

	* f/com.c (duplicate_decls): Preserve "const" and "noreturn"
	function attributes.

From-SVN: r65753
2003-04-17 21:27:37 +00:00
Phil Edwards 1ca4c6e1e8 Makefile.tpl (GCC_STRAP_TARGETS): New variable containing all the previous bootstrap targets...
2003-04-17  Phil Edwards  <pme@gcc.gnu.org>

	* Makefile.tpl (GCC_STRAP_TARGETS):  New variable containing all the
	previous bootstrap targets, plus bubblestrap, quickstrap, cleanstrap,
	and restrap.
	* Makefile.in:  Regenerate.

From-SVN: r65752
2003-04-17 21:04:05 +00:00
Janis Johnson 7ed0620a31 fix date in previous entry
From-SVN: r65749
2003-04-17 20:05:06 +00:00
Janis Johnson 46b2356df0 sourcebuild.texi (Test Suites): Document support for testing binary compatibility (moved from...
2003-04-17  Janis Johnson  <janis187@us.ibm.com>

	* doc/sourcebuild.texi (Test Suites): Document support for testing
	binary compatibility (moved from testsuite/README.compat).

	* testsuite/README.compat: Remove; content now in doc/sourcebuild.texi.

From-SVN: r65748
2003-04-17 20:04:32 +00:00
Richard Henderson 3907500bf1 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
From-SVN: r65747
2003-04-17 12:54:03 -07:00
Simon Law d22b2e5461 gpl.texi: Fix double-spacing after "MA" to match the one provided by the FSF.
* doc/include/gpl.texi: Fix double-spacing after "MA" to match
	the one provided by the FSF.

From-SVN: r65745
2003-04-17 16:36:06 +00:00
Gerald Pfeifer 616de62f20 install.texi (Binaries): Update URL and list of platforms provided by ftp.thewrittenword.com.
* doc/install.texi (Binaries): Update URL and list of platforms
	provided by ftp.thewrittenword.com.

From-SVN: r65743
2003-04-17 14:12:33 +00:00
Kriang Lerdsuwanakij 09d2f85f41 re PR c++/10347 (tree check ICE in dependent_type_p)
PR c++/10347
	* pt.c (type_dependent_expression_p): Handle array new.

	g++.dg/template/dependent-name1.C: New test.

From-SVN: r65742
2003-04-17 14:05:54 +00:00
J"orn Rennecke 8633f25cf5 warn-1.c (tourist_guide): New array, contains a pointer to bar.
* gcc.dg/warn-1.c (tourist_guide): New array,
	contains a pointer to bar.

From-SVN: r65741
2003-04-17 12:46:56 +01:00
Paolo Carlini b5bc3efb4b std_streambuf.h (setp): _M_out_lim, being the end limit of used put area, is set equal to _M_out_beg.
2003-04-17  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_streambuf.h (setp): _M_out_lim, being
	the end limit of used put area, is set equal to _M_out_beg.

From-SVN: r65740
2003-04-17 11:29:15 +00:00
Richard Henderson f2dd0c4231 xtensa.c (xtensa_encode_section_info): Remove.
* config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
        (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
        * config/xtensa/xtensa.md (call, call_value): Likewise.

From-SVN: r65739
2003-04-17 04:24:04 -07:00
Richard Henderson 50d1ff6afc v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
* config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
        (print_operand_address): Likewise.
        (ep_memory_operand): Likewise.
        (special_symbolref_operand): Likewise.
        (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
        (v850_encode_section_info): Call default_encode_section_info.
        (v850_strip_name_encoding): Remove.
        * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
        (ASM_OUTPUT_LABELREF): Remove.
        (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
        (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
        (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
        (ENCODED_NAME_P): Remove.
        (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
        (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
        (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.

From-SVN: r65738
2003-04-17 04:16:30 -07:00
Richard Henderson e7d687bba6 stormy16.c (xstormy16_encode_section_info): Kill.
* config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
        * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use                       SYMBOL_REF_FUNCTION_P.

From-SVN: r65737
2003-04-17 03:35:08 -07:00
Richard Henderson 72628c61b8 sparc.c (sparc_encode_section_info): Remove.
* config/sparc/sparc.c (sparc_encode_section_info): Remove.
        (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
        (text_segment_operand): Likewise.

From-SVN: r65736
2003-04-17 03:31:01 -07:00
Richard Henderson 675ff4c764 sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
* config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
        (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
        (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
        (sh_encode_section_info): Remove.
        (sh_strip_name_encoding): Remove.
        * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
        (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
        (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
        (ASM_OUTPUT_LABELREF): Remove.
        (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
        * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.

From-SVN: r65735
2003-04-17 03:24:59 -07:00
Richard Henderson 114278e711 s390.c (SYMBOL_FLAG_ALIGN1): New.
* config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
        (tls_model_chars): Remove.
        (larl_operand): Use SYMBOL_REF_FLAGS.
        (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
        (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
        (s390_output_mi_thunk): Likewise.
        (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
        (s390_function_profiler): Likewise.
        (s390_encode_section_info): Use default_encode_section_info
        and SYMBOL_FLAG_ALIGN1.
        (s390_strip_name_encoding): Remove.
        * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
        * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
        (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.

From-SVN: r65734
2003-04-17 02:59:32 -07:00
Richard Henderson e95ef1878f ns32k.c (ns32k_encode_section_info): Remove.
* config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
        (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
        (print_operand_address): Likewise.

        * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
        * config/ns32k/ns32k.c (expand_block_move): Don't check
        flag_unroll_loops.

From-SVN: r65733
2003-04-17 02:25:19 -07:00
Richard Henderson 6cd4a76401 mcore.c (mcore_encode_section_info): Don't set SYMBOL_REF_FLAG.
* config/mcore/mcore.c (mcore_encode_section_info): Don't set
        SYMBOL_REF_FLAG.

From-SVN: r65732
2003-04-17 01:57:13 -07:00
Richard Henderson 89e6b70242 rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
* rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.

        * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
        (SYMBOL_REF_MODEL): New.
        (LIT_NAME_P): Move from m32r.h.
        (m32r_select_section): Remove.
        (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
        (m32r_strip_name_encoding): Remove.
        (m32r_in_small_data_p): New.
        (small_data_operand): Use SYMBOL_REF_SMALL_P.
        (addr24_operand): Use SYMBOL_REF_MODEL.
        (call26_operand): Likewise.
        (addr32_operand): Tidy.
        (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
        * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
        (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
        (READONLY_DATA_SECTION_ASM_OP): Remove.
        (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
        (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
        (TARGET_ASM_SELECT_SECTION): Remove.
        (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
        (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
        (LARGE_NAME_P, ENCODED_NAME_P): Remove.
        (ASM_OUTPUT_LABELREF): Remove.

From-SVN: r65731
2003-04-17 01:49:53 -07:00
Richard Henderson ec94fc0003 ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
* config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
        (encode_section_info): Remove.
        * config/ip2k/ip2k-protos.h: Update.

From-SVN: r65730
2003-04-17 00:39:56 -07:00
Richard Henderson 1b8135a411 varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
* varasm.c (default_encode_section_info): Don't set
        SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
        * config/i370/i370.c (i370_encode_section_info): Remove.
        * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
        (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
        * config/i370/i370.md (movsi): Likewise.

        * config/i370/t-i370: Add missing backslash.

From-SVN: r65728
2003-04-17 00:34:34 -07:00
Eric Botcazou 6d7fe8b31f * doc/invoke.texi (inline-limit): Fix pasto.
From-SVN: r65727
2003-04-17 07:28:28 +00:00
Richard Henderson dc66a1c4c7 h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
* config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
        (small_call_insn_operand): Use it.
        (SYMBOL_FLAG_EIGHTBIT_DATA): New.
        (h8300_eightbit_constant_address_p): Use it.
        (SYMBOL_FLAG_TINY_DATA): New.
        (h8300_tiny_constant_address_p): Use it.
        (h8300_encode_label, h8300_strip_name_encoding): Remove.
        (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
        * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
        (ASM_OUTPUT_LABELREF): Remove.

From-SVN: r65726
2003-04-17 00:16:15 -07:00
Richard Henderson 0f6e5d4593 frv.c (symbol_ref_small_data_p): Remove.
* config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
        all users with SYMBOL_REF_SMALL_P.
        (const_small_data_p): Use SYMBOL_REF_SMALL_P.
        (frv_encode_section_info): Remove.
        (frv_strip_name_encoding): Remove.
        (frv_in_small_data_p): Merge tests from encode_section_info.
        (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
        * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
        (SDATA_NAME_P): Remove.
        (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
        (ASM_OUTPUT_LABELREF): Remove.
        (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.

From-SVN: r65725
2003-04-16 23:50:02 -07:00
Richard Henderson 90a63880dd frv.c (frv_asm_out_constructor): New.
* config/frv/frv.c (frv_asm_out_constructor): New.
        (frv_asm_out_destructor): New.
        * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
        (DTORS_SECTION_ASM_OP): New.
        (ASM_OUTPUT_CONSTRUCTOR): Remove.
        (ASM_OUTPUT_DESTRUCTOR): Remove.

From-SVN: r65724
2003-04-16 23:44:15 -07:00
Richard Henderson 5c93e01bbc cris.c (cris_gotless_symbol, [...]): Use SYMBOL_REF_LOCAL_P; abort if not pic.
* config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
        SYMBOL_REF_LOCAL_P; abort if not pic.
        (cris_encode_section_info): Remove.

From-SVN: r65721
2003-04-16 22:53:21 -07:00
Richard Henderson 11467df2cf c4x.c (c4x_encode_section_info): Remove.
* config/c4x/c4x.c (c4x_encode_section_info): Remove.
        (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.

From-SVN: r65720
2003-04-16 22:08:01 -07:00
Richard Henderson c4a3da4e47 c4x.h (TARGET_CPU_CPP_BUILTINS): Declare flag_inline_trees.
* config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
        flag_inline_trees.

From-SVN: r65719
2003-04-16 22:07:35 -07:00
Richard Henderson 74b66b3c09 avr.c (avr_encode_section_info): Remove.
* config/avr/avr.c (avr_encode_section_info): Remove.
        (avr_insert_attributes): New.
        (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
        (avr_assemble_integer): Likewise.

From-SVN: r65718
2003-04-16 21:52:57 -07:00
Benjamin Kosnik 9e57d5caf2 acinclude.m4 (GLIBCPP_CHECK_PCH): New.
2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>

        * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
        * aclocal.m4: Regenerated.
        * configure.in: Remove old demangler bits.
        Call pch checks.
        * configure: Regenerate.
        * config.h.in: Regenerate.
        * include/Makefile.am (allstamps): Now allstamped.
        (allcreated): Define this.
        (all-local): Use 'em.
        Conditionally define pch_build, pch_install based on
        GLIBCPP_BUILD_PCH.
        (${pch_output}): New rule.
        (install-pch): New rule.
        (install-headers): New rule.
        (install-data-local): Install headers and conditionally pch.
        * include/Makefile.in: Regenerate.
        * testsuite_flags.in (--build-cxx): Use pch file.

From-SVN: r65717
2003-04-17 03:27:05 +00:00
Richard Henderson 8cbd5ce01a arc.c (arc_encode_section_info): Remove.
* arc.c (arc_encode_section_info): Remove.
        (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
        (arc_print_operand, arc_print_operand_address): Likewise.
        * arc.h (EXTRA_CONSTRAINT): Likewise.

From-SVN: r65716
2003-04-16 18:38:28 -07:00
Roger Sayle 96c6931df4 re PR c/10175 (-Wunreachable-code doesn't work for single lines)
2003-04-16  Roger Sayle  <roger@eyesopen.com>

	* c-semantics.c (find_reachable_label): New function to find a
	potentially reachable label in an expression.
	(expand_unreachable_if_stmt): Similar to expand_if_stmt but
	assumes the start of the IF_STMT is unreachable (dead) code.
	(expand_unreachable_stmt): Similar to expand_stmt but assumes
	the start of the statement list is unreachable (dead) code.
	(genrtl_if_stmt):  If the controlling expression of the IF
	is constant, use expand_unreachable_stmt for the THEN or ELSE
	clause as appropriate.
	(genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
	the body of a SWITCH statement.
	(expand_stmt): The code immediately following a "return",
	"break", "continue" or "goto" is unreachable.
	* Makefile.in (c-semantics.o): Depend upon tree-inline.h.

	* gcc.dg/Wunreachable-5.c: New test case for PR c/10175.
	* gcc.c-torture/execute/medce-1.c: New test case.
	* gcc.c-torture/execute/medce-2.c: New test case.

From-SVN: r65715
2003-04-17 01:22:51 +00:00
Richard Henderson 3568b0ef3d rtl.h (MEM_ALIAS_SET): Update documentation.
* rtl.h (MEM_ALIAS_SET): Update documentation.
        * doc/rtl.texi (Special Accessors): New node.
        (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.

From-SVN: r65714
2003-04-16 18:11:21 -07:00
Alexandre Oliva 60fa6660d8 reload1.c (reload_cse_noop_set_p): Return false if mode of SET_DEST is not the same as that returned by...
* reload1.c (reload_cse_noop_set_p): Return false if mode of
SET_DEST is not the same as that returned by...
* cselib.h (cselib_reg_set_mode): ... new function.
* cselib.c (cselib_reg_set_mode): Define it.
(REG_VALUES): Document semantics of first element as set mode.
(cselib_subst_to_values): Skip first element if ELT is NULL.
(cselib_lookup): Likewise.  Insert past the first element.
(cselib_invalidate_regno): NULLify first element.
(cselib_record_set): Set first element.

From-SVN: r65713
2003-04-17 01:07:12 +00:00
GCC Administrator e34d367d2d Daily bump.
From-SVN: r65712
2003-04-17 00:17:04 +00:00
Kaveh R. Ghazi bd3fbc6b72 configure.in (funcs, [...]): Add snprintf and vsnprintf.
* configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
	vsnprintf.
	* snprintf.c, vsnprintf.c: New files.
	* Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
	(CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
	Regenerate dependencies.

	* functions.texi, configure, config.in: Regenerated.

From-SVN: r65704
2003-04-16 22:42:07 +00:00
Olivier Hainque a9ecacf6c4 tree.c (skip_simple_arithmetics_at, [...]): New functions.
* tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
        (save_expr): Replace loop by call to skip_simple_arithmetics_at.
        * tree.h: Add prototypes for the two new functions.
        * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
        updates introduced in the previous revision by call to saved_expr_p.
        * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.

From-SVN: r65702
2003-04-16 17:33:19 -04:00