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
David Edelsohn
9861b0c9d6
aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or text_section() as appropriate instead of emitting text...
...
* aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
text_section() as appropriate instead of emitting text csect
pseudo-op directly.
(TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
(UNIQUE_SECTION): Define macro.
(ASM_OUTPUT_SECTION_NAME): Define macro.
* rs6000.c (rs6000_override_options): Disable -ffunction-sections
on AIX if debugging and -fdata-sections always.
From-SVN: r35886
2000-08-22 15:27:31 -04:00
Geoff Berry
180ca3a1bb
bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro on _Nw since _Nw is already the number of words...
...
* stl/bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro
on _Nw since _Nw is already the number of words in the bitset.
From-SVN: r35885
2000-08-22 13:24:01 -06:00
Benjamin Kosnik
72972a41a7
float-i386.h (LDBL_EPSILON): Remove __convert_long_double machinery.
...
2000-08-22 Steven King <sxking@uswest.net>
* config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
machinery.
(LDBL_MAX): Same here.
From-SVN: r35884
2000-08-22 18:51:21 +00:00
Steven King
df3a88f003
float-i386.h (LDBL_EPSILON): Remove __convert_long_double machinery.
...
2000-08-22 Steven King <sxking@uswest.net>
* config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
machinery.
(LDBL_MAX): Same here.
From-SVN: r35883
2000-08-22 18:48:57 +00:00
Benjamin Kosnik
7e0ec38b14
atomicity.h: Change __attribute__ ((unused)) to __attribute__ ((__unused__)).
...
2000-08-22 Richard B. Kreckel <Richard.Kreckel@Uni-Mainz.DE>
* config/cpu/alpha/bits/atomicity.h: Change __attribute__
((unused)) to __attribute__ ((__unused__)).
* config/cpu/arm/bits/atomicity.h: Same.
* config/cpu/generic/bits/atomicity.h: Same.
* config/cpu/i386/bits/atomicity.h: Same.
* config/cpu/i486/bits/atomicity.h: Same.
* config/cpu/powerpc/bits/atomicity.h: Same.
* config/cpu/sparc/sparc32/bits/atomicity.h: Same.
* config/cpu/sparc/sparc64/bits/atomicity.h: Same.
From-SVN: r35882
2000-08-22 18:24:16 +00:00
Jason Merrill
d29de343fe
fix so failures are diagnosed
...
From-SVN: r35881
2000-08-22 14:16:12 -04:00
Jason Merrill
f2a32740dd
tweak
...
From-SVN: r35880
2000-08-22 14:15:57 -04:00
Richard Henderson
b578dbd7d6
* flow.c (tidy_fallthru_edge): Update b->end properly.
...
From-SVN: r35879
2000-08-22 11:12:15 -07:00
Levente Farkas
bbcec4ef37
basic_string.h: Fix up parameter names.
...
2000-08-14 Levente Farkas <lfarkas@mindmaker.hu>
* bits/basic_string.h: Fix up parameter names.
From-SVN: r35878
2000-08-22 17:29:57 +00:00
Brent Verner
f3342f7303
Makefile.am (INCLUDES): Put $(CSHADOW_INCLUDES) before $(top_srcdir)
...
2000-08-22 Brent Verner <brent@rcfile.org>
* src/Makefile.am (INCLUDES): Put $(CSHADOW_INCLUDES) before
$(top_srcdir)
* src/Makefile.in: Regenerate.
From-SVN: r35877
2000-08-22 17:22:38 +00:00
Stan Cox
d061bc1e93
Makefile.in (OBJS): Add dependence.o.
...
* Makefile.in (OBJS): Add dependence.o.
* dependence.c: New file.
From-SVN: r35876
2000-08-22 16:16:20 +00:00
Alexandre Oliva
3cadd7783a
invoke.texi (SH Options): Document -m4-nofpu...
...
* invoke.texi (SH Options): Document -m4-nofpu,
-m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
-mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
From-SVN: r35875
2000-08-22 14:39:31 +00:00
Joseph Myers
23e4d0281a
c-common.c (check_format_info): Give the 'some locales' warning for strftime %Ey rather than the unconditional...
...
* c-common.c (check_format_info): Give the 'some locales' warning
for strftime %Ey rather than the unconditional 'only last 2 digits
of year' one.
testsuite:
* gcc.dg/c90-strftime-2.c, gcc.dg/c99-strftime-1.c,
gcc.dg/c99-strftime-2.c: New tests.
From-SVN: r35874
2000-08-22 15:06:57 +01:00
Richard Henderson
bc82c87cad
alias.c (init_alias_analysis): Do not register struct_value_incoming_rtx or static_chain_rtx as pointing to...
...
* alias.c (init_alias_analysis): Do not register
struct_value_incoming_rtx or static_chain_rtx as pointing
to stack memory.
From-SVN: r35873
2000-08-22 01:42:46 -07:00
Richard Henderson
f95b2ff93e
New test.
...
From-SVN: r35872
2000-08-22 01:41:02 -07:00
Benjamin Kosnik
6f322d2778
codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>.
...
2000-08-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* bits/codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>. Fix
up __enc_traits template so as to be marginally useful.
* src/codecvt.cc: And here.
* bits/char_traits: Tweak.
* bits/locale_facets.h: Tweak.
* bits/locale_facets.tcc: Tweak.
* bits/localefwd.h: Tweak.
* src/locale-inst.cc: Add use_facet/has_facet instantiations here.
* testsuite/22_locale/codecvt_wchar_t_cc.cc: New file.
* testsuite/22_locale/codecvt_char_char.cc: New file.
* testsuite/22_locale/codecvt_unicode_char.cc: New file.
From-SVN: r35871
2000-08-22 08:19:00 +00:00
Benjamin Kosnik
a5834d1b79
codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>.
...
2000-08-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* bits/codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>. Fix
up __enc_traits template so as to be marginally useful.
* src/codecvt.cc: And here.
* bits/char_traits: Tweak.
* bits/locale_facets.h: Tweak.
* bits/locale_facets.tcc: Tweak.
* bits/localefwd.h: Tweak.
* src/locale-inst.cc: Add use_facet/has_facet instantiations here.
* testsuite/22_locale/codecvt_wchar_t_cc.cc: New file.
* testsuite/22_locale/codecvt_char_char.cc: New file.
* testsuite/22_locale/codecvt_unicode_char.cc: New file.
From-SVN: r35870
2000-08-22 08:18:10 +00:00
Alexandre Oliva
199acebbef
(TYPE_RETURNS_STACK_DEPRESSED): Insert blank between
...
`FUNCTION_TYPE_CHECK' and `(NODE)'.
From-SVN: r35869
2000-08-22 08:04:21 +00:00
Jeff Law
3b67968071
Daily bump.
...
From-SVN: r35868
2000-08-22 01:45:08 -06:00
Jeffrey A Law
7db9125f9d
* protoize.c (munge_compile_params): Fix typo and formatting buglets.
...
From-SVN: r35867
2000-08-22 01:44:51 -06:00
Gabriel Dos Reis
b413d64ded
diagnostic.h (report_problematic_module): Declare.
...
2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
* diagnostic.h (report_problematic_module): Declare.
* diagnostic.c (report_problematic_module): New function.
(report_error_function): Tweak.
From-SVN: r35866
2000-08-22 06:54:54 +00:00
Richard Kenner
c4a6c0f353
stmt.c (expand_goto_internal, [...]): Only check TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
...
* stmt.c (expand_goto_internal, fixup_gotos): Only check
TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
From-SVN: r35865
2000-08-22 02:24:13 -04:00
Alexandre Oliva
5b0e9d296c
config-ml.in (CC, CXX): Avoid trailing whitespace.
...
* config-ml.in (CC, CXX): Avoid trailing whitespace.
(LD_LIBRARY_PATH, SHLIB_PATH): Adjust for multilibs and export to
sub-configures.
From-SVN: r35864
2000-08-22 05:02:48 +00:00
Mark Wielaard
9adfd95980
Makefile.in: Rebuilt.
...
2000-08-21 Mark Wielaard <mark@klomp.org>
* Makefile.in: Rebuilt.
* Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
a `friend class'.
(java/lang/reflect/Field.h): Likewise.
(java/lang/reflect/Method.h): Likewise.
(gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
`friend class'.
From-SVN: r35863
2000-08-22 04:46:51 +00:00
Richard Henderson
770a7febda
flow.c (calculate_global_regs_live): Mark frame pointer live everywhere before reload.
...
* flow.c (calculate_global_regs_live): Mark frame pointer live
everywhere before reload.
From-SVN: r35862
2000-08-21 17:44:09 -07:00
Jim Wilson
280db20577
Fix x86-x-ia64 cross compiler build failure.
...
* real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
INTEL_EXTENDED_IEEE_FORMAT.
(toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
clear last two bytes of output FP value.
From-SVN: r35861
2000-08-21 17:36:44 -07:00
Graham Stott
94c21c1737
Fix typos spotted by Graham Stott.
...
* config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
From-SVN: r35860
2000-08-21 17:04:00 -07:00
Tom Tromey
6c531b0556
ResourceBundle.java (trySomeGetBundle): Removed debugging prints.
...
* java/util/ResourceBundle.java (trySomeGetBundle): Removed
debugging prints.
From-SVN: r35859
2000-08-21 21:25:55 +00:00
Jakub Jelinek
6315f06806
unroll.c (loop_find_equiv_value): If ret is modified between insn and loop_start, ret might not be equivalent to reg.
...
* unroll.c (loop_find_equiv_value): If ret is modified between
insn and loop_start, ret might not be equivalent to reg.
* gcc.c-torture/execute/20000819-1.x: Remove.
From-SVN: r35857
2000-08-21 21:58:35 +02:00
Joseph Myers
5804a754e5
c-common.c (init_dollar_format_checking, [...]): New functions.
...
* c-common.c (init_dollar_format_checking,
maybe_read_dollar_number, finish_dollar_format_checking): New
functions.
(dollar_arguments_used, dollar_arguments_count,
dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
New variables.
(check_format_info): Support $ formats for scanf and printf width
and precision. Always increment format_chars to advance past the
'*' of precision, not just when the format parameters are
available to check.
testsuite:
* gcc.dg/c90-printf-3.c, gcc.dg/c90-scanf-2.c,
gcc.dg/c90-scanf-3.c, gcc.dg/c90-scanf-4.c,
gcc.dg/c90-strftime-1.c, gcc.dg/c99-printf-3.c,
gcc.dg/c99-scanf-1.c, gcc.dg/c99-scanf-2.c, gcc.dg/c99-scanf-3.c,
gcc.dg/format-xopen-1.c: New tests.
From-SVN: r35856
2000-08-21 20:38:35 +01:00
Kaveh R. Ghazi
95adab8e11
Warning fixes:
...
* mips.c (block_move_loop, expand_block_move,
function_arg_partial_nregs, save_restore_insns, function_prologue,
mips_expand_prologue, RA_MASK): Avoid using the `U' integer
constant suffix.
(function_arg_advance, function_arg): Match argument to format
specifier `%p'.
From-SVN: r35855
2000-08-21 19:21:28 +00:00
Nix
cc0dd8af22
lang-specs.h: Do not process -o or run the assembler if -fsyntax-only.
...
* lang-specs.h: Do not process -o or run the assembler if
-fsyntax-only. Use %j instead of /dev/null.
From-SVN: r35854
2000-08-21 12:12:36 -06:00
Nix
05a3d06e01
lang-specs.h: Do not process -o or run the assembler if -fsyntax-only.
...
* lang-specs.h: Do not process -o or run the assembler if
-fsyntax-only.
From-SVN: r35853
2000-08-21 12:12:24 -06:00
Nix
b7ba649aeb
lang-specs.h: Do not process -o or run the assembler if -fsyntax-only.
...
* lang-specs.h: Do not process -o or run the assembler if
-fsyntax-only.
From-SVN: r35852
2000-08-21 12:10:29 -06:00
DJ Delorie
4f3e904e93
* MAINTAINERS: Add self as a libiberty maintainer
...
From-SVN: r35851
2000-08-21 14:06:49 -04:00