platform/upstream/gcc.git
21 years ago* skip_whitespace: Rearrange to avoid stage1 ICE.
Neil Booth [Sat, 19 Apr 2003 07:41:15 +0000 (07:41 +0000)]
* skip_whitespace: Rearrange to avoid stage1 ICE.

From-SVN: r65809

21 years agocppfiles.c (ENABLE_VALGRIND_CHECKING, [...]): Remove.
Neil Booth [Sat, 19 Apr 2003 00:22:51 +0000 (00:22 +0000)]
cppfiles.c (ENABLE_VALGRIND_CHECKING, [...]): Remove.

* cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
(struct include_file): Remove fefcnt, mapped members.
(open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
(read_include_file): Don't use mmap, terminate buffers in '\r'.
(purge_cache): Don't use munmap.
* cpphash.h (CPP_BUF_COLUMN): Update.
(lexer_state): Remove lexing_comment.
(struct _cpp_line_note): New.
(struct cpp_buffer): New members cur_note, notes_used, notes_cap,
next_line and need_line.  Remove col_adjust and saved_flags.
(_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
_cpp_skip_block_comment, scan_out_logical_line): New.
(_cpp_init_mbchar): Remove.
* cppinit.c (init_library): Remove call to _cpp_init_mbchar.
(cpp_read_main_file): Set line to 1 earlier.
(post_options): -traditional-cpp doesn't want trigraphs.
* cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
(add_line_note, _cpp_clean_line, _cpp_process_line_notes,
_cpp_get_fresh_line): New.
(handle_newline, skip_escaped_newlines, trigraph_p,
continue_after_nul, _cpp_init_mbchar): Remove.
(get_effective_char): Update.
(_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
(skip_line_comment): Simplify.
(skip_whitespace, parse_identifier, parse_slow, parse_number,
parse_string): Update.
(cpp_lex_direct): Use clean lines and process line notes.  Update.
(cpp_interpret_charconst): No MULTIBYTE_CHARS.
* cpplib.c (prepare_directive_trad): Call scan_out_logical_line
directly.
(_cpp_handle_directive): Don't set saved_flags.
(run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
cpp_undef, handle_assertion, cpp_push_buffer): Update.
(_cpp_pop_buffer): Free notes.
* cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
* cpppch.c (cpp_read_state): \n terminate buffer.
* cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
(copy_comment): Use _cpp_skip_block_comment.
(skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
Simplify.
(_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
save_replacement_text): Update.
(scan_out_logical_line): Update to use clean lines and process
line notes.
* fix-header.c (read_scan_file): Update.
testsuite:
* gcc.dg/cpp/_Pragma4.c: Remove stray space.
* gcc.dg/cpp/trad/escaped-eof.c: Correct line number.

From-SVN: r65808

21 years agoDaily bump.
GCC Administrator [Sat, 19 Apr 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r65807

21 years agoAdd missing ChangeLog from 3/19/03
Richard Kenner [Fri, 18 Apr 2003 23:03:19 +0000 (19:03 -0400)]
Add missing ChangeLog from 3/19/03

From-SVN: r65800

21 years agounwind-dw2-fde.c (__register_frame_info_bases): Check for null begin parameter (as...
Douglas B Rupp [Fri, 18 Apr 2003 22:43:28 +0000 (18:43 -0400)]
unwind-dw2-fde.c (__register_frame_info_bases): Check for null begin parameter (as well as pointer to null).

* unwind-dw2-fde.c (__register_frame_info_bases): Check for
null begin parameter (as well as pointer to null).
(__deregister_frame_info_bases): Likewise.

From-SVN: r65799

21 years agofunction.c (purge_addressof_1): For ADDRESSOF...
Richard Kenner [Fri, 18 Apr 2003 22:39:23 +0000 (22:39 +0000)]
function.c (purge_addressof_1): For ADDRESSOF...

* function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
hard or virtual register and copy into pseudo if replacement fails.

From-SVN: r65798

21 years ago* cfgcleanup.c (flow_find_cross_jump): Use INSN_P,not active_insn_p.
Richard Kenner [Fri, 18 Apr 2003 22:34:20 +0000 (22:34 +0000)]
* cfgcleanup.c (flow_find_cross_jump): Use INSN_P,not active_insn_p.

From-SVN: r65797

21 years ago* expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
Richard Kenner [Fri, 18 Apr 2003 22:27:18 +0000 (22:27 +0000)]
* expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.

From-SVN: r65796

21 years agocalls.c (expand_call): Move special case for constructor calls to right place.
Olivier Hainque [Fri, 18 Apr 2003 22:20:55 +0000 (00:20 +0200)]
calls.c (expand_call): Move special case for constructor calls to right place.

* calls.c (expand_call): Move special case for constructor calls
to right place. Ensures constructor calls used to initialize
arguments get a clean outgoing argument block for themselves.
Move check for stack deallocation completeness until after last
deallocation.  Add stack_pointer_delta to set of state
variables saved and restored along with current stack_level.

From-SVN: r65795

21 years agointegrate.c (expand_inline_function): Ensure non-const actuals don't end up const...
Olivier Hainque [Fri, 18 Apr 2003 22:11:57 +0000 (00:11 +0200)]
integrate.c (expand_inline_function): Ensure non-const actuals don't end up const in the caller's flow after...

        * integrate.c (expand_inline_function): Ensure non-const actuals
        don't end up const in the caller's flow after conversion to possibly
        const formal type.

From-SVN: r65794

21 years agodwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR and *_DIV_EXPR as TRUNC_...
Vincent Celier [Fri, 18 Apr 2003 22:05:48 +0000 (22:05 +0000)]
dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR and *_DIV_EXPR as TRUNC_*_EXPR.

        * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
        and *_DIV_EXPR as TRUNC_*_EXPR.

From-SVN: r65793

21 years agocfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump...
Mark Mitchell [Fri, 18 Apr 2003 22:04:12 +0000 (22:04 +0000)]
cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump tables.

* cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
for orphaned jump tables.

From-SVN: r65792

21 years agocfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump...
Mark Mitchell [Fri, 18 Apr 2003 22:04:10 +0000 (22:04 +0000)]
cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump tables.

* cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
for orphaned jump tables.

[[Split portion of a mixed commit.]]

From-SVN: r65791.2

21 years ago* reload1.c: Revert my previous patch on 2002-04-17.
Kazu Hirata [Fri, 18 Apr 2003 20:30:24 +0000 (20:30 +0000)]
* reload1.c: Revert my previous patch on 2002-04-17.

From-SVN: r65790

21 years agocontrib.texi (Contributors): Prefer "bug fix" over "bugfix".
Gerald Pfeifer [Fri, 18 Apr 2003 19:49:17 +0000 (21:49 +0200)]
contrib.texi (Contributors): Prefer "bug fix" over "bugfix".

* doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
Add Segher Boessenkool.

From-SVN: r65788

21 years agore PR c/9177 (-fdump-translation-unit: C front end deletes function_decl AST nodes...
Alexander Sotirov [Fri, 18 Apr 2003 19:39:29 +0000 (19:39 +0000)]
re PR c/9177 (-fdump-translation-unit: C front end deletes function_decl AST nodes and breaks debugging dumps.)

PR c/9177
* c-decl.c (c_expand_body): Don't garbage collect the function
body if we are going to dump it later.

From-SVN: r65787

21 years agoMakefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
Gerald Pfeifer [Fri, 18 Apr 2003 18:26:20 +0000 (20:26 +0200)]
Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.

* Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
* Makefile.in: Regenerate.

From-SVN: r65786

21 years agoalpha.c (SYMBOL_FLAG_NEAR, [...]): Remove.
Richard Henderson [Fri, 18 Apr 2003 18:16:40 +0000 (11:16 -0700)]
alpha.c (SYMBOL_FLAG_NEAR, [...]): Remove.

        * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
        (alpha_end_function): Don't set them.
        (decl_in_text_section): Remove.
        (alpha_encode_section_info): Remove.
        (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
        (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
        sections, rather than decl_in_text_section results.

From-SVN: r65785

21 years agoAccording to 5.9 para 2 (second bullet) for pointers p...
Paolo Carlini [Fri, 18 Apr 2003 13:55:22 +0000 (15:55 +0200)]
According to 5.9 para 2 (second bullet) for pointers p...

2003-04-18  Paolo Carlini  <pcarlini@unitus.it>

According to 5.9 para 2 (second bullet) for pointers p, q
pointing to the same type, with  p == 0 and q == 0, (p < q)
is false.
* include/bits/fstream.tcc (close, overflow, _M_really_overflow,
seekoff): Remove redundant NULL pointer checks from tests
involving _M_out_* and _M_in_*, const qualify bool variables.
(showmanyc, pbackfail, _M_convert_to_external, imbue): Const
qualify bool variables.
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
Remove redundant NULL pointer checks from tests involving
_M_out_* and _M_in_*, const qualify bool variables.
* include/std/std_fstream.h (sync): Likewise.
(_M_is_indeterminate): Const qualify bool variables.
* include/std/std_streambuf.h (sgetc, uflow): Remove redundant
NULL pointer checks from tests involving _M_out_* and _M_in_*,
const qualify bool variables.
(_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
variables.

From-SVN: r65783

21 years agortlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT and SIGN_EXTRACT.
Roger Sayle [Fri, 18 Apr 2003 13:30:26 +0000 (13:30 +0000)]
rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT and SIGN_EXTRACT.

* rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
and SIGN_EXTRACT.

From-SVN: r65782

21 years agoconfigure.in (powerpc64*-*-linux*): Remove.
Jakub Jelinek [Fri, 18 Apr 2003 12:32:36 +0000 (14:32 +0200)]
configure.in (powerpc64*-*-linux*): Remove.

* configure.in (powerpc64*-*-linux*): Remove.
* configure: Rebuilt.
libffi/
* include/ffi.h.in (POWERPC64): Define if 64-bit.
(enum ffi_abi): Add FFI_LINUX64 on POWERPC.
Make it the default on POWERPC64.
(FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
* configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
* configure: Rebuilt.
* src/powerpc/ffi.c (hidden): Define.
(ffi_prep_args_SYSV): Renamed from
ffi_prep_args.  Cast pointers to unsigned long to shut up warnings.
(NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
ASM_NEEDS_REGISTERS64): New.
(ffi_prep_args64): New function.
(ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
(ffi_call): Likewise.
(ffi_prep_closure): Likewise.
(flush_icache): Surround by #ifndef POWERPC64.
(ffi_dblfl): New union type.
(ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
(ffi_closure_helper_LINUX64): New function.
* src/powerpc/ppc_closure.S: Surround whole file by #ifndef
__powerpc64__.
* src/powerpc/sysv.S: Likewise.
(ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
* src/powerpc/linux64.S: New file.
* src/powerpc/linux64_closure.S: New file.
* Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
src/powerpc/linux64_closure.S.
(TARGET_SRC_POWERPC): Likewise.

* src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
closure_test_fn3): Fix result printing on big-endian 64-bit
machines.
(main): Print tst2_arg instead of uninitialized tst2_result.

* src/ffitest.c (main): Hide what closure pointer really points to
from the compiler.

From-SVN: r65781

21 years agoporting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
Loren J. Rittle [Fri, 18 Apr 2003 09:53:58 +0000 (09:53 +0000)]
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

21 years agostd_cmath.h (C99 FP capture): Only undefine said C99 FP macros, if actually captured.
Loren J. Rittle [Fri, 18 Apr 2003 06:58:42 +0000 (06:58 +0000)]
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

21 years agore PR rtl-optimization/7675 (ICE in fixup_var_refs_1)
Eric Botcazou [Fri, 18 Apr 2003 06:45:15 +0000 (08:45 +0200)]
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

21 years agore PR libstdc++/9555 (ostream inserters fail to set badbit on exception)
Benjamin Kosnik [Fri, 18 Apr 2003 03:46:44 +0000 (03:46 +0000)]
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

21 years agoc++config: Minor cosmetic tweaks.
Phil Edwards [Fri, 18 Apr 2003 02:41:06 +0000 (02:41 +0000)]
c++config: Minor cosmetic tweaks.

2003-04-17  Phil Edwards  <pme@gcc.gnu.org>

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

From-SVN: r65768

21 years agotestsuite_flags.in (PCHFLAGS): Find PCH in new home.
Loren J. Rittle [Fri, 18 Apr 2003 02:03:52 +0000 (02:03 +0000)]
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

21 years agogcse.c (compute_ld_motion_mems): For MEM destinations...
Hans-Peter Nilsson [Fri, 18 Apr 2003 01:29:19 +0000 (01:29 +0000)]
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

21 years agoDaily bump.
GCC Administrator [Fri, 18 Apr 2003 00:17:06 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r65765

21 years agogcov-dump.c (tag_summary): Remove max_sum
Jan Hubicka [Thu, 17 Apr 2003 23:33:05 +0000 (01:33 +0200)]
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

21 years agoemit-rtl.c (subreg_hard_regno): Check that register is representable.
Jan Hubicka [Thu, 17 Apr 2003 23:31:41 +0000 (01:31 +0200)]
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

21 years agotoplev.c (target_options): Add value field.
DJ Delorie [Thu, 17 Apr 2003 23:18:58 +0000 (19:18 -0400)]
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

21 years ago* cpppch.c (cpp_valid_state): Unconditionally initialize nl.
Loren J. Rittle [Thu, 17 Apr 2003 23:10:17 +0000 (23:10 +0000)]
* cpppch.c (cpp_valid_state): Unconditionally initialize nl.

From-SVN: r65755

21 years agoreload1.c (move2add_last_cc0): New.
Kazu Hirata [Thu, 17 Apr 2003 21:42:19 +0000 (21:42 +0000)]
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

21 years agore PR c/10375 (Function-local external decls of builtins don't get attributes)
Roger Sayle [Thu, 17 Apr 2003 21:27:37 +0000 (21:27 +0000)]
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

21 years agoMakefile.tpl (GCC_STRAP_TARGETS): New variable containing all the previous bootstrap...
Phil Edwards [Thu, 17 Apr 2003 21:04:05 +0000 (21:04 +0000)]
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

21 years agofix date in previous entry
Janis Johnson [Thu, 17 Apr 2003 20:05:06 +0000 (20:05 +0000)]
fix date in previous entry

From-SVN: r65749

21 years agosourcebuild.texi (Test Suites): Document support for testing binary compatibility...
Janis Johnson [Thu, 17 Apr 2003 20:04:32 +0000 (20:04 +0000)]
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

21 years ago* config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
Richard Henderson [Thu, 17 Apr 2003 19:54:03 +0000 (12:54 -0700)]
* config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.

From-SVN: r65747

21 years agogpl.texi: Fix double-spacing after "MA" to match the one provided by the FSF.
Simon Law [Thu, 17 Apr 2003 16:36:06 +0000 (16:36 +0000)]
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

21 years agoinstall.texi (Binaries): Update URL and list of platforms provided by ftp.thewrittenw...
Gerald Pfeifer [Thu, 17 Apr 2003 14:12:33 +0000 (16:12 +0200)]
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

21 years agore PR c++/10347 (tree check ICE in dependent_type_p)
Kriang Lerdsuwanakij [Thu, 17 Apr 2003 14:05:54 +0000 (14:05 +0000)]
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

21 years agowarn-1.c (tourist_guide): New array, contains a pointer to bar.
J"orn Rennecke [Thu, 17 Apr 2003 11:46:56 +0000 (11:46 +0000)]
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

21 years agostd_streambuf.h (setp): _M_out_lim, being the end limit of used put area, is set...
Paolo Carlini [Thu, 17 Apr 2003 11:29:15 +0000 (13:29 +0200)]
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

21 years agoxtensa.c (xtensa_encode_section_info): Remove.
Richard Henderson [Thu, 17 Apr 2003 11:24:04 +0000 (04:24 -0700)]
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

21 years agov850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
Richard Henderson [Thu, 17 Apr 2003 11:16:30 +0000 (04:16 -0700)]
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

21 years agostormy16.c (xstormy16_encode_section_info): Kill.
Richard Henderson [Thu, 17 Apr 2003 10:35:08 +0000 (03:35 -0700)]
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

21 years agosparc.c (sparc_encode_section_info): Remove.
Richard Henderson [Thu, 17 Apr 2003 10:31:01 +0000 (03:31 -0700)]
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

21 years agosh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
Richard Henderson [Thu, 17 Apr 2003 10:24:59 +0000 (03:24 -0700)]
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

21 years agos390.c (SYMBOL_FLAG_ALIGN1): New.
Richard Henderson [Thu, 17 Apr 2003 09:59:32 +0000 (02:59 -0700)]
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

21 years agons32k.c (ns32k_encode_section_info): Remove.
Richard Henderson [Thu, 17 Apr 2003 09:25:19 +0000 (02:25 -0700)]
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

21 years agomcore.c (mcore_encode_section_info): Don't set SYMBOL_REF_FLAG.
Richard Henderson [Thu, 17 Apr 2003 08:57:13 +0000 (01:57 -0700)]
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

21 years agortl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
Richard Henderson [Thu, 17 Apr 2003 08:49:53 +0000 (01:49 -0700)]
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

21 years agoip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
Richard Henderson [Thu, 17 Apr 2003 07:39:56 +0000 (00:39 -0700)]
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

21 years agovarasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_EXTERNAL if not TREE_PU...
Richard Henderson [Thu, 17 Apr 2003 07:34:34 +0000 (00:34 -0700)]
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

21 years ago* doc/invoke.texi (inline-limit): Fix pasto.
Eric Botcazou [Thu, 17 Apr 2003 07:28:28 +0000 (09:28 +0200)]
* doc/invoke.texi (inline-limit): Fix pasto.

From-SVN: r65727

21 years agoh8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
Richard Henderson [Thu, 17 Apr 2003 07:16:15 +0000 (00:16 -0700)]
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

21 years agofrv.c (symbol_ref_small_data_p): Remove.
Richard Henderson [Thu, 17 Apr 2003 06:50:02 +0000 (23:50 -0700)]
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

21 years agofrv.c (frv_asm_out_constructor): New.
Richard Henderson [Thu, 17 Apr 2003 06:44:15 +0000 (23:44 -0700)]
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

21 years agocris.c (cris_gotless_symbol, [...]): Use SYMBOL_REF_LOCAL_P; abort if not pic.
Richard Henderson [Thu, 17 Apr 2003 05:53:21 +0000 (22:53 -0700)]
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

21 years agoc4x.c (c4x_encode_section_info): Remove.
Richard Henderson [Thu, 17 Apr 2003 05:08:01 +0000 (22:08 -0700)]
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

21 years agoc4x.h (TARGET_CPU_CPP_BUILTINS): Declare flag_inline_trees.
Richard Henderson [Thu, 17 Apr 2003 05:07:35 +0000 (22:07 -0700)]
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

21 years agoavr.c (avr_encode_section_info): Remove.
Richard Henderson [Thu, 17 Apr 2003 04:52:57 +0000 (21:52 -0700)]
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

21 years agoacinclude.m4 (GLIBCPP_CHECK_PCH): New.
Benjamin Kosnik [Thu, 17 Apr 2003 03:27:05 +0000 (03:27 +0000)]
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

21 years agoarc.c (arc_encode_section_info): Remove.
Richard Henderson [Thu, 17 Apr 2003 01:38:28 +0000 (18:38 -0700)]
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

21 years agore PR c/10175 (-Wunreachable-code doesn't work for single lines)
Roger Sayle [Thu, 17 Apr 2003 01:22:51 +0000 (01:22 +0000)]
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

21 years agortl.h (MEM_ALIAS_SET): Update documentation.
Richard Henderson [Thu, 17 Apr 2003 01:11:21 +0000 (18:11 -0700)]
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

21 years agoreload1.c (reload_cse_noop_set_p): Return false if mode of SET_DEST is not the same...
Alexandre Oliva [Thu, 17 Apr 2003 01:07:12 +0000 (01:07 +0000)]
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

21 years agoDaily bump.
GCC Administrator [Thu, 17 Apr 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r65712

21 years agoconfigure.in (funcs, [...]): Add snprintf and vsnprintf.
Kaveh R. Ghazi [Wed, 16 Apr 2003 22:42:07 +0000 (22:42 +0000)]
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

21 years agotree.c (skip_simple_arithmetics_at, [...]): New functions.
Olivier Hainque [Wed, 16 Apr 2003 21:33:19 +0000 (23:33 +0200)]
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

21 years agoexpr.c (store_field): Force usage of bitfield instructions when the field position...
Olivier Hainque [Wed, 16 Apr 2003 21:30:35 +0000 (23:30 +0200)]
expr.c (store_field): Force usage of bitfield instructions when the field position requires it...

        * expr.c (store_field): Force usage of bitfield instructions when
        the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
        (expand_expr, case BIT_FIELD_REF): likewise.

From-SVN: r65701

21 years agore PR middle-end/8866 (Bug in switch statement code generation -- missing label)
Mark Mitchell [Wed, 16 Apr 2003 20:39:12 +0000 (20:39 +0000)]
re PR middle-end/8866 (Bug in switch statement code generation -- missing label)

PR middle-end/8866
* cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
jumptables.

PR middle-end/8866
* libjava.lang/PR8866.java: New test.

From-SVN: r65698

21 years agoia64.c (sdata_symbolic_operand): Use SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
Richard Henderson [Wed, 16 Apr 2003 19:53:13 +0000 (12:53 -0700)]
ia64.c (sdata_symbolic_operand): Use SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.

        * config/ia64/ia64.c (sdata_symbolic_operand): Use
        SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
        (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
        (function_operand): Use SYMBOL_REF_FUNCTION_P.
        (ia64_expand_load_address): Likewise.
        (ia64_assemble_integer): Likewise.
        (ia64_encode_section_info): Remove.
        (ia64_strip_name_encoding): Remove.
        * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
        * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.

From-SVN: r65697

21 years agoalpha.c (SYMBOL_FLAG_NEAR, [...]): New.
Richard Henderson [Wed, 16 Apr 2003 19:34:02 +0000 (12:34 -0700)]
alpha.c (SYMBOL_FLAG_NEAR, [...]): New.

        * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
        (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
        (direct_call_operand): Use SYMBOL_FLAG_NEAR.
        (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
        (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
        (global_symbolic_operand): Similarly.
        (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
        (tls_symbolic_operand_type): Likewise.
        (alpha_encode_section_info): Use default_encode_section_info.
        (alpha_strip_name_encoding): Remove.
        (get_tls_get_addr): Split out from ...
        (alpha_legitimize_address): ... here.
        (alpha_emit_xfloating_libcall): Use init_one_libfunc.
        (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
        (alpha_initialize_trampoline): Use init_one_libfunc.
        (alpha_setup_incoming_varargs): Mark unused parameters.
        (alpha_initial_elimination_offset): Likewise.
        (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
        (unicosmk_unique_section): Use default_strip_name_encoding.
        (unicosmk_ssib_name, unicosmk_output_externs): Likewise.

From-SVN: r65696

21 years agoconfig.gcc: Add t-spe for eabispe.
Aldy Hernandez [Wed, 16 Apr 2003 18:58:08 +0000 (18:58 +0000)]
config.gcc: Add t-spe for eabispe.

2003-04-16  Aldy Hernandez  <aldyh@redhat.com>

        * config.gcc: Add t-spe for eabispe.

        * config/rs6000/t-spe: New.

From-SVN: r65695

21 years agoconfigure.in (arm-*-netbsdelf*): Enable building java libraries.
Richard Earnshaw [Wed, 16 Apr 2003 18:33:59 +0000 (18:33 +0000)]
configure.in (arm-*-netbsdelf*): Enable building java libraries.

* configure.in (arm-*-netbsdelf*): Enable building java libraries.
* configure: Regenerated.

From-SVN: r65694

21 years agoieeefp.h: Handle ARM platforms that have pure-endian floating point.
Richard Earnshaw [Wed, 16 Apr 2003 18:32:06 +0000 (18:32 +0000)]
ieeefp.h: Handle ARM platforms that have pure-endian floating point.

* java/lang/ieeefp.h: Handle ARM platforms that have pure-endian
floating point.

From-SVN: r65693

21 years ago* include/private/gcconfig.h: Add support for arm-netbsdelf.
Richard Earnshaw [Wed, 16 Apr 2003 18:28:29 +0000 (18:28 +0000)]
* include/private/gcconfig.h: Add support for arm-netbsdelf.

From-SVN: r65692

21 years agoconfigure.in (arm-*-netbsdelf*): Add configuration.
Richard Earnshaw [Wed, 16 Apr 2003 18:25:33 +0000 (18:25 +0000)]
configure.in (arm-*-netbsdelf*): Add configuration.

* configure.in (arm-*-netbsdelf*): Add configuration.
(configure): Regenerated.

From-SVN: r65691

21 years agoRe-apply this patch:
J"orn Rennecke [Wed, 16 Apr 2003 17:41:10 +0000 (17:41 +0000)]
Re-apply this patch:

2002-05-16  Dale Johannesen  <dalej@apple.com>
  * combine.c (cant_combine_insn_p):  Reenable combinations
  involving hard regs unless CLASS_LIKELY_SPILLED_P.

From-SVN: r65689

21 years agopa-protos.h (function_arg): Remove last argument.
John David Anglin [Wed, 16 Apr 2003 17:06:50 +0000 (17:06 +0000)]
pa-protos.h (function_arg): Remove last argument.

PR/10271
* pa-protos.h (function_arg): Remove last argument.
* pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
* pa.h (struct hppa_args): Add member incoming.
(INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
member incoming.
(FUNCTION_ARG): Revise call to function_arg.
(FUNCTION_INCOMING_ARG): Delete.

From-SVN: r65687

21 years agosgiexts.html: Fix path to stylesheet.
Jonathan Wakely [Wed, 16 Apr 2003 17:02:47 +0000 (18:02 +0100)]
sgiexts.html: Fix path to stylesheet.

2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>

* docs/html/ext/sgiexts.html: Fix path to stylesheet.

From-SVN: r65686

21 years agoThrow_2.java (main): Make a successful test produce some output.
Andrew Haley [Wed, 16 Apr 2003 11:43:04 +0000 (11:43 +0000)]
Throw_2.java (main): Make a successful test produce some output.

2003-04-16  Andrew Haley  <aph@redhat.com>

* libjava.lang/Throw_2.java (main): Make a successful test produce
some output.

From-SVN: r65678

21 years agoconfigure.in: Unify the code which creates symlinks to a just-built as...
Zack Weinberg [Wed, 16 Apr 2003 06:51:20 +0000 (06:51 +0000)]
configure.in: Unify the code which creates symlinks to a just-built as...

* configure.in: Unify the code which creates symlinks to a
just-built as, ld, objdump, and nm with the code that detects
their presence for purposes of feature tests.
* configure: Regenerate.

From-SVN: r65677

21 years agoFix typo in last checkin.
Kaveh Ghazi [Wed, 16 Apr 2003 04:42:38 +0000 (04:42 +0000)]
Fix typo in last checkin.

From-SVN: r65676

21 years agomempcpy.c, [...]: New files.
Kaveh R. Ghazi [Wed, 16 Apr 2003 02:56:46 +0000 (02:56 +0000)]
mempcpy.c, [...]: New files.

* mempcpy.c, stpcpy.c, stpncpy.c: New files.
* configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
and stpncpy.
* Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
(CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
Regenerate dependencies.

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

From-SVN: r65674

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

From-SVN: r65673

21 years agore PR libstdc++/9423 (filebuf::pubsetbuf(0, 0) doesn't turn off buffering if called...
Benjamin Kosnik [Tue, 15 Apr 2003 22:38:47 +0000 (22:38 +0000)]
re PR libstdc++/9423 (filebuf::pubsetbuf(0, 0) doesn't turn off buffering if called after open)

2003-04-15  Benjamin Kosnik  <bkoz@redhat.com>
    Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/9423
* docs/html/27_io/howto.html
('The buffering is screwing up my program!'): Explain that
opening counts as an I/O operation.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r65665

21 years agovarasm.c (output_constant_def): Do not consult CONSTANT_AFTER_FUNCTION_P.
Zack Weinberg [Tue, 15 Apr 2003 20:57:12 +0000 (20:57 +0000)]
varasm.c (output_constant_def): Do not consult CONSTANT_AFTER_FUNCTION_P.

* varasm.c (output_constant_def): Do not consult
CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
(after_function_constants, output_after_function_constants): Delete.
* doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
* config/mips/mips-protos.h, config/mips/mips.c
(mips16_constant_after_function_p): Delete.
* config/mips/mips.h: Delete #if-0-ed definition of
CONSTANT_AFTER_FUNCTION_P.
* config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
mention of CONSTANT_AFTER_FUNCTION_P in comment.

From-SVN: r65663

21 years agotree.c (next_decl_uid): Mark with GTY.
Geoffrey Keating [Tue, 15 Apr 2003 20:48:04 +0000 (20:48 +0000)]
tree.c (next_decl_uid): Mark with GTY.

* tree.c (next_decl_uid): Mark with GTY.
(next_type_uid): Likewise.

From-SVN: r65662

21 years agoargv.c: Fix comments.
Kaveh R. Ghazi [Tue, 15 Apr 2003 20:36:33 +0000 (20:36 +0000)]
argv.c: Fix comments.

* argv.c: Fix comments.
* calloc.c: Don't unnecessarily include "libiberty.h".
(bzero): Add prototype.
* floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
* getcwd.c (getcwd): Use standard definition to avoid conflicts
with system headers.
* hashtab.c (htab_traverse): Delete unused variables.
* rename.c: Include "ansidecl.h".
(rename): Use standard definition to avoid conflicts with system
headers.
* strsignal.c: Rely on ANSI_PROTOTYPES.
* strstr.c: Check GNUC >= 2, not GNUC == 2.
* vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
* vprintf.c: Include "ansidecl.h" earlier, rely on
ANSI_PROTOTYPES.
* vsprintf.c: Include "ansidecl.h" earlier, rely on
ANSI_PROTOTYPES and possibly include <stdarg.h>.

* Makefile.in: Regenerate dependencies.

From-SVN: r65659

21 years agopthread1.cc: Enable for darwin test.
Andreas Tobler [Tue, 15 Apr 2003 20:31:57 +0000 (22:31 +0200)]
pthread1.cc: Enable for darwin test.

2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
        * testsuite/thread/pthread1.cc: Enable for darwin test.
        * testsuite/thread/pthread2.cc: Same.
        * testsuite/thread/pthread3.cc: Same.
        * testsuite/thread/pthread4.cc: Same.
        * testsuite/thread/pthread5.cc: Same.
        * testsuite/thread/pthread6.cc: Same.

From-SVN: r65658

21 years ago* lib/prune.exp: Ignore more messages.
Mark Mitchell [Tue, 15 Apr 2003 20:24:48 +0000 (20:24 +0000)]
* lib/prune.exp: Ignore more messages.

From-SVN: r65657

21 years agore PR c++/10381 (Accepts call to inexistent function)
Mark Mitchell [Tue, 15 Apr 2003 20:23:36 +0000 (20:23 +0000)]
re PR c++/10381 (Accepts call to inexistent function)

PR c++/10381
* parser.c (cp_parser_primary_expression): Reorganize logic for
dealing with name lookup failures.

PR c++/10381
* g++.dg/parse/lookup3.C: New test.

From-SVN: r65656

21 years ago* maint-tool (deps): Scan for headers in $srcdir also.
DJ Delorie [Tue, 15 Apr 2003 19:21:38 +0000 (15:21 -0400)]
* maint-tool (deps): Scan for headers in $srcdir also.

From-SVN: r65653

21 years agore PR target/9594 ([sh4-elf] Assembler complains pcrel too far.)
J"orn Rennecke [Tue, 15 Apr 2003 18:30:40 +0000 (18:30 +0000)]
re PR target/9594 ([sh4-elf] Assembler complains pcrel too far.)

PR target/9594:
* sh.c (barrier_align): Also recognize stuff_delay_slot as
an indicator that a barrier was created by branch splitting.

From-SVN: r65652

21 years ago* MAINTAINERS: Remove myself as windows/cygwin/mingw maintainer.
DJ Delorie [Tue, 15 Apr 2003 16:47:42 +0000 (12:47 -0400)]
* MAINTAINERS: Remove myself as windows/cygwin/mingw maintainer.

From-SVN: r65648

21 years agoc-decl.c (implicitly_declare): Copy declarations that are going to be placed in a...
Mark Mitchell [Tue, 15 Apr 2003 16:35:52 +0000 (16:35 +0000)]
c-decl.c (implicitly_declare): Copy declarations that are going to be placed in a local scope.

* c-decl.c (implicitly_declare): Copy declarations that are going
to be placed in a local scope.

From-SVN: r65646

21 years agoinvoke.texi (Spec Files): Wrap if-exists-else example.
James A. Morrison [Tue, 15 Apr 2003 16:34:07 +0000 (16:34 +0000)]
invoke.texi (Spec Files): Wrap if-exists-else example.

* invoke.texi (Spec Files): Wrap if-exists-else example.
(MCore): Remove duplicate @itemx entries and @opindex entries.

From-SVN: r65645