Commit Graph

64445 Commits

Author SHA1 Message Date
Eric Christopher
a122d1f1d3 re PR target/18442 (Rejects attribute((mode(SI))) when using -mint64)
2004-12-07  Eric Christopher  <echristo@redhat.com>

	PR target/18442
	* config/mips/mips.c (mips_vector_mode_supported_p): New function.
	(TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.

From-SVN: r91820
2004-12-07 22:17:21 +00:00
Kazu Hirata
54e4aedb7e c-common.c, [...]: Replace uses of first_rtl_op with TREE_CODE_LENGTH.
gcc/
	* c-common.c, expr.c, fold-const.c, print-tree.c,
	tree-gimple.c, tree-inline.c, tree-pretty-print.c,
	tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
	first_rtl_op with TREE_CODE_LENGTH.
	* tree.c (first_rtl_op): Remove.
	Replace uses of first_rtl_op with TREE_CODE_LENGTH.
	* tree.h: Remove the prototype for first_rtl_op.

gcc/cp/
	* pt.c: Replace a use of first_rtl_op with TREE_CODE_LENGTH.

From-SVN: r91818
2004-12-07 21:23:10 +00:00
DJ Delorie
b180d5fb7b splay-tree.c (splay_tree_delete_helper): Redesign the logic so that recursion (and thus large stack space) is not needed.
* splay-tree.c (splay_tree_delete_helper): Redesign the logic so
that recursion (and thus large stack space) is not needed.

From-SVN: r91815
2004-12-07 15:01:17 -05:00
David Edelsohn
354e49c1d9 t-aix43, t-aix52 (SHLIB_LINK): Revert 2004-12-01 change.
* config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
        Revert 2004-12-01 change.

From-SVN: r91812
2004-12-07 13:44:31 -05:00
Paolo Carlini
0f910b4f4f type_traits: Implement is_const and is_volatile.
2004-12-07  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits: Implement is_const and is_volatile.
	* testsuite/testsuite_tr1.h (test_property): New.
	* testsuite/tr1/4_metaprogramming/type_properties/
	is_const/is_const.c: New.
	* testsuite/tr1/4_metaprogramming/type_properties/
	is_const/typedefs.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/type_properties/
	is_volatile/is_volatile.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/type_properties/
	is_volatile/typedefs.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/composite_type_traits/
	is_arithmetic/is_arithmetic.cc: Slightly tweak to use ClassType
	from testsuite_tr1.h.
	* testsuite/tr1/4_metaprogramming/composite_type_traits/
	is_fundamental/is_fundamental.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_array/is_array.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_floating_point/is_floating_point.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_integral/is_integral.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_reference/is_reference.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_void/is_void.cc: Likewise.

From-SVN: r91808
2004-12-07 16:40:46 +00:00
Roger Sayle
5423d7ebe1 name-lookup.c (leave_scope): We only need to update class_binding_level when leaving a class scope.
* name-lookup.c (leave_scope): We only need to update
	class_binding_level when leaving a class scope.

From-SVN: r91807
2004-12-07 14:41:12 +00:00
Volker Reichelt
5f679db991 * g++.dg/other/unreachable-1.C: New test.
From-SVN: r91804
2004-12-07 07:50:31 +00:00
Ziemowit Laski
66237a39fc c-tree.h (struct lang_type): Add 'objc_protocols' field.
[gcc/ChangeLog]
2004-12-06  Ziemowit Laski  <zlaski@apple.com>

        * c-tree.h (struct lang_type): Add 'objc_protocols' field.

[gcc/cp/ChangeLog]
2004-12-06  Ziemowit Laski  <zlaski@apple.com>

        * cp-tree.h (struct lang_type_class): Add 'objc_protocols' field.

From-SVN: r91803
2004-12-07 03:52:22 +00:00
DJ Delorie
e11ab33b76 reload.c (find_valid_class): Fix logic to test inner mode as well.
* reload.c (find_valid_class): Fix logic to test inner mode as well.
(push_reload): Pass inner mode.

From-SVN: r91802
2004-12-06 20:14:40 -05:00
Eric Christopher
e09ec16630 tm.texi (TARGET_VALID_POINTER_MODE): Document.
2004-12-06  Eric Christopher  <echristo@redhat.com>

	* doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.

From-SVN: r91801
2004-12-07 00:53:27 +00:00
Richard Henderson
07d3cebe24 cshift0.c, [...]: Use internal_malloc_size instead of internal_malloc.
* intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
        intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
        intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
        m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
        of internal_malloc.
        * generated/*: Rebuild.

From-SVN: r91799
2004-12-06 16:24:44 -08:00
GCC Administrator
bddfe34a9e Daily bump.
From-SVN: r91797
2004-12-07 00:16:23 +00:00
Richard Henderson
f21edfd62d c99_functions.c, [...]: Whitespace fixes.
* intrinsics/c99_functions.c, intrinsics/eoshift0.c,
        intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
        intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
        intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
        intrinsics/spread_generic.c, intrinsics/stat.c,
	intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
        intrinsics/transpose_generic.c, intrinsics/unlink.c,
        intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
        io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
        io/write.c, runtime/environ.c, runtime/error.c,
        runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
        runtime/memory.c, runtime/pause.c, runtime/stop.c,
        runtime/string.c: Whitespace fixes.

From-SVN: r91794
2004-12-06 16:01:01 -08:00
Aldy Hernandez
9f91e6cc16 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
From-SVN: r91792
2004-12-06 23:57:57 +00:00
Richard Henderson
a8bc7089b5 Makefile.am: Generate all m4 output under $(srcdir).
* Makefile.am: Generate all m4 output under $(srcdir).
        * Makefile.in: Regenerate.

From-SVN: r91788
2004-12-06 13:29:57 -08:00
Zdenek Dvorak
63bb59a32c re PR tree-optimization/18601 (tree cfglceanup is slow)
PR tree-optimization/18601
	* tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
	(tree_forwarder_block_p): Do not consider blocks that are its own
	successors forwarders.
	(cleanup_forwarder_blocks, remove_forwarder_block): New functions.
	(cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
	thread_jumps.
	* tree-flow.h (bb_ann_d): Remove forwardable.

Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>

From-SVN: r91787
2004-12-06 20:22:01 +00:00
Kazu Hirata
c4cfdac0e6 expr.c (expand_expr_real_1): Remove an "if" whose condition is always false.
* expr.c (expand_expr_real_1): Remove an "if" whose condition
	is always false.

From-SVN: r91786
2004-12-06 18:52:10 +00:00
Tom Tromey
6e07ee6da0 Make-lang.in (JAVA_MANFILES): Added gcj-dbtool.
* Make-lang.in (JAVA_MANFILES): Added gcj-dbtool.
	(java.uninstall): Likewise.
	(java.maintainer-clean): Likewise.
	(.INTERMEDIATE): Likewise.
	(java.install-man): Likewise.
	(gcj-dbtool.pod): New target.
	* gcj.texi (Code Generation): Document -findirect-dispatch.
	(libgcj Runtime Properties): Document
	gnu.gcj.precompiled.db.path.
	(Top): Link to "Invoking gcj-dbtool".

From-SVN: r91785
2004-12-06 17:59:57 +00:00
Roger Sayle
b086a2eaf8 c-gimplify.c (gimplify_c_loop): Improve initial implementations for loops whose conditions are known at...
* c-gimplify.c (gimplify_c_loop): Improve initial implementations
	for loops whose conditions are known at compile-time.
	* gimplify.c (append_to_statement_list_1): Remove side_effects
	parameter, this function should never be called if its false.
	(append_to_statement_list): Only call append_to_statement_list_1
	if t is non-NULL tree with side-effects.
	(append_to_statement_list_force):  Likewise, if t is not NULL.

From-SVN: r91784
2004-12-06 17:24:16 +00:00
J"orn Rennecke
ff8b369ad3 bt-load.c (btr_def_s): New member own_end;
* bt-load.c (btr_def_s): New member own_end;
	(add_btr_to_live_range): Add second parameter.  Changed caller.
	(clear_btr_from_live_range): Clear btrs_live_at_end bit
	for the register its definition basic block if own_end is set.
	(augment_live_range): Also take btrs_live_at_end into account.
	(combine_btr_defs): Don't bother with
	other_def->other_btr_uses_after_use if it pertains to a different
	register.
	(move_btr_def): Set def->other_btr_uses_before_def after
	calling combine_btr_defs."

	* bt-load.c (augment_live_range): New argument full_range.
	Changed all callers.

	* bt-load.c (move_tr_def): Set other_tr_uses_before_def
	taking new btr assignment into account.

From-SVN: r91780
2004-12-06 16:07:57 +00:00
Paolo Carlini
e21cb773e5 type_traits: Implement is_reference.
2004-12-06  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits: Implement is_reference.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_reference/is_reference.cc: New.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_reference/typedefs.cc: Likewise.

From-SVN: r91779
2004-12-06 15:47:05 +00:00
Tom Tromey
a58d74533c re PR java/14853 (Assignment to final field permitted when compiling to native)
PR java/14853:
	* java-tree.h (extract_field_decl): Declare.
	* parse.y (extract_field_decl): Renamed from
	strip_out_static_field_access_decl.  No longer static.
	* check-init.c (get_variable_decl): Unwrap COMPOUND_EXPRs.

From-SVN: r91778
2004-12-06 15:32:38 +00:00
Tom Tromey
0bc371d376 For PR java/14853:
* testsuite/libjava.compile/PR14853.java: New file.
	* testsuite/libjava.compile/PR14853.xfail: New file.

From-SVN: r91777
2004-12-06 15:30:57 +00:00
Nick Clifton
a52c836bd5 Move ChangeLog entry to the correct ChangeLog!
From-SVN: r91775
2004-12-06 12:32:45 +00:00
Nick Clifton
c092f1e161 oops - omitted from previous checkin
From-SVN: r91771
2004-12-06 11:00:49 +00:00
Nick Clifton
dd8301b8e0 builtins-config.h: Use <sys/types.h> instead of <limits.h> because the latter comes from gcc's...
* gcc.dg/builtins-config.h: Use <sys/types.h> instead of <limits.h> because the
latter comes from gcc's include/ directory and not the newlib/libc/include
directory.

From-SVN: r91770
2004-12-06 10:57:43 +00:00
Daniel Berlin
b07f8ee279 tree-ssa-alias.c (create_global_var): Use void_type_node, not size_type_node.
2004-12-05  Daniel Berlin <dberlin@dberlin.org>

	* tree-ssa-alias.c (create_global_var): Use void_type_node,
	not size_type_node.

From-SVN: r91768
2004-12-06 02:00:47 +00:00
GCC Administrator
caace8f5df Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91761.2
2004-12-06 00:16:20 +00:00
GCC Administrator
47af4cae60 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91760.2
2004-12-06 00:16:14 +00:00
Kazu Hirata
ba8081eb6c expr.c (expand_expr_real_1): Abort on COND_EXPR of VOID_TYPE.
* expr.c (expand_expr_real_1): Abort on COND_EXPR of
	VOID_TYPE.

From-SVN: r91758
2004-12-06 00:14:07 +00:00
Paolo Carlini
ae23f7575c re PR libstdc++/18837 (testsuite_performance.h:63: error: redefinition of 'struct mallinfo')
2004-12-05  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/18837
	* testsuite/testsuite_performance.h: Fix mallinfo macros for
	hpux.

From-SVN: r91757
2004-12-05 23:28:22 +00:00
Richard Henderson
618a86bf2b Test case for PR target/18841.
From-SVN: r91756
2004-12-05 12:07:09 -08:00
Richard Henderson
cbb16d8ef6 re PR target/18841 (setjmp and eh receivers can mis-schedule)
PR target/18841
        * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
        (builtin_setjmp_receiver_er_sl_1): Use it.
        (builtin_setjmp_receiver_er_1): Likewise.
        (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
        (builtin_setjmp_receiver): Don't split for explicit relocs until
        after reload.
        (exception_receiver): Likewise.

From-SVN: r91753
2004-12-05 11:52:24 -08:00
Andrew Pinski
82f4593a97 mklibgcc.in (vis_hide): Add the prototype for the test.
2004-12-05  Andrew Pinski  <pinskia@physics.uc.edu>

        * mklibgcc.in (vis_hide): Add the prototype for the test.

From-SVN: r91752
2004-12-05 11:28:27 -08:00
Andrew Pinski
82618d44f7 Add forgotten to check in changeLog:
2004-12-04  Andrew  Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17909
        * builtins.c (fold_builtin_next_arg): Export and return true
        when there is a warning or an error.
        (expand_builtin_va_start): When fold_builtin_next_arg returns true,
        return const0_rtx.
        (expand_builtin): Likewise.
        * gimplify.c (gimplify_call_expr): Error out if there is not
        enough arguments to va_start. Call fold_builtin_next_arg also
        on the second argument.
        * tree.h (fold_builtin_next_arg): Prototype.

From-SVN: r91751
2004-12-05 09:47:04 -08:00
Roger Sayle
28af952a24 c-typeck.c (c_finish_loop): Improve initial implementations for loops whose conditions are known at...
* c-typeck.c (c_finish_loop): Improve initial implementations
	for loops whose conditions are known at compile-time.

From-SVN: r91750
2004-12-05 15:31:02 +00:00
Kazu Hirata
118f3b19a3 * builtins.c: Fix comment typos.
From-SVN: r91749
2004-12-05 14:18:18 +00:00
John David Anglin
91373fe8f7 re PR middle-end/18730 (cppexp.c:1076: error: unrecognizable insn)
PR middle-end/18730
	* emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
	the first/last insn is a sequence, return the first/last insn of the
	sequence.

From-SVN: r91742
2004-12-05 04:05:59 +00:00
Richard Henderson
6ac5aa910e * gcc.dg/tree-ssa/loop-5.c: Use long instead of int.
From-SVN: r91740
2004-12-04 17:39:55 -08:00
Richard Henderson
192b2fc48c * testsuite/26_numerics/complex/pow.cc: Use -mieee on alpha.
From-SVN: r91738
2004-12-04 16:26:16 -08:00
Richard Henderson
4ec3604f50 * include/ext/malloc_allocator.h: Include cstdlib.
From-SVN: r91737
2004-12-04 16:25:18 -08:00
GCC Administrator
f7b279f9d0 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91735.2
2004-12-05 00:16:15 +00:00
GCC Administrator
66002fe5ee Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91734.2
2004-12-05 00:16:11 +00:00
John David Anglin
bf842f624b re PR bootstrap/18804 (lib2funcs.vis:1: Error: unknown pseudo-op: `.hidden')
PR bootstrap/18804
	* mklibgcc.in (vis_hide): Use implementation instead of declaration
	for test function.

From-SVN: r91732
2004-12-04 20:32:51 +00:00
Richard Henderson
346424935e alpha.c (alpha_expand_unaligned_load): Don't forget to use ofs in BWX two byte special case.
* config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
        use ofs in BWX two byte special case.
        (alpha_expand_unaligned_store): Likewise.

From-SVN: r91731
2004-12-04 10:13:50 -08:00
Richard Henderson
8138dfe456 target-supports.exp (check_gc_sections_available): Disable for alpha and ia64.
* lib/target-supports.exp (check_gc_sections_available): Disable
        for alpha and ia64.

From-SVN: r91730
2004-12-04 10:01:09 -08:00
Kazu Hirata
b732f36fe6 * gcse.c (gcse_main): Add a comment.
From-SVN: r91729
2004-12-04 14:53:13 +00:00
Andrew Pinski
a6ac7f6fb4 re PR middle-end/17909 (ICE: verifiy_stms failed)
2004-12-04  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17909
        * g++.dg/other/vararg-2.C: New test.

From-SVN: r91728
2004-12-04 06:15:01 -08:00
Andrew Pinski
2efcfa4ef6 re PR middle-end/17909 (ICE: verifiy_stms failed)
2004-12-04  Andrew  Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17909
        * builtins.c (fold_builtin_next_arg): Export and return true
        when there is a warning or an error.
        (expand_builtin_va_start): When fold_builtin_next_arg returns true,
        return const0_rtx.
        (expand_builtin): Likewise.
        * gimplify.c (gimplify_call_expr): Error out if there is not
        enough arguments to va_start. Call fold_builtin_next_arg also
        on the second argument.
        * tree.h (fold_builtin_next_arg): Prototype.

From-SVN: r91727
2004-12-04 06:11:45 -08:00
Joseph Myers
e488786134 * tr.po: Update.
From-SVN: r91726
2004-12-04 11:38:37 +00:00