Commit Graph

30047 Commits

Author SHA1 Message Date
Benjamin Kosnik
985287b87c codecvt.h: Tweaks.
2000-08-23  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/codecvt.h: Tweaks.
	* testsuite/22_locale/codecvt_unicode_wchar_t.cc (test01): Fix up
	initial string literals for UCS4.

From-SVN: r35936
2000-08-24 06:13:51 +00:00
Jason Merrill
366c3396b8 one last tweak
From-SVN: r35935
2000-08-24 01:43:15 -04:00
Jason Merrill
06c3db6434 OK, once more:
* lib/old-dejagnu.exp: Also ignore "In member function" and
        "At global scope".

From-SVN: r35934
2000-08-24 01:01:38 -04:00
Jason Merrill
80d710d2ff oops
From-SVN: r35933
2000-08-24 00:38:08 -04:00
Jason Merrill
2f1e6e0d11 * lib/old-dejagnu.exp: Also ignore "In member function ".
From-SVN: r35932
2000-08-24 00:37:29 -04:00
Alexandre Petit-Bianco
6d958acf09 NativeThread.java (NativeThread): Removed assignment to alive_flag', call init'.
2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
	to `alive_flag', call `init'.
	(init): New native method.
	* gnu/gcj/jni/natNativeThread.cc (init): New native method
	implementation.

(http://sources.redhat.com/ml/java-patches/2000-q3/msg00142.html)

From-SVN: r35931
2000-08-23 19:16:57 -07:00
Jason Merrill
7def125130 typeck.c (build_ptrmemfunc): Save the input pmf.
* typeck.c (build_ptrmemfunc): Save the input pmf.

        * method.c (process_modifiers): Use same_type_p.

From-SVN: r35930
2000-08-23 21:57:19 -04:00
Alexandre Petit-Bianco
5f1c312aa0 java-tree.h (flag_extraneous_semicolon): New extern.
2000-08-08  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* java-tree.h (flag_extraneous_semicolon): New extern.
	* lang-options.h: (-Wextraneous-semicolon): New option.
	* lang.c (flag_redundant): Fixed typo in leading comment.
	(flag_extraneous_semicolon): New global.
	(lang_decode_option): Set `flag_extraneous_semicolon' when
	-Wall. Decode `-Wextraneous-semicolon'.
	* parse.y (type_declaration:): Removed `SC_TK' hack, added
	`empty_statement' rule.
	(class_body_declaration): Likewise.
	(method_body:): Accept `;' as a method body.
	(static_initializer:): Removed `SC_TK' hack.
	(constructor_block_end:): Likewise.
	(empty_statement:): Report deprecated empty declaration. Fixes
	gcj/295

(Fix to gcj/295: http://sources.redhat.com/ml/java-prs/2000-q3/msg00095.html)

From-SVN: r35929
2000-08-23 18:44:00 -07:00
Alexandre Oliva
e15a68e7bc configure.in [...] (TARGET, TARGETDIR): Set.
* configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
* configure: Rebuilt.

From-SVN: r35928
2000-08-24 01:01:57 +00:00
Alexandre Oliva
335e59bd1b * dependence.c: Replace [][]' with [][MAX_SUBSCRIPTS]'.
From-SVN: r35927
2000-08-23 22:52:25 +00:00
Hans-Peter Nilsson
d9fe00bb28 * Makefile.in (GCC_PASSES): Add specs.
From-SVN: r35926
2000-08-23 22:35:13 +00:00
Toon Moene
95eb4fd909 com-rt.def: Adapt macro DEFGFRT to accept CONST boolean.
2000-08-23  Toon Moene  <toon@moene.indiv.nluug.nl>

	* com-rt.def: Adapt macro DEFGFRT to accept CONST boolean.
	* com.c (macro DEFGFRT): Use CONST boolean.
	(ffecom_call_binop_): Choose between call by value
	and call by reference.
	(ffecom_expr_): Use direct calls to (g)libc functions for
	POW_DD, LOG10, (float) MOD.
	(ffecom_make_gfrt_): Add const indication to table of
	intrinsics.
	* com.h (macro DEFGFRT): Use CONST boolean.
	* intrin.def: Adjust DEFIMP definition of LOG10, (float) MOD.

From-SVN: r35925
2000-08-23 21:16:19 +00:00
Kaveh R. Ghazi
7eda0d2ddf * gcc.dg/noncompile/label-lineno-1.c: New test.
From-SVN: r35924
2000-08-23 21:12:15 +00:00
Joseph Myers
bdb47d3ef8 * gcc.dg/c99-array-nonobj-1.c: New test.
From-SVN: r35923
2000-08-23 21:58:04 +01:00
Jim Wilson
b97644fc89 Minor cleanup of ia64 unwind handler code.
* frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
	* config/ia64/frame-ia64.c (__get_personality): Return zero if neither
	EHANDLER nor UHANDLER bit is set.
	(__get_except_table): Likewise.

From-SVN: r35922
2000-08-23 13:55:01 -07:00
Nick Clifton
215e4ee73e missed one...
From-SVN: r35921
2000-08-23 19:46:57 +00:00
Nick Clifton
02689e1833 Replace upper case condition code strings with lower case.
From-SVN: r35920
2000-08-23 19:37:09 +00:00
Nick Clifton
64a7723db4 Replace STRUCT_VALUE_REGNUm by STRUCT_VALUE
From-SVN: r35919
2000-08-23 19:28:44 +00:00
Zack Weinberg
bbdac7d000 cpphash.h (IN_I): New flag for directive table.
* cpphash.h (IN_I): New flag for directive table.
	* cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
	#pragma with IN_I.
	(_cpp_check_directive): If -fpreprocessed, execute directives
	marked with IN_I.  Issue no warnings in this case.
	* cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.

From-SVN: r35918
2000-08-23 18:29:53 +00:00
Joseph Myers
d8eceea40c c-common.c (print_char_table): Allow 'I' flag with %d, %i and %u.
* c-common.c (print_char_table): Allow 'I' flag with %d, %i and
	%u.
	(check_format_info): Support printf 'I' flag; warn about it with
	-pedantic.

testsuite:
	* gcc.dg/c99-printf-2.c, gcc.dg/format-xopen-1.c: Add some more
	tests.
	* gcc.dg/format-ext-1.c: New test.

From-SVN: r35917
2000-08-23 18:32:50 +01:00
Mark Mitchell
94350948fb cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
* cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
	* mangle.c (write_function_type): Change prototype.
	(write_encoding): Don't mangle return types for
	constructors or destructors.
	(write_type): Adjust call to write_function_type.
	* pt.c (instantiate_template): Instantiate alternate entry points
	when instantiating the main function.

From-SVN: r35916
2000-08-23 17:12:23 +00:00
Alex Samuel
e282c9c9f5 cp-demangle.c (result_close_template_list): Remove function.
* cp-demangle.c (result_close_template_list): Remove function.
	(result_add_separated_char): New function.
	(result_open_template_list): New macro.
	(result_close_template_list): Likewise.
	(demangle_prefix): Don't set template_p if the
	prefix ends with a ctor name.
	(demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
	(demangle_type): Check for template args after substitution.
	(demangle_template_args): Use result_open_template_list.

From-SVN: r35915
2000-08-23 17:03:03 +00:00
Phil Edwards
b3102f834d Dummy checkin of footer.html to force web sync.
From-SVN: r35914
2000-08-23 16:42:12 +00:00
Kaveh R. Ghazi
8a45161343 tr-warn4.c, [...]: New tests.
* gcc.dg/cpp/tr-warn4.c, gcc.dg/cpp/tr-warn5.c,
	gcc.dg/wtr-aggr-init-1.c, gcc.dg/wtr-escape-1.c,
	gcc.dg/wtr-int-type-1.c, gcc.dg/wtr-static-1.c,
	gcc.dg/wtr-strcat-1.c, gcc.dg/wtr-switch-1.c,
	gcc.dg/wtr-unary-plus-1.c, gcc.dg/wtr-union-init-1.c: New tests.

From-SVN: r35913
2000-08-23 16:13:47 +00:00
Alexandre Oliva
23d168774e Added John David Anglin's name to patch for HP-UX bootstrap
From-SVN: r35912
2000-08-23 16:13:42 +00:00
Richard Earnshaw
e04c2d6ca1 arm.c (arm_expand_prologue): Ensure that the stack-adjustment barrier can't be ignored by the alias analysis...
* arm.c (arm_expand_prologue): Ensure that the stack-adjustment
barrier can't be ignored by the alias analysis code.

From-SVN: r35911
2000-08-23 15:15:21 +00:00
Bruce Korb
47db946ca4 Update to pthread and addition of sys/machine.h
From-SVN: r35910
2000-08-23 14:13:18 +00:00
Bruce Korb
d0650b61d2 Fixed the test for aix_pthread
From-SVN: r35909
2000-08-23 14:08:57 +00:00
Eli Zaretskii
f4306baa73 Fix sed script for sysv86_string fix
From-SVN: r35908
2000-08-23 14:03:47 +00:00
Bruce Korb
ed4befff9a Added a line to the test base
From-SVN: r35907
2000-08-23 13:58:08 +00:00
Gabriel Dos Reis
a64e73290a error.c (cp_print_error_function): Don't use embedded '\n' in output_printf.
* error.c (cp_print_error_function): Don't use embedded '\n' in
	output_printf.

From-SVN: r35906
2000-08-23 09:31:12 +00:00
Alexandre Oliva
e7977565ad * MAINTAINERS: Add self as a build machinery (*.in) maintainer.
From-SVN: r35905
2000-08-23 08:26:50 +00:00
Alexandre Oliva
95d0e5f1d0 simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to simplify_relational_operation() unless...
* simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
simplify_relational_operation() unless both operands are of
VOIDmode.
* cse.c (fold_rtx): Likewise.

From-SVN: r35904
2000-08-23 07:59:06 +00:00
Jeff Law
f17eb5d40f Daily bump.
From-SVN: r35903
2000-08-23 01:45:07 -06:00
Gabriel Dos Reis
a72462a4fd decl.c (init_decl_processing): Remove bogus initialization.
* decl.c (init_decl_processing): Remove bogus initialization.
	* error.c (lang_print_error_function): Restore here.
	(init_error): Initialize print_error_function.

From-SVN: r35902
2000-08-23 06:36:15 +00:00
Phil Edwards
697c2a3964 acconfig.h: _GLIBCPP_USING_THREADS and some workaround types added.
2000-08-23  Phil Edwards  <pme@sourceware.cygnus.com>

	* acconfig.h:  _GLIBCPP_USING_THREADS and some workaround types added.
	* acinclude.m4:  New macro, GLIBCPP_ENABLE_WCHAR.  Set the threads
	  definition as well, and some minor spelling/spacing fixes.  If
	  building libio, check for certain typedefs.
	* libio/_G_config.h:  Wrap _IO_MTSAFE_IO in _GLIBCPP_USING_THREADS.
	  Conditionally define _LARGEFILE64_SOURCE, otherwise the 64-bit types
	  will never be there.
	* libio/libio.h:  In the null case, _IO_lock_t can't just be void.
	* src/string-inst.cc:  Use _GLIBCPP_USE_WCHAR_T.

	* configure.in:  Update the cache a bit more often.

	* mkcheck.in:  For check-install, also need to -I the testsuite dir.

From-SVN: r35901
2000-08-23 04:38:42 +00:00
John Wehle
55efb413f8 rtlanal.c (rtx_unstable_p): The pic register is stable (within one function) and the actual rtx should be...
* rtlanal.c (rtx_unstable_p): The pic register is stable
	(within one function) and the actual rtx should be used
	when checking the registers.
	(rtx_addr_can_trap_p): Pic memory addresses can't trap.

	* alias.c (true_dependence, write_dependence_p): Fix
	bug in previous patch.

	* i386.c (ix86_GOT_alias_set): New.
	(legitimize_pic_address): Use it.

	* rtlanal.c (rtx_unstable_p): An unchanging MEM is
	only stable if its address is stable.
	(rtx_varies_p): An unchanging MEM can't vary if
	its address doesn't vary.

From-SVN: r35900
2000-08-23 03:54:23 +00:00
Kaveh R. Ghazi
aac625acc6 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
From-SVN: r35899
2000-08-23 01:00:52 +00:00
DJ Delorie
126bb9ed7a * MAINTAINERS: Add self as a build machinery (*.in) maintainer
From-SVN: r35898
2000-08-22 20:21:46 -04:00
Benjamin Kosnik
ae658d47a4 locale-inst.cc: Add codecvt<unicode_t...
2000-08-22  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* src/locale-inst.cc: Add codecvt<unicode_t, wchar_t,
	__enc_traits> instantiations for has_facet and use_facet.
	* testsuite/22_locale/codecvt_unicode_wchar_t.cc: New file, for
	testing two-byte unicode encodings converted to four-byte UCS4
	encodings.

	* bits/codecvt.h (codecvt<__enc_traits>): Fix do_unshift.
	* testsuite/22_locale/codecvt_unicode_char.cc (test01): Add
	correct state/encoding information.

	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Add wcsrtombs,
	mbsrtowcs checks as codecvt<wchar_t, char, mbstate_t> needs them
	now.
	Add checks for langinfo.h, nl_langinfo function call.
	* libio/iofwide.c (_IO_fwide): Simplify, as nl_langinfo is assumed.

From-SVN: r35897
2000-08-22 23:44:23 +00:00
J. David Anglin
62432849bc Forgot to commit.
From-SVN: r35896
2000-08-22 17:13:12 -06:00
Theodore Papadopoulo
3add6264c6 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
From-SVN: r35895
2000-08-22 18:54:15 -04:00
J. David Anglin
a86d4a919a vax.h (ASM_SPEC): Pass `-J' to assembler.
* vax.h (ASM_SPEC): Pass `-J' to assembler.
        * x-vax-gcc: New file for bootstrapping with gcc.
        * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
        * configure.in: Use x-vax-gcc with gcc.
        * configure: Rebuilt.

From-SVN: r35894
2000-08-22 16:29:08 -06:00
Gabriel Dos Reis
cb753e4921 Makefile.in (error.o): Depends on diagnostic.h
* Makefile.in (error.o): Depends on diagnostic.h

	* cp-tree.h (problematic_instantiation_changed,
	record_last_problematic_instantiation, current_instantiation,
	print_instantiation_context): Declare.
	(maybe_print_template_context): Remove.

	* decl.c (init_decl_processing): Set print_error_function to NULL.
	(lang_print_error_function): Remove, since we're using a new
	machinery.

	* error.c: #include diagnostic.h
	(function_category): New function.
	(cp_diagnostic_starter): Likewise.
	(cp_diagnostic_finalizer): Likewise.
	(cp_print_error_function): Likewise.
	(maybe_print_instantiation_context): Likewise.
	(print_instantiation_full_context): Likewise.
	(print_instantiation_partial_context): Likewise.
	(print_instantiation_context): Define.
	(init_error): Initialize diagnostic pager and finalizer.

	* pt.c (problematic_instantiation_changed): Define.
	(record_last_problematic_instantiation): Likewise.
	(current_instantiation): Likewise.
	(maybe_print_template_context): Remove.
	(print_template_context): Likewise.
	(current_tinst_level): Make static to reflect Brendan Kehoe's
	change of 1995-04-13.
	(push_tinst_level): Call print_instantiation_context.

From-SVN: r35893
2000-08-22 20:26:41 +00:00
J"orn Rennecke
1eb994b78b toplev.c (rest_of_compilation): Rebuild label notes after post-reload splitting pass if...
* toplev.c (rest_of_compilation): Rebuild label notes after
	post-reload splitting pass if new labels have been created.

From-SVN: r35892
2000-08-22 21:24:10 +01:00
Gabriel Dos Reis
f6a542dece diagnostic.h (output_buffer_state): New macro.
* diagnostic.h (output_buffer_state): New macro.
	* diagnostic.c (diagnostic_for_decl, sorry,
	default_print_error_function, output_do_verbatim,
	report_diagnostic, report_problematic_module): Use it.
	(wrap_text): Tweak.
	(output_format): Use wrap_text instead of maybe_wrap_text.

From-SVN: r35891
2000-08-22 20:20:32 +00:00
Nick Clifton
888e552fda Use macros to replace duplicated bodies of assembler code.
From-SVN: r35890
2000-08-22 19:50:12 +00:00
Kaz Kojima
89e43e3315 sh.md (cmpeqdi_t splitter): Fix a reverse testing.
* config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.

	* config/sh/sh.c (prepare_scc_operands): Apply force_reg to
	sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
	const0_rtx.

From-SVN: r35889
2000-08-22 20:39:56 +01:00
Nick Clifton
7405dc3753 Before performing any restorative additions...
Before performing any restorative additions, test for bottom bits of IP being
set, rather than relying upon the RORs not matching.

From-SVN: r35888
2000-08-22 19:37:02 +00:00
Alexandre Oliva
d60eab50e1 calls.c (check_sibcall_argument_overlap_1): Adjust for ARGS_GROW_DOWNWARD.
* calls.c (check_sibcall_argument_overlap_1): Adjust for
        ARGS_GROW_DOWNWARD.
        (check_sibcall_argument_overlap): Likewise.

From-SVN: r35887
2000-08-22 13:30:49 -06:00