Commit Graph

29183 Commits

Author SHA1 Message Date
Bryce McKinlay
1b0bd03b7f EventQueue.java (invokeAndWait): Call postEvent() within synchronized block.
* java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
	synchronized block.
	* java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
	before calling notifyAll().

From-SVN: r35042
2000-07-15 05:42:47 +01:00
Michael Meissner
ae0e50e87b update portability guide
From-SVN: r35041
2000-07-15 04:18:47 +00:00
Neil Booth
7de515541f * README.Portability: Small update.
From-SVN: r35040
2000-07-15 03:03:11 +00:00
Neil Booth
9139939530 * README.Portability: New file.
From-SVN: r35039
2000-07-15 02:56:01 +00:00
Mark Mitchell
245aefecd3 mh-irix6 (CC): Don't set it.
* config/mh-irix6 (CC): Don't set it.

	* INSTALL: Give special instructions for building GCC on Irix 6.
	* config/mips/x-iris6 (CC): Don't set it.
	(OLDCC): Likewise.

From-SVN: r35038
2000-07-15 00:15:18 +00:00
Jason Merrill
a41129f3ce tweak
From-SVN: r35037
2000-07-14 13:41:26 -04:00
Jason Merrill
626d1efd40 dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA register in the stack and later in another register...
* dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
        register in the stack and later in another register, use the new
        register.

From-SVN: r35036
2000-07-14 13:40:38 -04:00
Jean-Francois Panisset
30f747d077 * std/bastring.h (basic_string<>::clear): Add function.
From-SVN: r35035
2000-07-14 16:27:45 +00:00
Clinton Popetz
12a345cd3f mips.md: (absdi2): Handle sign_extend for second operand.
* config/mips/mips.md: (absdi2): Handle sign_extend for
	second operand.

From-SVN: r35034
2000-07-14 11:25:10 -04:00
Nathan Sidwell
ecd3655737 * cpplib.c (do_pragma_dependency): Tidy warning messages.
From-SVN: r35033
2000-07-14 08:55:21 +00:00
Jeff Law
c77a300fd4 Daily bump.
From-SVN: r35032
2000-07-14 01:45:08 -06:00
Zack Weinberg
bfbbc0807a top level:
* .cvsignore: Correct typo.
cp:
	* .cvsignore: parse.h and parse.c have no cp- prefix.
java:
	* .cvsignore: New file.

From-SVN: r35031
2000-07-14 07:13:19 +00:00
Mark Mitchell
1735b35f78 * gcc_update (files_and_dependencies): Remove generated YACC files.
From-SVN: r35030
2000-07-14 06:38:49 +00:00
Mark Mitchell
649c914299 * parse.c: Remove.
From-SVN: r35029
2000-07-14 06:37:40 +00:00
Mark Mitchell
83a9071715 cvsignore: Add generated YACC files.
* .cvsignore: Add generated YACC files.
	* objc/.cvsignore: New file.

	* .cvsignore: New file.

From-SVN: r35028
2000-07-14 05:41:33 +00:00
Nick Clifton
0755f29a38 Add missing files
From-SVN: r35027
2000-07-14 00:57:58 +00:00
Neil Booth
52fadca815 cpplex.c (adjust_column): New funcion.
* cpplex.c (adjust_column): New funcion.
	(skip_whitespace): Use it.
	(skip_block_comment): Use it, and warn about /*/* with
	-Wcomments.

From-SVN: r35026
2000-07-13 22:55:04 +00:00
Neil Booth
b30892f96d cpphash.c (struct macro_info): Add new members.
* cpphash.c (struct macro_info): Add new members.
	(_cpp_free_definition): Delete the macro directly.
	(count_params): Return void, with first token of
	expansion in struct macro_info on success.
	(parse_define): Return int.  Hoist syntax checking from
	save_macro_expansion.  Leave call to save_expansion to
	_cpp_create_definition.
	(alloc_macro): Needs just 2 arguments.
	(free_macro): Delete.
	(save_expansion): Don't perform syntax check.
	(_cpp_create_definition): Call save_expansion.

From-SVN: r35025
2000-07-13 21:49:33 +00:00
Kaveh R. Ghazi
3f6790bf93 * genrecog.c (write_header): Split long string.
From-SVN: r35024
2000-07-13 20:33:09 +00:00
Kaveh R. Ghazi
af0d1578e4 * cpphash.c (macro_info): Don't use the `signed' keyword.
From-SVN: r35023
2000-07-13 20:09:55 +00:00
Alexandre Petit-Bianco
ee97d3542d parse.y (fold_constant_for_init): Avoid bullish conversion.
2000-07-13  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (fold_constant_for_init): Avoid bullish conversion.

(http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00506.html)

From-SVN: r35022
2000-07-13 12:27:49 -07:00
Tom Tromey
185ce11b15 Reverting incorrectly applied change
From-SVN: r35021
2000-07-13 19:23:57 +00:00
Kaveh R. Ghazi
2021c8d296 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
From-SVN: r35020
2000-07-13 19:09:23 +00:00
Kaveh R. Ghazi
8dd8d754d2 * objc/hash.h: Include string.h.
From-SVN: r35019
2000-07-13 18:56:49 +00:00
Tom Tromey
44fadf1e3a * lang-specs.h: Added %{I*}.
From-SVN: r35018
2000-07-13 18:25:37 +00:00
Jakub Jelinek
c67846f282 calls.c (stored_args_map): New variable.
* calls.c (stored_args_map): New variable.
	(check_sibcall_argument_overlap_1): New.
	(check_sibcall_argument_overlap): New.
	(expand_call): Initialize stored_args_map.
	Call check_sibcall_argument_overlap.

	* gcc.c-torture/execute/20000707-1.c: New test.

From-SVN: r35017
2000-07-13 20:19:27 +02:00
Bruce Korb
7dec90a1bc implement various pre-processor guards around standard types
From-SVN: r35016
2000-07-13 15:23:51 +00:00
Bruce Korb
b5e2063345 Regenerate fixincl.x, too
From-SVN: r35015
2000-07-13 15:20:45 +00:00
Bruce Korb
c1ef5d297d Obsolete test result
From-SVN: r35014
2000-07-13 15:16:39 +00:00
Bruce Korb
8e9114bbad fixinc test result changes
From-SVN: r35013
2000-07-13 14:51:14 +00:00
Bruce Korb
687262b1f6 implement various pre-processor guards around standard types
From-SVN: r35012
2000-07-13 14:47:55 +00:00
Gabriel Dos Reis
c91ad6994f diagnostic.c (vline_wrapper_message_with_location, [...]): Remove.
2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>

        * diagnostic.c (vline_wrapper_message_with_location,
        v_message_with_file_and_line, v_error_with_file_and_file,
        v_error_for_asm, v_warning_for_asm, vfatal,
        v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
        vsorry, verror, vwarning, vpedwarn): Remove.
        (diagnostic_for_asm): New function.
        (pedwarn, error, warning, pedwarn_with_file_and_line,
        error_with_file_and_line, warning_with_file_and_line, sorry,
        error_for_asm, warning_for_asm, fatal): Reimplement.
        (finish_diagnostic): Clear diagnostic info as well.

From-SVN: r35011
2000-07-13 10:37:41 +00:00
Neil Booth
530d0ba53b c-common.h (flag_digraphs): New.
* c-common.h (flag_digraphs): New.
	* c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
	* c-lex.c (yylex): Use flag_digraphs to decide whether to
	honour digraphs.

	* testsuite/gcc.dg/cpp/digraph1.c,
	testsuite/gcc.dg/cpp/digraph2.c,
	testsuite/gcc.dg/cpp/digraphs.c: New tests.

From-SVN: r35010
2000-07-13 10:12:08 +00:00
Jeff Law
1920d8c7ae Daily bump.
From-SVN: r35009
2000-07-13 01:45:08 -06:00
Zack Weinberg
ea414c9749 gcc.c (do_spec_1): Add new %B operator.
* gcc.c (do_spec_1): Add new %B operator.
	(set_input): Prepare for %B.

	(link_command_spec): Move up with the other tm.h-
	overrideable specs.  Factor out the portion conditional on
	LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
	(struct compiler): Just have a single spec string.  All users
	updated.
	(default_compilers): Remove unnecessary braces.
	(static_specs): Update.

	(trad_capable_cpp, cpp_options, cc1_options, asm_options): New
	named specs.
	(C and assembly specs): Use the new named specs, as appropriate.

	* objc/lang-specs.h, ch/lang-specs.h, cp/lang-specs.h,
	f/lang-specs.h, java/lang-specs.h: Use the new named specs.
	Remove unnecessary braces.

From-SVN: r35008
2000-07-13 07:14:13 +00:00
Zack Weinberg
450624947f * tradcif.c: Remove.
From-SVN: r35007
2000-07-13 04:52:22 +00:00
Zack Weinberg
c334349bda gcc.c (execute): If a subprocess gets a fatal signal...
* gcc.c (execute): If a subprocess gets a fatal signal, report
	strsignal() of the signal number, and ask for a bug report.
	Do not do this for SIGPIPE if there's already been an error.

	* tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
	Delete pipe_closed.

From-SVN: r35006
2000-07-13 04:43:47 +00:00
Zack Weinberg
dcacfa04fe final.c (profile_function): Do not emit profile counters in the data section, if NO_PROFILE_COUNTERS is defined.
* final.c (profile_function): Do not emit profile counters in
	the data section, if NO_PROFILE_COUNTERS is defined.
	* tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
	FUNCTION_PROFILER.

	* config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
	(FUNCTION_PROFILER): Just emit a call to mcount.

From-SVN: r35005
2000-07-13 04:40:23 +00:00
Zack Weinberg
6e993bdb62 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
From-SVN: r35004
2000-07-13 03:06:25 +00:00
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