Commit Graph

29294 Commits

Author SHA1 Message Date
Zack Weinberg
f9a0e96c17 cppexp.c, [...]: Eradicate all traces of code dependent on traditional, lang_chill, or lang_fortran.
* cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
	cpplib.c, cpplib.h: Eradicate all traces of code dependent on
	traditional, lang_chill, or lang_fortran.

	* cppfiles.c: #undef strcmp to suppress warning about macros
	used without arguments.
	(_cpp_execute_include): Use f, not fname, in "No include path"
	error.
	(_cpp_pop_file_buffer): New function.
	* cpplib.c: Don't include <sys/mman.h>.
	(cpp_push_buffer): Set line_base and lineno in new buffer.
	(cpp_pop_buffer): Use _cpp_pop_file_buffer.

	* cpplex.c: Move all prototypes and structure declarations to the
	top of the file.  Properly parenthesise some macro arguments.
	(cpp_scan_line): New function.
	(special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
	don't need to walk up the stack counting.

From-SVN: r35003
2000-07-13 02:32:41 +00:00
Bryce McKinlay
d55bb5be91 Add missing imports.
From-SVN: r35002
2000-07-12 22:24:00 +01:00
Bryce McKinlay
6ae3fb6650 Fix missing "package" declaration.
From-SVN: r35001
2000-07-12 22:16:52 +01:00
Bryce McKinlay
826b480791 Add missing files from last check-in:
* java/awt/image/ImageConsumer.java: New file.
	* java/awt/image/ImageProducer.java: New file.
	* java/awt/image/ImageObserver.java: New file.

From-SVN: r35000
2000-07-12 22:13:51 +01:00
Kaveh R. Ghazi
1326a48bac c-common.c (combine_strings): Emit a pedantic warning when a string length is greater than the minimum ANSI C...
* c-common.c (combine_strings): Emit a pedantic warning when a
	string length is greater than the minimum ANSI C is required
	to support.

From-SVN: r34999
2000-07-12 21:03:29 +00:00
Jeffrey A Law
733dee92dc xm-pa64.h (NO_SYS_SIGLIST): Kill.
* pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
        * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.

From-SVN: r34998
2000-07-12 14:29:05 -06:00
Kaveh R. Ghazi
895ea61453 c-decl.c (define_label): Warn about identifier conflicts with labels in traditional C.
* c-decl.c (define_label): Warn about identifier conflicts with
	labels in traditional C.

	* c-parse.in (unop +): Warn about the unary plus operator for
	traditional C.

	* c-typeck.c (store_init_value): Warn about automatic aggregate
	initialization for traditional C.

	* invoke.texi (-Wtraditional): Document new warnings.

From-SVN: r34997
2000-07-12 20:15:20 +00:00
Gabriel Dos Reis
8364301f5a Makefile.in (c-errors.o): Fix thinko in dependency.
2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>

	* Makefile.in (c-errors.o): Fix thinko in dependency.

From-SVN: r34996
2000-07-12 20:05:45 +00:00
Zack Weinberg
f5896af2a6 gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of -traditional, -ftraditional, or -traditional-cpp was given.
* gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
	-traditional, -ftraditional, or -traditional-cpp was given.
	Do not pass -traditional to the preprocessor.
	(.S spec): Likewise.  Don't bother defining __ASSEMBLER__, the
	preprocessor does it automatically.
	* objc/lang-specs.h: Likewise.  Don't bother defining __OBJC__.

	* ch/lang-specs.h: Always use tradcpp.  Do not pass
	-traditional, -trigraphs, or -pedantic to the preprocessor.
	* f/lang-specs.h (.F spec): Likewise.  Don't bother defining
	_LANGUAGE_FORTRAN.

From-SVN: r34995
2000-07-12 20:01:02 +00:00
Zack Weinberg
0080e89292 cppexp.c (LOGICAL): Delete macro.
* cppexp.c (LOGICAL): Delete macro.
	(_cpp_parse_expr): Do not use UNARY for unary +.  Implement ||
	and && directly.

	* cpphash.c (HASHSIZE): Increase to 4096.
	(struct hashdummy): Add hash field.
	(eq_HASHNODE): Compare unreduced hashes, then lengths, then
	the string values using memcmp.
	(cpp_lookup): Set dummy.hash.

From-SVN: r34994
2000-07-12 19:41:30 +00:00
Marc Espie
50ceaae014 configure.in (m88k-openbsd): Express configuration using new fragment style.
* configure.in (m88k-openbsd): Express configuration using new fragment
        style.
        * configure: Rebuilt.
        * m88k/aout-dbx.h: New.
        * m88k/openbsd.h: New.
        * m88k/xm-openbsd.h: New.

From-SVN: r34993
2000-07-12 13:19:18 -06:00
David Billinghurst
26e983092e 20000630-2.f: New test.
* g77.f-torture/compile/20000630-2.f:  New test.
        * g77.f-torture/compile/20000630-2.x

From-SVN: r34992
2000-07-12 13:12:14 -06:00
Kaveh R. Ghazi
a592f28872 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
From-SVN: r34991
2000-07-12 18:55:57 +00:00
Richard Henderson
6fe8aebc3f reload.c (push_secondary_reload): Make sure to add the new reload at the end, after acquiring secondary memory.
* reload.c (push_secondary_reload): Make sure to add the new
        reload at the end, after acquiring secondary memory.

From-SVN: r34990
2000-07-12 10:20:17 -07:00
Kaveh R. Ghazi
b9bf5af853 Oops, use CPP_WTRADITIONAL, not CPP_TRADITIONAL.
From-SVN: r34989
2000-07-12 17:08:20 +00:00
Kaveh R. Ghazi
e4a2ac1af7 * cpplex.c (is_macro_disabled): Use CPP_TRADITIONAL.
From-SVN: r34988
2000-07-12 16:44:41 +00:00
Kaveh R. Ghazi
20217ac124 Warning fixes:
* c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
	lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.

	* c-parse.in (stmt): Delete unused variables.

	* convert.c (convert_to_vector): Likewise.

	* gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.

	* tree.c (finish_vector_type): Prototype.

From-SVN: r34987
2000-07-12 16:17:15 +00:00
Bruce Korb
878a5794e0 removed dinkleberries and use xmalloc instead of a private version
From-SVN: r34986
2000-07-12 14:45:05 +00:00
Neil Booth
2964d54fa6 cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
* cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
	* cpplex.c (TOKEN_SPELL) Move to cpphash.h.

	* cpphash.c: (struct macro_info, alloc_macro, free_macro,
	struct toklist_dummy): New.
	(cpp_free_definition): Free macros with free_macro.
	(count_params): Don't save paramter spellings.  Save macro
	information in a struct macro_info.
	(parse_define): Don't allocate a token list.
	(save_expansion): Allocate the macro's token list, and
	save parameter spellings if necessary.  Use TOKEN_SPELL.
	(cpp_create_definition): Make list const.

From-SVN: r34985
2000-07-12 14:37:47 +00:00
Gabriel Dos Reis
b9161f44f0 c-typeck.c (pedwarn_c99): Move to
2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>

	* c-typeck.c (pedwarn_c99): Move to
	* c-errors.c: ... Here.
	* toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
	* diagnostic.c (verror, vwarning, vpedwarn): Make static.
	* Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
	(c-errors.o): List dependency.

From-SVN: r34984
2000-07-12 14:12:51 +00:00
Jeff Law
61b0bcccdf Daily bump.
From-SVN: r34983
2000-07-12 01:45:07 -06:00
Mark Mitchell
792abd35a8 gcc_update (files_and_dependencies): Remove generated YACC files.
* gcc_update (files_and_dependencies): Remove generated YACC files.

	* c-parse.c: Remove.
	* c-parse.h: Likewise.
	* c-parse.y: Likewise.
	* objc/objc-parse.c: Likewise.
	* objc/objc-pasre.y: Likewise.

	* Makefile.in ($(PARSE_H)): Depend directly on parse.y.
	* parse.c: Remove.
	* parse.h: Likewise.

	* parse-scan.c: Remove.

From-SVN: r34982
2000-07-12 07:12:56 +00:00
Bryce McKinlay
e98da3dcf5 backport: Applet.java: New file.
2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>

	Merged implementation of java.applet from classpath:
	* java/applet/Applet.java: New file.
	* java/applet/AppletContext.java: New file.
	* java/applet/AppletStub.java: New file.
	* java/applet/AudioClip.java: New file.

	* Makefile.am: Added new java.applet classes.
	* Makefile.in: Rebuilt.

From-SVN: r34981
2000-07-12 05:52:04 +01:00
Rodney Brown
2a59078d51 gcc.texi: Fix minor typos
* gcc.texi: Fix minor typos
        * extend.texi: Fix minor typos

From-SVN: r34980
2000-07-11 22:29:22 -06:00
J. David Anglin
5c6f90e71a pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is true.
* pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
	true.

From-SVN: r34979
2000-07-11 22:26:07 -06:00
Marc Espie
31d432e47f * collect2.c (main): Recognize .lo as object files.
From-SVN: r34978
2000-07-11 22:17:40 -06:00
J. David Anglin
4c1331d644 aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems with MAP_ANONYMOUS and MAP_ANON.
* aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
        with MAP_ANONYMOUS and MAP_ANON.
        * configure, config.in: Rebuilt.

From-SVN: r34977
2000-07-11 22:06:13 -06:00
Bryce McKinlay
c7a136d3ef Big AWT patch.
From-SVN: r34976
2000-07-12 04:32:07 +01:00
Gabriel Dos Reis
406a65d0db diagnostic.c (save_output_state): Remove.
2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>

	* diagnostic.c (save_output_state): Remove.
	(restore_output_state): Likewise.
	(clear_text_info): New function.
	(clear_diagnostic_info): Likewise.
	(output_text_length, is_starting_newline, output_prefix,
	line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
	prefixing_policy, output_buffer_ptr_to_format_args): New macros
	(set_real_maximum_length, output_set_maximum_length,
	output_set_prefix, output_get_prefix, output_set_maximum_length,
	output_destroy_prefix, init_output_buffer,
	reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
	output_add_newline, output_add_character, output_add_space,
	output_append_r, output_append, wrap_text, output_format,
	output_do_printf, output_printf, output_do_verbatim,
	output_verbatim, verbatim): Use them.
	(output_clear): Split into cleat_text_info and
	clear_diagnostic_info.
	(struct output_state): Move to...

	* diagnostic.h: ...Here
	(struct output_buffer): Adjust.

From-SVN: r34975
2000-07-12 00:48:02 +00:00
David Billinghurst
7bb41c5a6a * g77.f-torture/execute/20000503-1.x: Delete. Test now passes.
From-SVN: r34974
2000-07-11 17:45:16 -06:00
David Billinghurst
e1a60e2cfc Remove. No longer expected to fail.
From-SVN: r34973
2000-07-11 17:44:21 -06:00
Zack Weinberg
417f3e3a5e [multiple changes]
2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>

	* cpplex.c (parse_name): No longer inline (premature optimization).
	(do_pop_context): Fold into pop_context.
	(pop_context): Returns int.
	(lex_next): Hoist test for end of directive into pop_context.
	(push_macro_context): Returns int; takes just reader and token.
	Hoist test for excessive nesting to caller.
	(push_arg_context): Returns void; takes just reader and token.
	Do not call stringify_arg or get_raw_token.
	(get_raw_token): Convert tail recursion through	push_arg_context
	to a loop at this level.  Call stringify_arg here if appropriate.
	(maybe_paste_with_next): Convert tail recursion to a while loop.
	Hoist test of paste_level to caller.

	(stringify_arg): Push arg context at beginning.
	(cpp_get_token): Split out core into _cpp_get_token.  Call
	process_directive here.  Throw away CPP_PLACEMARKER tokens.
	(_cpp_get_token): Convert tail recursion through
	push_macro_context to a loop at this level.
	(_cpp_glue_header_name, is_macro_disabled, stringify_arg,
	_cpp_get_raw_token): Use _cpp_get_token.
	(_cpp_skip_rest_of_line): Drop the context stack directly; do
	not call pop_context.
	(_cpp_run_directive): Call lex_next directly.

	* cpphash.h: Prototype _cpp_get_token.
	* cppexp.c (lex): Use it.
	* cpphash.c (parse_define): Use it.
	* cpplib.c (get_define_node, do_undef, parse_include,
	read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
	do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
	parse_ifdef, validate_else): Use it.
	(cpp_push_buffer): Tweak error message; abort if anyone tries
	to push a buffer while macro expansions are stacked.

2000-07-11  Donn Terry  <donnte@microsoft.com>

	* cpplex.c (free_macro_args, save_token): Cast arg of free
	and/or xrealloc to PTR.
	(_cpp_init_input_buffer): Clear all fields of the base context.

From-SVN: r34972
2000-07-11 23:20:53 +00:00
Bruce Korb
268afb999d new tests results from changes
From-SVN: r34971
2000-07-11 22:29:52 +00:00
Benjamin Chelf
10b9cbbef4 Regenerate after this patch:
2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>

        * c-parse.in (BREAK): Change to build tree, then generate RTL.
        (CONTINUE): Likewise.
        (RETURN): Likewise.
        (CASE): Likewise.
        (DEFAULT): Likewise.

From-SVN: r34970
2000-07-11 22:21:58 +00:00
Bruce Korb
4f923eb83d fixinc/inclhack.def(libc1_ifdefd_memx) omit #if/#endif pair
From-SVN: r34969
2000-07-11 22:20:38 +00:00
Clinton Popetz
ee138cf89a gensupport.c (process_rtx): Make rtl checking stop complaining about the define_insn while it is being...
* gensupport.c (process_rtx): Make rtl checking stop
	complaining about the define_insn while it is being
	converted from a define_insn_and_split.

From-SVN: r34968
2000-07-11 18:08:47 -04:00
Phil Edwards
c0ed1dea37 docs: Update sourceware->sources in every HTML file.
2000-07-11  Phil Edwards  <pme@sourceware.cygnus.com>

	* docs:  Update sourceware->sources in every HTML file.  Minor updates.

From-SVN: r34967
2000-07-11 21:45:08 +00:00
Phil Edwards
4003801c76 Force checkin of footer.html to push webpages.
From-SVN: r34966
2000-07-11 21:41:38 +00:00
Clinton Popetz
821a8792df mips.c (simple_memory_operand): Access the INTVAL of the address, not it's containing MEM.
* config/mips/mips.c (simple_memory_operand): Access the
	INTVAL of the address, not it's containing MEM.

From-SVN: r34965
2000-07-11 17:30:23 -04:00
Bruce Korb
9bb2d43633 irix_multiline_cmnt is now obsolete
From-SVN: r34964
2000-07-11 21:13:42 +00:00
Nick Clifton
b49c94cb62 fix spelling typo
From-SVN: r34963
2000-07-11 18:43:51 +00:00
Andrew Haley
c2584d76af static_init2.java: New file.
2000-07-11  Andrew Haley  <aph@cygnus.com>

        * libjava.compile/static_init2.java: New file.

From-SVN: r34962
2000-07-11 17:45:27 +00:00
Mark Mitchell
72a50ab013 class.c (layout_class_type): Add pointers to virtual bases after base classes under the old ABI.
* class.c (layout_class_type): Add pointers to virtual bases after
	base classes under the old ABI.

From-SVN: r34961
2000-07-11 17:31:21 +00:00
Bruce Korb
c5d9004e96 Remove obsolete fix tests
From-SVN: r34960
2000-07-11 15:51:18 +00:00
Kaveh R. Ghazi
b449f23a14 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
From-SVN: r34959
2000-07-11 14:28:09 +00:00
Neil Booth
9e88fd4a0b * gcc.dg/cpp/cmdlne-C.c: Fix typo.
From-SVN: r34958
2000-07-11 13:51:39 +00:00
Neil Booth
745ef6d6ec cpp.texi: Update.
* cpp.texi: Update.
	* gcc.dg/cpp/cmdlne-C.c: New test.

From-SVN: r34957
2000-07-11 13:39:09 +00:00
Neil Booth
9b55f29a84 cppinit.c: (cpp_reader_init): Allow digraphs by default.
* cppinit.c: (cpp_reader_init): Allow digraphs by default.
	(handle_option): Set digraphs according to standard.
	Merge OPT_lang_c89 handler with OPT_std_c89.

	* cpplex.c: (lex_line, can_paste): Honour digraphs in
	accordance with	the digraphs flag.

	* cpplib.h: (struct cpp_options): New option digraphs.

From-SVN: r34956
2000-07-11 08:58:28 +00:00
Jeff Law
bb6a53c76b Daily bump.
From-SVN: r34955
2000-07-11 01:45:08 -06:00
Alexandre Petit-Bianco
e67eb1a0f5 Fixing a really lame patch. Sorry for the ChangeLog tweaking.)
From-SVN: r34954
2000-07-10 21:00:14 -07:00