Commit Graph

49437 Commits

Author SHA1 Message Date
Neil Booth
6f572ac229 cpphash.h (struct cpp_buffer): Remove backup_to.
* cpphash.h (struct cpp_buffer): Remove backup_to.
	* cpplex.c (BACKUP, get_effective_char): Die.
	(_cpp_skip_block_comment): Assume '*' is location on entry.
	(continues_identifier_p): Respect -fno-dollars-in-identifiers.
	(IF_NEXT_IS): Update.
	(_cpp_lex_direct): Don't use backup_to; look ahead directly.

From-SVN: r65819
2003-04-19 16:34:33 +00:00
Matt Kraai
ced2ad7687 README.Portability: Move to a new section and obsolete K+R portability issues.
* README.Portability: Move to a new section and obsolete K+R
	portability issues.

From-SVN: r65818
2003-04-19 15:53:44 +00:00
Jan Hubicka
070154442e rtlanal.c (subreg_offset_representable_p): Fix call of subreg_lowpart.
* rtlanal.c (subreg_offset_representable_p):  Fix call of
	subreg_lowpart.

From-SVN: r65817
2003-04-19 12:57:36 +00:00
Neil Booth
bced6edfc6 cpphash.h (struct cpp_reader): New member warned_dollar.
* cpphash.h (struct cpp_reader): New member warned_dollar.
	* cpplex.c (continues_identifier_p): New function.
	(parse_identifier, parse_number, parse_string): Rename lex_identifer,
	lex_number and lex_string, and simplify.
	(parse_slow, unescaped_terminator_p): Die.
	(_cpp_lex_direct): Update.

From-SVN: r65816
2003-04-19 11:59:44 +00:00
Richard Kenner
f1d1b741e8 Install proper version.
From-SVN: r65815
2003-04-19 07:57:59 -04:00
Richard Kenner
a259f21876 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
From-SVN: r65814
2003-04-19 07:56:13 -04:00
Nathan Sidwell
8555daffa5 invoke.texi (-fprofile-arcs): Mention -lgcov, locking and fork behaviour.
* doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
	fork behaviour.

From-SVN: r65813
2003-04-19 11:43:31 +00:00
Neil Booth
cb4cfe5dc1 * g++.dg/other/stdbool-if.C: Remove.
From-SVN: r65812
2003-04-19 10:40:06 +00:00
Neil Booth
4e1f0f8e1f cppexp.c (eval_token): Permit true and false even if pedantic.
* cppexp.c (eval_token): Permit true and false even if pedantic.
testsuite:
	* gcc.dg/cpp/truefalse.cpp: New test.
	* gcc.dg/cpp/cpp.exp: Update.

From-SVN: r65811
2003-04-19 10:04:47 +00:00
Neil Booth
bf805def61 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
From-SVN: r65810
2003-04-19 07:56:41 +00:00
Neil Booth
f7d151fbe1 * skip_whitespace: Rearrange to avoid stage1 ICE.
From-SVN: r65809
2003-04-19 07:41:15 +00:00
Neil Booth
26aea0737b 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
2003-04-19 00:22:51 +00:00
GCC Administrator
606c999123 Daily bump.
From-SVN: r65807
2003-04-19 00:17:04 +00:00
Richard Kenner
22672fc483 Add missing ChangeLog from 3/19/03
From-SVN: r65800
2003-04-18 19:03:19 -04:00
Douglas B Rupp
7008a11bab 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
2003-04-18 18:43:28 -04:00
Richard Kenner
34d21fe305 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
2003-04-18 18:39:23 -04:00
Richard Kenner
dd4ff203fa * cfgcleanup.c (flow_find_cross_jump): Use INSN_P,not active_insn_p.
From-SVN: r65797
2003-04-18 18:34:20 -04:00
Richard Kenner
21102f257e * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
From-SVN: r65796
2003-04-18 18:27:18 -04:00
Olivier Hainque
38afb23f55 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
2003-04-18 18:20:55 -04:00
Olivier Hainque
e59baa1f83 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
2003-04-18 18:11:57 -04:00
Vincent Celier
8dcea3f35a 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
2003-04-18 18:05:48 -04:00
Mark Mitchell
eb5b8ad452 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
2003-04-18 22:04:12 +00:00
Mark Mitchell
3e378f1467 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
2003-04-18 22:04:10 +00:00
Kazu Hirata
1b0d0e8481 * reload1.c: Revert my previous patch on 2002-04-17.
From-SVN: r65790
2003-04-18 20:30:24 +00:00
Gerald Pfeifer
906042f559 contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
* doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
	Add Segher Boessenkool.

From-SVN: r65788
2003-04-18 19:49:17 +00:00
Alexander Sotirov
38a314251e 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
2003-04-18 19:39:29 +00:00
Gerald Pfeifer
2f50999f20 Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
* Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
	* Makefile.in: Regenerate.

From-SVN: r65786
2003-04-18 18:26:20 +00:00
Richard Henderson
59c60a985d 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
2003-04-18 11:16:40 -07:00
Paolo Carlini
0b176c1af2 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
2003-04-18 13:55:22 +00:00
Roger Sayle
c553b7026a 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
2003-04-18 13:30:26 +00:00
Jakub Jelinek
e9b841813c 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
2003-04-18 14:32:36 +02:00
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