OSDN Git Service

pf3gnuchains/gcc-fork.git
21 years ago * i386.md (addqi_1_slp, subqi_1_slp
hubicka [Tue, 11 Jun 2002 23:57:10 +0000 (23:57 +0000)]
* i386.md (addqi_1_slp, subqi_1_slp
(andqi_ext0, testqi_ext0): Remove unnecesary check.
(addhi*, addqi*): Simplify "dec" condition.
(testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
(and, or, xor to QImode splitters): New.
(iorqi_ext*): New.
(xorqi_ext_0): New.
(xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
(andqi_ext_1_rex64): New.
(ashrqi*_slp): New.
(ashlqi*_slp): New.
(lshlqi*_slp): New.
(rotrqi3*_slp): New.
(rotlqi3*_slp): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54537 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
ghazi [Tue, 11 Jun 2002 23:53:11 +0000 (23:53 +0000)]
* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54536 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
law [Tue, 11 Jun 2002 23:51:24 +0000 (23:51 +0000)]
    * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
        last insn created by the splitter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54535 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
geoffk [Tue, 11 Jun 2002 23:14:47 +0000 (23:14 +0000)]
* config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
softfloat.h.
* config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
(CPP_ENDIAN_LITTLE_SPEC): Delete.
* config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
* config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
__LONG_DOUBLE_128__ setting, _CALL_* setting.
(CPP_DEFAULT_SPEC): Delete.
(CPP_FLOAT_DEFAULT_SPEC): Delete.
(CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
(CPP_SYSV_DEFAULT_SPEC): Delete.
(CPP_ENDIAN_BIG_SPEC): Delete.
(CPP_ENDIAN_LITTLE_SPEC): Delete.
(CPP_ENDIAN_SPEC): Delete.
(CPP_SPEC): Don't include cpp_endian, cpp_cpu.
(SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
cpp_longdouble_default.
* config/rs6000/softfloat.h: Delete.
* config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
(EXTRA_SPECS): Delete cpp_cpu.
(TARGET_CPU_CPP_BUILTINS): New.
* config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
prototype.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
* config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
* config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
* config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
(CPLUSPLUS_CPP_SPEC): Likewise.
(CPP_CPU_SPEC): Delete.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
(CPLUSPLUS_CPP_SPEC): Likewise.
(CPP_CPU_SPEC): Delete.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
(CPP_DEFAULT_SPEC): Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54534 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/gty.texi: Small updates.
geoffk [Tue, 11 Jun 2002 23:13:20 +0000 (23:13 +0000)]
* doc/gty.texi: Small updates.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54533 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * objc/objc-act.c (warn_with_ivar): Adjust calls to
gdr [Tue, 11 Jun 2002 23:11:34 +0000 (23:11 +0000)]
* objc/objc-act.c (warn_with_ivar): Adjust calls to
diagnostic_count_error.
(warn_with_method): Likewise.

* diagnostic.h (warnings_are_errors_message): New field of
diagnostic_context.
(diagnostic_count_error): Rename to
diagnostic_count_diagnostic to
match semantics.
* diagnostic.c: Adjust calls to diagnostic_count_error through
out.
(diagnostic_count_diagnostic): Make aware of other kinds of
diagnostics.
(diagnostic_initialize): Initialize
warnings_are_errors_message field.

f/
2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>

    * bad.c (ffebad_start_): Adjust calls to
              diagnostic_count_error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54532 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * caller-save.c (init_caller_save): Move creation of SAVEINSN
law [Tue, 11 Jun 2002 23:04:15 +0000 (23:04 +0000)]
    * caller-save.c (init_caller_save): Move creation of SAVEINSN
        and RESTINSN into into the scope of the sequence.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54530 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago For PR java/6520:
tromey [Tue, 11 Jun 2002 22:36:53 +0000 (22:36 +0000)]
For PR java/6520:
* fold-const.c (fold_convert): Don't modify existing tree's type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54529 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
geoffk [Tue, 11 Jun 2002 22:24:49 +0000 (22:24 +0000)]
* config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54528 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
rth [Tue, 11 Jun 2002 22:16:51 +0000 (22:16 +0000)]
    * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54527 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
rth [Tue, 11 Jun 2002 21:34:30 +0000 (21:34 +0000)]
    * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
        DWARF2_UNWIND_INFO is false.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54526 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
bwilson [Tue, 11 Jun 2002 20:56:48 +0000 (20:56 +0000)]
    * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54525 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
law [Tue, 11 Jun 2002 20:25:27 +0000 (20:25 +0000)]
* mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
RETURN insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54524 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/s390/s390.c (emit_prologue): gen_store_multiple
uweigand [Tue, 11 Jun 2002 20:15:31 +0000 (20:15 +0000)]
* config/s390/s390.c (emit_prologue): gen_store_multiple
returns an insn now, not a pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54523 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
ro [Tue, 11 Jun 2002 20:06:04 +0000 (20:06 +0000)]
* Makefile.in (gccinstall.dvi): Pass absolute pathnames to
$(TEXI2DVI) -o.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54522 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * i386.c (x86_promote_QImode): Set for Athlon
hubicka [Tue, 11 Jun 2002 19:58:12 +0000 (19:58 +0000)]
* i386.c (x86_promote_QImode): Set for Athlon
(x86_fast_prefix): New global variable.
(x86_arch_always_fancy_math_387): Fix formating.
* i386.h (x86_fast_prefix): Declare
(TARGET_FAST_PREFIX): define.
* i386.md (and to strict_low_part, HI to SI
promoting splitter): Use new macro.

* i386.h (RTX_COSTS): float_extend is not for free for SSE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54521 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-11 J.T. Conklin <jtc@acorntoolworks.com>
bkoz [Tue, 11 Jun 2002 17:54:27 +0000 (17:54 +0000)]
2002-06-11  J.T. Conklin  <jtc@acorntoolworks.com>
            Benjamin Kosnik  <bkoz@redhat.com>

* configure.target: Set os_include_dir to config/os/qnx/qnx6.1
under *-qnx6.[12]*.
* configure.in: Add support for *-qnx6.[12]*.
* configure: Regenerate.

* config/os/qnx, config/os/qnx/qnx6.1, config/os/qnx/qnx6.1/bits:
New directories.
* config/os/qnx/qnx6.1/bits/ctype_base.h, ctype_inline.h,
ctype_noninline.h, os_defines.h: New files.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54518 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * java/lang/Class.h (Class::desiredAssertionStatus): Declare.
tromey [Tue, 11 Jun 2002 17:33:22 +0000 (17:33 +0000)]
* java/lang/Class.h (Class::desiredAssertionStatus): Declare.
(Class::getPackagePortion): Likewise.
* java/lang/Class.java (desiredAssertionStatus): New method from
Classpath.
(getPackagePortion): Likewise.
* java/lang/VMClassLoader.java (defaultAssertionStatus,
packageAssertionStatus, classAssertionStatus): New methods from
Classpath.
* java/lang/ClassLoader.java (defaultAssertionStatus,
systemPackageAssertionStatus, packageAssertionStatus,
systemClassAssertionStatus, classAssertionStatus): New fields from
Classpath.
(setDefaultAssertionStatus, setPackageAssertionStatus,
setClassAssertionStatus, clearAssertionStatus): New methods from
Classpath.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added AssertionError.java.
* java/lang/AssertionError.java: New from Classpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54517 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC.
tromey [Tue, 11 Jun 2002 17:31:11 +0000 (17:31 +0000)]
* jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC.
* parse-scan.y (statement_without_trailing_substatement): Added
assert_statement.
(assert_statement): New rule.
* java-tree.h (struct lang_type) [assertions]: New field.
(TYPE_USES_ASSERTIONS): New macro.
(CLASS_USES_ASSERTIONS): Likewise.
(FIELD_SYNTHETIC): New define.
* lex.c (java_lval;): Added ASSERT_TK.
* parse.y (ASSERT_TK): Added.
(statement_without_trailing_substatement): Added assert_statement.
(assert_statement): New rule.
(build_assertion): New function.
(maybe_generate_pre_expand_clinit): Create and initialize
$assertionsDisabled.
(lookup_package_type): Removed decl.
* keyword.h: Rebuilt.
* keyword.gperf (assert): New token.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54516 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
bwilson [Tue, 11 Jun 2002 16:59:00 +0000 (16:59 +0000)]
    * g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
        list of targets to skip.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54514 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
law [Tue, 11 Jun 2002 16:49:14 +0000 (16:49 +0000)]
    * loop.c (loop_regs_scan): Avoid useless generation of REG objects.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54513 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (distclean): Delete junk left in testsuite
zack [Tue, 11 Jun 2002 16:42:36 +0000 (16:42 +0000)]
* Makefile.in (distclean): Delete junk left in testsuite
directory, too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54512 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
law [Tue, 11 Jun 2002 16:14:54 +0000 (16:14 +0000)]
    * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
        not the pattern.  So extract the pattern from the insn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54511 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-10 Akim Demaille <akim@epita.fr>
tromey [Tue, 11 Jun 2002 15:32:44 +0000 (15:32 +0000)]
2002-06-10  Akim Demaille  <akim@epita.fr>

* parse.y (interface_type_list, class_member_declaration)
(unary_expression_not_plus_minus): Remove duplicate %type.
Whitespace changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54510 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * mips.c (embedded_pic_fnaddr_reg): Fix typo.
law [Tue, 11 Jun 2002 15:04:39 +0000 (15:04 +0000)]
    * mips.c (embedded_pic_fnaddr_reg): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54509 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Make-lang.in (java/lang.o): Use LANGHOOKS_DEF_H.
tromey [Tue, 11 Jun 2002 14:58:09 +0000 (14:58 +0000)]
* Make-lang.in (java/lang.o): Use LANGHOOKS_DEF_H.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54508 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/s390/s390.md (movsi): Only use floating point
uweigand [Tue, 11 Jun 2002 14:47:04 +0000 (14:47 +0000)]
* config/s390/s390.md (movsi): Only use floating point
register alternatives when operands are already fprs.
(movdi_31, movdi_64): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54506 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * libjava.compile/PR6865.java: New file. For PR java/6865.
tromey [Tue, 11 Jun 2002 14:46:11 +0000 (14:46 +0000)]
* libjava.compile/PR6865.java: New file.  For PR java/6865.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54505 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * parse.y (method_header): Give error message in all cases.
tromey [Tue, 11 Jun 2002 14:43:54 +0000 (14:43 +0000)]
* parse.y (method_header): Give error message in all cases.
Fixes PR java/6865.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54504 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * libjava.lang/PR6520.java: Fixed typo.
tromey [Tue, 11 Jun 2002 14:38:44 +0000 (14:38 +0000)]
* libjava.lang/PR6520.java: Fixed typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54503 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-11 David S. Miller <davem@redhat.com>
davem [Tue, 11 Jun 2002 14:24:45 +0000 (14:24 +0000)]
2002-06-11  David S. Miller  <davem@redhat.com>

* emit-rtl.c (try_split): Do not abort on non-INSN_P.
Only run RTX equality checks on INSN_P rtl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54502 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/s390/s390.md (reload_base, ltorg): Remove.
uweigand [Tue, 11 Jun 2002 13:53:02 +0000 (13:53 +0000)]
* config/s390/s390.md (reload_base, ltorg): Remove.
* s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
* s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
s390_asm_output_pool_prologue): Likewise.
* s390.h (s390_pool_start_insn): Likewise.

* s390.c (s390_output_symbolic_const): Remove support for
old-style pool chunks.
(s390_function_epilogue): Likewise.
(s390_output_constant_pool): Likewise.  Also, fix incorrect
alignment for 64-bit literal pools.
(print_operand_address): Remove 'y' and 'Y' format flags.
* s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
old-style pool chunks.
(ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
(ASM_OUTPUT_POOL_EPILOGUE): Remove.
(S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.

* s390.c (consttable_operand): New function.
* s390-protos.h (consttable_operand): Declare it.
* s390.h (PREDICATE_CODES): Add consttable_operand.
* s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
consttable_sf, consttable_df, pool_start_31, pool_end_31,
pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
* s390.c (struct constant, struct constant_pool): New data types.
(constant_modes, gen_consttable): New variables.
(s390_start_pool, s390_end_pool, s390_add_pool,
s390_dump_pool, s390_free_pool): New functions.
(s390_chunkify_pool): Completely reimplement literal pool
overflow handling.

* s390.c (s390_pool_overflow): New variable.
* s390.h (s390_pool_overflow): Declare it.
* s390.md (cjump, icjump): Use it to adapt length for out-of-range
jumps in literal pool overflow situations.

* s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
(s390_frame_info): Account for possible use of RETURN_REGNUM
by new literal pool overflow code.
(s390_emit_prologue): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54500 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-05 David S. Miller <davem@redhat.com>
davem [Tue, 11 Jun 2002 12:22:48 +0000 (12:22 +0000)]
2002-06-05  David S. Miller  <davem@redhat.com>

Delete SEQUENCE rtl usage outside of reorg and ssa passes.
* rtl.h (gen_sequence, emit_insns, emit_insns_before,
emit_insns_before_scope, emit_insns_after,
emit_insns_after_scope): Delete declaration.
* ada/misc.c (insert_code_for): Use emit_insn* instead of
emit_insns_foo.
* config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
(alpha_set_memflags): Fix comment.
(set_frame_related_p): Use get_insns instead of gen_sequence.
* config/alpha/alpha.md (setjmp receiver splitter): Avoid
emitting no insns.
* config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
gen_sequence.
(arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
* config/fr30/fr30.c (fr30_move_double): Likewise.
* config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
Likewise.
* config/ia64/ia64.c (spill_restore_mem): Likewise.
* config/ia64/ia64.md (conditional move spliiter): Avoid emitting
no insns.
* config/m32r/m32r.c (gen_split_move_double): Use get_insns
instead of gen_sequence.
* config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
(mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
* config/sh/sh.c (sh_need_epilogue): Likewise.
* config/sparc/sparc.md (current_function_calls_alloca, flat): New
attributes.
(setjmp pattern and split): Use them to avoid splitter which emits
no RTL.
* genattrtab.c (main): Emit include of function.h
* config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
get_insns instead of gen_sequence.
* config/cris/cris.c (cris_split_movdx): Likewise.
* emit-rtl.c (emit_insns*): Kill.
(try_split): Expect insn list instead of SEQUENCE.
(make_jump_insn_raw, make_call_insn_raw): Fix comments.
(emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
Make them abort if a SEQUENCE is given and RTL checking is
enabled.
(emit_*_scope): Don't forget to set scope on final insn.
(gen_sequence): Move from here...
* ssa.c (gen_sequence): To here as private function.
* builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
comments.
(expand_builtin_return, expand_builtin_mathfn): Likewise.
(expand_builtin_strlen): Use get_insns instead of gen_sequence.
(expand_builtin_saveregs): Use emit_insn_foo, fix comments.
(expand_builtin_expect_jump): Use get_insns and fix comments.
* calls.c (try_to_integrate): Use emit_insn_foo.
(expand_call, emit_library_call_value_1): Likewise.
* expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
(emit_move_insn_1): Use get_insns instead of gen_sequence.
(expand_expr): Use emit_insn_foo.
* cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
* except.c (build_post_landing_pads): Likewise.
* flow.c (attempt_auto_inc): Likewise.
* stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
* function.c (fixup_var_refs_insn): Use get_insns instead of
gen_sequence.
(fixup_var_refs_1): Likewise and expect insn list from gen_foo.
(fixup_memory_subreg): Use get_insns instead of gen_sequence.
(fixup_stack_1, purge_addressof_1, expand_main_function,
get_arg_pointer_save_area): Likewise.
(optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
expand_function_end): Use emit_insn_foo.
(record_insns, keep_stack_depressed): Work with insn list instead
of SEQUENCE, fix comments.
* ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
noce_try_store_flag_constants, noce_try_store_flag_inc,
noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
noce_try_minmax, noce_try_abs): Use emit_insn_foo.
(noce_process_if_block): Use get_insns instead of gen_sequence.
* optabs.c (add_equal_note): Work with insn list, fix comments.
(expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
(expand_unop, expand_complex_abs, expand_unop_insn,
expand_no_conflict_block): Likewise.
(gen_move_insn): Use get_insns instead of gen_sequence.
(gen_cond_trap): Likewise.
* integrate.c (copy_rtx_and_substitute): Likewise.
(emit_initial_value_sets): Use emit_insn_foo.
* reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
(fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
now that RTL generators give insn lists.
* sibcall.c (replace_call_placeholder): Use emit_insn_foo.
* doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
instead of gen_sequence.
(doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
* explow.c (emit_stack_save, emit_stack_restore): Use get_insns
instead of gen_sequence.
* loop.c (move_movables, emit_prefetch_instructions,
gen_add_mult, check_dbra_loop, gen_load_of_final_value):
Likewise.
(loop_regs_update): Work with insn list instead of SEQUENCE rtl.
(product_cheap_p): Likewise, and add commentary about RTL wastage
here.
* lcm.c (optimize_mode_switching): Use get_insns instead of
gen_sequence.
* profile.c (gen_edge_profiler): Likewise.
* regmove.c (copy_src_to_dest): Likewise.
* reg-stack.c (compensate_edge): Likewise and fix comment.
* gcse.c (process_insert_insn): Likewise.
(insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
* jump.c (delete_prior_computation): Update comment.
* genemit.c (gen_expand, gen_split, main): Use get_insns instead
of gen_sequence, update comments to match.
* recog.c (peephole2_optimize): Work with insn lists instead of
SEQUENCE rtl.
* sched-vis.c (print_pattern): Abort on SEQUENCE.
* unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
Use get_insns instead of gen_sequence.
(copy_loop_body): Likewise and don't emit dummy NOTE.
* genrecog.c: Don't mention SEQUENCE rtl in comments.
* combine.c (try_combine): Expect insn lists from split generator.
* reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
hand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54497 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-11 Roger Sayle <roger@eyesopen.com>
sayle [Tue, 11 Jun 2002 11:21:30 +0000 (11:21 +0000)]
2002-06-11  Roger Sayle  <roger@eyesopen.com>
    Andreas Jaeger <aj@suse.de>

* cfgbuild.c: Update copyright years.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54495 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/m68k/m68k.h (PREDICATE_CODES): Define.
schwab [Tue, 11 Jun 2002 08:52:24 +0000 (08:52 +0000)]
* config/m68k/m68k.h (PREDICATE_CODES): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54494 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-11 Eric Christopher <echristo@redhat.com>
echristo [Tue, 11 Jun 2002 07:26:38 +0000 (07:26 +0000)]
2002-06-11  Eric Christopher  <echristo@redhat.com>

* doc/tm.texi (Run-time Target): Add comment about flag_iso
and strict ANSI.
* config/mips/ecoff.h (CPP_PREDEFINES): Remove.
* config/mips/ecoffl.h: Ditto.
* config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
(CPP_PREDEFINES): Ditto.
* config/mips/elfl64.h: Ditto.
* config/mips/elfl.h: Ditto.
* config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
out until irix header consolidation.
* config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
with SUBTARGET_OS_CPP_BUILTINS.
* config/mips/iris6.h: Ditto.
(CPLUSPLUS_CPP_SPEC): Remove.
* config/mips/linux.h: Ditto.
* config/mips/netbsd.h: Ditto.
* config/mips/openbsd.h: Ditto.
* config/mips/rtems.h: Ditto.
* config/mips/rtems64.h: Ditto.
* config/mips/sni-svr4.h: Ditto.
* config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
ISA_MIPS32, ISA_MIPS64): New defines.
(GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
(TARGET_CPU_CPP_BUILTINS): Define.
(CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
* config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
(movdicc): Remove check for ISA_MIPS32.
 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
sunordered_df, sunordered_sf, sordered_df, sordered_sf,
sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
sunge_sf, sunle_df, sunle_sf): New patterns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54493 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Tue, 11 Jun 2002 07:17:57 +0000 (07:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54492 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Forgotten commit.
neil [Tue, 11 Jun 2002 05:37:40 +0000 (05:37 +0000)]
* Forgotten commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54486 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in: Update cppmain.o.
neil [Tue, 11 Jun 2002 05:36:17 +0000 (05:36 +0000)]
* Makefile.in: Update cppmain.o.
* cpphash.h (struct cpp_reader): Move some members to a
nested structure.
(trad_line): Rename saved_line.
(_cpp_read_logical_line_trad): Update.
(_cpp_remove_overlay): New.
* cppinit.c (cpp_create_reader): No need to set saved_line.
(cpp_destroy): Update.
(cpp_read_main_file): Only overlay if compiling.
* cpplex.c (continue_after_nul): Return false if in directive.
* cpplib.c (EXPAND): New.
(directive_table, SEEN_EOL): Update.
(end_directive): Remove overlay if traditional; don't skip
line in traditional #define.
(prepare_directive_trad): New.
(_cpp_handle_directive, run_directive): Update for traditional
directives.
(lex_macro_node): Simplify, don't use lex_identifier_trad.
* cpplib.h (struct options): Add preprocess_only.
* cppmain.c: Don't include intl.h.
(cpp_preprocess_file): Set options->preprocess_only.
(scan_translation_unit_trad): Fix, and print line numbers.
* cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
save_replacement_text, _cpp_create_trad_definition): Update for
variable renaming.
(_cpp_overlay_buffer): Save line number.
(_cpp_remove_overlay): Rename from restore_buff, restore line.
(_cpp_read_logical_line_trad): Don't handle overlays here.
(scan_out_logical_line): Process directives.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54485 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gthr-win32.h: Wrap all functions in extern "C".
dannysmith [Tue, 11 Jun 2002 05:25:44 +0000 (05:25 +0000)]
* gthr-win32.h: Wrap all functions in extern "C".
(__gthread_key_t): Typedef as unsigned long,
not win32 DWORD.
(__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
(__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
(__gthr_win32_once, __gthr_win32_key_create,
__gthr_win32_key_delete, __gthr_win32_getspecific,
__gthr_win32_setspecific, __gthr_win32_mutex_init_function,
__gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
__gthr_win32_mutex_unlock): Declare.
(__gthread_once,__gthread_key_create,
__gthread_key_delete, __gthread_getspecific,
__gthread_setspecific, __gthread_mutex_init_function,
__gthread_mutex_lock,__gthread_mutex_trylock,
__gthread_mutex_unlock): Call corresponding
__gthr_win32_* extern implementations if #defined
__GTHREAD_HIDE_WIN32API.
* config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
$(srcdir)/config/i386/gthr-win32.c
* config/i386/gthr-win32.c: New implementation file.
(__gthr_win32_once, __gthr_win32_key_create,
__gthr_win32_key_delete, __gthr_win32_getspecific,
__gthr_win32_setspecific, __gthr_win32_mutex_init_function,
__gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
__gthr_win32_mutex_unlock): New functions, based on
static inlines in gthr-win32.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54484 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/xtensa/xtensa.c (override_options): Don't warn about
bwilson [Tue, 11 Jun 2002 03:50:59 +0000 (03:50 +0000)]
    * config/xtensa/xtensa.c (override_options): Don't warn about
        using -fpic or -fPIC when PIC is enabled by default.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54483 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * libjava.lang/PR6520.java: New file. For PR java/6520.
tromey [Tue, 11 Jun 2002 03:50:30 +0000 (03:50 +0000)]
* libjava.lang/PR6520.java: New file.  For PR java/6520.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54482 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcc.c-torture/compile/20001226-1.x: Only xfail for Xtensa
bwilson [Tue, 11 Jun 2002 03:38:32 +0000 (03:38 +0000)]
    * gcc.c-torture/compile/20001226-1.x: Only xfail for Xtensa
        targets if not optimizing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54481 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
sayle [Tue, 11 Jun 2002 03:19:58 +0000 (03:19 +0000)]
* toplev.c (rest_of_compilation): Revert flag_if_conversion change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54480 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
zack [Mon, 10 Jun 2002 22:35:56 +0000 (22:35 +0000)]
* Makefile.in (MACHMODE_H): Add @extra_modes_file@.
* configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
exists, substitute its pathname as @extra_modes_file@, define
EXTRA_MODES_FILE to be an appropriate string to #include it
with, and define EXTRA_CC_MODES to 1.

* machmode.def: Update comments.  Include EXTRA_MODES_FILE if
it's defined.  Get rid of redundancy in calling sequence for
CC; don't use it to define CCmode, to avoid a warning.
* libgcc2.c: Include symcat.h for the sake of machmode.def.

* arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
New files.
* arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.

* doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
defining extra CC modes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54478 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-10 Roger Sayle <roger@eyesopen.com>
sayle [Mon, 10 Jun 2002 22:33:08 +0000 (22:33 +0000)]
2002-06-10  Roger Sayle  <roger@eyesopen.com>
    Andreas Jaeger <aj@suse.de>

* cfgrtl.c (create_basic_block_structure):  Remove index argument
and use last_basic_block++ instead.  (create_basic_block): Update.
* cfgbuild.c (find_basic_blocks_1): Likewise.

* cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
* haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
* sched-ebb.c (schedule_ebbs): Likewise.
* sched-rgn.c (schedule_insns): Likewise.
* ssa-ccp.c (ssa_const_prop): Likewise.
* ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
* toplev.c (rest_of_compilation): Likewise.
* config/ia64/ia64.c (ia64_reorg): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54477 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * simplify-rtx.c (simplify_replace_rtx): Allow replacement
sayle [Mon, 10 Jun 2002 22:29:14 +0000 (22:29 +0000)]
* simplify-rtx.c (simplify_replace_rtx): Allow replacement
of matching registers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54476 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * toplev.c (rest_of_compilation): Disable early if-conversion pass.
sayle [Mon, 10 Jun 2002 22:26:45 +0000 (22:26 +0000)]
* toplev.c (rest_of_compilation): Disable early if-conversion pass.
* gcse.c (bypass_conditional_jumps): Fix typo in setcc test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54475 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/mmix/mmix.h: Improve comments.
hp [Mon, 10 Jun 2002 22:23:03 +0000 (22:23 +0000)]
* config/mmix/mmix.h: Improve comments.
(CPP_SPEC, CPP_PREDEFINES): Don't define.
(TARGET_CPU_CPP_BUILTINS): Define.
(CANONICALIZE_COMPARISON): Don't define, replace with comment.
(PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
unused predicate.
* config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
compiler warning.
(mmix_constant_address_p): Remove another
redundant test before case.
(mmix_canonicalize_comparison): Remove unused function.
(mmix_print_operand_address): Don't test and adjust for operand in
non-canonical format.
(mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
(mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54474 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
zack [Mon, 10 Jun 2002 22:20:47 +0000 (22:20 +0000)]
* config/m32r/m32r.h: Don't define SELECT_CC_MODE.
* config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
* config/m32r/m32r.c: Don't define m32r_select_cc_mode.
(gen_compare): Use CCmode unconditionally.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54473 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR optimization/6759
jakub [Mon, 10 Jun 2002 22:07:45 +0000 (22:07 +0000)]
PR optimization/6759
* cse.c (cse_insn): Fold src_eqv just once, store it folded back into
the REQ_EQUAL note.

* g++.dg/opt/cse1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54469 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR c/6660
jakub [Mon, 10 Jun 2002 21:52:43 +0000 (21:52 +0000)]
PR c/6660
* c-decl.c (grokfield): Allow user defined types if they declare
structs or unions for unnamed fields.

* gcc.dg/20020527-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54466 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR c/6809
jakub [Mon, 10 Jun 2002 21:50:10 +0000 (21:50 +0000)]
PR c/6809
* print-rtl.c (print_mem_expr): Don't crash on unnamed fields.

* gcc.dg/20020530-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54463 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR optimization/6842
jakub [Mon, 10 Jun 2002 21:47:45 +0000 (21:47 +0000)]
PR optimization/6842
* combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
operand subreg cannot be simplified.

* gcc.dg/20020531-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54462 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
jakub [Mon, 10 Jun 2002 21:43:26 +0000 (21:43 +0000)]
* varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
(compare_constant): Likewise.
(output_addressed_constants): Likewise.

* g++.dg/opt/vt1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54459 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
jakub [Mon, 10 Jun 2002 21:36:15 +0000 (21:36 +0000)]
* cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
merge bb with itself.

* gcc.c-torture/compile/20020605-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54456 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
rth [Mon, 10 Jun 2002 21:04:29 +0000 (21:04 +0000)]
    * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
        (builtin_zapnot): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54454 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/alpha/ev5.md: Don't combine shift and mvi insns in one
rth [Mon, 10 Jun 2002 21:03:33 +0000 (21:03 +0000)]
    * config/alpha/ev5.md: Don't combine shift and mvi insns in one
        reservation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54453 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and
ljrittle [Mon, 10 Jun 2002 20:52:12 +0000 (20:52 +0000)]
* acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and
include all required headers for test against older POSIX standard.
(GLIBCPP_CHECK_SETRLIMIT): Likewise.
(ac_setrlimit): Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/testsuite_hooks.cc: Reorder and include all
required headers for use against older POSIX standard.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54452 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-10 Eric Christopher <echristo@redhat.com>
echristo [Mon, 10 Jun 2002 20:00:54 +0000 (20:00 +0000)]
2002-06-10  Eric Christopher  <echristo@redhat.com>

* config/i386/i386.c (ix86_osf_output_function_prologue): Remove
prototype and function.
(TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
(call_insn_operand): Remove half pic references.
(legitimate_address_p): Ditto.
* config/i386/i386.h: Remove half pic defines.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54451 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoFix typo in comment.
rth [Mon, 10 Jun 2002 19:35:27 +0000 (19:35 +0000)]
Fix typo in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54450 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-10 Eric Christopher <echristo@redhat.com>
echristo [Mon, 10 Jun 2002 19:12:10 +0000 (19:12 +0000)]
2002-06-10  Eric Christopher  <echristo@redhat.com>

* doc/extend.texi (Return Address): Add note explaining the side-
effects of inlining on __builtin_return_address.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54449 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
tromey [Mon, 10 Jun 2002 18:54:31 +0000 (18:54 +0000)]
* Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
(c-common.o): Depend on langhooks.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54448 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cpphash.h (_cpp_read_logical_line_trad,
neil [Mon, 10 Jun 2002 17:20:30 +0000 (17:20 +0000)]
* cpphash.h (_cpp_read_logical_line_trad,
_cpp_expansions_different_trad): Update prototypes.
* cpplex.c (continue_after_nul): New.
* cppmain.c: Include cpphash.h.
(scan_translation_unit_trad): New.
(cpp_preprocess_file): Call it.
* cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
overlay.
(_cpp_expansions_different_trad): Update prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54446 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago Fix cfi generation for SH[1-4]:
amylaar [Mon, 10 Jun 2002 17:15:13 +0000 (17:15 +0000)]
Fix cfi generation for SH[1-4]:

* sh.c (frame_insn): New function.
(output_stack_adjust): Add parameter emit_fn.  All callers changed.
(push): Now returns rtx.  Use frame_insn.
(sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
of a DF register.
* sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54445 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * include/private/gc_locks.h (GC_test_and_set): Support
hboehm [Mon, 10 Jun 2002 17:10:21 +0000 (17:10 +0000)]
* include/private/gc_locks.h (GC_test_and_set): Support
Linux/mips.
(GC_TEST_AND_SET_DEFINED): Likewise.

* include/private/gcconfig.h (DYNAMIC_LOADING): Defined for
Linux/mips.
(DATAEND): Likewise.
(LINUX_STACKBOTTOM): Likewise.
(STACKBOTTOM): Removed for Linux/mips.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54444 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
zack [Mon, 10 Jun 2002 16:58:36 +0000 (16:58 +0000)]
* Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
and gtype-desc.c.
(mostlyclean): Delete specs.h, options.h, gencheck.h here...
(distclean): ... not here.  But do delete all testsuite/*.log,
testsuite/*.sum files here.  Delete mkheaders.  Delete
po/*.gmo and the testsuite directory in a split tree build.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54443 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * alias.c (static_reg_base_value): New to hold RTL for
law [Mon, 10 Jun 2002 16:32:45 +0000 (16:32 +0000)]
* alias.c (static_reg_base_value): New to hold RTL for
items allocated once per function for the aliasing code.
(init_alias_once_per_function): Initialize static_reg_base_value.
(init_alias_analysis): Avoid throw-away allocations of RTL by
using pre-computed values in static_reg_base_value.
* function.c (prepare_function_start): Call
init_alias_once_per_function appropriately.
* rtl.h (init_alias_once_per_function): Declare.
* caller-save (init_caller_save): Restructure slightly to
avoid lots of silly RTL generation.
* expr.c (init_expr_once): Likewise.
* reload1.c (reload_cse_regs_1): Allocate throw-away register
RTL object here.  Pass it into children.
(reload_cse_simplify_operands): Use passed-in register RTL
object.
(reload_cse_simplify): Pass through throw-away register
RTL object.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54442 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-10 Daniel Berlin <dberlin@dberlin.org>
dberlin [Mon, 10 Jun 2002 13:37:24 +0000 (13:37 +0000)]
2002-06-10  Daniel Berlin  <dberlin@dberlin.org>

* Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54440 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcc.c (process_command): Avoid assignment to read-only location.
rsandifo [Mon, 10 Jun 2002 12:27:55 +0000 (12:27 +0000)]
* gcc.c (process_command): Avoid assignment to read-only location.
Fix sizeof calculation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54439 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Mon, 10 Jun 2002 07:23:14 +0000 (07:23 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54438 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cpphash.h (struct cpp_macro): Put comments on their own lines.
neil [Mon, 10 Jun 2002 06:03:13 +0000 (06:03 +0000)]
* cpphash.h (struct cpp_macro): Put comments on their own lines.
(_cpp_expansions_different_trad): New.
* cppmacro.c (warn_of_redefinition): Fix for traditional case.
* cpptrad.c (canonicalize_text): New.
(scan_out_logical_line): Handle no arguments correctly.
(save_replacement_text): Commit memory when finished.
(_cpp_expansions_different_trad): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54432 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago Don't use RTL inlining. Fix for PR java/6820.
bryce [Mon, 10 Jun 2002 05:11:42 +0000 (05:11 +0000)]
Don't use RTL inlining. Fix for PR java/6820.
* lang.c (LANG_HOOKS_POST_OPTIONS): Define.
(flag_really_inline): New.
(java_decode_option): Set flag_really_inline if -finline-functions
is seen.
(java_post_options): New function. Turn off inlining unless
flag_really_inline is set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54430 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * configure.host: Disable hash synchronization and slow_pthread_self
bryce [Mon, 10 Jun 2002 03:50:41 +0000 (03:50 +0000)]
* configure.host: Disable hash synchronization and slow_pthread_self
for cygwin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54428 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gjavah.c (throwable_p): Accept argument as either a classname or
bryce [Mon, 10 Jun 2002 03:47:36 +0000 (03:47 +0000)]
* gjavah.c (throwable_p): Accept argument as either a classname or
signature fragment. Create null-terminated classname string for super
when calling itself recursively.
(decode_signature_piece): Skip first character from class name
signature when calling throwable_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54427 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoAdd more cscope data files
zack [Mon, 10 Jun 2002 02:36:06 +0000 (02:36 +0000)]
Add more cscope data files

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54426 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoFixes to make treelang worg with PCH gengtype.c changes.
timjosling [Mon, 10 Jun 2002 00:56:49 +0000 (00:56 +0000)]
Fixes to make treelang worg with PCH gengtype.c changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54425 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoMake configure.in check that languages specified were found.
timjosling [Sun, 9 Jun 2002 23:33:49 +0000 (23:33 +0000)]
Make configure.in check that languages specified were found.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54418 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (install-driver): Install driver as
geoffk [Sun, 9 Jun 2002 23:20:08 +0000 (23:20 +0000)]
* Makefile.in (install-driver): Install driver as
$(target_alias)-gcc-$(version).
* gcc.c (spec_version): Make const.
(process_command): Handle -V and -b by using exec.
* doc/invoke.texi (Target Options): Restore -V option,
update docs for -b option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54417 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoForgot to commit on Friday.
law [Sun, 9 Jun 2002 22:45:01 +0000 (22:45 +0000)]
Forgot to commit on Friday.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54416 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDoc fixes for treelang, in gcc/doc directory.
timjosling [Sun, 9 Jun 2002 22:40:14 +0000 (22:40 +0000)]
Doc fixes for treelang, in gcc/doc directory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54415 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/cris/cris.c: Include ggc.h
hp [Sun, 9 Jun 2002 20:44:26 +0000 (20:44 +0000)]
* config/cris/cris.c: Include ggc.h

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54413 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cpphash.h (_cpp_push_text_context): Update.
neil [Sun, 9 Jun 2002 20:04:17 +0000 (20:04 +0000)]
* cpphash.h (_cpp_push_text_context): Update.
(_cpp_arguments_ok): New.
* cppmacro.c (_cpp_arguments_ok): New, split out from...
(collect_args): ...here.
(_cpp_push_text_context): Change inputs.
* cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
replace_args_and_push): New.
(lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
Don't use IS macros directly.
(scan_out_logical_line): Handle function-like macro argument
collection.
(push_replacement_text): Update.
(replacement_length): Remove.
(_cpp_create_trad_definition): Don't skip whitespace before
checking for '('.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54412 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/avr/avr.c (avr_mcu_types): Update for new devices.
marekm [Sun, 9 Jun 2002 18:06:10 +0000 (18:06 +0000)]
* config/avr/avr.c (avr_mcu_types): Update for new devices.
* config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
(LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
* config/avr/avr.md ("type" and "length" attributes): New type
"xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
output a single "call" or "rcall" insn depending on device size.
* config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54410 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago- Add PROCESSOR_DEFAULT64 changelog entry.
dje [Sun, 9 Jun 2002 17:25:49 +0000 (17:25 +0000)]
- Add PROCESSOR_DEFAULT64 changelog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54409 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago- Add PROCESSOR_DEFAULT64 as well.
dje [Sun, 9 Jun 2002 17:24:45 +0000 (17:24 +0000)]
- Add PROCESSOR_DEFAULT64 as well.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54408 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * encoding.c (objc_layout_structure_next_member): Remove unused
aj [Sun, 9 Jun 2002 16:46:01 +0000 (16:46 +0000)]
* encoding.c (objc_layout_structure_next_member): Remove unused
variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54406 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
dje [Sun, 9 Jun 2002 15:05:09 +0000 (15:05 +0000)]
    * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
        synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
        assembler option.
        (CPP_CPU_SPEC): Add power3 and power4.
        (PROCESSOR_DEFAULT): Change to 604e.
        * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
        (CPP_CPU_SPEC): Similar additions.
        (enum process_type): Add POWER4.
        (RTX_COSTS): Add POWER4.
        (CPP_CPU_SPEC): Similar additions.
        * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
        * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
        (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
        branch adjustment.
        (rs6000_issue_rate): Add Power4.
        * config/rs6000/rs6000.md (cpu attr): Add power4.
        (iu compare): Remove 604, 604e, 620, 630.
        Add basic Power4 scheduling information.
        (mfcr/mtcrf): Change type attribute to cr_logical.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54405 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Sun, 9 Jun 2002 07:20:22 +0000 (07:20 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54404 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
ghazi [Sun, 9 Jun 2002 02:40:08 +0000 (02:40 +0000)]
* gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
ATTRIBUTE_PRINTF_2.
* gengtype-lex.l: Fix format specifier warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54394 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
ghazi [Sun, 9 Jun 2002 02:12:21 +0000 (02:12 +0000)]
* genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
not isspace.
* gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
lieu of isspace/IDchar.
* gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
* read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
ISSPACE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54392 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* configure.in (vax-*-netbsd*): Re-enable gas.
thorpej [Sun, 9 Jun 2002 01:34:39 +0000 (01:34 +0000)]
* configure.in (vax-*-netbsd*): Re-enable gas.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54391 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (LIBCPP_OBJS): Take out version.o.
zack [Sun, 9 Jun 2002 00:26:31 +0000 (00:26 +0000)]
* Makefile.in (LIBCPP_OBJS): Take out version.o.
* cpphash.h (cpp_reader): Take out print_version member.
* cppinit.c: (cpp_handle_option): Don't do anything with
-version.  Just set help_only for --version, --target-help.
Just set verbose option for -v.
(cpp_post_options): Don't print a version string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54390 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
marekm [Sat, 8 Jun 2002 20:38:15 +0000 (20:38 +0000)]
* config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
(avr_section_type_flags): New, handle .noinit* sections.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54389 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
thorpej [Sat, 8 Jun 2002 17:51:28 +0000 (17:51 +0000)]
* config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
and include netbsd_entry_point.
(SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
(NETBSD_ENTRY_POINT): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54388 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
thorpej [Sat, 8 Jun 2002 17:47:20 +0000 (17:47 +0000)]
* config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
if not already defined.
(EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54387 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/avr/avr.c (avr_regs_to_save): No need to save any registers
marekm [Sat, 8 Jun 2002 17:25:43 +0000 (17:25 +0000)]
* config/avr/avr.c (avr_regs_to_save): No need to save any registers
in a noreturn function.
(avr_output_function_prologue, avr_output_function_epilogue):
Correct function size calculation.  Do not crash on empty function.
(avr_output_function_epilogue): No need for epilogue after a BARRIER.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54386 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
thorpej [Sat, 8 Jun 2002 17:23:40 +0000 (17:23 +0000)]
* config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
netbsd_link_spec and netbsd_entry_point.
(LINK_SPEC): Use %(netbsd_link_spec).
(NETBSD_ENTRY_POINT): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54385 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-06-08 H.J. Lu (hjl@gnu.org)
hjl [Sat, 8 Jun 2002 16:34:39 +0000 (16:34 +0000)]
2002-06-08  H.J. Lu  (hjl@gnu.org)

* jcf-path.c (jcf_path_init): Allocate 1 more byte for string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54384 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
thorpej [Sat, 8 Jun 2002 16:31:14 +0000 (16:31 +0000)]
* config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
linker emulation.
(LINK_ARCH64_SPEC): Likewise.
(LINK_SPEC, NETBSD_ENTRY_POINT): Define.
(SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54382 138bc75d-0d04-0410-961f-82ee72b054a4