Commit Graph

31861 Commits

Author SHA1 Message Date
Jim Wilson
74fe26b270 Fix ia64 C++ gprel link errors.
* config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
	DECL_EXTERNAL set.

From-SVN: r37505
2000-11-16 12:01:21 -08:00
Nick Clifton
e24fa9dac1 Add a couple of new test cases for nested function support.
From-SVN: r37504
2000-11-16 19:45:23 +00:00
Nick Clifton
68dfd979ac Fix nested function support for the ARM
From-SVN: r37503
2000-11-16 19:23:15 +00:00
Gerald Pfeifer
cdb3cf8546 * config/c_io_stdio.h: Include stddef.h.
From-SVN: r37502
2000-11-16 17:45:11 +00:00
Bernd Schmidt
2b8b5d02e6 New testcase
From-SVN: r37501
2000-11-16 16:19:37 +00:00
DJ Delorie
237aa7a2f3 oops, forgot a const
From-SVN: r37500
2000-11-16 10:21:50 -05:00
DJ Delorie
3ab9a08fcc rtl.c (read_rtx): Provide suitable names for unnamed define_insn and define_insn_and_split...
* rtl.c (read_rtx): Provide suitable names for unnamed
define_insn and define_insn_and_split patterns, based on file
and line numbers.

From-SVN: r37499
2000-11-16 10:19:01 -05:00
Nathan Sidwell
cdb7167327 * call.c (op_error): Make error messages clearer.
From-SVN: r37498
2000-11-16 11:49:44 +00:00
Franz Sirl
4c8fb5714b 20001115-1.c: New test.
2000-11-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20001115-1.c: New test.

From-SVN: r37497
2000-11-16 11:19:11 +00:00
Mark Mitchell
35ef21d256 c_io_stdio.h (streamsize): Make it a typedef for ptrdiff_t.
* config/c_io_stdio.h (streamsize): Make it a typedef for
	ptrdiff_t.
	(wstreamsize): Likewise.

From-SVN: r37496
2000-11-16 09:26:14 +00:00
Mark Mitchell
c135a22c31 * config/c_io_stdio.h: Include libio.h.
From-SVN: r37495
2000-11-16 09:20:48 +00:00
Hans-Peter Nilsson
29120f4427 cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for parameter `option'.
* cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
parameter `option'.
Do s/cplus_dem.c/cplus-dem.c/g on ChangeLog.

From-SVN: r37494
2000-11-16 09:12:47 +00:00
Jeff Law
dc378b0887 Daily bump.
From-SVN: r37493
2000-11-16 01:45:07 -07:00
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