Hans-Peter Nilsson
117b0c0a5e
* config/cris/cris.c: Remove whitespace at end of line.
...
From-SVN: r47430
2001-11-28 22:00:29 +00:00
Geert Bosch
c835e5c6df
* init.c: Minor whitespace changes.
...
From-SVN: r47429
2001-11-28 22:49:44 +01:00
Douglas B Rupp
04cec1a71d
config.gcc (i[34567]86-*-interix3*): New case.
...
* config.gcc (i[34567]86-*-interix3*): New case.
* config/x-interix3, config/interix3.h, config/i386/i386interix3.h:
New files.
From-SVN: r47428
2001-11-28 16:41:54 -05:00
Douglas B Rupp
49bb454841
init.c: (__gnat_install_handler,VMS): Increase size of alternate signal stack.
...
* init.c: (__gnat_install_handler,VMS): Increase size of alternate
signal stack.
From-SVN: r47427
2001-11-28 22:38:18 +01:00
Zack Weinberg
ea2417e542
misc.c (gnat_expand_constant): Move declaration above definition of lang_hooks.
...
* misc.c (gnat_expand_constant): Move declaration above
definition of lang_hooks.
(LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
(gnat_init): lang_expand_constant no longer exists.
(internal_error_function): Remove #ifdef HAVE_VPRINTF. We
always have vprintf.
(gnat_init): Always call set_internal_error_function.
From-SVN: r47426
2001-11-28 19:49:00 +00:00
Paolo Carlini
6dafbab7e5
2001-11-28 Paolo Carlini <pcarlini@unitus.it>
...
Loren J. Rittle <ljrittle@acm.org>
* include/bits/basic_string.h
(basic_string::_Rep::__default_excess, _S_excess_slop):
Unused, remove.
* include/bits/basic_string.tcc: Remove dead code.
* include/bits/c++config: Remove comment.
Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
From-SVN: r47425
2001-11-28 18:58:19 +00:00
Richard Henderson
391f61d928
alpha.md (sibcall_osf_1, [...]): Use symbolic_operand as the predicate.
...
* config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
symbolic_operand as the predicate.
From-SVN: r47424
2001-11-28 10:36:14 -08:00
Richard Henderson
e6dc3aa0ee
doloop.c (doloop_modify_runtime): Properly select induction variable...
...
* doloop.c (doloop_modify_runtime): Properly select induction
variable; skip late entry test if biv initializer created by loop.
From-SVN: r47423
2001-11-28 10:09:26 -08:00
Rainer Orth
969ff1a019
Missed in last commit.
...
From-SVN: r47422
2001-11-28 17:34:54 +00:00
Richard Kenner
f724a9d2e2
tree.h (EXPR_WFL_LINECOL): Used by Java in node other than EXPR_WITH_FILE_LOCATION...
...
* tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
EXPR_WITH_FILE_LOCATION, so change checks and documentation.
From-SVN: r47420
2001-11-28 11:55:59 -05:00
Richard Kenner
3e87ad4df7
* tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
...
From-SVN: r47419
2001-11-28 09:37:58 -05:00
Richard Kenner
c46080ab33
tree.h: Add missing checks on some macros; make formatting more consistent.
...
* tree.h: Add missing checks on some macros; make formatting more
consistent.
From-SVN: r47416
2001-11-28 07:33:03 -05:00
Richard Kenner
3874585e2e
stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top level; only add to pending_sizes if find it.
...
* stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
level; only add to pending_sizes if find it.
From-SVN: r47415
2001-11-28 07:21:07 -05:00
Richard Kenner
d6d709cdb5
Remove blank line.
...
From-SVN: r47414
2001-11-28 07:18:37 -05:00
Richard Kenner
f80230c1e8
* langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
...
From-SVN: r47413
2001-11-28 07:13:50 -05:00
Richard Kenner
36221fc4ec
df.c (iterate_dataflow_sbitmap, [...]): Add casts to remove warnings.
...
* df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
Add casts to remove warnings.
From-SVN: r47412
2001-11-28 07:10:38 -05:00
Arnaud Charlet
04203c18ad
Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
...
* Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
(FLAGS_TO_PASS): Add STAGE_PREFIX.
(SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
to STAGE_PREFIX.
From-SVN: r47411
2001-11-28 07:01:20 -05:00
Richard Kenner
0c3a03cf65
Remove extra blank
...
From-SVN: r47410
2001-11-28 06:56:51 -05:00
Richard Kenner
033265badf
* Makefile.in (OBJS): Sort alphabetically.
...
From-SVN: r47409
2001-11-28 06:55:41 -05:00
Richard Kenner
5e74f966b7
print-rtl.c (print_rtx): If RTX code is bad, just say so.
...
* print-rtl.c (print_rtx): If RTX code is bad, just say so.
Also minor cleanups.
From-SVN: r47408
2001-11-28 06:52:21 -05:00
Jan Hubicka
d2c35e6748
Add missing hunk, due to reject I've missed in my previous commit.
...
From-SVN: r47407
2001-11-28 10:16:40 +00:00
Jan Hubicka
db4a825457
cse.c (true_dependence_in_rtx): New function.
...
* cse.c (true_dependence_in_rtx): New function.
(invalidate): Use it.
* c-common.h (GOTO_FAKE_P): New macro.
* tree-inline.c (GOTO_FAKE_P): Set.
* c-tree.texi (GOTO_FAKE_P): Document.
* varasm.c (assemble_variable): Set reloc to 3 for error_mark
containing pointers.
(output_addressed_constants): Check for local/external relocations.
* elfos.h (SELECT_SECTION): Classify data section.
* tm.texi (SELECT_SECTION): Update documentation.
* cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
(flow_dfs_compute_reverse_execute): Add only unvisited blocks.
From-SVN: r47405
2001-11-28 09:47:25 +00:00
GCC Administrator
562d21e913
Daily bump.
...
From-SVN: r47403
2001-11-28 08:16:14 +00:00
Benjamin Kosnik
861768350b
2001-11-28 Benjamin Kosnik <bkoz@redhat.com>
...
Jakub Jelinek <jakub@redhat.com>
* config/locale/moneypunct_members_gnu.cc
(moneypunct<wchar_t>::_M_initialize_moneypunct): Correctly cast
for ia64, others.
* config/locale/numpunct_members_gnu.cc
(numpunct<wchar_t>::_M_initialize_numpunct): Same.
From-SVN: r47402
2001-11-28 07:40:12 +00:00
Benjamin Kosnik
074a8e74dd
locale_facets.tcc: Formatting tweaks.
...
2001-11-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc: Formatting tweaks.
* testsuite/23_containers/map_operators.cc: Don't xfail.
* testsuite/23_containers/set_operators.cc: Same.
* testsuite/backward/header_iterator_h.cc: Pass in -Wno-deprecated.
* testsuite/backward/header_deque_h.cc: Same.
From-SVN: r47401
2001-11-28 06:53:29 +00:00
Benjamin Kosnik
5fd0af8754
locale_facets.tcc: Formatting tweaks.
...
2001-11-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc: Formatting tweaks.
* testsuite/23_containers/map_operators.cc: Don't xfail.
* testsuite/23_containers/set_operators.cc: Same.
From-SVN: r47400
2001-11-28 06:35:00 +00:00
Benjamin Kosnik
ec9d6e9f45
Numeric facets cleanup.
...
2001-11-27 Benjamin Kosnik <bkoz@redhat.com>
Numeric facets cleanup.
* include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
+ and - signs.
(__num_base::_M_zero): Add
(__num_base::_M_e): Add.
(__num_base::_M_E): Add.
* include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
(num_get::_M_extract_float): New.
(num_get::_M_extract_int): New.
* src/locale.cc (num_get::_M_extract): Remove.
* include/bits/locale_facets.tcc (num_put::_M_insert_float):
Simplify, use _M_insert.
(num_put::do_put(bool)): Simplify, remove __pad.
(__pad): Remove.
(__pad_output): Change to __pad.
* include/bits/ostream.tcc: And here.
* src/locale-inst: Remove instantiations.
* include/bits/locale_facets.h: Move helper functions in to class
num_put.
(num_put::_M_insert_float): Same, for __output_integer.
(num_put::_M_insert_int): Same, for __output_float.
(num_put::_M_insert): New.
(__num_base): Add.
(__num_base::_S_format_float): Move
__build_float_format into class __num_base.
(__num_base::_S_format_int): Move __build_int_format into class
__num_base.
* include/bits/locale_facets.tcc (__group_digits): Change to
(__add_grouping): This.
* src/locale-inst.cc: And here. Tweak instantiations.
* src/misc-inst.cc: Remove instantiations.
* include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
for new calling conventions, move to...
* include/bits/locale_facets.tcc (__pad_output): Here. Adjust
signature to make it useful for both ostream and num_put.
(__pad_numeric): Remove.
* src/misc-inst.cc: Remove instantiations.
* src/locale-inst.cc: Same.
* include/bits/locale_facets.h (_Numeric_get): Remove.
(_Numeric_put): Remove.
(num_get::get(short)): Remove.
(num_get::get(int)): Remove.
(num_get::do_get(short)): Remove.
(num_get::do_get(int)): Remove.
* include/bits/istream.tcc (istream::operator>>(short)): Fix as
per DR 118.
(istream::operator>>(int)): Same.
* include/bits/locale_facets.h (_Format_cache): Remove.
* include/bits/locale_facets.tcc: Same.
* src/locale.cc: Same.
* src/locale-inst.cc: Same.
* include/bits/ostream.tcc: Same.
* src/ios.cc (ios_base::imbue): Remove here as well.
* testsuite/22_locale/num_get.cc: New file.
* testsuite/22_locale/num_get_members_char.cc: New file.
* testsuite/22_locale/num_get_members_wchar_t.cc: New.
* testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
* testsuite/22_locale/num_put.cc: New file.
* testsuite/22_locale/num_put_members_char.cc: New file.
* testsuite/22_locale/num_put_members_wchar_t.cc: New file.
* testsuite/27_io/ostream_inserter_arith.cc: Fix.
* testsuite/27_io/istream_extractor_arith.cc: Fix.
From-SVN: r47399
2001-11-28 06:29:55 +00:00
Loren J. Rittle
2883d58bf5
basic_string.tcc (basic_string::_Rep::_S_create): Enforce allocation size blocking policy to reduce fragmentation and enhance...
...
2001-11-27 Loren J. Rittle <ljrittle@acm.org>
Paolo Carlini <pcarlini@unitus.it>
* include/bits/basic_string.tcc (basic_string::_Rep::_S_create):
Enforce allocation size blocking policy to reduce
fragmentation and enhance performance with common malloc
implementations.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r47398
2001-11-28 05:17:59 +00:00
Benjamin Kosnik
86ade44cb2
Numeric facets cleanup.
...
2001-11-27 Benjamin Kosnik <bkoz@redhat.com>
Numeric facets cleanup.
* include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
+ and - signs.
(__num_base::_M_zero): Add
(__num_base::_M_e): Add.
(__num_base::_M_E): Add.
* include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
(num_get::_M_extract_float): New.
(num_get::_M_extract_int): New.
* src/locale.cc (num_get::_M_extract): Remove.
* include/bits/locale_facets.tcc (num_put::_M_insert_float):
Simplify, use _M_insert.
(num_put::do_put(bool)): Simplify, remove __pad.
(__pad): Remove.
(__pad_output): Change to __pad.
* include/bits/ostream.tcc: And here.
* src/locale-inst: Remove instantiations.
* include/bits/locale_facets.h: Move helper functions in to class
num_put.
(num_put::_M_insert_float): Same, for __output_integer.
(num_put::_M_insert_int): Same, for __output_float.
(num_put::_M_insert): New.
(__num_base): Add.
(__num_base::_S_format_float): Move
__build_float_format into class __num_base.
(__num_base::_S_format_int): Move __build_int_format into class
__num_base.
* include/bits/locale_facets.tcc (__group_digits): Change to
(__add_grouping): This.
* src/locale-inst.cc: And here. Tweak instantiations.
* src/misc-inst.cc: Remove instantiations.
* include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
for new calling conventions, move to...
* include/bits/locale_facets.tcc (__pad_output): Here. Adjust
signature to make it useful for both ostream and num_put.
(__pad_numeric): Remove.
* src/misc-inst.cc: Remove instantiations.
* src/locale-inst.cc: Same.
* include/bits/locale_facets.h (_Numeric_get): Remove.
(_Numeric_put): Remove.
(num_get::get(short)): Remove.
(num_get::get(int)): Remove.
(num_get::do_get(short)): Remove.
(num_get::do_get(int)): Remove.
* include/bits/istream.tcc (istream::operator>>(short)): Fix as
per DR 118.
(istream::operator>>(int)): Same.
* include/bits/locale_facets.h (_Format_cache): Remove.
* include/bits/locale_facets.tcc: Same.
* src/locale.cc: Same.
* src/locale-inst.cc: Same.
* include/bits/ostream.tcc: Same.
* src/ios.cc (ios_base::imbue): Remove here as well.
* testsuite/22_locale/num_get.cc: New file.
* testsuite/22_locale/num_get_members_char.cc: New file.
* testsuite/22_locale/num_get_members_wchar_t.cc: New.
* testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
* testsuite/22_locale/num_put.cc: New file.
* testsuite/22_locale/num_put_members_char.cc: New file.
* testsuite/22_locale/num_put_members_wchar_t.cc: New file.
* testsuite/27_io/ostream_inserter_arith.cc: Fix.
* testsuite/27_io/istream_extractor_arith.cc: Fix.
From-SVN: r47397
2001-11-28 04:07:11 +00:00
Kaveh R. Ghazi
59a64a46e0
defaults.h (UNALIGNED_SHORT_ASM_OP, [...]): Also provide defaults when we have OBJECT_FORMAT_ROSE.
...
* defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
OBJECT_FORMAT_ROSE.
From-SVN: r47396
2001-11-28 02:39:21 +00:00
Hans-Peter Nilsson
3d5568369f
cris.c: Tweak spacing for prototypes.
...
* config/cris/cris.c: Tweak spacing for prototypes.
(LOSE_AND_RETURN): New macro.
(cris_operand_lossage): New function.
(cris_print_index, cris_print_base): Use cris_operand_lossage
rather than fatal_insn.
(cris_print_operand, cris_print_operand_address): Use
LOSE_AND_RETURN rather than fatal_insn and internal_error.
(cris_output_addr_const): Use LOSE_AND_RETURN and
output_operand_lossage rather than fatal_insn and internal_error
for valid but unexpected rtx expressions.
* config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
for a SUBREG in src or dest, abort instead.
From-SVN: r47395
2001-11-28 02:37:44 +00:00
Hans-Peter Nilsson
fd2aba001d
* gcc.dg/20011127-1.c: New test.
...
From-SVN: r47394
2001-11-28 02:36:03 +00:00
Zack Weinberg
e490616e33
top level:
...
2001-11-27 DJ Delorie <dj@redhat.com>
Zack Weinberg <zack@codesourcery.com>
When build != host, create libiberty for the build machine.
* Makefile.in (TARGET_CONFIGARGS, BUILD_CONFIGARGS): Replace
CONFIG_ARGUMENTS.
(ALL_BUILD_MODULES_LIST, BUILD_CONFIGDIRS, BUILD_SUBDIR):
New variables.
(ALL_BUILD_MODULES, CONFIGURE_BUILD_MODULES): New variables
and rules.
(all.normal): Depend on ALL_BUILD_MODULES.
(CONFIGURE_TARGET_MODULES rule): Use TARGET_CONFIGARGS.
(all-build-libiberty): Depend on configure-build-libiberty.
* configure: Calculate and substitute proper value for
ALL_BUILD_MODULES.
* configure.in: Create the build subdirectory.
Calculate and substitute TARGET_CONFIGARGS (formerly
CONFIG_ARGUMENTS); also BUILD_SUBDIR and BUILD_CONFIGARGS (new).
libiberty:
2001-11-27 Zack Weinberg <zack@codesourcery.com>
* _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
in libiberty context. Fix typo in leading comment.
* configure.in: Fix various AC_DEFINEs so autoheader works.
If any of vprintf, vsprintf, vfprintf is missing from libc,
then AC_REPLACE_FUNCS(_doprnt).
From-SVN: r47393
2001-11-28 01:37:24 +00:00
Bryce McKinlay
215e11524b
passes.texi: Remove reference to c-dump.c.
...
* doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
doc.
From-SVN: r47392
2001-11-28 00:45:26 +00:00
Phil Edwards
7145a3ddd9
explanations.html: New section, empty for now.
...
2001-11-27 Phil Edwards <pme@gcc.gnu.org>
* docs/html/explanations.html: New section, empty for now.
* docs/html/17_intro/howto.html: Cleanup. Move unrelated link...
* docs/html/23_containers/howto.html: ...to here. Break up and
rewrap threading discussion to emphasize warning. Move malloc text...
* docs/html/ext/howto.html: ...to here. New section. Describe
allocators and __USE_MALLOC effects.
* docs/html/ext/sgiexts.html: Mention their code.
From-SVN: r47391
2001-11-28 00:02:04 +00:00
Jakub Jelinek
8a63621fe5
gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than preprocessor define.
...
* gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
preprocessor define. If only DBX_DEBUGGING_INFO or only
DWARF2_DEBUGGING_INFO is supported for the target, provide
appropriate definitions.
From-SVN: r47390
2001-11-27 23:53:09 +01:00
Neil Booth
98741ec369
* Makefile.in: Forgotten commit.
...
From-SVN: r47389
2001-11-27 22:47:42 +00:00
Neil Booth
0abc6a6a4f
cpphash.c (_cpp_init_hashtable): Update.
...
* cpphash.c (_cpp_init_hashtable): Update.
* cpphash.h (struct spec_nodes): Remove n_L.
* cpplex.c (_cpp_lex_direct): Check for prefix L separately.
* Makefile.in: Update, and add c-objc-common.o dependencies.
* c-lang.c: Remove unnecessary includes.
(c_init): Move bulk of code to c_objc_common_init, and call it.
(c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
inline_forbidden_p, c_cannot_inline_tree_fn): Move to
c-objc-common.c.
* c-objc-common.c: New. Mostly pulled from c-lang.c.
* c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
c_objc_common_init, c_missing_noreturn_ok_p): New.
* toplev.c: Update comment.
* doc/passes.texi: Update.
* objc/ojbc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
(objc_init): Update to use c_objc_common_init.
From-SVN: r47388
2001-11-27 22:31:34 +00:00
Richard Henderson
9827f778db
unroll.c (loop_iterations): Move last change ...
...
* unroll.c (loop_iterations): Move last change ...
* doloop.c (doloop_modify_runtime): ... here.
From-SVN: r47387
2001-11-27 14:09:10 -08:00
Corey Minyard
ec3fba5614
unroll.c (loop_iterations): Detect one situation in which we overestimate the number of iterations.
...
* unroll.c (loop_iterations): Detect one situation in which we
overestimate the number of iterations.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r47386
2001-11-27 10:30:40 -08:00
Rainer Orth
b856c15d7e
re PR other/3968 (COLLECT_GCC_OPTIONS empty)
...
* gcc.c (set_collect_gcc_options): New function, split out from
main.
Ignore elided switches.
(do_spec): Invoke before executing command.
(do_spec_1): Likewise.
Fixes PR other/3968.
* gcc.c (set_input): Export.
Move declaration ...
gcc.h (set_input): ... here.
java:
* jvspec.c (jvgenmain_spec): Cannot use %umain, breaks
ASM_FINAL_SPEC.
(lang_specific_pre_link): Use set_input to set input_filename.
Append `main' here.
* jvgenmain.c (usage): Append literal `main' to CLASSNAME.
(main): Fix definition.
Strip `main' from classname.
Fixes PR java/227.
From-SVN: r47385
2001-11-27 17:31:38 +00:00
Hans-Peter Nilsson
ae08d4c0e9
* config/cris/cris.h (INT_ASM_OP): Remove.
...
From-SVN: r47384
2001-11-27 16:38:54 +00:00
Andreas Jaeger
f8e0aa736d
* Makefile.in (stamp-tool_src_dir): Use symbolic link.
...
From-SVN: r47382
2001-11-27 17:17:56 +01:00
Rainer Orth
b9fbb93637
sol2.h (WINT_TYPE): Redefine.
...
* config/i386/sol2.h (WINT_TYPE): Redefine.
(WINT_TYPE_SIZE): Likewise.
From-SVN: r47381
2001-11-27 16:13:22 +00:00
Kaveh R. Ghazi
475c267f7a
collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
...
* collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
(dup2): Make static and add prototype.
* m68k/plexus.h: Don't define NO_DUP2.
* configure.in (AC_CHECK_FUNCS): Add dup2.
* config.in, configure: Regenerate.
From-SVN: r47379
2001-11-27 15:36:24 +00:00
Kaveh R. Ghazi
ec8e621da9
aix.h (REG_SIZE): Don't #undef.
...
* ia64/aix.h (REG_SIZE): Don't #undef.
* sparc.h (REG_SIZE): Delete.
* flow.c (mark_used_regs): Don't use REG_SIZE.
* regs.h (REG_SIZE): Delete.
From-SVN: r47378
2001-11-27 15:32:18 +00:00
Andreas Schwab
4a2fadaecc
gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT -> PREFERRED_DEBUGGING_TYPE.
...
* gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
PREFERRED_DEBUGGING_TYPE.
From-SVN: r47377
2001-11-27 15:08:38 +00:00
Richard Kenner
ac79cd5ab9
Makefile.in (c-lang.o): Depends on langhooks-def.h.
...
* Makefile.in (c-lang.o): Depends on langhooks-def.h.
(expr.o, varasm.o): Depends on langhooks.h.
* c-common.c (c_safe_from_p): Always declare.
(c_expand_expr): Refine when declared.
* c-lang.c (c-common.h): Now include.
(LANG_HOOKS_SAFE_FROM_P): Define new hook.
(c_init): Don't set lang_safe_from_expr.
* expr.c (langhooks.h): Now include.
(lang_safe_from_p): No longer define.
(safe_from_p): Use lang hook.
(expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
(expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
* expr.h (lang_expand_constant, lang_safe_from_p): Delete.
* langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
(LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
* langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
* langhooks.h (struct lang_hooks): New fields expand_constant
and safe_from_p.
* output.h (output_constant): Size arg is HOST_WIDE_INT.
* stmt.c (expand_decl_init): No longer need to expand constant
for CONST_DECL.
* stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
* toplev.c (lang_expand_constant): Delete var.
* tree.c (save_expr): Don't put another SAVE_EXPR around simple
operations on SAVE_EXPR.
* varasm.c (langhooks.h): Now include.
(compare_constant_1): Use lang_hooks, not lang_expand_constant.
(record_constant_1, output_addressed_constants): Likewise.
(initializer_constant_valid_p, output_constant): Likewise.
(output_constant_def): Process no-defer of string constant.
(output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
(output_constant): Strip more conversions.
Track our size and pad for the rest.
(array_size_for_constructor): Remove code for non-byte STRING_CST.
(output_constructor): SIZE now HOST_WIDE_INT.
* cp/Make-lang.in (cp-lang.o): Depends on c-common.h.
* cp/cp-lang.c (c-common.h): Include.
(LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
* cp/decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
* cp/expr.c (init_cplus_expand): Don't set lang_expand_constant.
From-SVN: r47376
2001-11-27 09:31:29 -05:00
Richard Henderson
188235dff1
ifcvt.c (noce_try_store_flag_constants): Test for overflow in computing DIFF.
...
* ifcvt.c (noce_try_store_flag_constants): Test for overflow
in computing DIFF.
From-SVN: r47374
2001-11-27 01:07:59 -08:00
Laurent Guerby
d99b0e7965
Makefile.in: Regenerate Ada dependencies.
...
2001-11-27 Laurent Guerby <guerby@acm.org>
* Makefile.in: Regenerate Ada dependencies.
From-SVN: r47373
2001-11-27 08:45:41 +00:00