DJ Delorie [Mon, 26 Nov 2001 22:29:46 +0000 (17:29 -0500)]
expr.c (store_constructor): Actually use the value computed if WORD_REGISTER_OPERATIONS.
* expr.c (store_constructor): Actually use the value computed
if WORD_REGISTER_OPERATIONS.
From-SVN: r47359
Richard Henderson [Mon, 26 Nov 2001 22:20:28 +0000 (14:20 -0800)]
Make-lang.in (gnatbind, [...]): Depend on CONFIG_H and prefix.o.
* Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
From-SVN: r47358
Richard Henderson [Mon, 26 Nov 2001 22:16:56 +0000 (14:16 -0800)]
elfos.h (SELECT_SECTION): Don't check TREE_READONLY for CONSTRUCTOR.
* config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
for CONSTRUCTOR.
From-SVN: r47357
David Edelsohn [Mon, 26 Nov 2001 21:43:48 +0000 (21:43 +0000)]
rs6000.c (output_mi_thunk): Handle minimal-toc and call correct function on AIX.
* rs6000.c (output_mi_thunk): Handle minimal-toc and call
correct function on AIX.
From-SVN: r47355
DJ Delorie [Mon, 26 Nov 2001 21:24:43 +0000 (16:24 -0500)]
Makefile.in (stamp-h): Depend on Makefile for proper serialization.
* Makefile.in (stamp-h): Depend on Makefile for proper
serialization.
(*-subdir): Depend on config.h for proper serialization.
Co-Authored-By: Daniel Jacobowitz <drow@mvista.com>
From-SVN: r47354
DJ Delorie [Mon, 26 Nov 2001 20:03:21 +0000 (15:03 -0500)]
Fix typo.
From-SVN: r47353
DJ Delorie [Mon, 26 Nov 2001 20:02:19 +0000 (15:02 -0500)]
configure.in: Check for alloca.h (for regex.c and putenv.c).
* configure.in: Check for alloca.h (for regex.c and putenv.c).
* configure: Regenerate.
* config.h: Add HAVE_ALLOCA_H.
From-SVN: r47352
Alexandre Oliva [Mon, 26 Nov 2001 19:40:21 +0000 (19:40 +0000)]
toplev.c (process_options): Don't force flag_optimize_sibling_calls to zero just because exceptions are enabled.
* toplev.c (process_options): Don't force
flag_optimize_sibling_calls to zero just because exceptions are
enabled.
From-SVN: r47351
Jeffrey A Law [Mon, 26 Nov 2001 19:36:09 +0000 (19:36 +0000)]
df.h (transfer_function_sbitmap): Use PARAMS around argument list in function prototypes.
* df.h (transfer_function_sbitmap): Use PARAMS around argument
list in function prototypes.
(transfer_function_bitmap): Likewise.
From-SVN: r47350
Loren J. Rittle [Mon, 26 Nov 2001 19:24:09 +0000 (19:24 +0000)]
stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
* config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
* config/i386/netbsd-elf.h: Likewise.
From-SVN: r47349
David Edelsohn [Mon, 26 Nov 2001 18:33:44 +0000 (18:33 +0000)]
* doc/trouble.texi: Remove outdated RS/6000 comments.
From-SVN: r47348
Loren J. Rittle [Mon, 26 Nov 2001 17:40:34 +0000 (17:40 +0000)]
linux_threads.c (WRAP_FUNC(pthread_join)): Remove special case for GC_FREEBSD_THREADS.
* linux_threads.c (WRAP_FUNC(pthread_join)): Remove special
case for GC_FREEBSD_THREADS.
* configure.in (*-*-freebsd*): Clarify warning.
* configure: Rebuilt.
From-SVN: r47347
Jason Merrill [Mon, 26 Nov 2001 13:11:15 +0000 (08:11 -0500)]
* call.c (joust): Remove COND_EXPR hack.
From-SVN: r47346
Jan Hubicka [Mon, 26 Nov 2001 13:02:16 +0000 (14:02 +0100)]
* final.c (walk_alter_subreg): Fix return value.
From-SVN: r47345
Jan Hubicka [Mon, 26 Nov 2001 10:38:27 +0000 (11:38 +0100)]
sparc.c (sparc_absnegfloat_split_legitimate): Do not call alter_subreg.
* sparc.c (sparc_absnegfloat_split_legitimate): Do not call
alter_subreg.
* sparc.md (post-reload splitters): Do not call alter_subreg.
* cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
From-SVN: r47339
Aldy Hernandez [Mon, 26 Nov 2001 10:18:47 +0000 (10:18 +0000)]
* regclass.c (choose_hard_reg_mode): Handle vector arguments.
From-SVN: r47338
GCC Administrator [Mon, 26 Nov 2001 08:16:12 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47335
Tom Tromey [Mon, 26 Nov 2001 06:40:06 +0000 (06:40 +0000)]
Fix for PR libgcj/2024, plus other class name cleanups:
* include/jvm.h (_Jv_VerifyFieldSignature,
_Jv_VerifyMethodSignature, _Jv_VerifyClassName,
_Jv_VerifyIdentifier, _Jv_ClassNameSamePackage): Moved from ...
* include/java-interp.h: ... here.
* defineclass.cc (UTF8_PEEK): No longer conditional on
interpreter.
(_Jv_VerifyOne): Likewise.
(_Jv_VerifyFieldSignature): Likewise.
(_Jv_VerifyMethodSignature): Likewise.
(is_identifier_start): Likewise.
(is_identifier_part): Likewise.
(_Jv_VerifyIdentifier): Likewise.
(_Jv_VerifyClassName): Likewise.
(_Jv_VerifyClassName): Likewise.
(_Jv_ClassNameSamePackage): Likewise.
(_Jv_VerifyClassName): Fail if class name is too long.
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Disallow array
of void.
* java/lang/natClass.cc (forName): Check syntax of class name.
Include IllegalArgumentException.h.
From-SVN: r47334
Aldy Hernandez [Mon, 26 Nov 2001 02:00:10 +0000 (02:00 +0000)]
search.c (lookup_base_r): Declare bk in variable declaration space.
* cp/search.c (lookup_base_r): Declare bk in variable declaration
space.
From-SVN: r47333
Alan Modra [Mon, 26 Nov 2001 00:46:40 +0000 (00:46 +0000)]
final.c: (insn_lengths): Make it an int *, so that large jump tables don't overflow.
* final.c: (insn_lengths): Make it an int *, so that large jump
tables don't overflow.
From-SVN: r47331
Tom Tromey [Sun, 25 Nov 2001 19:48:19 +0000 (19:48 +0000)]
verify.cc (_Jv_BytecodeVerifier::branch_prepass): Use java_opcode as type for switch.
* verify.cc (_Jv_BytecodeVerifier::branch_prepass): Use
java_opcode as type for switch.
[op_wide]: Likewise.
(_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
[op_invokevirtual]: Likewise.
* include/java-insns.h (java_opcode): Give enum a name.
From-SVN: r47330
Tom Tromey [Sun, 25 Nov 2001 19:32:28 +0000 (19:32 +0000)]
re PR libgcj/4583 (problems BigDecimal(double) ctor.)
Fix for PR libgcj/4583:
* java/math/BigDecimal.java (BigDecimal(double)): Rewrote.
(BigDecimal(String)): Likewise.
From-SVN: r47329
Toon Moene [Sun, 25 Nov 2001 19:12:50 +0000 (20:12 +0100)]
Makefile.in: Fix non-portable use of `$<' in z_log.c's rule.
2001-11-25 Toon Moene <toon@moene.indiv.nluug.nl>
* libF77/Makefile.in: Fix non-portable use of `$<' in z_log.c's rule.
From-SVN: r47328
Joseph Myers [Sun, 25 Nov 2001 18:54:12 +0000 (18:54 +0000)]
c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
* c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
(format_types): Use it for scanf.
(dollar_arguments_pointer_p): New.
(init_dollar_format_checking): Store details of which arguments
are pointers.
(maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
(finish_dollar_format_checking): Take extra parameter
pointer_gap_ok. Treat unused arguments differently if
pointer_gap_ok and the unused arguments are pointers.
(check_format_info_main): Pass extra argument to
finish_dollar_format_checking.
* doc/invoke.texi (-Wno-format-extra-args): Document behavior when
unused arguments are present between used arguments with operand
numbers.
testsuite:
* gcc.dg/format/strfmon-1.c: Update comments. Adjust examples
from Austin Group draft 7.
* gcc.dg/format/xopen-1.c: Update comments. Add tests for gaps in
scanf format arguments.
* gcc.dg/format/no-exargs-2.c: New test.
From-SVN: r47327
Daniel Berlin [Sun, 25 Nov 2001 17:22:55 +0000 (17:22 +0000)]
df.c: Add prototypes for hybrid_search_bitmap and hybrid_search_sbitmap.
2001-11-25 Daniel Berlin <dan@cgsoftware.com>
* df.c: Add prototypes for hybrid_search_bitmap and
hybrid_search_sbitmap.
(hybrid_search_bitmap): New function.
(hybrid_search_sbitmap): New function.
(iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
(iterative_dataflow_bitmap): Ditto.
From-SVN: r47326
Neil Booth [Sun, 25 Nov 2001 16:48:40 +0000 (16:48 +0000)]
* gcc.dg/cpp/fpreprocessed.c: New test.
From-SVN: r47325
Stephane Carrez [Sun, 25 Nov 2001 16:45:22 +0000 (17:45 +0100)]
m68hc11.md (peephole2): New peephole2 to optimize address computations.
* config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
address computations.
From-SVN: r47323
Stephane Carrez [Sun, 25 Nov 2001 16:36:31 +0000 (17:36 +0100)]
m68hc11.c (d_register_operand): Must accept register b (low part of d).
* config/m68hc11/m68hc11.c (d_register_operand): Must accept
register b (low part of d).
From-SVN: r47321
Stephane Carrez [Sun, 25 Nov 2001 16:28:14 +0000 (17:28 +0100)]
m68hc11.h (FUNCTION_PROFILER): Fix label name passed to mcount.
* config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
passed to mcount.
From-SVN: r47319
Nathan Sidwell [Sun, 25 Nov 2001 13:21:45 +0000 (13:21 +0000)]
re PR c++/3145 (virtual inheritance still creates wrong code)
cp:
PR g++/3145
* class.c (build_vbase_pointer): Remove.
(build_vbase_path): Remove.
(build_base_path): New function.
* cp-tree.h (base_access, base_kind): New enumerations.
(build_base_path): Declare.
(convert_pointer_to_real): Remove.
(convert_pointer_to): Remove.
(lookup_base): Declare.
(convert_pointer_to_vbase): Remove.
* call.c (build_scoped_method_call): Use lookup_base &
build_base_path instead of convert_pointer_to_real,
get_base_distance & get_binfo.
(build_over_call): Likewise.
* cvt.c (cp_convert_to_pointer): Likewise.
(convert_to_pointer_force): Likewise.
(build_up_reference): Likewise.
(convert_pointer_to_real): Remove.
(convert_pointer_to): Remove.
* init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
instead of convert_pointer_to_vbase & build_vbase_path.
(emit_base_init): Use build_base_path instead of
convert_pointer_to_real.
(expand_virtual_init): Lose unrequired conversions.
(resolve_offset_ref): Use lookup_base and build_base_path
instead of convert_pointer_to.
* rtti.c (build_dynamic_cast_1): Use lookup_base &
build_base_path instead of get_base_distance & build_vbase_path.
* search.c (get_vbase_1): Remove.
(get_vbase): Remove.
(convert_pointer_to_vbase): Remove.
(lookup_base_recursive): New function.
(lookup_base): New function.
* typeck.c (require_complete_type): Use lookup_base &
build_base_path instead of convert_pointer_to.
(build_component_ref): Likewise.
(build_x_function_call): Likewise.
(get_member_function_from_ptrfunc): Likewise.
(build_component_addr): Likewise.
* typeck2.c (build_scoped_ref): Likewise.
testsuite:
* g++.dg/abi/vbase8-4.C: New test.
From-SVN: r47316
Laurent Guerby [Sun, 25 Nov 2001 13:09:31 +0000 (13:09 +0000)]
sysdep.c (rts_get_*): Fix style.
2001-11-25 Laurent Guerby <guerby@acm.org>
* sysdep.c (rts_get_*): Fix style.
From-SVN: r47315
Douglas B Rupp [Sun, 25 Nov 2001 11:30:17 +0000 (06:30 -0500)]
vms-ld.c, vms-cc.c: New files.
* config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
* config/alpha/x-vms: New file, to compile the above.
* config.gcc (alpha*-dec-vms*): Add x-vms.
From-SVN: r47312
GCC Administrator [Sun, 25 Nov 2001 08:16:11 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47310
Ian Lance Taylor [Sun, 25 Nov 2001 06:30:44 +0000 (06:30 +0000)]
* gcc.c-torture/execute/
20011121-1.c: New test.
From-SVN: r47309
Hans-Peter Nilsson [Sat, 24 Nov 2001 22:57:28 +0000 (22:57 +0000)]
* genextract.c (main): Set ro_loc for peepholes.
From-SVN: r47308
Douglas B Rupp [Sat, 24 Nov 2001 22:17:58 +0000 (17:17 -0500)]
fix-header.c (main): Move inf_buffer termination and inf_limit calculation to after read.
* fix-header.c (main): Move inf_buffer termination and inf_limit
calculation to after read.
From-SVN: r47307
Douglas B Rupp [Sat, 24 Nov 2001 22:12:17 +0000 (17:12 -0500)]
xm-vms.h (FILE_TYPE): Remove undef and baggage.
* config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
(__UNIX_FOPEN): Define.
From-SVN: r47306
Douglas B Rupp [Sat, 24 Nov 2001 22:03:23 +0000 (17:03 -0500)]
xm-vms.h (FILE_TYPE): Remove undef and baggage.
* config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
(__UNIX_FOPEN): Define.
From-SVN: r47305
Toon Moene [Sat, 24 Nov 2001 21:36:56 +0000 (22:36 +0100)]
re PR fortran/3957 (g77 -pipe -xf77-cpp-input sends output to stdout.)
2001-11-24 Toon Moene <toon@moene.indiv.nluug.nl>
PR fortran/3957
* lang-specs.h: Correct !pipe conditional in tradcpp0 invocation.
From-SVN: r47304
Richard Kenner [Sat, 24 Nov 2001 21:18:15 +0000 (21:18 +0000)]
function.c (assign_stack_temp_for_type): Clear alias set before setting new one.
* function.c (assign_stack_temp_for_type): Clear alias set before
setting new one.
From-SVN: r47303
Joseph Myers [Sat, 24 Nov 2001 10:46:50 +0000 (10:46 +0000)]
maint.cfg.in, [...]: Revert previous changes.
* docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
docs/html/27_io/binary_iostreams_kuehl.txt: Revert previous
changes.
From-SVN: r47301
GCC Administrator [Sat, 24 Nov 2001 08:16:12 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47299
David Edelsohn [Sat, 24 Nov 2001 06:44:11 +0000 (06:44 +0000)]
rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX format.
* rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
format.
* rs6000.md (cmptf): Fix typo.
From-SVN: r47298
David Edelsohn [Sat, 24 Nov 2001 03:30:33 +0000 (22:30 -0500)]
* Fix typo in cmptf pattern.
From-SVN: r47297
Phil Edwards [Sat, 24 Nov 2001 03:28:27 +0000 (03:28 +0000)]
Makefile.am (doxygen-maint): The script isn't executable in CVS.
2001-11-23 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen-maint): The script isn't executable in CVS.
* Makefile.in: Regenerated.
* docs/doxygen/TODO: New file listing doxygen work to be done.
* docs/doxygen/run_doxygen: Fix up man pages.
* docs/doxygen/user.cfg.in: Insert maint-only toggles.
* docs/doxygen/maint.cfg.in: Copy from user.cfg and turn toggles on.
* include/bits/stl_construct.h: Use new hooks for internal functions.
* docs/html/17_intro/TODO: Small updates.
* docs/html/faq/index.html: Likewise.
* docs/html/faq/index.txt: Regenerated.
* include/bits/stl_alloc.h: Doxygenate, reindent comments, remove
SGI-isms and wrappers.
(simple_alloc, debug_alloc): Uglify class names.
(__default_alloc_template): Uglify "threads" template parameter and
update corresponding macros.
* include/backward/alloc.h: Bring up to date.
From-SVN: r47296
Jeffrey A Law [Fri, 23 Nov 2001 22:58:51 +0000 (22:58 +0000)]
* gcc.c-torture/execute/ieee/
20011123-1.c: New test.
From-SVN: r47295
Toon Moene [Fri, 23 Nov 2001 21:47:22 +0000 (22:47 +0100)]
re PR libf2c/4930 (Taking the log of a certain complex number hangs in run time library)
2001-11-23 Toon Moene <toon@moene.indiv.nluug.nl>
PR libf2c/4930
* libF77/Makefile.in: Compile z_log.c with -ffloat-store.
From-SVN: r47294
Jason Merrill [Fri, 23 Nov 2001 19:00:14 +0000 (14:00 -0500)]
fix typo
From-SVN: r47293
Jason Merrill [Fri, 23 Nov 2001 17:36:43 +0000 (12:36 -0500)]
vterminate.cc (__verbose_terminate_handler): Add leading underscores.
* src/vterminate.cc (__verbose_terminate_handler): Add leading
underscores.
From-SVN: r47292
Joseph Myers [Fri, 23 Nov 2001 16:29:02 +0000 (16:29 +0000)]
ChangeLog, [...]: Fix spelling errors.
* ChangeLog, docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
docs/doxygen/doxygroups.cc, docs/doxygen/Intro.3,
docs/html/17_intro/BUGS, docs/html/17_intro/C++STYLE,
docs/html/17_intro/CHECKLIST, docs/html/17_intro/DESIGN,
docs/html/17_intro/howto.html, docs/html/17_intro/porting.html,
docs/html/17_intro/porting.texi, docs/html/18_support/howto.html,
docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
docs/html/21_strings/howto.html,
docs/html/23_containers/howto.html,
docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
docs/html/27_io/binary_iostreams_kuehl.txt,
docs/html/ext/sgiexts.html, docs/html/faq/index.html,
docs/html/faq/index.txt, testsuite/24_iterators/iterator.cc,
include/bits/basic_file.h, include/bits/locale_facets.h,
include/bits/locale_facets.tcc, include/bits/std_sstream.h,
include/ext/ropeimpl.h, include/ext/stl_rope.h,
libsupc++/tinfo.cc, libsupc++/cxxabi.h, libsupc++/typeinfo,
libsupc++/eh_throw.cc, acinclude.m4, aclocal.m4, configure,
configure.target, ChangeLog-2000: Fix spelling errors.
From-SVN: r47291
Richard Sandiford [Fri, 23 Nov 2001 11:21:07 +0000 (11:21 +0000)]
final.c (output_addr_const): Output PC as '.' even if !flag_pic.
* final.c (output_addr_const): Output PC as '.' even if !flag_pic.
* varasm.c (output_constructor): Use assemble_integer rather
than ASM_OUTPUT_BYTE.
From-SVN: r47287
Andreas Jaeger [Fri, 23 Nov 2001 10:01:16 +0000 (11:01 +0100)]
cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension.
* cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
extension.
* gcc.dg/cpp/charconst-2.c: New test.
From-SVN: r47286
Nick Clifton [Fri, 23 Nov 2001 09:13:14 +0000 (09:13 +0000)]
Remove some compile time warnings about duplicate definitions.
From-SVN: r47285
GCC Administrator [Fri, 23 Nov 2001 08:16:17 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47283
Neil Booth [Fri, 23 Nov 2001 07:50:42 +0000 (07:50 +0000)]
cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
* cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
* gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
From-SVN: r47282
Geoffrey Keating [Fri, 23 Nov 2001 07:35:21 +0000 (07:35 +0000)]
old-dejagnu.exp (old-dejagnu): Copy extra source files to the host if it is remote.
* lib/old-dejagnu.exp (old-dejagnu): Copy extra source files
to the host if it is remote. Let tests specify extra headers
they use.
* g++.old-deja/g++.abi/vtable3a.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3b.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3c.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3d.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3e.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3f.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3g.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3h.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3i.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3j.C: This uses 'vtable3.h'.
From-SVN: r47281
Kaveh R. Ghazi [Fri, 23 Nov 2001 04:56:19 +0000 (04:56 +0000)]
* cris.h: Revert thinko in last patch.
From-SVN: r47280
Joseph Myers [Fri, 23 Nov 2001 02:05:19 +0000 (02:05 +0000)]
ChangeLog.0, [...]: Fix spelling errors.
* ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
From-SVN: r47279
Joseph Myers [Fri, 23 Nov 2001 01:37:07 +0000 (01:37 +0000)]
predict.c, [...]: Fix spelling errors.
gcc:
* predict.c, reg-stack.c: Fix spelling errors.
libstdc++-v3:
* config/locale/moneypunct_members_gnu.cc,
include/bits/locale_facets.h: Fix spelling errors.
From-SVN: r47278
Stephen M. Webb [Thu, 22 Nov 2001 19:19:23 +0000 (19:19 +0000)]
list_capacity.cc: New file.
2001-11-22 Stephen M. Webb <stephen@bregmasoft.com>
* testsuite/23_containers/list_capacity.cc: New file.
* testsuite/23_containers/list_ctor.cc: New file.
* testsuite/23_containers/list_modifiers.cc: New file.
* testsuite/23_containers/list_operators.cc: New file.
2001-11-22 Stephen M. Webb <stephen@bregmasoft.com>
* include/bits/stl_list.h: Reformatted according to C++STYLE rules.
(size): Replaced nonstandard distance() call with the standard one.
(transfer): Uglified to _M_transfer.
From-SVN: r47277
Andrew Haley [Thu, 22 Nov 2001 16:51:47 +0000 (16:51 +0000)]
calls.c (check_sibcall_argument_overlap): Use slot_offset for start of stack slot.
2001-10-09 Andrew Haley <aph@redhat.com>
* calls.c (check_sibcall_argument_overlap): Use slot_offset for
start of stack slot.
From-SVN: r47276
Nick Clifton [Thu, 22 Nov 2001 16:40:42 +0000 (16:40 +0000)]
fix typo in previous delta
From-SVN: r47275
Graham Stott [Thu, 22 Nov 2001 14:30:37 +0000 (14:30 +0000)]
cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit replacement jump after original jump.
* cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
replacement jump after original jump.
(verify_flow_info): Remove redundent initialisation.
Handle reaching end of insn list before finding a BARRIER.
Only issue one missing barrier diagnostic.
From-SVN: r47269
Graham Stott [Thu, 22 Nov 2001 14:22:09 +0000 (14:22 +0000)]
* local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
From-SVN: r47268
Nick Clifton [Thu, 22 Nov 2001 12:50:16 +0000 (12:50 +0000)]
(in m32rx patch): Replace "." with "@." when preceeded by a capital letter
From-SVN: r47267
Nick Clifton [Thu, 22 Nov 2001 12:44:39 +0000 (12:44 +0000)]
Fix for little endian ARMs
From-SVN: r47266
Richard Kenner [Thu, 22 Nov 2001 12:27:57 +0000 (07:27 -0500)]
Fix typo in last change
From-SVN: r47265
Richard Kenner [Thu, 22 Nov 2001 11:56:35 +0000 (11:56 +0000)]
i386.md (leave, [...]): Have RTL reflect what insn actually does.
* config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
insn actually does.
From-SVN: r47264
Nick Clifton [Thu, 22 Nov 2001 10:08:10 +0000 (10:08 +0000)]
Document -m32r switch. Fix typo -mm32rx=> -m32rx.
From-SVN: r47263
Nick Clifton [Thu, 22 Nov 2001 09:59:43 +0000 (09:59 +0000)]
Only build arm_elf_asm_named_section for elf targets
From-SVN: r47262
Nick Clifton [Thu, 22 Nov 2001 09:51:42 +0000 (09:51 +0000)]
Add necessary header files to tm_file for xscale-ecoff
From-SVN: r47261
GCC Administrator [Thu, 22 Nov 2001 08:16:17 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47259
Zack Weinberg [Thu, 22 Nov 2001 06:54:45 +0000 (06:54 +0000)]
* rs6000.c (output_cbranch): Use $, not %$, in output template.
From-SVN: r47258
Bryce McKinlay [Thu, 22 Nov 2001 02:33:02 +0000 (02:33 +0000)]
tree-dump.c: Rename from c-dump.c.
* tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
(lang_type_quals): Declare.
(dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
retrieve language-specific qualifiers for a type node, instead of
C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
lang_dump_tree.
* tree-dump.h: Rename from c-dump.h.
* c-common.h (C_TYPE_QUALS): Removed.
Move declarations for tree-dump.c interface to...
* tree.h: ... here. Remove lang_dump_tree.
* langhooks.h (struct lang_hooks_for_tree_dump): New.
(struct lang_hooks): Add tree_dump hooks.
* langhooks.c (lhd_tree_dump_dump_tree): New function.
(lhd_tree_dump_type_quals): New function.
* langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
Declare.
(LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
* Makefile.in: Move tree-dump.o to language-independent back-end.
cp:
* cp-tree.h (CP_TYPE_QUALS): Removed.
* decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
* cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
* dump.c (cp_dump_tree): Use void* dump_info argument to match
lang-hooks prototype.
* call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
CP_TYPE_QUALS changed to cp_type_quals.
* Make-lang.in: References to c-dump.h changed to tree-dump.h.
(CXX_C_OBJS): Remove c-dump.o.
From-SVN: r47257
Kaveh R. Ghazi [Thu, 22 Nov 2001 02:19:58 +0000 (02:19 +0000)]
1750a.h (DBX_REGISTER_NUMBER): Don't define.
* 1750a.h (DBX_REGISTER_NUMBER): Don't define.
* alpha.h (DBX_REGISTER_NUMBER): Likewise.
* arc.h (DBX_REGISTER_NUMBER): Likewise.
* arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
* avr.h (DBX_REGISTER_NUMBER): Likewise.
* c4x.h (DBX_REGISTER_NUMBER): Likewise.
* clipper.h (DBX_REGISTER_NUMBER): Likewise.
* convex.h (DBX_REGISTER_NUMBER): Likewise.
* cris.h (DBX_REGISTER_NUMBER): Likewise.
* dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
* elxsi.h (DBX_REGISTER_NUMBER): Likewise.
* fr30.h (DBX_REGISTER_NUMBER): Likewise.
* h8300.h (DBX_REGISTER_NUMBER): Likewise.
* i370.h (DBX_REGISTER_NUMBER): Likewise.
* i860.h (DBX_REGISTER_NUMBER): Likewise.
* i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
* i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
* i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
* m32r.h (DBX_REGISTER_NUMBER): Likewise.
* m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
* m88k.h (DBX_REGISTER_NUMBER): Likewise.
* mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
* mcore.h (DBX_REGISTER_NUMBER): Likewise.
* mn10200.h (DBX_REGISTER_NUMBER): Likewise.
* mn10300.h (DBX_REGISTER_NUMBER): Likewise.
* pdp11.h (DBX_REGISTER_NUMBER): Likewise.
* romp.h (DBX_REGISTER_NUMBER): Likewise.
* rs6000.h (DBX_REGISTER_NUMBER): Likewise.
* rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
* s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
* stormy16.h (DBX_REGISTER_NUMBER): Likewise.
* v850.h (DBX_REGISTER_NUMBER): Likewise.
* vax.h (DBX_REGISTER_NUMBER): Likewise.
* we32k.h (DBX_REGISTER_NUMBER): Likewise.
* defaults.h (DBX_REGISTER_NUMBER): Provide a default.
* doc/tm.texi (DBX_REGISTER_NUMBER): Update.
From-SVN: r47256
Bryce McKinlay [Thu, 22 Nov 2001 01:46:54 +0000 (01:46 +0000)]
tree-dump.{c,h} renamed from c-dump.{c,h}.
From-SVN: r47255
H.J. Lu [Thu, 22 Nov 2001 01:03:16 +0000 (01:03 +0000)]
sysv4.h (LIB_SPEC): Fix a typo.
2001-11-21 H.J. Lu <hjl@gnu.org>
* config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
From-SVN: r47254
Kaveh R. Ghazi [Thu, 22 Nov 2001 00:36:09 +0000 (00:36 +0000)]
s390.c (s390_va_arg): Eliminate ALIGN parameter in call to emit_cmp_and_jump_insns.
* s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
emit_cmp_and_jump_insns.
* stormy16.c (xstormy16_expand_builtin_va_arg,
xstormy16_expand_casesi): Likewise.
From-SVN: r47253
Mark Mitchell [Thu, 22 Nov 2001 00:21:13 +0000 (00:21 +0000)]
re PR c++/3637 (Internal compiler error in finish_member_declaration)
PR c++/3637
* pt.c (lookup_template_class): Ensure that all specializations
are registered on the list corresponding to the most general
template.
From-SVN: r47252
Richard Kenner [Wed, 21 Nov 2001 23:41:40 +0000 (23:41 +0000)]
function.c (keep_stack_depressed): Major rework.
* function.c (keep_stack_depressed): Major rework.
(handle_epilogue_set, emit_equiv_load): New functions.
(thread_prologue_and_epilogue_insns): keep_stack_depressed now
has return value.
* jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
* rtl.h (SET_IS_RETURN_P): New macro.
From-SVN: r47250
Richard Kenner [Wed, 21 Nov 2001 23:32:03 +0000 (23:32 +0000)]
expr.c (expand_expr, [...]): Refine slightly and also support TREE_ADDRESSABLE.
* expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
and also support TREE_ADDRESSABLE.
* tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
From-SVN: r47249
David Edelsohn [Wed, 21 Nov 2001 22:17:27 +0000 (22:17 +0000)]
* rs6000.md (cmptf_internal1): Replace %$ with $.
From-SVN: r47248
Paolo Carlini [Wed, 21 Nov 2001 22:04:53 +0000 (23:04 +0100)]
re PR libstdc++/4548 (When reserving a string to become smaller, program crashes)
2001-11-21 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/4548
* include/bits/basic_string.tcc (basic_string::reserve): Never shrink
below the current size.
* testsuite/21_strings/capacity.cc (test02): Add test.
From-SVN: r47246
Douglas B Rupp [Wed, 21 Nov 2001 22:03:27 +0000 (17:03 -0500)]
cppfiles.c (STAT_SIZE_TOO_BIG): Define.
* cppfiles.c (STAT_SIZE_TOO_BIG): Define.
(read_include_file): Use STAT_SIZE_TOO_BIG.
From-SVN: r47245
Douglas B Rupp [Wed, 21 Nov 2001 21:55:36 +0000 (16:55 -0500)]
cppinit.c (INO_T_COPY): Define.
* cppinit.c (INO_T_COPY): Define.
(INO_T_EQ): Uppercase parameters.
(append_include_chain): Use INO_T_COPY.
From-SVN: r47244
Richard Sandiford [Wed, 21 Nov 2001 16:02:09 +0000 (16:02 +0000)]
* cfg.c: Fix typos and formatting in the introductory comment.
From-SVN: r47243
Jan Hubicka [Wed, 21 Nov 2001 11:47:02 +0000 (11:47 +0000)]
profile.c (compute_branch_probabilites): Compute probabilities for entry/exit edges; estimate probabilities for zero counts.
* profile.c (compute_branch_probabilites): Compute probabilities
for entry/exit edges; estimate probabilities for zero counts.
From-SVN: r47242
Jakub Jelinek [Wed, 21 Nov 2001 11:13:14 +0000 (12:13 +0100)]
explow.c (probe_stack_range): Use LCT_NORMAL as second argument to emit_library_call.
* explow.c (probe_stack_range): Use LCT_NORMAL as second argument
to emit_library_call.
* function.c (expand_main_function, expand_function_start,
expand_function_end): Likewise.
* profile.c (output_func_start_profiler): Likewise.
* stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
second argument to emit_library_call.
* optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
as second argument to emit_library_call.
* calls.c (emit_library_call): Update fn_type description.
From-SVN: r47241
Jakub Jelinek [Wed, 21 Nov 2001 11:09:01 +0000 (12:09 +0100)]
c-decl.c (c_expand_deferred_function): Only call c_expand_body if fndecl is still DECL_INLINE and has DECL_RESULT.
* c-decl.c (c_expand_deferred_function): Only call c_expand_body
if fndecl is still DECL_INLINE and has DECL_RESULT.
* gcc.c-torture/compile/
20011119-1.c: New test.
* gcc.c-torture/compile/
20011119-2.c: New test.
From-SVN: r47240
GCC Administrator [Wed, 21 Nov 2001 08:16:23 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47235
Toon Moene [Wed, 21 Nov 2001 06:30:50 +0000 (07:30 +0100)]
g77.texi: egcs was not a `@command'.
2001-11-21 Toon Moene <toon@moene.indiv.nluug.nl>
* g77.texi: egcs was not a `@command'.
* invoke.texi: Ditto.
* news.texi: Substitute `@command' for `@code'
and `@option' for `@samp' where appropriate.
From-SVN: r47234
Kaveh R. Ghazi [Wed, 21 Nov 2001 04:57:09 +0000 (04:57 +0000)]
clipper.c (clipper_movstr): Avoid uninitialized warning.
* clipper.c (clipper_movstr): Avoid uninitialized warning.
* i960.c (is_mask, legitimize_address): Likewise.
* m88k.c (m88k_expand_prologue): Likewise.
* m88k.md: Likewise.
* mcore.c (emit_new_cond_insn): Likewise.
* stormy16.c (xstormy16_emit_cbranch): Likewise.
From-SVN: r47233
Zack Weinberg [Wed, 21 Nov 2001 02:57:16 +0000 (02:57 +0000)]
config.gcc: Delete powerpcle-*-solaris2* stanza.
* config.gcc: Delete powerpcle-*-solaris2* stanza.
* config/rs6000/eabi.asm, config/rs6000/rs6000.c,
config/rs6000/rs6000.h, config/rs6000/rs6000.md,
config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
config/rs6000/t-ppcos: Expunge all references to Solaris.
* config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
* config/rs6000/rs6000.md: Replace '%$' with '$' in all
output templates.
* config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
From-SVN: r47232
Kaveh R. Ghazi [Wed, 21 Nov 2001 02:28:45 +0000 (02:28 +0000)]
sh.md: Avoid uninitialized warnings.
* sh.md: Avoid uninitialized warnings.
* vax.c (vax_rtx_cost): Likewise.
From-SVN: r47231
David Edelsohn [Wed, 21 Nov 2001 02:18:58 +0000 (02:18 +0000)]
Add cmptf missed in patch.
From-SVN: r47230
David O'Brien [Wed, 21 Nov 2001 02:06:45 +0000 (02:06 +0000)]
config.gcc: Add FreeBSD/PowerPC target.
2001-11-20 David O'Brien <obrien@FreeBSD.org>
* config.gcc: Add FreeBSD/PowerPC target.
(powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
freebsd-spec.h to tm_file.
(rs6000-*-lynxos*): Add lynx.h to tm_file.
* config/freebsd.h: Tidy up.
(USING_CONFIG_FREEBSD): Define.
(FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
(TARGET_HAS_F_SETLKW): Define.
(ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
* config/freebsd-spec.h: New file.
* config/rs6000/freebsd.h: New file.
* config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
* config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
USING_SVR4_H to know when to turn on ELF support.
* config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
define only if not already defined.
Add FreeBSD support.
* config/rs6000/aix.h (TARGET_VERSION): Define.
* config/rs6000/beos.h: Likewise.
* config/rs6000/darwin.h: Likewise.
* config/rs6000/mach.h: Likewise.
* config/rs6000/lynx.h (TARGET_VERSION): Likewise.
Don't include lynx.h directly.
Approved by: Geoff Keating <geoffk@geoffk.org>
Message-Id: <
200111192053.MAA11977@geoffk.org>
Stan Shebs <shebs@apple.com> (Darwin bits)
Message-ID: <
3BF95F29.
794BC924@apple.com>
From-SVN: r47229
Aldy Hernandez [Wed, 21 Nov 2001 01:04:44 +0000 (01:04 +0000)]
rs6000.c (direct_return): Check if we are saving altivec registers.
* rs6000.c (direct_return): Check if we are saving altivec
registers.
(first_altivec_reg_to_save): New.
Updated stack frame layout comments.
(rs6000_stack_info): Calculate altivec register save size.
Save link register if we saved some altivec registers.
(rs6000_stack_info): Align save size to 16 if altivec abi or
abi_darwin.
(rs6000_stack_info): Calculate altivec register offsets.
(rs6000_stack_info): Add altivec info to save_size.
(debug_stack_info): Add altivec debug info.
(rs6000_emit_prologue): Save altivec registers and vrsave.
(compute_vrsave_mask): New.
(altivec_expand_builtin): Remove unused variables.
(rs6000_parse_abi_options): Add static qualifier.
(rs6000_expand_builtin): Remove unused parameters.
(altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
(altivec_init_builtins): Same.
(is_altivec_return_reg): New.
(vrsave_operation): New.
(ALTIVEC_REG_BIT): New.
(generate_set_vrsave): New.
* rs6000.md (get_vrsave): New.
(set_vrsave): New.
(*set_vrsave_internal): New.
* rs6000.h (rs6000_stack): Add first_altivec_reg_save,
altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
altivec_padding_size, vrsave_mask.
(TOTAL_ALTIVEC_REGS): New.
(EPILOGUE_USES): Add VRSAVE_REGNO.
From-SVN: r47228
Jeff Law [Wed, 21 Nov 2001 00:50:56 +0000 (17:50 -0700)]
unroll.c (copy_loop_body): Update LABEL_NUSES for the exit label as necessary.
* unroll.c (copy_loop_body): Update LABEL_NUSES for the
exit label as necessary.
From-SVN: r47227
Brad Kaiser [Wed, 21 Nov 2001 00:04:47 +0000 (00:04 +0000)]
reload1.c (elimination_effects): Use function_invariant_p instead of CONSTANT_P when...
* reload1.c (elimination_effects): Use function_invariant_p
instead of CONSTANT_P when considering register equivalences.
From-SVN: r47226
Aldy Hernandez [Tue, 20 Nov 2001 21:15:52 +0000 (21:15 +0000)]
altivec-1.c: Fix typo.
2001-11-17 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/altivec-1.c: Fix typo.
From-SVN: r47225