Roger Sayle [Wed, 24 Jul 2002 13:41:22 +0000 (13:41 +0000)]
[multiple changes]
2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
PR optimization/7291
* config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
problem on x86_64.
2002-07-24 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/memset-3.c: New testcase.
From-SVN: r55704
Gabriel Dos Reis [Wed, 24 Jul 2002 12:17:53 +0000 (12:17 +0000)]
pretty-print.h: Add macros from cp/error.c `:w
* pretty-print.h: Add macros from cp/error.c
`:w
From-SVN: r55703
Benjamin Kosnik [Wed, 24 Jul 2002 07:55:34 +0000 (07:55 +0000)]
documentation.html: Remove libstdc++-v3.0.86 links...
2002-07-23 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/documentation.html: Remove libstdc++-v3.0.86 links,
confusing usage of "latest."
De-tangle contributor information from introductory notes.
Move abi.txt link placement, activate.
Re-organize.
Move chapter info into old FAQ format.
* docs/html/organization.html: Removed, obsoleted by doxygen work.
* docs/html/abi.txt: Add notes on testing ABI changes.
From-SVN: r55702
Alan Modra [Wed, 24 Jul 2002 07:53:36 +0000 (07:53 +0000)]
rs6000-protos.h (mask_operand_wrap): Declare.
* config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
(mask64_2_operand): Declare.
(build_mask64_2_operands): Declare.
(and64_2_operand): Declare.
(extract_MB): Declare.
(extract_ME): Declare.
* config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
CONST_DOUBLE code.
(mask_operand_wrap): New insn predicate.
(mask64_2_operand): Likewise.
(and64_2_operand): Likewise.
(build_mask64_2_operands): New function.
(extract_MB): New function.
(extract_ME): New function.
(print_operand <case m,M>): Use extract_MB and extract_ME.
(print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
* config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
(PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
* config/rs6000/rs6000.md (andsi3_internal3): New
(andsi3_internal3+1): Enable split for powerpc64.
(andsi3_internal3+2): New split.
(andsi3_internal4): Renamed old andsi3_internal3.
(andsi3_internal5): New.
(andsi3_internal5+1): Enable split for powerpc64.
(andsi3_internal5+2): New split.
(andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
(anddi3): Handle 't' constraint.
(anddi3+1): New split.
(anddi3_internal2): Handle 't' constraint.
(anddi3_internal2+1): New split.
(anddi3_internal3): Handle 't' constraint.
(anddi3_internal3+1): New split.
From-SVN: r55701
GCC Administrator [Wed, 24 Jul 2002 07:17:30 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r55700
Alan Modra [Wed, 24 Jul 2002 07:15:10 +0000 (07:15 +0000)]
rs6000.md: Remove scratch reg on insns using addze and similar (plus (comparison r1 r2)...
* config/rs6000/rs6000.md: Remove scratch reg on insns using
addze and similar (plus (comparison r1 r2) r3) insns. Add
missing scratch reg in one case. Formatting fixes.
From-SVN: r55695
Neil Booth [Tue, 23 Jul 2002 23:05:55 +0000 (23:05 +0000)]
linux.h (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
* config/mips/linux.h (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL):
Remove.
From-SVN: r55693
Neil Booth [Tue, 23 Jul 2002 22:57:49 +0000 (22:57 +0000)]
cppexp.c (parse_defined): Mark macro used.
* cppexp.c (parse_defined): Mark macro used.
* cpphash.h (struct cpp_macro): New member "used".
(_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
(struct cpp_reader): New member.
* cppinit.c (cpp_finish_options): Set first_unused_line.
(cpp_finish): Warn of unused macros if requested.
(OPT_TABLE): New switches.
(cpp_handle_option): Handle them.
* cpplib.c (do_undef): Warn if macro unused.
(do_ifdef, do_ifndef): Mark macro used.
* cpplib.h (struct cpp_options): New member.
* cppmacro.c (_cpp_warn_if_unused_macro): New.
(enter_macro_context): Mark macro used.
(_cpp_create_definition): Mark macro unused; warn if unused
when redefined.
* cpptrad.c (scan_out_logcial_line, push_replacement_text):
Mark macros used.
* doc/cppopts.texi: Update.
testsuite:
* gcc.dg/cpp/trad/Wunused.c, gcc.dg/cpp/trad/Wunused.h,
gcc.dg/cpp/Wunused.c, gcc.dg/cpp/Wunused.h: New tests.
From-SVN: r55692
Neil Booth [Tue, 23 Jul 2002 22:01:33 +0000 (22:01 +0000)]
* doc/tm.texi: Update documentation.
From-SVN: r55691
Neil Booth [Tue, 23 Jul 2002 21:58:57 +0000 (21:58 +0000)]
dwarf2out.c (SECTION_ASM_OP, [...]): Remove.
* dwarf2out.c (SECTION_ASM_OP,
ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
* system.h (SECTION_ASM_OP): Poison.
* tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
* config/alpha/alpha-interix.h, config/mips/linux.h
(ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
* config/mmix/mmix-protos.h, config/mmix/mmix.c
(mmix_asm_output_define_label_difference_symbol): Remove.
* config/mmix/mmix.h
(ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
cp:
* cp-tree.h (FILE_FUNCTION_PREFIX_LEN): Remove.
From-SVN: r55690
J"orn Rennecke [Tue, 23 Jul 2002 20:51:00 +0000 (20:51 +0000)]
recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
* recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
(constrain_operands): Likewise.
* regclass.c (record_reg_classes): Likewise.
* reload.c (find_reloads): Likewise.
* doc/md.texi: Likewise.
From-SVN: r55689
Kaveh R. Ghazi [Tue, 23 Jul 2002 20:09:52 +0000 (20:09 +0000)]
va-arg-15.x, [...]: Delete.
* gcc.c-torture/execute/va-arg-15.x, va-arg-16.x, va-arg-17.x:
Delete.
From-SVN: r55688
J"orn Rennecke [Tue, 23 Jul 2002 20:06:46 +0000 (20:06 +0000)]
reload.c (find_reloads_toplev): Use simplify_gen_subreg.
gcc:
* reload.c (find_reloads_toplev): Use simplify_gen_subreg.
* simplify-rtx.c (simplify_subreg): When converting to a non-int
mode, try to convert to an integer mode of matching size first.
gcc/testsuite:
* gcc.c-torture/compile/simd-4.c: New test.
From-SVN: r55687
J"orn Rennecke [Tue, 23 Jul 2002 19:57:42 +0000 (19:57 +0000)]
simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR from individual subregs...
* simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
from individual subregs, check that each subreg has been generated
sucessfully.
From-SVN: r55686
Neil Booth [Tue, 23 Jul 2002 19:19:33 +0000 (19:19 +0000)]
genautomata.c (VLA_HWINT_SHORTEN, [...]): Remove.
* genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
* df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
FOR_EACH_BB_IN_SBITMAP): Remove.
* gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
* haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
* loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
* regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
From-SVN: r55685
Gabriel Dos Reis [Tue, 23 Jul 2002 18:15:26 +0000 (18:15 +0000)]
pretty-print.h: New file.
2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
* pretty-print.h: New file.
From-SVN: r55684
John David Anglin [Tue, 23 Jul 2002 17:43:01 +0000 (17:43 +0000)]
real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
* real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
(LARGEST_EXPONENT_IS_NORMAL): Ditto.
(VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
(TARGET_G_FLOAT): Default to 0 if not defined.
(ieeetoe): New, common routine to convert target format floats
to internal form.
(e24toe, e53toe): Change to use ieeetoe, distinguish DEC
vs. others.
(e113toe): Change to use ieeetoe.
(REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
IBM.
(e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
(e64toe): Remove special cases for DEC and IBM. Remove support for
ARM_EXTENDED_IEEE_FORMAT.
(e24toe): Remove special cases for DEC.
(significand_size): Simplify. Indent.
(ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
(etoieee, toieee): New.
(etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
etoieee and toieee for IEEE arithmetic.
From-SVN: r55683
Mike Stump [Tue, 23 Jul 2002 16:29:37 +0000 (16:29 +0000)]
Update email address for self.
From-SVN: r55681
Gabriel Dos Reis [Tue, 23 Jul 2002 15:52:02 +0000 (15:52 +0000)]
extend.texi: Say ISO C90, not ISO C89.
2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
* doc/extend.texi: Say ISO C90, not ISO C89.
* doc/invoke.texi: Likewise.
* doc/standards.texi: Likewise.
From-SVN: r55680
Steve Ellcey [Tue, 23 Jul 2002 14:58:04 +0000 (14:58 +0000)]
explow.c (convert_memory_address): Fix conversion of CONSTs.
* gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
Fix permutation of conversion and plus/mult.
* gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
(expand_builtin_strncpy) Ditto.
(expand_builtin_memset) Ditto.
From-SVN: r55679
Gabriel Dos Reis [Tue, 23 Jul 2002 13:54:06 +0000 (13:54 +0000)]
Fix PR/7363:
2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
Fix PR/7363:
* c-common.c (c_sizeof_or_alignof_type): New function.
(c_alignof): Remove definition.
* c-common.h (c_sizeof, c_alignof): Define as macros.
(c_sizeof_or_alignof_type): Declare.
(my_friendly_assert): Moved from cp/cp-tree.h
* c-typeck.c (c_sizeof): Remove definition.
cp/
2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
Fix PR/7363:
* typeck.c (cxx_sizeof_or_alignof_type): New function.
(c_sizeof): Remove definition.
(expr_sizeof): Use cxx_sizeof.
* decl2.c (build_expr_from_tree): Use cxx_sizeof_or_alignof_type.
* decl.c (finish_destructor_body): Use cxx_sizeof.
* semantics.c (finish_alignof): Likewise.
(finish_alignof): Use cxx_alignof.
* cp-tree.h (cxx_sizeof, cxx_alignof): New macros.
(cxx_sizeof_or_alignof_type): Declare.
(my_friendly_assert): Move to ../c-common.h.
From-SVN: r55678
Jan Hubicka [Tue, 23 Jul 2002 12:08:10 +0000 (14:08 +0200)]
gcse.c (try_replace_reg): Use num_changes_pending.
2002-07-23 Jan Hubicka <jh@suse.cz>
* gcse.c (try_replace_reg): Use num_changes_pending.
* recog.c (num_changes_pending): New function.
(validate_replace_src): Use validate_repalce_src_group.
(validate_replace_src_group): New.
* recog.h (validate_repalce_src_group): New.
(num_changes_pending): Likewise.
From-SVN: r55677
J"orn Rennecke [Tue, 23 Jul 2002 11:18:10 +0000 (11:18 +0000)]
calls.c (emit_library_call_value_1): If FUNCTION_ARG_PASS_BY_REFERENCE is true...
* calls.c (emit_library_call_value_1): If
FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
libcall, const call nor pure call.
From-SVN: r55676
GCC Administrator [Tue, 23 Jul 2002 07:17:57 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r55673
Neil Booth [Tue, 23 Jul 2002 06:29:28 +0000 (06:29 +0000)]
* config/m88k/m88k.h (SECTION_ASM_OP): Remove.
From-SVN: r55668
Neil Booth [Tue, 23 Jul 2002 06:28:08 +0000 (06:28 +0000)]
* vmsdbgout.c (SECTION_ASM_OP): Remove.
From-SVN: r55667
Neil Booth [Tue, 23 Jul 2002 06:26:28 +0000 (06:26 +0000)]
* config/i386/i386.c (AT_BP): Remove.
From-SVN: r55666
Neil Booth [Tue, 23 Jul 2002 06:22:05 +0000 (06:22 +0000)]
defaults.h (obstack_chunk_alloc, [...]): Default definition.
* defaults.h (obstack_chunk_alloc, obstack_chunk_free):
Default definition.
* gcse.c: Don't define obstack_chunk_free.
* collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
Don't define obstack macros.
cp:
* class.c, method.c, pt.c, search.c: Similarly.
From-SVN: r55665
Tom Tromey [Tue, 23 Jul 2002 03:20:27 +0000 (03:20 +0000)]
* lex.c (java_lex): Check for `e' or `E' after 0.
From-SVN: r55664
Tom Tromey [Tue, 23 Jul 2002 03:15:02 +0000 (03:15 +0000)]
* libjava.compile/zeroexp.java: New file.
From-SVN: r55663
Mark Wielaard [Mon, 22 Jul 2002 23:50:13 +0000 (23:50 +0000)]
MD5.java: Extends MessageDigest, not MessageDigestSpi (fixes Classpath bug #783).
* gnu/java/security/provider/MD5.java: Extends MessageDigest, not
MessageDigestSpi (fixes Classpath bug #783).
From-SVN: r55661
Mark Wielaard [Mon, 22 Jul 2002 23:36:56 +0000 (23:36 +0000)]
Gnu.java: Reference all implementation classes by using Class.getName().
* gnu/java/security/provider/Gnu.java: Reference all implementation
classes by using Class.getName().
From-SVN: r55660
Stephane Carrez [Mon, 22 Jul 2002 21:08:41 +0000 (23:08 +0200)]
re PR target/6744 (Generates ASM containing reference to pseudo register z)
PR target/6744
* config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
ASM_OPERANDS instructions.
From-SVN: r55659
Stephane Carrez [Mon, 22 Jul 2002 21:04:11 +0000 (23:04 +0200)]
re PR target/7361 (Internal compiler error in reload_cse_simplify_operands, at reload1.c:8387)
PR target/7361
* config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
constant addresses only on 68HC12.
From-SVN: r55658
Neil Booth [Mon, 22 Jul 2002 20:08:29 +0000 (20:08 +0000)]
cppfiles.c (stack_include_file): Correct test of whether a dependency should be output.
* cppfiles.c (stack_include_file): Correct test of whether
a dependency should be output.
From-SVN: r55657
David Edelsohn [Mon, 22 Jul 2002 19:31:37 +0000 (19:31 +0000)]
* collect2.c (is_ctor_dtor): Add other possible JOINER values.
From-SVN: r55656
Richard Earnshaw [Mon, 22 Jul 2002 17:41:27 +0000 (17:41 +0000)]
arm.md (movqi): If optimizing and we can create pseudos...
* arm.md (movqi): If optimizing and we can create pseudos, use
a ZERO_EXTEND to load from memory, then copy the result into the
target.
(movhi): Likewise, but only for ARMv4.
From-SVN: r55655
Neil Booth [Mon, 22 Jul 2002 17:31:42 +0000 (17:31 +0000)]
* ssa-ccp.c (PHI_PARMS): Remove.
From-SVN: r55654
Richard Sandiford [Mon, 22 Jul 2002 17:25:05 +0000 (17:25 +0000)]
mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS on big-endian targets.
* config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
on big-endian targets.
From-SVN: r55653
Kaveh R. Ghazi [Mon, 22 Jul 2002 17:11:57 +0000 (17:11 +0000)]
hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE, [...]): New formatting macros.
* hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
New formatting macros.
* ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
From-SVN: r55652
J"orn Rennecke [Mon, 22 Jul 2002 14:29:28 +0000 (14:29 +0000)]
rtlanal.c (subreg_regno_offset): Return correct offset for big endian paradoxical subregs.
* rtlanal.c (subreg_regno_offset): Return correct offset for
big endian paradoxical subregs.
From-SVN: r55650
Kriang Lerdsuwanakij [Mon, 22 Jul 2002 14:23:37 +0000 (14:23 +0000)]
PR c++/7347, c++/7348
PR c++/7347, c++/7348
* cp-tree.h (tsubst_flags_t): Add tf_parsing.
* decl.c (make_typename_type): Use it.
(make_unbound_class_template): Likewise.
(lookup_name_real): Don't call type_access_control if scope is
template parameter dependent.
* parse.y (template_arg): Call make_unbound_class_template with
tf_parsing set.
(nest_name_specifier): Call make_typename_type with tf_parsing set.
(typename_sub0): Likewise.
(typename_sub1): Likewise.
(instantiate_decl): Push class scope.
* pt.c (regenerate_decl_from_template): Call pushclass and popclass
for both static variable and member function template.
(instantiate_decl) Call pushclass and popclass when tsubst'ing type
and arguments.
* search.c (type_access_control): Do type access for TEMPLATE_DECL
too.
* g++.dg/template/access4.C: New test.
* g++.dg/template/access5.C: New test.
* g++.old-deja/g++.pt/memtemp85.C: Fix access problem.
* g++.old-deja/g++.pt/memtemp86.C: Likewise.
* g++.old-deja/g++.pt/ttp58.C: Likewise.
* g++.old-deja/g++.pt/memtemp89.C: Remove XFAIL.
From-SVN: r55649
J"orn Rennecke [Mon, 22 Jul 2002 14:22:58 +0000 (14:22 +0000)]
optabs.c (expand_vector_unop): Don't expand using sub_optab if we got the wrong mode.
* optabs.c (expand_vector_unop): Don't expand using sub_optab
if we got the wrong mode.
From-SVN: r55648
J"orn Rennecke [Mon, 22 Jul 2002 14:20:20 +0000 (14:20 +0000)]
hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
* hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
* genrecog.c (write_switch, write_cond): Use it.
* genemit.c (gen_exp): Likewise.
From-SVN: r55647
Jakub Jelinek [Mon, 22 Jul 2002 10:15:49 +0000 (12:15 +0200)]
* c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
From-SVN: r55646
Jakub Jelinek [Mon, 22 Jul 2002 10:11:16 +0000 (12:11 +0200)]
c-decl.c (build_compound_literal): Defer compound literal decls until until file end to emit them only if...
* c-decl.c (build_compound_literal): Defer compound literal decls
until until file end to emit them only if they are actually used.
* gcc.dg/gnu89-init-2.c: New test.
From-SVN: r55645
GCC Administrator [Mon, 22 Jul 2002 07:16:57 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r55643
Kaveh R. Ghazi [Mon, 22 Jul 2002 02:04:25 +0000 (02:04 +0000)]
ra-build.c (check_conflict_numbers): Hide unused function.
* ra-build.c (check_conflict_numbers): Hide unused function.
(livethrough_conflicts_bb): Avoid automatic aggregate
initialization.
(parts_to_webs_1): Avoid `U' integer constant modifier.
(conflicts_between_webs): Wrap a variable in the macro controlling
its usage.
* ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
(dump_igraph, dump_graph_cost): Avoid string concatenation
(dump_static_insn_cost): Avoid automatic aggregate
initialization.
* ra-rewrite.c (insert_stores): Avoid automatic aggregate
initialization.
(dump_cost): Avoid string concatenation
From-SVN: r55637
Richard Henderson [Mon, 22 Jul 2002 00:42:54 +0000 (17:42 -0700)]
expr.c (expand_expr): Don't use GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
* expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
* lang.c (java_unsafe_for_reeval): New.
(LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
From-SVN: r55636
Richard Henderson [Mon, 22 Jul 2002 00:29:56 +0000 (17:29 -0700)]
unroll.c (find_splittable_givs): Do not split DEST_ADDR givs that are not unrolled completely.
* unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
that are not unrolled completely.
From-SVN: r55635
Richard Henderson [Mon, 22 Jul 2002 00:26:03 +0000 (17:26 -0700)]
loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
* loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
* loop.c (strength_reduce): Update.
* toplev.c (rest_of_compilation): Do unrolling in the first
loop pass, not the second.
From-SVN: r55634
Richard Henderson [Mon, 22 Jul 2002 00:23:47 +0000 (17:23 -0700)]
emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL when flag_argument_noalias == 2.
* emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
when flag_argument_noalias == 2.
* alias.c (nonoverlapping_memrefs_p): Handle that.
* print-rtl.c (print_mem_expr): Likewise.
From-SVN: r55633
Hartmut Schirmer [Mon, 22 Jul 2002 00:15:49 +0000 (00:15 +0000)]
libgcc2.c (__divdi3, __moddi3): Use unary minus operator instead of __negdi2 directly.
* libgcc2.c (__divdi3, __moddi3): Use unary minus operator
instead of __negdi2 directly.
From-SVN: r55632
Neil Booth [Sun, 21 Jul 2002 22:01:58 +0000 (22:01 +0000)]
gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
* gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
* function.c (SYMBOL__MAIN): Remove definition.
* global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
* predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
* profile.c (GCOV_INDEX_TO_BB): Remove.
* sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
* simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
From-SVN: r55631
Neil Booth [Sun, 21 Jul 2002 21:59:03 +0000 (21:59 +0000)]
c-lex.c (GET_ENVIRONMENT): Remove.
* c-lex.c (GET_ENVIRONMENT): Remove.
* collect2.c (GET_ENV_PATH_LIST): Remove.
(prefix_from_env): Use GET_ENVIRONMENT.
* cppinit.c (GET_ENV_PATH_LIST): Remove.
(init_standard_includes): Use GET_ENVIRONMENT.
* defaults.h (GET_ENVIRONMENT): Define here if not already.
* gcc.c (GET_ENV_PATH_LIST): Remove.
(make_relative_prefix, process_command): Update.
* protoize.c (GET_ENV_PATH_LIST): Remove.
(do_processing): Update.
java:
* jcf-path.c (GET_ENV_PATH_LIST): Remove.
(jcf_path_init): Use GET_ENVIRONMENT.
From-SVN: r55630
Gabriel Dos Reis [Sun, 21 Jul 2002 21:35:17 +0000 (21:35 +0000)]
c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
* c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
(grokdeclarator): Likewise.
* c-format.c (C_STD_NAME): Likewise.
* c-lex.c (interpret_integer): Likewise.
* c-typeck.c (build_array_ref): Likewise.
* cpplex.c (_cpp_lex_direct): Likewise.
* toplev.c (documented_lang_options): Likewise.
testsuite/
2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
* gcc.dg/c90-arraydecl-1.c: Change C89 too C90.
From-SVN: r55629
Neil Booth [Sun, 21 Jul 2002 20:39:34 +0000 (20:39 +0000)]
* c-format.c (T99_I, T99_UI): Remove.
From-SVN: r55628
Neil Booth [Sun, 21 Jul 2002 20:10:51 +0000 (20:10 +0000)]
* c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
From-SVN: r55627
Jan Hubicka [Sun, 21 Jul 2002 19:38:08 +0000 (21:38 +0200)]
gcse.c (do_local_cprop): Do not extend lifetimes of registers set by do_local_cprop.
* gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
do_local_cprop.
From-SVN: r55626
Andreas Jaeger [Sun, 21 Jul 2002 19:20:22 +0000 (21:20 +0200)]
* reload1.c (fixup_abnormal_edges): Remove unused variable.
From-SVN: r55625
Bernd Schmidt [Sun, 21 Jul 2002 14:32:25 +0000 (14:32 +0000)]
Enhancements for the if-conversion pass
From-SVN: r55624
GCC Administrator [Sun, 21 Jul 2002 07:16:51 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r55622
Roger Sayle [Sun, 21 Jul 2002 02:07:01 +0000 (02:07 +0000)]
decl2.c (cxx_decode_option): Simplify -fhandle-exceptions test by using positive_option.
* decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
test by using positive_option. Make whitespace consistent.
From-SVN: r55616
Jan Hubicka [Sat, 20 Jul 2002 22:56:05 +0000 (00:56 +0200)]
gcse.c: Include cselib.h
* gcse.c: Include cselib.h
(constptop_register): Break out from ...
(cprop_insn): ... here; kill basic_block argument.
(do_local_cprop, local_cprop_pass): New functions.
(one_cprop_pass): Call local_cprop_pass.
From-SVN: r55615
Roger Sayle [Sat, 20 Jul 2002 22:24:58 +0000 (22:24 +0000)]
simplify-rtx.c (simplify_relational_operation): Optimize abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
* simplify-rtx.c (simplify_relational_operation): Optimize
abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
* gcc.c-torture/execute/
20020720-1.c: New test case.
From-SVN: r55614
Michael Matz [Sat, 20 Jul 2002 16:53:10 +0000 (16:53 +0000)]
* MAINTAINERS: Add myself as ra* maintainer.
From-SVN: r55613
Michael Matz [Sat, 20 Jul 2002 16:52:37 +0000 (16:52 +0000)]
* ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
From-SVN: r55612
Neil Booth [Sat, 20 Jul 2002 13:31:56 +0000 (13:31 +0000)]
cppexp.c (struct op): Add token pointer.
* cppexp.c (struct op): Add token pointer.
(check_promotion, CHECK_PROMOTION): New.
(optab): Update.
(_cpp_parse_expr): Update, use token pointer of struct op.
(reduce): Warn about change of sign owing to promotion.
* cppinit.c (cpp_handle_option): New warning if -Wall.
* cpplib.h (struct cpp_options): New member.
testsuite:
* gcc.dg/cpp/Wsignprom.c: New tests.
From-SVN: r55611
Gabriel Dos Reis [Sat, 20 Jul 2002 12:45:45 +0000 (12:45 +0000)]
spew.c (struct uinparsed_test): Replace 'filename' and 'lineno' members with 'locus'.
* spew.c (struct uinparsed_test): Replace 'filename' and 'lineno'
members with 'locus'. Adjust use throughout.
(struct feed): Likewise.
(alloc_unparsed_test): Change prototype, take a 'const location_t *'.
Adjust use.
(snarf_defarg): Use error(), not error_with_file_and_line().
From-SVN: r55610
GCC Administrator [Sat, 20 Jul 2002 07:16:56 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r55608
Phil Edwards [Sat, 20 Jul 2002 06:26:27 +0000 (06:26 +0000)]
abi.txt: New file.
2002-07-20 Phil Edwards <pme@gcc.gnu.org>
* docs/html/abi.txt: New file.
* docs/html/23_containers/howto.html: Tweak vector-overhead text.
* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
Import from upstream, R22.
* include/bits/char_traits.h, include/bits/stl_iterator.h,
include/bits/stl_iterator_base_types.h, libsupc++/exception,
libsupc++/new, libsupc++/typeinfo: Use @brief markup.
* include/bits/deque.tcc, include/bits/stl_alloc.h,
include/bits/stl_deque.h, include/bits/stl_list.h: Postpone removal
of deprecated functions until 3.4. (Same timeframe, different text.)
* include/bits/stl_vector.h: Ditto. Also do the same cleanups that
the other sequence classes received.
From-SVN: r55602
David Edelsohn [Sat, 20 Jul 2002 02:20:16 +0000 (02:20 +0000)]
rs6000.md: Remove ppc630 fpcompare from single fpu list.
* config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
fpu list. Separate Power4 compare and delayed_compare. Correct
Power4 fpcompare.
(fix_truncdfsi2_internal): Restore FPR preference.
* config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
From-SVN: r55601
Momchil Velikov [Sat, 20 Jul 2002 01:30:31 +0000 (04:30 +0300)]
* reload1.c (reload_as_needed): Duplicate oldpat.
From-SVN: r55600
Alan Modra [Sat, 20 Jul 2002 00:33:49 +0000 (00:33 +0000)]
New test.
From-SVN: r55599
Alan Modra [Sat, 20 Jul 2002 00:31:15 +0000 (00:31 +0000)]
re PR rtl-optimization/7130 (miscompiled code for gcc-3.1 on powerpc-unknown-linux-gnu with -funroll-all-loops)
PR optimization/7130
* loop.h (struct loop_info): Add "preconditioned".
* unroll.c (unroll_loop): Set it.
* doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
From-SVN: r55598
Zack Weinberg [Fri, 19 Jul 2002 23:11:19 +0000 (23:11 +0000)]
rtl.def (CODE_LABEL): Remove slot 8.
* rtl.def (CODE_LABEL): Remove slot 8.
* rtl.h (struct rtx_def): Document new uses of jump and call fields.
(LABEL_ALTERNATE_NAME): Delete.
(LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
* defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
* final.c (output_alternate_entry_point): New.
(final_scan_insn): Use it instead of
ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
of a case label being an alternate entry point.
* cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
* emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
(field deleted).
* print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
* doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
* doc/tm.texi: Delete documentation of
ASM_OUTPUT_ALTERNATE_LABEL_NAME.
From-SVN: r55597
Rainer Orth [Fri, 19 Jul 2002 21:58:12 +0000 (21:58 +0000)]
iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
* config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
(PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
(LINK_SPEC): Define.
(STARTFILE_SPEC): Define.
(ENDFILE_SPEC): Define.
* config/mips/iris6-o32.h (LINK_SPEC): Move ...
* config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
* config/mips/iris6-o32-gas.h: New file.
* config.gcc (mips-sgi-irix6*o32): Use it.
* config/mips/t-iris5-gas: New file.
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
From-SVN: r55596
Neil Booth [Fri, 19 Jul 2002 19:24:43 +0000 (19:24 +0000)]
cppexp.c (ALWAYS_EVAL): Remove.
* cppexp.c (ALWAYS_EVAL): Remove.
(optab, reduce): Always evaluate.
(num_unary_op, num_binary_op, num_div_op): Issue diagnostics
only if not skipping evaluation.
testsuite:
* gcc.dg/cpp/expr.c: New tests.
From-SVN: r55595
Marek Michalkiewicz [Fri, 19 Jul 2002 18:30:34 +0000 (20:30 +0200)]
* config/avr/avr.c (debug_hard_reg_set): Remove.
From-SVN: r55594
Chris Demetriou [Fri, 19 Jul 2002 17:12:14 +0000 (17:12 +0000)]
[ ChangeLog ]
2002-07-19 Chris Demetriou <cgd@broadcom.com>
* gcc.c (cpp_options): Include "%1" (cc1_spec).
[ cp/ChangeLog ]
2002-07-19 Chris Demetriou <cgd@broadcom.com>
* lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever
cpp_options is included.
From-SVN: r55591
Richard Henderson [Fri, 19 Jul 2002 16:31:40 +0000 (09:31 -0700)]
* loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
From-SVN: r55590
Kaz Kojima [Fri, 19 Jul 2002 15:30:58 +0000 (15:30 +0000)]
configure.in (sh[34]*-*-linux*): Add brackets.
* configure.in (sh[34]*-*-linux*): Add brackets.
* configure: Regenerate.
From-SVN: r55589
Bo Thorsen [Fri, 19 Jul 2002 14:41:15 +0000 (14:41 +0000)]
ieeefp.h: Add x86-64 support.
2002-07-19 Bo Thorsen <bo@berlioz.suse.de>
* java/lang/ieeefp.h: Add x86-64 support.
* configure.in: Likewise.
* configure.host: Likewise.
* configure: Regenerated.
* sysdep/x86-64/locks.h: New file with x86-64 locks.
From-SVN: r55588
Alan Modra [Fri, 19 Jul 2002 13:24:55 +0000 (13:24 +0000)]
prefix.c (update_path): Don't zap single `.' path components unless followed by another `.' and fix...
* prefix.c (update_path): Don't zap single `.' path components
unless followed by another `.' and fix typo last patch.
From-SVN: r55586
Bo Thorsen [Fri, 19 Jul 2002 11:21:36 +0000 (13:21 +0200)]
Remove dead endif so x86-64 compilation works.
From-SVN: r55585
Bo Thorsen [Fri, 19 Jul 2002 08:54:44 +0000 (08:54 +0000)]
gcconfig.h: Add x86-64 definitions.
2002-07-18 Bo Thorsen <bo@suse.de>
* include/private/gcconfig.h: Add x86-64 definitions.
* os_dep.c: Add x86-64 support.
* configure.in: Likewise.
* configure: Regenerate.
Approved by Hans Boehm.
From-SVN: r55584
GCC Administrator [Fri, 19 Jul 2002 07:16:57 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r55583
Brendan Kehoe [Fri, 19 Jul 2002 04:51:42 +0000 (00:51 -0400)]
e <brendan@zen.org>
* bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR): Fix typo of
_Nname to _Name.
From-SVN: r55578
Gabriel Dos Reis [Fri, 19 Jul 2002 04:45:20 +0000 (04:45 +0000)]
slice_array.h (slice_array<T>::operator=(const T&)): Constify.
* include/bits/slice_array.h
(slice_array<T>::operator=(const T&)): Constify.
* include/bits/gslice_array.h
(gslice_array<T>::operator=(const T&)): Likewise.
* include/bits/mask_array.h
(mask_array<T>::operator=(const T&)): Likewise.
* include/bits/indirect_array.h
(indirect_array<T>::operator=(const T&): Likewise.
:w
From-SVN: r55577
Kaz Kojima [Fri, 19 Jul 2002 01:08:43 +0000 (01:08 +0000)]
Makefile.am: Add SH support.
* Makefile.am: Add SH support.
* Makefile.in: Regenerate.
* configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
* configure: Regenerate.
* include/ffi.h.in: Add SH support.
* src/sh/ffi.c: New file.
* src/sh/sysv.S: New file.
* src/types.c: Add SH support.
From-SVN: r55574
Bo Thorsen [Fri, 19 Jul 2002 00:37:03 +0000 (02:37 +0200)]
Forgot this file.
From-SVN: r55573
David Edelsohn [Fri, 19 Jul 2002 00:07:56 +0000 (20:07 -0400)]
* g++.dg/opt/pr6713.C: Add template instantiation.
From-SVN: r55572
Bo Thorsen [Thu, 18 Jul 2002 23:08:31 +0000 (23:08 +0000)]
[multiple changes]
2002-07-16 Bo Thorsen <bo@suse.de>
* src/x86/ffi64.c: New file that adds x86-64 support.
* src/x86/unix64.S: New file that handles argument setup for
x86-64.
* src/x86/sysv.S: Don't use this on x86-64.
* src/x86/ffi.c: Don't use this on x86-64.
Remove unused vars.
* src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
for x86-64.
* src/ffitest.c (struct6): New test that tests a special case in
the x86-64 ABI.
(struct7): Likewise.
(struct8): Likewise.
(struct9): Likewise.
(closure_test_fn): Silence warning about this when it's not used.
(main): Add the new tests.
(main): Fix a couple of wrong casts and silence some compiler warnings.
* include/ffi.h.in: Add x86-64 ABI definition.
* fficonfig.h.in: Regenerate.
* Makefile.am: Add x86-64 support.
* configure.in: Likewise.
* Makefile.in: Regenerate.
* configure: Likewise.
2002-06-24 Bo Thorsen <bo@suse.de>
* src/types.c: Merge settings for similar architectures.
Add x86-64 sizes and alignments.
2002-06-23 Bo Thorsen <bo@suse.de>
* src/arm/ffi.c (ffi_prep_args): Remove unused vars.
* src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
* src/mips/ffi.c (ffi_prep_args): Likewise.
* src/m68k/ffi.c (ffi_prep_args): Likewise.
From-SVN: r55571
Neil Booth [Thu, 18 Jul 2002 22:08:35 +0000 (22:08 +0000)]
cppexp.c (cpp_num_mul): Remove unused parameter.
* cppexp.c (cpp_num_mul): Remove unused parameter.
(UNARY, BINARY, OTHER, binary_handler): Remove.
(ALWAYS_EVAL): New.
(optab): Update.
(reduce): Refactor to a large switch, don't use a function
pointer.
From-SVN: r55570
Bo Thorsen [Thu, 18 Jul 2002 20:56:33 +0000 (20:56 +0000)]
linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
* config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
From-SVN: r55568
H.J. Lu [Thu, 18 Jul 2002 20:06:00 +0000 (20:06 +0000)]
mach_dep.c (GC_push_regs): Remove the unused Linux/mips code.
2002-07-18 H.J. Lu <hjl@gnu.org>
* mach_dep.c (GC_push_regs): Remove the unused Linux/mips code.
From-SVN: r55566
H.J. Lu [Thu, 18 Jul 2002 19:41:37 +0000 (19:41 +0000)]
configure.in (machdep): Don't add mips_sgi_mach_dep.lo for Linux/mips.
2002-07-18 H.J. Lu (hjl@gnu.org)
* configure.in (machdep): Don't add mips_sgi_mach_dep.lo for
Linux/mips.
From-SVN: r55565
J"orn Rennecke [Thu, 18 Jul 2002 19:26:07 +0000 (19:26 +0000)]
sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
* sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
(sh_expand_binop_v2sf): Likewise.
* sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
(int_gpr_dest, trunc_hi_operand): New functions.
* sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
trunc_hi_operand.
(SPECIAL_MODE_PREDICATES, any_register_operand): Define.
* sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
(adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
(ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
(and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
(zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
(extendhisi2_media+1, extendqisi2_media+1): Likewise.
(movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
(movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
(movsf_ie+1): Likewise.
(loaddi_trunc): Use int_gpr_dest predicate.
(use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
(mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
(casesi_worker_0+[12], casesi_worker): Likewise.
(shcompact_preserve_incoming_args): Likewise.
(mov_nop): Use any_register_operand predicate.
(mperm_w0): Use trunc_hi_operand predicate.
From-SVN: r55564
John David Anglin [Thu, 18 Jul 2002 18:18:26 +0000 (18:18 +0000)]
pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
* pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
* pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
numbering.
From-SVN: r55563
John David Anglin [Thu, 18 Jul 2002 17:58:44 +0000 (17:58 +0000)]
* pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
From-SVN: r55562