Commit Graph

36883 Commits

Author SHA1 Message Date
Gabriel Dos Reis
644a7320f8 Fix thinko
From-SVN: r44827
2001-08-12 13:17:19 +00:00
Gabriel Dos Reis
dfa8224914 Fix thinko in regexp
From-SVN: r44826
2001-08-12 13:11:01 +00:00
Gabriel Dos Reis
4e982a225f Testcase from PR #3625
From-SVN: r44825
2001-08-12 13:04:39 +00:00
Neil Booth
21c38ecb89 * fix-header.c (cb_file_change): Update prototype.
From-SVN: r44824
2001-08-12 09:49:44 +00:00
Gabriel Dos Reis
fe91fda81a testcase from PR #3406
From-SVN: r44823
2001-08-12 08:53:34 +00:00
Gabriel Dos Reis
1910ae1527 Testcase from PR #3381
From-SVN: r44822
2001-08-12 08:26:01 +00:00
Gabriel Dos Reis
e7e0c3d412 Testcase from PR #3351
From-SVN: r44821
2001-08-12 08:15:30 +00:00
Gabriel Dos Reis
370df4c801 Testcase from PR #3350
From-SVN: r44820
2001-08-12 08:08:42 +00:00
Gabriel Dos Reis
4c8c7b0ddf Testecase from PR #3336
From-SVN: r44819
2001-08-12 08:04:34 +00:00
GCC Administrator
ce55d248ca Daily bump.
From-SVN: r44817
2001-08-12 07:16:09 +00:00
Andrew Cagney
b0e9bc8cc3 Oops, fix check-in date.
From-SVN: r44816
2001-08-12 02:06:34 +00:00
Zack Weinberg
94aca34298 toplev.c (set_float_handler): Make static.
* toplev.c (set_float_handler): Make static.
	* toplev.h: Don't prototype set_float_handler.

	* simplify-rtx.c: Don't include setjmp.h.
	(simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
	New functions.
	(simplify_unary_operation, simplify_binary_operation): Use them,
	via do_float_handler.

	* fold-const.c: Don't include setjmp.h.
	(exact_real_inverse_1): New function.
	(exact_real_inverse): Use it, via do_float_handler.

	* varasm.c: Don't include setjmp.h.
	(assemble_real_1): New function.
	(assemble_real): Use it, via do_float_handler.
	Call internal_error if we get a trap here.

	* c-parse.in, cse.c, cselib.c, ch/lex.c, config/i386/i386.c,
	config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.

	* java/lex.h: Don't include setjmp.h.  Don't define
	SET_FLOAT_HANDLER or prototype set_float_handler.

From-SVN: r44815
2001-08-12 01:56:10 +00:00
Zack Weinberg
31cdd4996b defaults.h: Define PREFERRED_STACK_BOUNDARY to STACK_BOUNDARY if not already defined.
* defaults.h: Define PREFERRED_STACK_BOUNDARY to
	STACK_BOUNDARY if not already defined.

	* calls.c, function.c, reload1.c, explow.c: Don't default
	PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
	PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.

	* explow.c (allocate_dynamic_stack_space): Change unsafe #if
	to run-time test.

	* doc/tm.texi: Document that STACK_BOUNDARY is required;
	clarify difference between it and PREFERRED_STACK_BOUNDARY.

From-SVN: r44814
2001-08-12 01:46:15 +00:00
Neil Booth
2b2202656c cppmacro.c (enter_macro_context): Push macro expansions even if empty.
* cppmacro.c (enter_macro_context): Push macro expansions even
	if empty.

From-SVN: r44813
2001-08-11 22:20:20 +00:00
Franz Sirl
d0101753fe rs6000.c: Include integrate.h to silence warning.
2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
	* config/rs6000/rs6000.c: Include integrate.h to silence warning.
	(rs6000_elf_section_type_flags): Actually return a value.

From-SVN: r44812
2001-08-11 21:27:05 +00:00
Ulrich Weigand
994fe6604b Coding style cleanup.
From-SVN: r44811
2001-08-11 21:09:37 +00:00
Ulrich Weigand
f314b9b168 Bring s390 backend back in sync with branch.
From-SVN: r44810
2001-08-11 20:56:12 +00:00
Richard Henderson
dddba20582 rtl.h (REG_EH_RETHROW): Remove.
* rtl.h (REG_EH_RETHROW): Remove.
        * rtl.c (reg_note_name): Update.
        * combine.c (distribute_notes): Don't check for it.

From-SVN: r44809
2001-08-11 13:45:09 -07:00
Gabriel Dos Reis
f6a91eb09f New test from PR #3242
From-SVN: r44808
2001-08-11 20:35:58 +00:00
Gabriel Dos Reis
598f25beb6 New test from PR #3230
From-SVN: r44807
2001-08-11 20:21:55 +00:00
Richard Henderson
ab61c93f12 * combine.c (distribute_notes): Place REG_SETJMP.
From-SVN: r44806
2001-08-11 13:16:12 -07:00
Richard Henderson
58f4de4f27 extend.texi (Arrays and pointers implementation): Discourage relying on sign-extension of pointers.
* doc/extend.texi (Arrays and pointers implementation): Discourage
        relying on sign-extension of pointers.

From-SVN: r44805
2001-08-11 13:13:46 -07:00
Gabriel Dos Reis
9344c8ded1 New test from PR #3123
From-SVN: r44803
2001-08-11 20:00:07 +00:00
Gabriel Dos Reis
73d5e6c118 New test from GNATS #3073
From-SVN: r44802
2001-08-11 19:44:31 +00:00
Gabriel Dos Reis
5a99c3a649 New test from GNATS.
From-SVN: r44801
2001-08-11 18:25:23 +00:00
H.J. Lu
f841565e80 linux.h (EXTRA_SECTIONS): Remove in_ctors and in_dtors.
2001-08-11  H.J. Lu <hjl@gnu.org>

	* config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
	in_dtors.
	(EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
	RDATA_SECTION_ASM_OP.

From-SVN: r44798
2001-08-11 08:43:20 -07:00
Neil Booth
760a4879af * Correct omitted attribution.
From-SVN: r44797
2001-08-11 13:04:31 +00:00
Gerald Pfeifer
d8393f64e9 install.texi (Specific, c4x): Fix cross-reference to the main manual to work both for info and HTML versions.
* doc/install.texi (Specific, c4x): Fix cross-reference to the
	main manual to work both for info and HTML versions.

From-SVN: r44795
2001-08-11 12:42:30 +00:00
Neil Booth
bef985f3f6 cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
* cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
	* cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
	(struct cpp_pool): New member first.
	* cppinit.c (append_include_chain): Plug memory leaks.
	* cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
	Allocate pragma structures from the (aligned) macro pool to
	avoid leaking memory.
	* cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
	so we don't leak memory.
	* hashtable.c (ht_destroy): New.
	* hashtable.h (ht_destroy): New.

From-SVN: r44794
2001-08-11 12:37:19 +00:00
Kriang Lerdsuwanakij
4d5f3fbd61 pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the criterion to avoid rebuilding expression tree...
* pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
	criterion to avoid rebuilding expression tree instead of
	processing_template_decl.

	* g++.dg/template/unify1.C: New test.

From-SVN: r44793
2001-08-11 12:21:17 +00:00
Graham Stott
91b54f7f3f * Makefile.in (check-c++): Add missing semicolon.
From-SVN: r44792
2001-08-11 09:43:31 +00:00
Gabriel Dos Reis
63814ec191 std_limits.h (__glibcpp_char_is_signed): Use __CHAR_UNSIGNED__.
* include/bits/std_limits.h(__glibcpp_char_is_signed): Use
       __CHAR_UNSIGNED__.

       * config/os/gnu-linux/bits/os_defines.h(__glibcpp_char_is_signed):
       Likewise.
       * config/os/aix/bits/os_defines.h(__glibcpp_plain_char_is_signed):
       Remove.

From-SVN: r44791
2001-08-11 08:36:52 +00:00
Neil Booth
f80f7e8cd8 cpphash.h, cpplib.c: Correct erroneous previous checkin.
* cpphash.h, cpplib.c: Correct erroneous previous checkin.

Co-Authored-By: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>

From-SVN: r44790
2001-08-11 08:02:54 +00:00
Neil Booth
47d89cf3e6 c-lex.c (map): Make const.
* c-lex.c (map): Make const.
	(cb_file_change): Update for callback passing a line map.
	Don't assume we have a previous map.  Remove sanity check
	about popping too many files.
	* cpperror.c (print_location): Make map const.
	* cppfiles.c (stack_include_file): Update; line maps now hold sysp.
	(cpp_make_system_header): Similarly.
	(search_from): Similarly.
	(_cpp_execute_include): Don't remember where we came from.
	* cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
	(struct cpp_reader): Make map const.
	(CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
	* cpplib.c (do_line): Update; line maps now hold sysp.
	(cpp_push_buffer): Similarly.
	(_cpp_do_file_change): Similarly; callback with map instead.
	(cpp_get_line_maps): Constify return value.
	(_cpp_pop_buffer): Update.
	* cpplib.h (struct cpp_file_change): Remove.
	(struct cpp_callbacks): Update.
	(cpp_get_line_maps): Constify return value.
	* cppmacro.c (_cpp_create_definition): Update.
	* cppmain.c (struct printer): Constify map.
	(maybe_print_line): Similarly.
	(print_line): Similarly.  Deduce flags 1 and 2 here.
	(cb_file_change): Update.
	* line-map.c (free_line_maps): Warn regardless.
	(add_line_map): Return pointer to const.  When passed NULL to_file
	with LC_LEAVE, use the obvious values for the return point so the
	caller doesn't have to figure them out.
	(lookup_line): Return pointer to const.
	(print_containing_files): Take pointer to const.
	* line-map.h (struct line_map): New members reason, sysp.
	(add_line_map): Return pointer to const.
	(lookup_line): Similarly.
	(print_containing_files): Take pointer to const.

From-SVN: r44789
2001-08-11 07:33:39 +00:00
GCC Administrator
16568b922e Daily bump.
From-SVN: r44787
2001-08-11 07:16:09 +00:00
Roman Zippel
bb948ad31d regmove.c (regmove_optimize): Avoid setting a register twice in a parallel set.
* regmove.c (regmove_optimize): Avoid setting a register twice in
        a parallel set.

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

From-SVN: r44785
2001-08-10 18:05:24 -07:00
Richard Henderson
cbf4c36fa3 extend.texi (Arrays and pointers implementation): Document behavior of pointer/integer conversion.
* doc/extend.texi (Arrays and pointers implementation): Document
        behavior of pointer/integer conversion.

From-SVN: r44784
2001-08-10 17:53:45 -07:00
Richard Henderson
39ffd3cbfd Fix markup.
From-SVN: r44783
2001-08-10 16:49:44 -07:00
Andrew Cagney
0ef5547d0e (lbasename): Change function declaration to return a const char pointer.
From-SVN: r44782
2001-08-10 23:45:11 +00:00
Ulrich Weigand
db80cc1f2a s390x needs 64-bit __LONG_MAX__.
From-SVN: r44781
2001-08-10 22:54:59 +00:00
Richard Henderson
fe203faf3c extend.texi (C Implementation): New chapter.
* doc/extend.texi (C Implementation): New chapter.
        * doc/gcc.texi (Top): Link it in.

From-SVN: r44777
2001-08-10 14:50:45 -07:00
Loren J. Rittle
ff14442814 Makefile.am: Use relative file path in rule to allow colon in $(objdir).
bootstrap/3963
	* include/Makefile.am: Use relative file path in rule to allow
	colon in $(objdir).
	* include/Makefile.in: Rebuilt.

From-SVN: r44776
2001-08-10 20:44:53 +00:00
Loren J. Rittle
b5e58904ae testsuite_hooks.h (__set_testsuite_memlimit): Add dummy default argument to the non-limit implementation.
* testsuite/testsuite_hooks.h (__set_testsuite_memlimit): Add
	dummy default argument to the non-limit implementation.

From-SVN: r44775
2001-08-10 20:29:41 +00:00
Andrew Cagney
894aeeb0d6 Fix CVS merge botch.
From-SVN: r44774
2001-08-10 18:50:04 +00:00
Loren J. Rittle
6e15d3a83a * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
From-SVN: r44772
2001-08-10 17:39:34 +00:00
Loren J. Rittle
cc3835e651 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
From-SVN: r44771
2001-08-10 17:37:41 +00:00
Richard Henderson
d67c7dd855 m68k.c (m68k_svr3_asm_out_constructor): Protect with ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
* config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
        ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.

From-SVN: r44770
2001-08-10 09:56:53 -07:00
Andrew Haley
0dd9979555 linux.h (CPP_DEFAULT_CPU_SPEC): New.
2001-07-26  Andrew Haley  <aph@redhat.com>
	Joern Rennecke <amylaar@redhat.com>

	* config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
	(SUBTARGET_CPP_ENDIAN_SPEC): New.
	(SUBTARGET_CPP_SPEC): New.
	(CPP_SPEC): Remove.
	* config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
	(SUBTARGET_CPP_PTR_SPEC): New.
	(CPP_DEFAULT_CPU_SPEC): New.
	(EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
	SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
	(CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
	SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
	(SUBTARGET_CPP_SPEC): Define as an empty string.

From-SVN: r44769
2001-08-10 16:32:39 +00:00
Zack Weinberg
19652adf82 calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY if not already defined.
* calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
	if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
	this macro is now required.

	* cselib.c (cselib_process_insn), flow.c (propagate_block),
	loop.c (find_and_verify_loops), reload.c (reload): Check
	for rtx code of CALL_INSN, not CALL, when deciding if we
	need to check for REG_SETJMP note.

	* gcse.c (compute_hash_table, compute_store_table): Update
	the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
	logic.

	* config/avr/avr.c: Fix typo.
	* config/convex/convex.c (expand_movstr): Use adjust_address.
	* config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
	variable.
	* config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
	* config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
	Fix typo.
	* config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
	Do define STACK_BOUNDARY.
	* config/i370/i370.c: Include expr.h.
	* config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
	config/pa/som.h, config/v850/v850.h: Take in_ctors and
	in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
	and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
	* config/m88k/m88k.c: Include c-tree.h after expr.h.
	* config/pdp11/pdp11.c: Include expr.h and toplev.h.
	* config/romp/romp.c: Include expr.h after tree.h.
	Include toplev.h.
	(output_fpop): Use xmalloc, not oballoc.
	* config/we32k/we32k.c: Include expr.h.

From-SVN: r44768
2001-08-10 16:19:22 +00:00
Gunter Winkler
07fe2dec7a 2001-08-10 Gunter Winkler gunter.winkler@mathematik.tu-chemnitz.de
* include/bits/std_complex.h (complex<long double>::operator*=,
      complex<long double>::operator/=): Fix thinko.

From-SVN: r44767
2001-08-10 15:51:00 +00:00