Commit Graph

31548 Commits

Author SHA1 Message Date
Mark Mitchell
97150c41bd arraynew.C: Use `std' where necessary.
* g++.old-deja/g++.abi/arraynew.C: Use `std' where necessary.
	* g++.old-deja/g++.abi/cxa_vec.C: Likewise.
	* g++.old-deja/g++.abi/ptrflags.C: Likewise.
	* g++.old-deja/g++.abi/vmihint.C: Likewise.

From-SVN: r37492
2000-11-16 04:14:37 +00:00
Mark Mitchell
c4d3f801a6 acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Substitute libio_la.
* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Substitute libio_la.
	* src/Makefile.am (libstdc___la_LIBADD): Use it.
	* aclocal.m4: Regenerated.
	* configure: Likewise.
	* Makefile.in: Likewise.
	* libio/Makefile.in: Likewise.
	* libmath/Makefile.in: Likewise.
	* libsupc++/Makefile.in: Likewise.
	* src/Makfile.in: Likewise.

From-SVN: r37491
2000-11-16 01:44:03 +00:00
Mark Mitchell
4f12dd3c7d mkcheckin.in: Move check for bash version 2 later in the file.
* mkcheckin.in: Move check for bash version 2 later in the file.

	* include/bits/basic_string.h (basic_string::_Rep::_S_max_size):
	Make it const.
	(basic_string::_Rep::_S_terminal): Likewise.
	* include/bits/string.tcc (basic_string::_Rep::_S_max_size):
	Likewise.
	(basic_string::_Rep::_S_terminal): Likewise.

From-SVN: r37490
2000-11-16 01:03:20 +00:00
Gerald Pfeifer
9e038f71b0 Fix ChangeLog entry: cplus-dem.c instead of cplus_dem.c
From-SVN: r37489
2000-11-15 23:03:52 +00:00
David Billinghurst
74e1cd2546 mkcheck.in: Add function size_command() for irix.
2000-11-15  David Billinghurst  <David.Billinghurst@riotinto.com>

	* mkcheck.in:  Add function size_command() for irix.

From-SVN: r37488
2000-11-15 20:08:59 +00:00
Neil Booth
fe6c2db99a cpplib.c (start_directive, [...]): New functions.
* cpplib.c (start_directive, end_directive): New functions.
        (_cpp_handle_directive, run_directive): Use them.
        (_cpp_handle_directive): Don't -Wtraditional on indented
        null directives.
        (_cpp_push_buffer): Don't re-clear was_skipping.
        * cpplib.h (struct cpp_reader): New member la_saved.
        * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
        directives.

From-SVN: r37487
2000-11-15 19:25:22 +00:00
Neil Booth
cbc2c182d1 _Pragma1.c: Update.
* gcc.dg/cpp/_Pragma1.c: Update.
        * gcc.dg/cpp/_Pragma2.c: New test.

From-SVN: r37486
2000-11-15 19:23:41 +00:00
Mark Mitchell
6213608449 toplev.c (wrapup_global_declarations): Don't write out artificial static variables that aren't needed.
* toplev.c (wrapup_global_declarations): Don't write out
	artificial static variables that aren't needed.

	* decl.c (wrapup_globals_for_namespace): Don't mark things
	TREE_ASM_WRITTEN when they're not.

From-SVN: r37485
2000-11-15 18:34:29 +00:00
Toon Moene
adcee32ccb configure.in: See if `mkstemp' is available.
2000-11-15  Toon Moene  <toon@moene.indiv.nluug.nl>

	* libI77/configure.in: See if `mkstemp' is available.
	* libI77/configure: Regenerate.
	* libI77/open.c: Use `mkstemp' to create scratch
	file atomically.

From-SVN: r37484
2000-11-15 18:26:42 +00:00
Kenneth Block
0437a5a8a8 cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot be used in GCC.
* cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot
	be used in GCC.

From-SVN: r37483
2000-11-15 17:35:20 +00:00
Bernd Schmidt
099dde21d2 Workaround for Itanium A/B step errata
From-SVN: r37482
2000-11-15 17:29:00 +00:00
Fred Fish
4e7b85edbe mkfixinc.sh (fixincludes): Add *-*-beos* to list of machines for which fixincludes is not needed.
* fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
        machines for which fixincludes is not needed.
        * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.

From-SVN: r37481
2000-11-15 10:56:59 -05:00
Jason Merrill
ee3400e881 diagnostic.c (finish_abort): New fn.
* diagnostic.c (finish_abort): New fn.
        (fancy_abort, error_recursion): Use it.
        * toplev.c (crash_signal): Likewise.
        * diagnostic.h: Declare it.

        * typeck2.c (friendly_abort): Uncount the error before handing
        off to fancy_abort.

From-SVN: r37480
2000-11-15 10:50:51 -05:00
Andrew Haley
12e1243e42 tree.c (build_type_no_quals): New function.
2000-11-13  Andrew Haley  <aph@redhat.com>

        * tree.c (build_type_no_quals): New function.
        * tree.h (build_type_no_quals): Declare.
        * c-common.c (c_get_alias_set): When considering type
        compatibility for pointer types, ignore cv-qualifiers anywhere in
        a pointer chain.

From-SVN: r37479
2000-11-15 14:39:14 +00:00
Nathan Sidwell
71631a1f1c typeck.c (lookup_anon_field): Cope with qv qualifiers.
cp/
	* typeck.c (lookup_anon_field): Cope with qv qualifiers.
testsuite/
	* g++.old-deja/g++.other/anon5.C: New test.

From-SVN: r37478
2000-11-15 11:59:07 +00:00
Hans-Peter Nilsson
eab0c1ab23 Correct style of last entry
From-SVN: r37477
2000-11-15 11:58:16 +00:00
Hans-Peter Nilsson
ba7aa3c1c3 Correct date and style of last entry
From-SVN: r37476
2000-11-15 11:57:23 +00:00
Kenneth Block
61ab980a02 cplus_dem.c: Add gnat demangler.
* cplus_dem.c: Add gnat demangler.  Add java to demangle style
	list.

From-SVN: r37475
2000-11-15 11:54:53 +00:00
Kenneth Block
7ecdd10b6d * demangle.h: Add gnat and java demangle styles.
From-SVN: r37474
2000-11-15 11:52:30 +00:00
Graham Stott
695e4773c1 regrename.c (scan_rtx_rtx): Skip to the next chain on encountering a terminated chain.
* regrename.c (scan_rtx_rtx): Skip to the next chain on
        encountering a terminated chain.

From-SVN: r37473
2000-11-15 11:07:44 +00:00
Jeff Law
928c4ba2a7 Daily bump.
From-SVN: r37472
2000-11-15 01:45:08 -07:00
Mark Mitchell
79cda2d1e1 class.c (build_vtbl_initializer): Fix typo in comment.
* class.c (build_vtbl_initializer): Fix typo in comment.
	* typeck.c (expr_sizeof): Don't crash on errors.

From-SVN: r37471
2000-11-15 05:07:03 +00:00
Mark Mitchell
5a7c103786 configure.in: Move check for V3 above check for C++ header-file directory.
* configure.in: Move check for V3 above check for C++ header-file
	directory.
	* configure: Regenerated.

From-SVN: r37470
2000-11-15 04:40:30 +00:00
Benjamin Kosnik
9f9359795c acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to initial value.
2000-11-14  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to
	initial value.
	(GLIBCPP_EXPORT_INCLUDES): Only export TOPLEVEL_INCLUDES if
	building a canadian cross. This should fix the remaining java
	build issues.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

	* include/bits/c++config (__GLIBCPP__): Set release version for 2.91.

From-SVN: r37469
2000-11-14 21:05:05 +00:00
Jim Wilson
2567bc56d3 Fix cc1plus specs breakage.
* lang-specs.h: Add %2 after %(cc1_options).

From-SVN: r37468
2000-11-14 12:42:43 -08:00
DJ Delorie
568c51400d * config/v850/v850.c: Remove obstacks.
From-SVN: r37467
2000-11-14 14:45:29 -05:00
Joseph Myers
ab6c59fd76 c90-const-expr-2.c, [...]: Add more tests.
* gcc.dg/c90-const-expr-2.c, gcc.dg/c99-const-expr-2.c: Add more
	tests.

From-SVN: r37466
2000-11-14 19:34:22 +00:00
Marek Michalkiewicz
1268b05f5a avr.c (avr_case_values_threshold): New.
* config/avr/avr.c (avr_case_values_threshold): New.
	(avr_override_options): Set it depending on options, make it large
	when not optimizing to work around "unable to generate reloads".

	* config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
	(EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
	executable if not AVR_MEGA.  Make sure jump tables are word-aligned.
	(JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
	(ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
	(avr_case_values_threshold): Declare as extern int.
	(CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.

	* config/avr/avr.md (tablejump): Removed.
	(*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
	(*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
	index in the table, not multiplied by 2.
	(casesi): Change to match the above insns.  Always enable.

	* config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
	Change to expect the word address of the table, multiply it by 2
	here and not in the caller.  Change "adiw" to faster "inc".

From-SVN: r37465
2000-11-14 22:05:41 +03:00
Tom Tromey
09ad474947 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (libgcj.zip): Fail immediately if compilation fails
	and -k not given.

From-SVN: r37464
2000-11-14 18:59:10 +00:00
Don Lindsay
b3488a7ae7 Test which exposed a gcse bug at one time.
From-SVN: r37463
2000-11-14 18:42:53 +00:00
Neil Booth
7f2f1a6633 cppexp.c (parse_defined): Call cpp_get_token not _cpp_get_token.
* cppexp.c (parse_defined): Call cpp_get_token not
	_cpp_get_token.
	(lex): Similarly.
	* cpplex.c (cpp_output_line): Similarly.
	* cpplib.c (glue_header_name, do_line, do_ident,
	parse_answer, parse_assertion): Similarly.
	(_cpp_handle_diretive): Don't save to lookaheads
	when processing directives.
	* cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
	_cpp_get_token.
	(funlike_invocation_p): Don't save to lookaheads
	when pre-expanding arguments.
	(_cpp_get_token): Delete.
	(cpp_get_token): Merge contents of _cpp_get_token.

From-SVN: r37462
2000-11-14 18:32:06 +00:00
Jakub Jelinek
f36d6244de builtins.c (expand_builtin_setjmp): Set current_function_calls_setjmp.
* builtins.c (expand_builtin_setjmp): Set
	current_function_calls_setjmp.
	(expand_builtin_longjmp): Set current_function_calls_longjmp.

	* config/sparc/sparc.md (builtin_setjmp_setup): New expand.
	(do_builtin_setjmp_setup): New insn.

From-SVN: r37461
2000-11-14 19:05:45 +01:00
Richard Kenner
3401c26b5c tree.c (get_unwidened): Use host_integerp and tree_low_cst.
* tree.c (get_unwidened): Use host_integerp and tree_low_cst.
	(int_fits_type_p): For variable bounds, call force_fit_type.

From-SVN: r37460
2000-11-14 12:58:01 -05:00
Jakub Jelinek
bd7cf17efd varasm.c (struct deferred_string): New structure.
* varasm.c (struct deferred_string): New structure.
	(const_str_htab): New variable.
	(STRHASH): New macro.
	(mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
	constr_str_htab_eq, const_str_htab_del): New functions.
	(output_constant_def): Add DEFER argument, defer string
	constants until mark_constant_pool time if requested.
	(mark_constant_pool): Walk the insn chain even if const_str_htab is
	not empty.
	(mark_constants): If a SYMBOL_REF for deferred string is found,
	output it and remove from hash table.
	(output_addressed_constants): Set DEFER to 0 in call to
	output_constant_def.
	* rtl.h (STRING_POOL_ADDRESS_P): Define.
	(output_constant_def): Adjust prototype.
	* expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.

	* gcc.c-torture/execute/20000801-4.c: Make sure the second string is
	output.

From-SVN: r37459
2000-11-14 18:37:19 +01:00
Chandrakala Chavva
10e927efe9 optabs.c (expand_complex_ab): Use overflow-trapping optabs for signed types if flag_trapv.
* optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
signed types if flag_trapv.

From-SVN: r37458
2000-11-14 12:30:02 -05:00
Benjamin Kosnik
5b20f7a054 acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to initial value.
2000-11-14  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to
	initial value.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

	* include/bits/c++config (__GLIBCPP__): Set release version for 2.91.

From-SVN: r37457
2000-11-14 17:23:49 +00:00
Chandra Chavva
91606ce253 New option --target-help.
From-SVN: r37456
2000-11-14 12:06:06 -05:00
Zack Weinberg
ef90743a44 tradcpp.c, tradcif.y: Update FSF mailing address, delete reference to GPLv1.
* tradcpp.c, tradcif.y: Update FSF mailing address, delete
	reference to GPLv1.

From-SVN: r37455
2000-11-14 17:01:35 +00:00
Phil Edwards
acfb0fc56d mkcheck.in: On a platform where we don't know how to extract section sizes...
2000-11-14  Phil Edwards  <pme@sources.redhat.com>

	* mkcheck.in:  On a platform where we don't know how to extract
	  section sizes, just set them to zero.  Use old method of reading
	  file contents.

From-SVN: r37454
2000-11-14 16:38:02 +00:00
Loren J. Rittle
daa54c4b74 c_io_stdio.h: Don't define __c_wfile_type when _GLIBCPP_USE_WCHAR_T is not defined.
* config/c_io_stdio.h: Don't define __c_wfile_type
        when _GLIBCPP_USE_WCHAR_T is not defined.

From-SVN: r37453
2000-11-14 13:49:27 +00:00
Joseph Myers
fe8ca71f2a * c-common.h (CTI_C_SIZE_TYPE): Update comment.
From-SVN: r37452
2000-11-14 10:38:01 +00:00
Jakub Jelinek
94b01be347 varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table to array of pool_constnat pointers.
* varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
	to array of pool_constnat pointers.
	(struct pool_constant): Add next_sym and label members.
	(struct pool_sym): Remove.
	(init_varasm_status): Change pool_sym into pool_constant.
	(mark_pool_constant): Mark pc->label string as well.
	(mark_pool_sym_hash_table): Remove.
	(mark_varasm_status): Remove it from caller as well.
	(free_varasm_status): Don't free pool_sym structures.
	(force_const_mem): Don't allocate pool_sym structure, instead
	fill pool->label and chain it into rtx_sym hash table.
	(find_pool_constant, mark_constant_pool): Use pool_constant instead
	of pool_sym.

From-SVN: r37451
2000-11-14 11:31:32 +01:00
Jakub Jelinek
716120a70a reload1.c (emit_input_reload_insns): Honour forcing of constants into memory by PREFERRED_RELOAD_CLASS NO_REGS.
* reload1.c (emit_input_reload_insns): Honour forcing of constants
	into memory by PREFERRED_RELOAD_CLASS NO_REGS.

From-SVN: r37450
2000-11-14 11:23:38 +01:00
Michael Matz
f80326884c Michael Matz <matzmich@cs.tu-berlin.de>
* dominance.c: New file.
        * Makefile.in (OBJS): Add dominance.o.

        * flow.c (compute_flow_dominators): Remove.
        (compute_immediate_dominators): Remove.
        (compute_immediate_postdominators): Remove.
        * basic-block.h: Remove their prototypes.
        (calculate_dominance_info): Add prototype.

        * dce.c (eliminate_dead_code): Change calls to above functions.
        Don't compute dominators but only immediate dominators.
        * flow.c (flow_loops_find): Change callers.
        * gcse.c (compute_code_hoist_data): Likewise.
        * haifa-sched.c (schedule_insns): Likewise.
        * ifcvt.c (if_convert): Likewise.
        * ssa.c (convert_to_ssa): Likewise, and only compute immediate
        dominators.

From-SVN: r37449
2000-11-14 01:58:40 -08:00
Richard Henderson
6f1225504f stmt.c (warn_if_unused_value): Don't warn if the expression has side effects.
* stmt.c (warn_if_unused_value): Don't warn if the expression
        has side effects.

From-SVN: r37448
2000-11-14 01:51:46 -08:00
Richard Henderson
0caa3c8e09 c-typeck.c (c_sizeof): Fold result to c_size_type_node.
* c-typeck.c (c_sizeof): Fold result to c_size_type_node.
        (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.

From-SVN: r37447
2000-11-14 01:47:13 -08:00
Richard Henderson
8422942cb6 typeck.c (c_sizeof): Be strict about casting result value back to c_size_type_node.
* typeck.c (c_sizeof): Be strict about casting result value
        back to c_size_type_node.
        (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.

From-SVN: r37446
2000-11-14 01:46:55 -08:00
Jeff Law
187e3bf0b7 Daily bump.
From-SVN: r37445
2000-11-14 01:45:08 -07:00
Phil Edwards
d0941a315e acinclude.m4 (GLIBCPP_CHECK_TARGET): New macro...
2000-11-13  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4 (GLIBCPP_CHECK_TARGET):  New macro, replacing
	  GLIBCPP_CHECK_CPU and GLIBCPP_CHECK_OS, sourcing configure.target.
	  (GLIBCPP_CONFIGURE):  Call new macro here.
	* configure.host:  Cleanup.
	* configure.in:  Remove those two macros.
	* configure.target:  New file.
	* aclocal.m4:  Regenerated.
	* configure:  Ditto.
	* Makefile.in:  Ditto.
	* libio/Makefile.in:  Ditto.
	* libmath/Makefile.in:  Ditto.
	* libsupc++/Makefile.in:  Ditto.
	* src/Makefile.in:  Ditto.

	* mkcheck.in:  Use libtool.  Split things out into functions.

From-SVN: r37443
2000-11-13 23:49:41 +00:00
Alexandre Petit-Bianco
b72554f1df Makefile.am (tmp-libstdsc++.INC:): Do not use -I$(top_builddir).
2000-11-12  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * Makefile.am (tmp-libstdsc++.INC:): Do not use -I$(top_builddir).
        * Makefile.in: Regenerate.

From-SVN: r37442
2000-11-13 23:38:41 +00:00