Commit Graph

62591 Commits

Author SHA1 Message Date
GCC Administrator
5c24f1f570 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88831.2
2004-10-10 00:16:10 +00:00
Joseph Myers
fbc0150dbc re PR c/17844 (-fshort-enums: ISO/IEC 9899:1999 : wrong size of identifier in enumerator list)
PR c/17844
	* gcc.dg/pr17844-1.c: New test.

From-SVN: r88829
2004-10-10 00:28:38 +01:00
Zdenek Dvorak
3d5c655fab re PR middle-end/17906 (ICE in verify_ssa: PHI argument is not SSA_NAME, or invariant)
PR tree-optimization/17906
	* tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
	copy non-gimple reg arguments.

From-SVN: r88828
2004-10-09 20:19:37 +00:00
Roger Sayle
fc7ca5fd39 [multiple changes]
2004-10-09  Roger Sayle  <roger@eyesopen.com>

	PR rtl-optimization/17853
	* simplify-rtx.c (simplify_relational_operation): Correct comment.
	Reorganize handling of comparison operations with floating point
	results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
	Likewise, introduce support for comparison operations with vector
	result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.

	* doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
	* doc/tm.texi: Likewise.

2004-10-09  Stuart Hastings  <stuart@apple.com>
	    Roger Sayle  <roger@eyesopen.com>

	PR rtl-optimization/17853
	* gcc.dg/i386-mmx-5.c: New testcase.

From-SVN: r88826
2004-10-09 19:27:55 +00:00
Steven Bosscher
35ed0a936a regs.h (struct reg_info_def): Remove the last_node_uid and changes_mode fields.
* regs.h (struct reg_info_def): Remove the last_node_uid and
	changes_mode fields.
	(REGNO_LAST_NOTE_UID): Don't define.
	* regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
	* regmove.c (copy_src_to_dest): Likewise.

From-SVN: r88825
2004-10-09 19:19:24 +00:00
Andrew Pinski
673dacbe7f pr17902.C: Fix typo in dg-do.
2004-10-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/opt/pr17902.C: Fix typo in dg-do.

From-SVN: r88823
2004-10-09 11:00:53 -07:00
Mark Mitchell
62e19030ce re PR c++/17524 (ICE with initializing a variable of type void)
PR c++/17524
	* cp-tree.h (check_var_type): New function.
	* decl.c (check_var_type): New function, split out from ...
	(grokdeclarator): ... here.
	* pt.c (tsubst_decl): Use check_var_type.

	PR c++/17685
	* decl.c (grokdeclarator): Disallow declarations of operators as

	PR c++/17524
	* g++.dg/template/static9.C: New test.

	PR c++/17685
	* g++.dg/parse/operator5.C: New test.

From-SVN: r88820
2004-10-09 17:33:02 +00:00
Tobias Schlüter
5c76089acf module.c (mio_interface_rest): Set where member of interface while loading.
* module.c (mio_interface_rest): Set where member of interface
while loading.

From-SVN: r88819
2004-10-09 18:17:45 +02:00
Roger Sayle
d2e74f6fd5 re PR middle-end/17894 (div/compare folding incorrect)
PR middle-end/17894
	* fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
	relational comparison operator op needs to be swapped/reversed when
	C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.

	* gcc.c-torture/execute/divcmp-4.c: New test case.

From-SVN: r88818
2004-10-09 15:48:24 +00:00
Michael Koch
0d2e6ffef6 2004-10-09 Michael Koch <konqueror@gmx.de>
* java/io/CharArrayWriter.java
	(resize): Removed redundant 'final' modifier.
	* java/io/DataInputStream.java
	(readFully): Throw IndexOutOfBoundsException of len < 0.
	* java/io/FileDescriptor.java,
	java/io/FileInputStream.java,
	java/io/FileOutputStream.java,
	java/io/ObjectOutputStream.java,
	java/io/ObjectStreamClass.java,
	java/io/PipedInputStream.java,
	java/io/RandomAccessFile.java:
	Reorganized import statements.

From-SVN: r88817
2004-10-09 10:22:25 +00:00
Michael Koch
f507003ab2 RMIC.java, [...]: Reworked import statements and fixed file headers.
2004-10-09  Michael Koch  <konqueror@gmx.de>

	* gnu/java/rmi/rmic/RMIC.java,
	gnu/java/rmi/server/RMIHashes.java,
	gnu/java/rmi/server/RMIObjectInputStream.java,
	gnu/java/rmi/server/UnicastConnection.java,
	gnu/java/rmi/server/UnicastConnectionManager.java,
	gnu/java/rmi/server/UnicastRemoteCall.java,
	gnu/java/rmi/server/UnicastServerRef.java:
	Reworked import statements and fixed file headers.

From-SVN: r88816
2004-10-09 09:57:02 +00:00
Paolo Carlini
dafa8871d1 std_memory.h (__get_temporary_buffer): Don't use INT_MAX...
2004-10-09  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_memory.h (__get_temporary_buffer): Don't use
	INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
	platforms too.
	* testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
	line numbers.

From-SVN: r88814
2004-10-09 08:23:02 +00:00
Benjamin Kosnik
c3e7f18406 acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>

	* acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
	* acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
	* configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
	* configure: Regenerate.
	* src/mt_allocator.cc (__pool::~__pool): Make conditional on
	_GLIBCXX_USE___CXA_ATEXIT macro.
	* docs/html/ext/mt_allocator.html: Add note about deallocation.
	* testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
	with _GLIBCXX_USE___CXA_ATEXIT.
	* testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.

From-SVN: r88809
2004-10-09 02:30:10 +00:00
GCC Administrator
a5df984b5f Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88805.2
2004-10-09 00:16:17 +00:00
GCC Administrator
ed13751955 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88804.2
2004-10-09 00:16:12 +00:00
Andrew Pinski
3589783147 re PR tree-optimization/17902 (ICE from tree_verify_flow_info)
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17902
        * g++.dg/opt/pr17902.C: New test.

From-SVN: r88802
2004-10-08 16:29:35 -07:00
Andrew Pinski
227c4bc7af re PR tree-optimization/17902 (ICE from tree_verify_flow_info)
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17902
        * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
        instead of bsi_start.
        (value_replacement): Likewise.
        (abs_replacement): Likewise

From-SVN: r88801
2004-10-08 16:25:49 -07:00
Steven Bosscher
b7211528d5 cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
* cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
	(expand_gimple_cond_expr, expand_gimple_tailcall,
	expand_gimple_basic_block): Use it to dump RTL for each stmt.
	(tree_expand_cfg): Announce full RTL function dump.
	* tree-optimize.c (execute_one_pass): Use normal RTL printing,
	not the graph version.
	* tree-pretty-print.c (dump_generic_node): Allow empty statements
	in the arms of a COND_EXPR for lowered nodes.

From-SVN: r88800
2004-10-08 22:56:55 +00:00
Jakub Jelinek
a1e063e53a * gcc.dg/cpp/ident-1.c: Add dg-options "".
From-SVN: r88799
2004-10-09 00:49:39 +02:00
Joseph Myers
538e396410 spe.h (atosfix16, [...]): Declare.
* config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
	atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
	strtoufix16, strtoufix32, strtoufix64): Declare.

From-SVN: r88798
2004-10-08 23:45:48 +01:00
Andrew Pinski
2d0b4bcd66 re PR fortran/17901 (max-identifier-length problem with -J option)
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        PR fortran/17901
        * options.c (gfc_handle_option): Add break after handing the
        J/M option.

From-SVN: r88797
2004-10-08 15:03:36 -07:00
Joseph Myers
6d84156b87 c-lex.c (interpret_float): Give a pedwarn rather than a warning for an out-of-range floating point constant.
* c-lex.c (interpret_float): Give a pedwarn rather than a warning
	for an out-of-range floating point constant.
	* builtins.c (fold_builtin_inf): Give a pedwarn rather than a
	warning if the target format does not support infinities.

testsuite:
	* gcc.dg/float-range-1.c, gcc.dg/float-range-2.c: New tests.

From-SVN: r88793
2004-10-08 21:25:42 +01:00
Matthias Klose
176f962960 - Fix reference to PR (17285 -> 17835)
From-SVN: r88790
2004-10-08 20:01:14 +00:00
Kazu Hirata
971e29f612 emit-rtl.c (last_label_num, [...]): Remove.
* emit-rtl.c (last_label_num, base_label_num): Remove.
	(max_label_num): Always return label_num.
	(set_new_last_label_num, restore_emit_status): Remove.
	(init_emit): Don't initialize last_label_num.
	* function.c (pop_function_context_from): Don't call
	restore_emit_status.
	* function.h: Remove the prototype for restore_emit_status.
	* rtl.h: Remove the prototype for set_new_last_label_num.

From-SVN: r88789
2004-10-08 19:59:26 +00:00
Kazu Hirata
f5bb9a233a stmt.c (expand_decl_init): Remove.
* stmt.c (expand_decl_init): Remove.
	* tree.h: Remove the corresponding prototype.

From-SVN: r88788
2004-10-08 19:57:18 +00:00
Kazu Hirata
2a9772e3f8 integrate.c (try_constants, [...]): Remove.
* integrate.c (try_constants, subst_constants, mark_stores):
	Remove.
	* integrate.h: Remove the prototype for try_constants.

From-SVN: r88787
2004-10-08 19:55:31 +00:00
Joseph Myers
6dcc04b060 c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
* c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
	(convert_for_assignment): Handle ic_argpass_nonproto.  Add
	comments about its relevance to errors.
	(c_convert_parm_for_inlining): Use ic_argpass_nonproto.

testsuite:
	* gcc.dg/assign-warn-3.c: New test.

From-SVN: r88784
2004-10-08 20:52:04 +01:00
Volker Reichelt
ba52691ca1 re PR c++/17868 (RDIV_EXPR not supported by dump_expr)
PR c++/17868
	* error.c (dump_expr): Add missing case for RDIV_EXPR.

From-SVN: r88781
2004-10-08 19:40:57 +00:00
Tobias Schlüter
268107218c * arith.c: Fix formatting issues.
From-SVN: r88779
2004-10-08 20:53:13 +02:00
Andrew Pinski
147887759d re PR c/16999 (#ident stopped working)
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/16999
        * c-ppoutput.c (cb_ident): Don't quote string as it is already
        quoted.

	* gcc.dg/cpp/ident-1.c: New test.

From-SVN: r88773
2004-10-08 11:37:07 -07:00
Diego Novillo
6048b706dc tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate reference_node_pool.
* tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
	reference_node_pool.

From-SVN: r88769
2004-10-08 14:02:26 -04:00
Kazu Hirata
b986ebf3ab * tree-cfg.c: Fix a comment typo.
From-SVN: r88767
2004-10-08 17:11:16 +00:00
Andreas Krebbel
8a512b77f3 s390.c (s390_register_info): Don't save fprs for -msoft-float.
2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.c (s390_register_info): Don't save fprs for
	-msoft-float.
	(s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.

From-SVN: r88764
2004-10-08 16:36:09 +00:00
Ulrich Weigand
064e93c2c8 s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
* config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
	(TARGET_DEFAULT): Use symbolic values.
	* config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
	(TARGET_DEFAULT): Use symbolic values.
	* config/s390/s390.c (s390_backchain_string): Initialize to
	TARGET_DEFAULT_BACKCHAIN.

From-SVN: r88763
2004-10-08 16:28:49 +00:00
Kaveh R. Ghazi
4d9ef6a988 builtins.c (expand_builtin_mempcpy): Move tree handling code to fold_builtin_mempcpy.
* builtins.c (expand_builtin_mempcpy): Move tree handling code to
	fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
	code.
	(expand_builtin_strcat): Accept a type parameter.
	(fold_builtin_mempcpy): Accept a type and endp parameter.

From-SVN: r88762
2004-10-08 16:07:56 +00:00
Kaveh R. Ghazi
559837f74a builtins.c (expand_builtin_strncpy): Delete duplicate code.
* builtins.c (expand_builtin_strncpy): Delete duplicate code.
	Accept an `exp' instead of an `arglist'.

From-SVN: r88761
2004-10-08 16:06:02 +00:00
Nathan Sidwell
a58eeb317d tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert, reverting my 2004-09-07 patch to use build_int_cst.
.:	* tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
	reverting my 2004-09-07 patch to use build_int_cst.
testsuite:
	* gcc.c-torture/compile/acc1.c: New.

From-SVN: r88759
2004-10-08 15:09:16 +00:00
Andrew Pinski
8d488306cb archive.c: Fix all the warnings about passing unsigned char* to char* and the other way too.
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        * archive.c: Fix all the warnings about passing unsigned char*
        to char* and the other way too.

From-SVN: r88758
2004-10-08 07:40:38 -07:00
Andrew Pinski
ea3c4ca872 darwin-longdouble.c: Include stdlib.h and string.h.
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/darwin-longdouble.c: Include stdlib.h and string.h.
        * gcc.dg/darwin-abi-2.c: Include stdlib.h.

From-SVN: r88757
2004-10-08 07:37:40 -07:00
Eric Botcazou
39ba2f92e1 re PR target/17245 (ICE compiling gsl-1.5 statistics/lag1.c)
PR target/17245
	* config/sparc/sparc.c (input_operand): Remove redundant code
	for handling LO_SUM.
	(legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
	<LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
	Otherwise only accept it for TFmode if quad move insns are available.

From-SVN: r88753
2004-10-08 13:34:56 +00:00
Kazu Hirata
10a5233517 tree-cfg.c (tree_forwarder_block_p): Reorder checks so that common cases will be caught earlier than others.
* tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
	common cases will be caught earlier than others.

From-SVN: r88752
2004-10-08 13:20:39 +00:00
Michael Matz
c054bc3d7a * gcc.dg/doloop-2.c: New test.
From-SVN: r88751
2004-10-08 13:11:31 +00:00
Michael Matz
a252f3e84f * loop-doloop.c (doloop_optimize): Extend count.
From-SVN: r88750
2004-10-08 13:10:00 +00:00
Kazu Hirata
ee81147e28 * pt.c, search.c: Fix comment typos.
From-SVN: r88749
2004-10-08 13:04:09 +00:00
Andrew Pinski
646544e310 pch.c (cpp_write_pch_state): Remove variable z as it is not used.
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        * pch.c (cpp_write_pch_state): Remove variable z as it is not
        used.
        (cpp_read_state): Remove unused variables, m, d and mac_count.

From-SVN: r88748
2004-10-08 05:50:12 -07:00
Kaz Kojima
07ea92d369 sh.md (tls_global_dynamic): Use MEM pattern for the first argument of CALL.
* config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
	first argument of CALL.
	(tls_local_dynamic): Likewise.

	* config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
	(prefetch): Convert to expander.

From-SVN: r88747
2004-10-08 11:44:20 +00:00
Joseph Myers
085d4f5587 * gcc.pot: Regenerate.
From-SVN: r88743
2004-10-08 11:34:22 +01:00
Joseph Myers
2ac2f1647d c-typeck.c (enum impl_conv): New.
* c-typeck.c (enum impl_conv): New.
	(convert_for_assignment): Use it.  Take tree for function called
	instead of its name.  Handle ObjC selectors for diagnostics at
	start of function.  Select diagnostic text within the function
	using full sentences for diagnsotics.  Use %qE to name functions
	in diagnostics.
	(convert_arguments, build_modify_expr,
	c_convert_parm_for_inlining, digest_init, c_finish_return): Update
	callers to convert_for_assignment.
	(warn_for_assignment): Remove.

testsuite:
	* gcc.dg/assign-warn-1.c, gcc.dg/assign-warn-2.c: New tests.
	* gcc.dg/warn-1.c, gcc.dg/noncompile/20020213-1.c,
	objc.dg/method-9.m: Update expected diagnostics.

From-SVN: r88741
2004-10-08 11:21:42 +01:00
Sebastian Pop
710acc5772 Remove the entry corresponding to a not yet committed patch:
2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>

From-SVN: r88740
2004-10-08 09:55:47 +00:00
Nick Clifton
da06f1aeb1 (symbian_possibly_export_base_class): Replace use of deleted...
(symbian_possibly_export_base_class): Replace use of deleted
TYPE_USES_VIRTUAL_BASECLASSES macro with TYPE_CONTAINS_VPTR_P.

From-SVN: r88739
2004-10-08 09:46:23 +00:00