Commit Graph

50933 Commits

Author SHA1 Message Date
Kazu Hirata
7fedea1138 * doc/invoke.texi: Alphabetize dump options.
From-SVN: r68339
2003-06-22 16:29:39 +00:00
Kazu Hirata
79250062f0 * doc/invoke.texi: Remove a duplicate -dk.
From-SVN: r68338
2003-06-22 16:18:26 +00:00
Kazu Hirata
b55fe87e5f * doc/invoke.texi: Update dump file names.
From-SVN: r68336
2003-06-22 16:05:53 +00:00
Zack Weinberg
21299dbda4 safe-ctype.h (HC_UNKNOWN, [...]): Rename to HOST_CHARSET_UNKNOWN...
include:
	* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC): Rename to
	HOST_CHARSET_UNKNOWN, HOST_CHARSET_ASCII, HOST_CHARSET_EBCDIC
	respectively.
libiberty:
	* safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
	not HC_ASCII and HC_EBCDIC.
	Add documentation in form expected by gather-docs.
	* hex.c: Use HOST_CHARSET, not hand-coded check of character set.
	* Makefile.in, functions.texi: Regenerate.
gcc:
	* config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
	and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.

From-SVN: r68335
2003-06-22 15:59:49 +00:00
Kazu Hirata
3b9cd5c8c1 * doc/rtl.texi: Fix the @findex for pre_modify.
From-SVN: r68333
2003-06-22 15:11:07 +00:00
Andreas Jaeger
5055d3a3e8 Convert to ISO C90.
From-SVN: r68332
2003-06-22 17:07:31 +02:00
Andreas Jaeger
d329e058f2 caller-save.c: Convert to ISO C90.
* caller-save.c: Convert to ISO C90.
	* calls.c: Likewise.
	* cfg.c: Likewise.
	* cfganal.c: Likewise.
	* cfgbuild.c: Likewise.
	* cfgcleanup.c: Likewise.
	* cfghooks.c: Likewise.
	* cfglayout.c: Likewise.
	* cfglayout.h: Likewise.
	* cfgloop.c: Likewise.
	* cfgloop.h: Likewise.
	* cfgloopanal.c: Likewise.
	* cfgloopmainip.c: Likewise.
	* cfgrtl.c: Likewise.

From-SVN: r68331
2003-06-22 17:03:27 +02:00
Richard Earnshaw
84edd42cd4 arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting 64-bit alignment.
* arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
64-bit alignment.

From-SVN: r68330
2003-06-22 14:06:33 +00:00
Richard Earnshaw
24391720e3 arm.md (all call_value patterns): Remove register constraints on value operand.
* arm.md (all call_value patterns): Remove register constraints on
value operand.

From-SVN: r68329
2003-06-22 13:54:38 +00:00
Neil Booth
6ff3a151fd common.opt: More -f switches.
* common.opt: More -f switches.
	* opts.c (common_handle_options): Handle them.
	* toplev.c (time_report): Make extern.
	(f_options): USe flag_dummy.
	(decode_f_option): No need to use f_options now.
	* toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
	flag_ssa_dce, time_report, flag_new_regalloc): Make extern.

From-SVN: r68328
2003-06-22 13:44:40 +00:00
Andreas Jaeger
2f6e4e977d c-lex.c: Convert to ISO C90.
* c-lex.c: Convert to ISO C90.
	* c-objc-common.c: Likewise.
	* c-opts.c: Likewise.
	* c-pch.c: Likewise.
	* c-ppoutput.c: Likewise.
	* c-pragma.h: Likewise.
	* c-pretty-print.c: Likewise.
	* c-pretty-print.h: Likewise.
	* c-semantics.c: Likewise.
	* c-tree.h: Likewise.
	* c-typeck.c: Likewise.

From-SVN: r68327
2003-06-22 15:41:26 +02:00
Andreas Jaeger
3346b668ca * c-lang.c: Convert to ISO C90.
From-SVN: r68326
2003-06-22 14:55:44 +02:00
Neil Booth
9cd23ed2b4 opts.c (find_opt): Fix to always guarantee a find of a switch with joined parameter.
* opts.c (find_opt): Fix to always guarantee a find of a
	switch with joined parameter.
	* opts.h (struct cl_option): New member back_chain.
	* opts.sh: Update to calculate and add back_chain member.

From-SVN: r68324
2003-06-22 09:04:57 +00:00
Gabriel Dos Reis
0e9e3a8b78 diagnostic.h (output_host_wide_integer): Declare.
* diagnostic.h (output_host_wide_integer): Declare.
	* diagnostic.c (output_long_long_decicaml): New function.
	(output_host_wide_integer): Likewise.
	(output_format): Use them.  Handle "%ll" and "%w".

From-SVN: r68323
2003-06-22 08:05:39 +00:00
Jason Thorpe
ad667abe54 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
From-SVN: r68322
2003-06-22 04:53:22 +00:00
GCC Administrator
ad1cbb4109 Daily bump.
From-SVN: r68320
2003-06-22 00:16:06 +00:00
Zack Weinberg
7468e0b523 safe-ctype.h (HC_UNKNOWN, [...]): New #defines.
include:
	* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC, HOST_CHARSET):
	New #defines.
libiberty:
	* safe-ctype.c: Separate out EOF==-1 check.  Use HOST_CHARSET
	for charset determination.
gcc:
	* aclocal.m4 (gcc_AC_C_CHARSET): Delete.
	* configure.in: Don't use gcc_AC_C_CHARSET.
	* configure, config.in: Regenerate.
	* config/i370/i370.c, config/i370/i370.h: Use
	(HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
	instead of HOST_EBCDIC or !HOST_EBCDIC.  Clarify comments a tad.

From-SVN: r68317
2003-06-21 23:22:30 +00:00
Neil Booth
de32c0cb3b Makefile.in: Update.
* Makefile.in: Update.
	* common.opt: New switches.
	* opts.c: Include diagnostic.h.
	(common_handle_option): Handle new switches.
	* toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
	flag_if_conversion2, flag_delete_null_pointer_checks,
	flag_rerun_cse_after_loop): Make extern.
	(flag_dummy): New.
	(f_options): Update to use flag_dummy for moved options.
	(decode_f_option): Some switches moved to opts.c.
	* toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
	flag_if_conversion2, flag_delete_null_pointer_checks,
	flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
	flag_tracer, flag_thread_jumps, flag_unroll_loops,
	flag_unroll_all_loops, flag_unswitch_loops): New.
f:
	* lang.opt: Add -fpreprocessed.
	* top.c (ffe_handle_option): Handle it.

From-SVN: r68315
2003-06-21 20:28:18 +00:00
Gabriel Dos Reis
25abc0a5ef re PR c++/10784 (Warning about choosing custom operator over copy constructor cannot be turned off (and it's useless in the first place))
cp/
        PR c++/10784
        * call.c (joust): Warn about choosing conversion sequence only if
        -Wconversion.

testsuite/
        * g++.old-deja/g++.benjamin/16077.C: Add -Wconversion option.
        * g++.old-deja/g++.other/conv7.C: Likewise
        * g++.old-deja/g++.other/overcnv2.C: Likewise.
        * g++.old-deja/g++.other/overload14.C: Likewise.

From-SVN: r68312
2003-06-21 17:39:58 +00:00
Michael Koch
cff5cdc83d 2003-06-21 Michael Koch <konqueror@gmx.de>
* java/io/File.java
	(static): Load javaio lib if existing (only in classpath).
	(File): Revised documentation to show the correct argument name.
	(createTempFile): Partly merged with classpath.
	(compareTo): Simplified.
	(lastModified): Throw exception if time < 0.
	(deleteOnExit): Revised documentation.

From-SVN: r68310
2003-06-21 17:06:56 +00:00
Gabriel Dos Reis
84cc377e7f PC c++/10864
PC c++/10864
	* call.c (op_error): Tidy.
	* error.c (dump_expr): Properly format 'T()' when T is an
	aggregate type.

From-SVN: r68309
2003-06-21 16:43:44 +00:00
Neil Booth
058de654c5 Makefile.in: Update.
* Makefile.in: Update.
	* c-opts.c (c_common_handle_option): Don't return -1.
	* common.opt: New switches.
	* opts.c: Include rtl.h, ggc.h and output.h.
	(find_opt): Only stop searching when input switch compares
	less than the stored switch.  Continue searching if greater.
	(handle_option): No need to handle negative return values.
	(common_handle_option): Handle new switches.
	(set_fast_math_flags, fast_math_flags_set_p): New.
	* toplev.c (set_fast_math_flags, fast_math_flags_set_p):
	Move to opts.c.
	(decode_f_option): Some switches moved to opts.c.
	(parse_options_and_default_flags): No need to cater for negative
	return values.
f:
	* top.c (ffe_handle_option): No need to return -1 any more.

From-SVN: r68307
2003-06-21 15:59:31 +00:00
Michael Koch
6ecaa2701d PlainSocketImpl.java: Reformatted.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/net/PlainSocketImpl.java:
	Reformatted.
	(PlainSocketImpl): Merged class documentaion with classpath.
	(in): Moved.
	(out): Moved.
	(PlainSocketImpl): New empty constructor.
	(finalize): Moved.
	(setOption): Merged documentation from classpath.
	(getOption): Likewise.
	(create): Likewise.
	(connect): Likewise.
	(bind): Likewise.
	(listen): Likewise.
	(accept): Likewise.
	(available): Likewise.
	(close): Likewise.
	(read): Likewise.
	(write): Likewise.
	(getInputStream): Made synchronozed to get sure that only one stream
	object can be created for this socket, merged documentation from
	classpath.
	(getOutputStream): Likewise.

From-SVN: r68305
2003-06-21 14:02:10 +00:00
Michael Koch
5d938b1ac5 PlainSocketImpl.java: Reformatting.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/net/PlainSocketImpl.java:
	Reformatting.
	(static): New implicit method.
	(read): Made package private.
	(write): Likewise.

From-SVN: r68304
2003-06-21 13:24:13 +00:00
Gabriel Dos Reis
dfbeb0610e re PR c++/10915 (a not-useful non-avoidable warning: conversion to a reference to the same type will never use a type conversion operator)
testsuite/
        * g++.old-deja/g++.jason/conversion5.C: Adjust option.
        * g++.old-deja/g++.bugs/900215_01.C: Likewise.

cp/
        PR c++/10915
        * decl.c (grok_op_properties): Warn possible confusing conversion
        only if -Wconversion.

From-SVN: r68303
2003-06-21 13:09:05 +00:00
Michael Koch
6f705fc773 SimpleTimeZone.java: Removed unneeded import, reformatting.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/util/SimpleTimeZone.java:
	Removed unneeded import, reformatting.

From-SVN: r68301
2003-06-21 12:49:39 +00:00
Michael Koch
73c7dd50e8 DateFormat.java, [...]: New versions from classpath.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/text/DateFormat.java,
	java/text/SimpleDateFormat.java,
	java/util/Locale.java:
	New versions from classpath.

From-SVN: r68300
2003-06-21 12:42:26 +00:00
Michael Koch
5ee8128f1b SpinnerModel.java: New file from classpath.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* javax/swing/SpinnerModel.java:
	New file from classpath.
	* javax/swing/border/LineBorder.java,
	javax/swing/border/SoftBevelBorder.java,
	javax/swing/plaf/BorderUIResource.java,
	javax/swing/plaf/basic/BasicBorders.java:
	New versions from classpath.
	* javax/swing/plaf/basic/doc-files/BasicBorders.MenuBarBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.RadioButtonBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneBorder-2.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneDividerBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.ToggleButtonBorder-1.png:
	New binary files from classpath.

From-SVN: r68299
2003-06-21 12:02:11 +00:00
Jan Hubicka
70642ee3e6 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
From-SVN: r68298
2003-06-21 11:51:36 +00:00
Kazu Hirata
025299027b h8300-protos.h: Add a prototype for same_cmp_preceding_p.
* config/h8300/h8300-protos.h: Add a prototype for
	same_cmp_preceding_p.
	* config/h8300/h8300.c (same_cmp_preceding): New.
	* config/h8300/h8300.md: Extend peephole2's that transform
	compare:SI into shorter sequences so that they can deal with
	signed comparisons.

From-SVN: r68296
2003-06-21 11:32:54 +00:00
Michael Koch
2d0c9050c3 LogRecord.java, [...]: New files from classpath.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/util/logging/LogRecord.java,
	java/util/logging/Logger.java,
	java/util/logging/SocketHandler.java,
	java/util/logging/SimpleFormatter.java,
	java/util/logging/Formatter.java,
	java/util/logging/ErrorManager.java,
	java/util/logging/Handler.java,
	java/util/logging/FileHandler.java,
	java/util/logging/LogManager.java,
	java/util/logging/Level.java,
	java/util/logging/ConsoleHandler.java,
	java/util/logging/StreamHandler.java,
	java/util/logging/LoggingPermission.java,
	java/util/logging/Filter.java,
	java/util/logging/MemoryHandler.java,
	java/util/logging/XMLFormatter.java:
	New files from classpath.

From-SVN: r68295
2003-06-21 10:31:55 +00:00
Gerald Pfeifer
c18cd64247 contrib.texi (Contributors): Use Windows instead of Win32.
* doc/contrib.texi (Contributors): Use Windows instead of Win32.

	Update Andreas Jaeger's entry.

	Merge the two entries of Kaveh Ghazi, David Edelsohn, and
	Loren J. Rittle.

From-SVN: r68293
2003-06-21 08:26:29 +00:00
Nathanael Nerode
5e7537cf99 * mkconfig.sh: Add multiple inclusion guards to generated headers.
From-SVN: r68292
2003-06-21 05:20:05 +00:00
GCC Administrator
87b60e6481 Daily bump.
From-SVN: r68290
2003-06-21 00:16:09 +00:00
Doug Gregor
8dbe14becf Testsuite corrections
From-SVN: r68288
2003-06-20 23:40:11 +00:00
Neil Booth
e01cc6dc62 c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
* c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
	* common.opt: Add remaining -W options and -g.
	* diagnostic.c (warnings_are_errors): Remove.
	* flags.h: Make most warning flags boolean.
	* opts.c (common_handle_option): Handle remaining -W options, and -g.
	Move many warning flags from toplev.c, making them boolean.
	* toplev.c: Remove many warning flags.
	(decode_W_option): Remove.
	(decode_g_option): Make extern.  Error on unknown switch.
	(lang_independent_W_options): Use warn_dummy.
	(independent_decode_option): Just handle -f switches now.
	* toplev.h (decode_g_option): New.

From-SVN: r68287
2003-06-20 22:56:36 +00:00
Doug Gregor
bdb0f0f5d2 fix basic_string::replace for integral types
From-SVN: r68286
2003-06-20 22:12:18 +00:00
Aldy Hernandez
49a2166f17 rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for vectors.
2003-06-20  Aldy Hernandez  <aldyh@redhat.com>

	PR/11092
	* config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
	vectors.

From-SVN: r68284
2003-06-20 20:16:24 +00:00
Aldy Hernandez
1a3f10e265 rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for vectors.
2003-06-20  Aldy Hernandez  <aldyh@redhat.com>

	PR/11092
	* config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
	vectors.

[[Split portion of a mixed commit.]]

From-SVN: r68283.2
2003-06-20 20:16:17 +00:00
Kelley Cook
e819ee4487 * opts.sh: Tweak awk script for portability.
From-SVN: r68282
2003-06-20 20:07:51 +00:00
Mark Mitchell
ae4a71552f re PR c++/10888 (inlining failure for allocate in ~vector())
PR c++/10888
	* tree-inline.c (expand_call_inline): Do not warn about failing to
	inline functions declared in system headers.
	* doc/invoke.texi (-Winline): Expand on documentation.

	PR c++/10888
	* g++.dg/warn/Winline-3.C: New test.

From-SVN: r68281
2003-06-20 19:55:29 +00:00
Richard Henderson
4739b00e52 alpha.c (alpha_file_start): Disable file_start_file_directive for ELF and not MDEBUG.
* config/alpha/alpha.c (alpha_file_start): Disable
        file_start_file_directive for ELF and not MDEBUG.

From-SVN: r68280
2003-06-20 12:37:17 -07:00
J"orn Rennecke
9218882a10 * sh.h (ROUND_TYPE_ALIGN): Remove.
From-SVN: r68279
2003-06-20 20:28:13 +01:00
Mark Mitchell
3348ded5b7 target-supports.exp (check_alias_available): Make the test program acceptable to the Solaris assembler.
* lib/target-supports.exp (check_alias_available): Make the test
	program acceptable to the Solaris assembler.

From-SVN: r68277
2003-06-20 19:11:07 +00:00
Mark Mitchell
66d418e657 re PR c++/10749 (triple nested template classes in namespace need to qualify ns)
PR c++/10749
	* parser.c (cp_parser_class_head): See through dependent names
	when parsing a class-head.

	PR c++/10749
	* g++.dg/template/memclass2.C: New test.

From-SVN: r68276
2003-06-20 18:55:47 +00:00
Richard Henderson
a3424f5c1e hooks.c (hook_int_void_no_regs): Rename from hook_reg_class_void_no_regs; change return type.
* hooks.c (hook_int_void_no_regs): Rename from
        hook_reg_class_void_no_regs; change return type.
        * hooks.h: Update.
        * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
        * target.h (branch_target_register_class): Change return type to int.
        Add documentation.
        * config/sh/sh.c (sh_target_reg_class): Change return type.
        * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.

From-SVN: r68275
2003-06-20 10:30:05 -07:00
Andreas Tobler
3a9476696c c-format.c: Change _Bool to bool reverting part of the last patch.
2003-06-20  Andreas Tobler <toa@pop.agri.ch>

	* c-format.c: Change _Bool to bool reverting part of the last
	patch.

From-SVN: r68273
2003-06-20 18:36:09 +02:00
Mark Mitchell
a3237033a1 gcc-dg.exp (dg-xfail-if): Do not process conditional xfail data for non-matching targets.
* lib/gcc-dg.exp (dg-xfail-if): Do not process conditional xfail
	data for non-matching targets.
	* gcc.c-torture/compile/simd-5.c: Fix typo in conditional xfail.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>

From-SVN: r68272
2003-06-20 16:10:13 +00:00
Mark Mitchell
68361a0396 re PR c++/10845 (template member function (getting a nested template as parameter) cannot be called anymore if another unrelated template member function is defined.)
PR c++/10845
	* pt.c (try_class_unification): Correct handling of member class
	templates.

	* semantics.c (genrtl_finish_function): Adjust
	expand_function_end call.

From-SVN: r68269
2003-06-20 15:44:25 +00:00
Benjamin Kosnik
f5a6463ed6 testsuite_performance.h (resource_counter): Don't use mallinfo at the moment.
2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/testsuite_performance.h (resource_counter): Don't use
	mallinfo at the moment.

From-SVN: r68268
2003-06-20 15:26:23 +00:00