Commit Graph

31178 Commits

Author SHA1 Message Date
Mark Mitchell
583ca5a08d call.c (standard_conversion): Use RVALUE_CONVs for all expressions that satisfy lvalue_p...
* call.c (standard_conversion): Use RVALUE_CONVs for all
	expressions that satisfy lvalue_p, not just those that satisfy
	real_lvalue_p.

From-SVN: r37013
2000-10-23 06:36:37 +00:00
Mark Mitchell
f9808f81c9 expr.c (do_preexpand_calls): Remove.
* expr.c (do_preexpand_calls): Remove.
	(same_from_p): Don't use CALL_EXPR_RTL.
	(expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
	(preexpand_calls): Remove.
	* tree.c (first_rtl_op): Remove CALL_EXPR case.
	(unsave_expr_1): Likewise.
	* tree.def (CALL_EXPR): Give it only two slots.
	* tree.h (CALL_EXPR_RTL): Remove.

	* optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.

From-SVN: r37012
2000-10-23 04:40:26 +00:00
Alex Samuel
0870bfd6d8 cp-demangle.c (string_list_def): Add caret_position and comments.
* cp-demangle.c (string_list_def): Add caret_position and comments.
	(result_caret_pos): New macro.
	(result_append_string): Rename to...
	(result_add_string): ... this, and insert at caret position.
	Rename throughout.
	(result_append): Rename to...
	(result_add): ... this, and insert at caret position.  Rename
	throughout.
	(result_append_char): Rename to...
	(result_add_char): ... this, and insert at caret position.  Rename
	throughout.
	(result_append_space): Remove.
	(string_list_new): Initialize caret position.
	(result_add_separated_char): Use caret position.
	(result_get_caret): New funtion.
	(result_set_caret): Likewise.
	(result_shift_caret): Likewise.
	(result_previous_char_is_space): Likewise.
	(substitution_start): Use caret position.
	(substitution_add): Likewise.
	(demangling_new): Initialize caret position.
	(demangle_encoding): Use caret position.
	(demanglin_nested_name): Put CV qualifiers after name.
	(demangle_type_ptr): Use switch statement.  Handle pointers to
	arrays.  Don't use result_append_space.  Use caret position.
	(demangle_type): Emit CV qualifiers after underlying type.  Adjust
	call to demangle_array_type.
	(demangle_array_type): Add parameter to handle pointers to arrays.

From-SVN: r37011
2000-10-22 23:59:25 +00:00
Chandrakala Chavva
ae4bd6227a libgcc-std.ver (__addvsi3, [...]): New functions.
* libgcc-std.ver (__addvsi3, __addvdi3,  __subvsi3, __subvdi3,
        __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
        New functions.

From-SVN: r37010
2000-10-22 17:20:28 -04:00
Jason Merrill
db5ae31b19 call.c (build_conditional_expr): Use ocp_convert to force rvalue conversion.
* call.c (build_conditional_expr): Use ocp_convert to force
        rvalue conversion.

From-SVN: r37009
2000-10-22 16:21:41 -04:00
Alexandre Oliva
3e555c7de1 calls.c (combine_pending_stack_adjustment_and_call): Don't adjust stack when unadjusted_alignment ends up as zero.
* calls.c (combine_pending_stack_adjustment_and_call): Don't
adjust stack when unadjusted_alignment ends up as zero.

From-SVN: r37008
2000-10-22 19:34:05 +00:00
Joseph Myers
99bdaa681e genfixes: Remove EGCS reference.
* fixinc/genfixes: Remove EGCS reference.
	* install.texi: Remove EGCS reference.
	* INSTALL: Regenerate.

From-SVN: r37007
2000-10-22 19:07:07 +01:00
Mark Mitchell
e36308b076 tree.h (TYPE_IS_SIZETYPE): Add more documentation.
* tree.h (TYPE_IS_SIZETYPE): Add more documentation.

	* typeck.c (c_sizeof): Return an expression of `size_t' type,
	not one with TYPE_IS_SIZETYPE set.
	(dubious_conversion_warnings): Remove special-case code.

From-SVN: r37006
2000-10-22 17:50:28 +00:00
Rolf W. Rasmussen
2622c79d2d Makefile.am: Added rules for libgcjx library.
* Makefile.am: Added rules for libgcjx library.
	* Makefile.in: Rebuilt.
	* configure.in: Added check for X.
	* configure: Rebuilt.
	* gnu/awt/LightweightRedirector.java: New file.
	* gnu/awt/j2d/AbstractGraphicsState.java: New file.
	* gnu/awt/j2d/DirectRasterGraphics.java: New file.
	* gnu/awt/j2d/Graphics2DImpl.java: New file.
	* gnu/awt/j2d/IntegerGraphicsState.java: New file.
	* gnu/awt/j2d/MappedRaster.java: New file.
	* gnu/awt/xlib/XCanvasPeer.java: New file.
	* gnu/awt/xlib/XEventLoop.java: New file.
	* gnu/awt/xlib/XEventQueue.java: New file.
	* gnu/awt/xlib/XFontMetrics.java: New file.
	* gnu/awt/xlib/XFramePeer.java: New file.
	* gnu/awt/xlib/XGraphics.java: New file.
	* gnu/awt/xlib/XGraphicsConfiguration.java: New file.
	* gnu/awt/xlib/XPanelPeer.java: New file.
	* gnu/awt/xlib/XToolkit.java: New file.
	* gnu/gcj/xlib/Clip.java: New file.
	* gnu/gcj/xlib/Colormap.java: New file.
	* gnu/gcj/xlib/Display.java: New file.
	* gnu/gcj/xlib/Drawable.java: New file.
	* gnu/gcj/xlib/Font.java: New file.
	* gnu/gcj/xlib/GC.java: New file.
	* gnu/gcj/xlib/Pixmap.java: New file.
	* gnu/gcj/xlib/Screen.java: New file.
	* gnu/gcj/xlib/Visual.java: New file.
	* gnu/gcj/xlib/WMSizeHints.java: New file.
	* gnu/gcj/xlib/Window.java: New file.
	* gnu/gcj/xlib/WindowAttributes.java: New file.
	* gnu/gcj/xlib/XAnyEvent.java: New file.
	* gnu/gcj/xlib/XButtonEvent.java: New file.
	* gnu/gcj/xlib/XColor.java: New file.
	* gnu/gcj/xlib/XConfigureEvent.java: New file.
	* gnu/gcj/xlib/XConnectException.java: New file.
	* gnu/gcj/xlib/XEvent.java: New file.
	* gnu/gcj/xlib/XException.java: New file.
	* gnu/gcj/xlib/XExposeEvent.java: New file.
	* gnu/gcj/xlib/XID.java: New file.
	* gnu/gcj/xlib/XImage.java: New file.
	* gnu/gcj/xlib/XUnmapEvent.java: New file.
	* gnu/gcj/xlib/natClip.cc: New file.
	* gnu/gcj/xlib/natColormap.cc: New file.
	* gnu/gcj/xlib/natDisplay.cc: New file.
	* gnu/gcj/xlib/natDrawable.cc: New file.
	* gnu/gcj/xlib/natFont.cc: New file.
	* gnu/gcj/xlib/natGC.cc: New file.
	* gnu/gcj/xlib/natPixmap.cc: New file.
	* gnu/gcj/xlib/natScreen.cc: New file.
	* gnu/gcj/xlib/natVisual.cc: New file.
	* gnu/gcj/xlib/natWMSizeHints.cc: New file.
	* gnu/gcj/xlib/natWindow.cc: New file.
	* gnu/gcj/xlib/natWindowAttributes.cc: New file.
	* gnu/gcj/xlib/natXAnyEvent.cc: New file.
	* gnu/gcj/xlib/natXButtonEvent.cc: New file.
	* gnu/gcj/xlib/natXColor.cc: New file.
	* gnu/gcj/xlib/natXConfigureEvent.cc: New file.
	* gnu/gcj/xlib/natXException.cc: New file.
	* gnu/gcj/xlib/natXExposeEvent.cc: New file.
	* gnu/gcj/xlib/natXImage.cc: New file.
	* gnu/gcj/xlib/natXUnmapEvent.cc: New file.
	* java/awt/EventDispatchThread.java: Start thead on creation.

From-SVN: r37005
2000-10-22 17:46:09 +00:00
Geoff Keating
9b95cc4a34 * POTFILES.in: Add config/i386/netware.h and config/netware.h.
From-SVN: r37004
2000-10-22 11:02:11 +00:00
Jeff Law
1d3591d1b5 Daily bump.
From-SVN: r37003
2000-10-22 01:45:08 -06:00
Geoff Keating
7a0f14e58b decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
* decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
	* error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
	(dump_type_prefix): Print vector-of-int as 'int vector'.
	(dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
	* tree.c (walk_tree): Handle VECTOR_TYPE.

From-SVN: r37002
2000-10-22 01:38:35 +00:00
Geoff Keating
3b9ae6f0d5 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
From-SVN: r37001
2000-10-22 01:38:09 +00:00
Jason Merrill
aca77bd196 parse.y (operator): Set got_object from got_scope.
* parse.y (operator): Set got_object from got_scope.
        Set looking_for_typename.
        * decl.c (lookup_name_real): Clear val after setting from_obj.
        Reorganize diagnostic.

From-SVN: r37000
2000-10-21 17:44:04 -04:00
Benjamin Kosnik
fac045536f acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
2000-10-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
	* aclocal.m4: Regenerate.
	* configure.in: Use it.
	* configure: Regenerate.
	* src/complexl.cc: Fixup.
	* include/c_std/bits/std_cmath.h: Fixup.
	* include/c/bits/std_cmath.h: Fixup.
	* docs/configopts.html: Add docs.

From-SVN: r36999
2000-10-21 19:43:13 +00:00
Benjamin Kosnik
9fedcfd5a3 acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
2000-10-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
	* aclocal.m4: Regenerate.
	* configure.in: Use it.
	* configure: Regenerate.
	* src/complexl.cc: Fixup.
	* include/c_std/bits/std_cmath.h: Fixup.
	* include/c/bits/std_cmath.h: Fixup.

From-SVN: r36998
2000-10-21 19:40:17 +00:00
Philipp Thomas
4037042b88 POTFILES.in: Remove config/rs6000/netware.h.
2000-10-21  Philipp Thomas  <pthomas@suse.de>

	* POTFILES.in: Remove config/rs6000/netware.h.
	Remove the files moved out of libgcc and over
	to libsupc++.
	* Makefile.in.in (stamp-check-pot): Rename to stamp-check-po.
	(check-po): New, more intuitive target to check POTFILES.in
	for consistency.

From-SVN: r36997
2000-10-21 19:04:38 +00:00
Joseph Myers
bf6eb15f68 diagnostic.c: Remove EGCS reference in comment.
* diagnostic.c: Remove EGCS reference in comment.

f:
	* Makefile.in, g77spec.c: Remove EGCS references in comments.

From-SVN: r36996
2000-10-21 19:10:32 +01:00
Benjamin Kosnik
6b76f569a3 [multiple changes]
2000-10-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* docs/links.html: Add links to defects list, standards FAQ.

	* testsuite/21_strings/ctor_copy_dtor.cc (test01): Disable tests
	with string creation that allocate huge ammounts of memory.

	* include/c/bits/std_cstddef.h: Put size_t, ptrdiff_t in
	namepace std.

2000-10-21  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>

    	* libsupc++/exception.cc: Use namespace std.
    	* libsupc++/new: DITTO.
    	* libsupc++/new_op.cc: DITTO.
    	* libsupc++/new_opnt.cc: DITTO.
    	* libsupc++/new_opv.cc: DITTO.
    	* libsupc++/new_opvnt.cc: DITTO.
    	* libsupc++/tinfo.cc: DITTO.
    	* libsupc++/tinfo.h: DITTO.
    	* libsupc++/vec.cc: DITTO.
    	* libsupc++/Makefile.am: Blank lines removal.

From-SVN: r36995
2000-10-21 16:50:29 +00:00
Kaveh R. Ghazi
80393943c7 Warning fixes:
* gjavah.c (NEED_PEEK_ATTRIBUTE, NEED_SKIP_ATTRIBUTE): Define

	* jcf-reader.c (peek_attribute, skip_attribute): Only define
	when requested.

	* parse.h (yyerror): If JC1_LITE, mark with ATTRIBUTE_NORETURN.

	* verify.c (CHECK_PC_IN_RANGE): Cast result of stmt-expr to void.

From-SVN: r36994
2000-10-21 15:10:38 +00:00
Richard Kenner
e62ff0c3ba * loop.c (strength_reduce): Fix error in last change.
From-SVN: r36993
2000-10-21 08:12:07 -04:00
Jeff Law
139a41f984 Daily bump.
From-SVN: r36992
2000-10-21 01:45:08 -06:00
Jakub Jelinek
42a55121ee * gcc.dg/noncompile/init-3.c: New test.
From-SVN: r36991
2000-10-21 08:35:47 +02:00
Bryce McKinlay
e1d565ab93 parse.y (do_resolve_class): Also explore superclasses of intermediate enclosing contexts when...
2000-08-15  Bryce McKinlay  <bryce@albatross.co.nz>

	* parse.y (do_resolve_class): Also explore superclasses of
	intermediate enclosing contexts when searching for inner classes.

From-SVN: r36990
2000-10-21 07:28:27 +01:00
David Edelsohn
0ad7574f93 Makefile.in (SHLIB_NM_FLAGS): New.
* Makefile.in (SHLIB_NM_FLAGS): New.
        (libgcc.mk): Pass it.
        * mklibgcc.in (libgcc.map): Use it.

        * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
        SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.

From-SVN: r36989
2000-10-20 21:47:05 -04:00
Joseph Myers
d73b0bcff3 configopts.html, [...]: Remove many EGCS references...
* docs/configopts.html, docs/install.html, docs/17_intro/BADNAMES,
	docs/17_intro/howto.html, docs/18_support/howto.html,
	docs/19_diagnostics/howto.html, docs/20_util/howto.html,
	docs/21_strings/howto.html, docs/22_locale/howto.html,
	docs/23_containers/howto.html, docs/24_iterators/howto.html,
	docs/25_algorithms/howto.html, docs/26_numerics/howto.html,
	docs/27_io/howto.html, docs/ext/howto.html, docs/faq/index.html:
	Remove many EGCS references; use current absolute URLs on
	gcc.gnu.org or sources.redhat.com for messages in list archives.
	* docs/faq/index.txt: Regenerate.

From-SVN: r36988
2000-10-21 01:51:50 +01:00
Kaveh R. Ghazi
8f54374ed3 Warning fixes:
* mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.

	* sparc.c (load_pic_register): Delete unused varaible.

	* libgcc2.c (__addvsi3): Delete unused variable.

	* libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
	__subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
	__negvdi2): Prototype.

	* ssa.c (apply_delayed_renames): Avoid undefined operation.

	* toplev.c (display_target_options): Make static to match
	prototype.  Delete empty declaration.

From-SVN: r36987
2000-10-20 23:32:10 +00:00
Tom Tromey
a9770f9a91 From Arno J. Klaassen:
* interpret.cc: Include <stdlib.h> for alloca.
	* defineclass.cc: Include <stdlib.h> for alloca.

From-SVN: r36986
2000-10-20 23:25:57 +00:00
Jason Merrill
05c1707ca2 * tree.c (walk_tree): Don't walk into default args.
From-SVN: r36985
2000-10-20 17:31:25 -04:00
Jason Merrill
ba523395f1 tree.c (walk_tree): Don't walk into default args.
* tree.c (walk_tree): Don't walk into default args.

        * error.c (dump_expr): Use host_integerp.

From-SVN: r36984
2000-10-20 17:26:26 -04:00
Tom Tromey
ac758f9643 Removed erroneous ChangeLog entry
From-SVN: r36983
2000-10-20 21:26:21 +00:00
Tom Tromey
480222b54f Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am: Include deps.mk.
	(GCJCOMPILE): Added -MD, -MT, and -MF.
	($(javao_files)): Don't depend on libgcj.zip.
	(all-recursive): New target.
	(%.lo:%.cc): Do dependency tracking.
	($(nat_headers)): Don't depend on libgcj.zip.
	* configure: Rebuilt.
	* configure.in: Make .d files and deps.mk.

From-SVN: r36982
2000-10-20 21:21:37 +00:00
Tom Tromey
316a06a103 jvspec.c (lang_specific_driver): Recognize -MF and -MT.
* jvspec.c (lang_specific_driver): Recognize -MF and -MT.
	* lang-specs.h: Added %{MA}, %{MF*}, %{MT*}.
	* lang-options.h: Added -MA, -MT, -MF..
	* lang.c (lang_decode_option): Recognize -MA, -MT, -MF.
	(DEPEND_TARGET_SET): New macro.
	(DEPEND_FILE_ALREADY_SET): Likewise.
	(init_parse): Handle new flags.
	* jcf.h (jcf_dependency_print_dummies): Declare.
	* Make-lang.in (s-java): Added mkdeps.o.
	* Makefile.in (BACKEND): Added mkdeps.o.
	(../gcjh$(exeext)): Added mkdeps.o.
	(../jcf-dump$(exeext)): Added mkdeps.o.
	* jcf-depend.c: Include mkdeps.h.
	(struct entry, dependencies, targets, MAX_OUTPUT_COLUMNS,
	add_entry): Removed.
	(jcf_dependency_reset): Rewrote.
	(dependencies): New global.
	(jcf_dependency_set_target): Rewrote.
	(jcf_dependency_add_target): Likewise.
	(jcf_dependency_add_file): Likewise.
	(munge): Removed.
	(print_ents): Removed.
	(jcf_dependency_write): Rewrote.
	(print_dummies): New global.
	(jcf_dependency_print_dummies): New function
	(jcf_dependency_write): Call deps_dummy_targets if required.

From-SVN: r36981
2000-10-20 21:19:29 +00:00
Tom Tromey
3f568531d0 cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
* cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
	* gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.

From-SVN: r36980
2000-10-20 21:14:20 +00:00
Richard Kenner
235783d1f0 expr.c (expand_expr, [...]): Set RTX_UNCHANGING_P on returned MEM.
* expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
	returned MEM.
	(expand_expr_unaligned, case ARRAY_REF): Check that index is
	a constant before comparing it; use tree_low_cst.
	* tree.c (save_expr): Set TREE_READONLY.
	(substitute_expr): Return inside of NON_LVALUE_EXPR.
	(build, build1): Set TREE_READONLY if all operands are.
	(build_index_type): If upper bound is a negative number, lower
	bound is zero and sizetype is unsigned, use upper bound of one and
	lower of zero.

From-SVN: r36979
2000-10-20 16:57:21 -04:00
Richard Kenner
948068e2ed gcse.c (set_hash_table_size): Now unsigned.
* gcse.c (set_hash_table_size): Now unsigned.
	* sdbout.c (template_name_p): Add "const" to avoid warnings.
	(sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
	(sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
	(sdbout_end_epilogue): Remove variable NAME.
	* system.h (getopt): Add default definition.
	* config/alpha/alpha.c (print_operand): Don't continue processing
	after issuing error.
	(summarize_insn): Avoid use of UL in constant.

From-SVN: r36978
2000-10-20 16:49:27 -04:00
David Edelsohn
2e44948df5 * Use "because" instead of since in error messages.
From-SVN: r36977
2000-10-20 16:23:11 -04:00
Richard Kenner
382110c010 stor-layout.c (compute_record_mode): Use tree_low_cst.
* stor-layout.c (compute_record_mode): Use tree_low_cst.
	Don't use mode of field for record unless sizes are the same.
	(layout_type, case ARRAY_TYPE): Remove special bounds handling
	previously added for Ada; also change to using host_integerp
	and tree_low_cst.

From-SVN: r36976
2000-10-20 15:42:40 -04:00
Richard Kenner
1dcdb0df61 loop.c (strength_reduce): Show when new register made for giv is known to be a pointer and its aligment if...
* loop.c (strength_reduce): Show when new register made for
	giv is known to be a pointer and its aligment if so and known.
	(loop_dump_aux): Show VERBOSE parameter unused.

From-SVN: r36975
2000-10-20 15:37:14 -04:00
Richard Kenner
ebb13e7eb8 gcse.c (set_hash_table_size): Now unsigned.
* gcse.c (set_hash_table_size): Now unsigned.
	* sdbout.c (template_name_p): Add "const" to avoid warnings.
	(sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
	(sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
	(sdbout_end_epilogue): Remove variable NAME.
	* system.h (getopt): Add default definition.
	* config/alpha/alpha.c (print_operand): Don't continue processing
	after issuing error.
	(summarize_insn): Avoid use of UL in constant.

From-SVN: r36974
2000-10-20 15:17:41 -04:00
Richard Kenner
1468899dc2 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
From-SVN: r36973
2000-10-20 14:49:24 -04:00
Richard Henderson
391db8c953 Fix formatting after collision.
From-SVN: r36972
2000-10-20 10:55:22 -07:00
Richard Henderson
4ca0f257ff regrename.c (rr_replace_reg): Rewrite to use recog_data to perform substitutions...
* regrename.c (rr_replace_reg): Rewrite to use recog_data to
        perform substitutions, and apply_change_group to see if it worked.

From-SVN: r36971
2000-10-20 10:54:49 -07:00
Richard Kenner
4447513857 fold-const.c (force_fit_type): Unsigned values can overflow if they are sizetype.
* fold-const.c (force_fit_type): Unsigned values can overflow
	if they are sizetype.
	(int_const_binop): Don't use cache if overflows.
	* cp/typeck.c (dubious_conversion_warning): Suppress if
	TYPE_IS_SIZETYPE.

From-SVN: r36970
2000-10-20 13:51:52 -04:00
Richard Henderson
23ccfa6dbb * function.c (locate_and_pad_parm): Zero alignment_pad.
From-SVN: r36969
2000-10-20 10:40:52 -07:00
Richard Kenner
d57e164f29 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
From-SVN: r36968
2000-10-20 13:35:18 -04:00
Richard Kenner
0345195ae6 combine.c (struct undo): Change int to unsigned int.
* combine.c (struct undo): Change int to unsigned int.
	(do_SUBST_INT): Args are unsigned int.
	(make_extraction, force_to_mode): Use proper type when forming mask.
	(make_field_assignment): Likewise.

From-SVN: r36967
2000-10-20 13:28:28 -04:00
Jeffrey Oldham
113062306d decl.c (revert_static_member_fn): Fixed typo.
2000-10-20  Jeffrey Oldham  <oldham@codesourcery.com>

	* decl.c (revert_static_member_fn): Fixed typo.

From-SVN: r36966
2000-10-20 16:06:05 +00:00
Joseph Myers
2f74f7e928 c-common.c (check_format_info_recurse): Extract string constant initializers from non-volatile constant arrays and...
* c-common.c (check_format_info_recurse): Extract string constant
	initializers from non-volatile constant arrays and check them as
	formats.
	* c-typeck.c (decl_constant_value): Don't check pedantic or check
	for DECL_MODE (decl) != BLKmode.
	(decl_constant_value_for_broken_optimization): New function which
	includes these checks.
	(default_conversion, convert_for_assignment, digest_init): Use
	decl_constant_value_for_broken_optimization instead of
	decl_constant_value.

testsuite:
	* gcc.dg/format-array-1.c: New test.

From-SVN: r36965
2000-10-20 16:59:07 +01:00
Mark Mitchell
971774bbc1 * tree.h (DECL_ALIGN_UNIT): New macro.
From-SVN: r36964
2000-10-20 15:52:40 +00:00