platform/upstream/linaro-gcc.git
19 years ago Fix PR tree-optimization/21520
dberlin [Thu, 12 May 2005 22:13:00 +0000 (22:13 +0000)]
Fix PR tree-optimization/21520
* tree-ssa-pre.c (phi_translate): Use fully_constant_expression
to attempt to fold constants.

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

19 years ago * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
kkojima [Thu, 12 May 2005 21:45:05 +0000 (21:45 +0000)]
* config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
only when TARGET_ADJUST_UNROLL_MAX is defined.
(general_movsrc_operand): Use the C style comment.
(ua_offset): Use prototype.

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

19 years ago * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
rakdver [Thu, 12 May 2005 19:41:10 +0000 (19:41 +0000)]
* tree-ssa-loop-im.c (struct mem_ref): Add field "next".
(struct hmr_data, hoist_memory_reference, memref_del,
struct fmrv_data): Removed.
(hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
(gather_mem_refs, gather_mem_refs_stmt): Add new references to the
list.
(find_more_ref_vops): Traverse the list of memory references.
(determine_lsm_loop): Work with the list of memory references instead
of traversing the hashtable.

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

19 years ago libiberty.h: Do not define empty basename prototype.
sje [Thu, 12 May 2005 19:29:53 +0000 (19:29 +0000)]
libiberty.h: Do not define empty basename prototype.

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

19 years ago * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
hubicka [Thu, 12 May 2005 19:29:21 +0000 (19:29 +0000)]
* except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
duplicate_eh_regions): New functions, based on old
implementation removed with RTL inliner.
(reachable_next_level): Modify behaviour pre-inline.
* except.h (duplicate_eh_regions_map, duplicate_eh_regions):
Declare.
* function.h (struct function): Add after_inlining flag.
* tree-optimize.c (tree_rest_of_compilation): Set it.
* tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
when needed.
* tree-cfg.c (label_to_block_fn): Deal with cases where
label was never insterted into code.

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

19 years agolibcpp:
zack [Thu, 12 May 2005 18:31:38 +0000 (18:31 +0000)]
libcpp:
* directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
(do_sccs): Delete function definition, #define to do_ident.
(do_ident): Don't hardwire directive name.
gcc:
* doc/cpp.texi: Document that #sccs is a synonym for #ident.

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

19 years ago * trans-types.c (gfc_is_nodesc_array): Remove redundant check.
tobi [Thu, 12 May 2005 18:19:37 +0000 (18:19 +0000)]
* trans-types.c (gfc_is_nodesc_array): Remove redundant check.

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

19 years ago2005-05-12 Thomas Koenig <Thomas.Koenig@online.de>
tkoenig [Thu, 12 May 2005 17:50:33 +0000 (17:50 +0000)]
2005-05-12  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/21324
        * runtime/memory.c:  Don't define GFC_CLEAR_MEMORY (it's a
        performance hog).
        * io/open.c (new_unit): Zero freshly allocated memory for
        unit structure.
        * io/unit.c (init_units):  Zero freshly allocated memory for
        STDIN, STDOUT and STDERR.
        * io/unix.c (open_internal):  Zero freshly allocated memory
        for unix_stream.
        (fd_to_stream):  Likewise.

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

19 years ago2005-05-12 Daniel Berlin <dberlin@dberlin.org>
dberlin [Thu, 12 May 2005 17:11:16 +0000 (17:11 +0000)]
2005-05-12  Daniel Berlin  <dberlin@dberlin.org>

Fix PR tree-optimization/21532
* tree-ssa-pre.c (create_expression_by_pieces): stmt
needs to go onto the inserted_exprs list.

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

19 years ago./:
ian [Thu, 12 May 2005 13:06:15 +0000 (13:06 +0000)]
./:
* c-common.h (statement_code_p): Don't declare.
(STATEMENT_CODE_P): Don't define.
(INIT_STATEMENT_CODES): Don't define.
* c-common.c (statement_code_p): Don't define.
cp/:
* cp-tree.h (cp_stmt_codes): Don't define.
(statement_code_p): Declare.
(STATEMENT_CODE_P): Define.
* lex.c (statement_code_p): Define.
(cxx_init): Use actual codes in stmt_codes initializer, not
cp_stmt_codes macro.  Initialize statement_code_p directly, rather
than using INIT_STATEMENT_CODES.

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

19 years agoconfig/
ebotcazou [Thu, 12 May 2005 12:22:08 +0000 (12:22 +0000)]
config/
        PR bootstrap/21230
        * warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Add
        double quotes around GCC variable.

libcpp/
        PR bootstrap/21230
        * configure: Regenerate.

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

19 years agoRevert latest accidental commit.
ebotcazou [Thu, 12 May 2005 12:07:07 +0000 (12:07 +0000)]
Revert latest accidental commit.

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

19 years ago * config/sparc/sparc.h: Remove dead code.
ebotcazou [Thu, 12 May 2005 11:43:05 +0000 (11:43 +0000)]
* config/sparc/sparc.h: Remove dead code.
* config/sparc/sparc.c (sparc_compute_frame_size): Use
FIRST_PARM_OFFSET for the size of the register window area.
(emit_save_regs): Rename into emit_save_or_restore_regs.
Add 'action' parameter.  Use 4095 as upper bound for the offset.
Pass 'action' to save_or_restore_regs.
(emit_restore_regs): Delete.
(sparc_expand_prologue): Call emit_save_or_restore_regs.
(sparc_expand_epilogue): Likewise.
* config/sparc/sparc.md (mode macro P): Move.
(movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
(mov<V32:mode> expander): Move to the top of the V32 section.
(movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
(movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
(sibcall_epilogue): Move.

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

19 years ago PR target/21501
rearnsha [Thu, 12 May 2005 10:36:03 +0000 (10:36 +0000)]
PR target/21501
* arm.c (arm_gen_constant): Sign-extend intermediate values when
synthesizing a constant of the difference of two immediates.

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

19 years ago * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
rearnsha [Thu, 12 May 2005 08:05:11 +0000 (08:05 +0000)]
* arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
(negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
the alternatives using integer registers into the appropriate
primitives.

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

19 years ago2005-05-11 Eli Zaretskii <eliz@gnu.org>
ian [Thu, 12 May 2005 03:44:58 +0000 (03:44 +0000)]
2005-05-11  Eli Zaretskii  <eliz@gnu.org>

* pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
sys/stat.h.
(pex_init): Fix last argument to pex_init_common.
(pex_djgpp_exec_child): Remove leading underscore from _open,
_dup, _dup2, _close, and _spawnv/_spawnvp.  Replace `program',
which is undeclared, with `executable', which was unused.  Remove
unused variable `e'.  Fix casting of last arg to spawnv/spawnvp.
(pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.

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

19 years ago2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
dberlin [Thu, 12 May 2005 03:01:44 +0000 (03:01 +0000)]
2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>

* bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
* bitmap.h: Fixed comments.

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

19 years agogcc/java:
tromey [Thu, 12 May 2005 01:27:15 +0000 (01:27 +0000)]
gcc/java:
* gcj.texi (Code Generation): Document -fbootstrap-classes.
* decl.c (GCJ_BOOTSTRAP_LOADER_ADDITION): New macro.
(parse_version): Use it.
* lang.opt (-fbootstrap-classes): New option.
libjava:
* external/w3c_dom/Makefile.in: Rebuilt.
* external/w3c_dom/Makefile.am (libw3c_gcj_la_GCJFLAGS): Added
-fbootstrap-classes.
* external/sax/Makefile.in: Rebuilt.
* external/sax/Makefile.am (libsax_gcj_la_GCJFLAGS): Added
-fbootstrap-classes.
* java/lang/Class.h (_Jv_CopyClassesToSystemLoader): Declare as
friend.
* java/lang/natVMClassLoader.cc (getSystemClassLoaderInternal):
Call _Jv_CopyClassesToSystemLoader.
* java/lang/natClassLoader.cc (system_class_list): New global.
(_Jv_RegisterClassHookDefault): Handle bootstrap and system
classes differently.
(_Jv_CopyClassesToSystemLoader): New function.
(SYSTEM_LOADER_INITIALIZED): New define.
* include/jvm.h (GCJ_BOOTSTRAP_LOADER_ADDITION): New define.
(_Jv_CheckABIVersion): Use it.
(_Jv_ClassForBootstrapLoader): New function.
* Makefile.in: Rebuilt.
* Makefile.am (AM_GCJFLAGS): Added -fbootstrap-classes.

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

19 years agoDaily bump.
gccadmin [Thu, 12 May 2005 00:16:20 +0000 (00:16 +0000)]
Daily bump.

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

19 years agofortran/
tobi [Wed, 11 May 2005 22:32:04 +0000 (22:32 +0000)]
fortran/
PR fortran/21260
* io.c (check_format): Look for literal characters inside
hollerith constant.
testsuite/
PR fortran/21260
* gfortran.dg/hollerith_1.f90: New test.

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

19 years ago PR target/21412
rth [Wed, 11 May 2005 21:34:19 +0000 (21:34 +0000)]
    PR target/21412
        * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
        (ia64_cannot_force_const_mem): New.
        (tls_symbolic_operand_type): New.
        (ia64_legitimate_constant_p): New.
        (ia64_expand_load_address): Return true on success.  Improve
        checks for when we should not split.
        (ia64_expand_tls_address): New addend operand.  Distribute it
        as appropriate to the tls_kind.  Delay referencing gp.
        (ia64_expand_move): Split symbolic addend as necessary.  Handle
        tls symbols with addends.
        * config/ia64/ia64-protos.h: Update.
        * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
        p0, f0, f1, and r13.
        (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
        * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
        (symbolic_operand splitter): Pass everything through
        ia64_expand_load_address and FAIL or DONE as appropriate.
        (load_fptr): Only accept after reload.
        (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
        load_symptr_low, load_ltoff_dtpmod,
        (load_dtpmod): New.
        (load_dtprel): Only accept tls symbols.
        (load_dtprel64, load_dtprel22): Likewise.
        (load_tprel, load_tprel64, load_tprel22): Likewise.
        (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
        (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
        (add_dtprel14, add_dtprel22): Likewise.
        (add_tprel, add_tprel14, add_tprel22): Likewise.
        * config/ia64/predicates.md (small_addr_symbolic_operand): New.
        (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
        (got_symbolic_operand): Check CONST offsets.
        (tls_symbolic_operand, ld_tls_symbolic_operand): New.
        (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
        (move_operand): Don't handle tls here.  Check CONST offsets.

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

19 years ago * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
rsandifo [Wed, 11 May 2005 20:03:39 +0000 (20:03 +0000)]
* config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
Remove hilo_operand check.
(rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
* config/mips/predicates.md (hilo_operand): Delete.

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

19 years ago * config/mips/sr71k.md, config/mips/7000.md: Reformat.
rsandifo [Wed, 11 May 2005 19:02:35 +0000 (19:02 +0000)]
* config/mips/sr71k.md, config/mips/7000.md: Reformat.

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

19 years ago PR tree-optimizer/18472
kazu [Wed, 11 May 2005 18:27:33 +0000 (18:27 +0000)]
PR tree-optimizer/18472
* tree-if-conv.c (tree_if_convert_stmt,
if_convertible_modify_expr_p): Don't handle GOTO_EXPR.

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

19 years agoFix incomplete ChagneLog from previous checkin.
tobi [Wed, 11 May 2005 17:04:32 +0000 (17:04 +0000)]
Fix incomplete ChagneLog from previous checkin.

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

19 years ago * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
hubicka [Wed, 11 May 2005 16:25:30 +0000 (16:25 +0000)]
* Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
(GTFILES): add except.h.
* except.c (eh_status): Add throw_stmt_table.
(set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
* except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
lookup_stmt_eh_region_fn): Declare.
(throw_stmt_node): New structure.
(set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
* gengtype.c (open_base_files): Add except.h to inlines.
* tree-eh.c (throw_stmt_node): Kill.
(record_stmt_eh_region): Update.
(add_stmt_to_eh_region_fn): Break out from ...
(add_stmt_to_eh_region): ... here.
(remove_stmt_from_eh_region_fn): Break out from ...
(remove_stmt_from_eh_region): ... here.
(lookup_stmt_eh_region_fn): Break out from ...
(lookup_stmt_eh_region): ... here.
(honor_protect_cleanup_actions): Use build_resx.
(lower_try_finally_onedest): Likewise.
(lower_try_finally_copy): Likewise.
(lower_try_finally_switch): Likewise.
(lower_eh_constructs): Update eh table construction.
* tree.c (build_resx): New.
* tree.h (build_resx): Declare.

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

19 years ago2005-05-11 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 11 May 2005 16:08:27 +0000 (16:08 +0000)]
2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>

* libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
is needed.

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

19 years ago * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
kazu [Wed, 11 May 2005 16:06:36 +0000 (16:06 +0000)]
* tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
redundant code.

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

19 years ago * fold-const.c, libgcov.c: Fix comment typos.
kazu [Wed, 11 May 2005 15:21:28 +0000 (15:21 +0000)]
* fold-const.c, libgcov.c: Fix comment typos.

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

19 years ago * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
drow [Wed, 11 May 2005 14:59:09 +0000 (14:59 +0000)]
* config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
* config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
default definition.
(FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.

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

19 years agofortran/
tobi [Wed, 11 May 2005 14:52:51 +0000 (14:52 +0000)]
fortran/
* resolve.c (resolve_symbol): Copy 'pointer' and 'dimension'
attribute from result symbol to function symbol.
testsuite/
* gfortran.dg/func_result_2.f90: New test.

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

19 years ago PR bootstrap/21481
nathan [Wed, 11 May 2005 13:40:12 +0000 (13:40 +0000)]
PR bootstrap/21481
* crtstuff.c: Include auto-host.h again, for now.

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

19 years ago * config/mips/24k.md: Remove trailing whitespace.
rsandifo [Wed, 11 May 2005 13:08:50 +0000 (13:08 +0000)]
* config/mips/24k.md: Remove trailing whitespace.

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

19 years ago * config/mips/mips.md (type): Add imul3.
rsandifo [Wed, 11 May 2005 12:52:58 +0000 (12:52 +0000)]
* config/mips/mips.md (type): Add imul3.
(length, hazard, may_clobber_hilo): Check for imul3.
(mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
(*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
* config/mips/24k.md (r24k_int_mul3): Enable this reservation
for a 3 operand mul and its bypasses.
* config/mips/3000.md (r3k_imul): Add imul3 to reservations.
* config/mips/4000.md (r4k_imul): Likewise.
* config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
* config/mips/4130.md (vr4130_class, vr4130_mulsi)
(vr4130_muldi): Likewise.
* config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
* config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
* config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
* config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
(ir_vr54_imadd_si): Likewise.
* config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
* config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
(rm7_impy_di): Likewise.
* config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
* config/mips/generic.md (generic_imul): Likewise.
* config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
* config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.

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

19 years ago PR middle-end/20371:
amylaar [Wed, 11 May 2005 12:24:43 +0000 (12:24 +0000)]
PR middle-end/20371:
* tree.h (record_layout_info_s): New member prev_packed.
* stor-layout.c (update_alignment_for_field): Fix comment about
KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
we start it properly aligned.
(place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
to update_alignment_for_field, and recompute it afterwards using
the alignment of the record.
When a packed bitfield precedes an MS bitfield, don't add padding
at the end of the packed bitfield on behalf of the base type of
the packed bit field.
Don't adjust rli->bitpos at the end
of an MS bitfield run if we already adjusted bitpos/offset for an
alignment as large or larger than the bitfield type size.
Take possible record alignment > BIGGEST_ALIGNMENT into account
when calculating actual_align.
Only put packed buit fields into rli->prev_field if they end up
suitably aligned.
Also set rli->remaining_in_alignment when we re-set rli->prev_field.
Update rli->remaining_in_alignment when we have already started a
run of bit fields and we process a packed bit field.

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

19 years ago * tree-data-ref.c (find_data_references_in_loop): Give up when
spop [Wed, 11 May 2005 11:03:31 +0000 (11:03 +0000)]
* tree-data-ref.c (find_data_references_in_loop): Give up when
the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
may embed arbitrary side effects.
Remove the assumption that GIMPLE form contains a single array
access per statement.
When the statement contains virtual operands, fail if it is not
a MODIFY_EXPR or a CALL_EXPR.
Return after the dont know node is inserted.

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

19 years ago PR fortran/19478
fxcoudert [Wed, 11 May 2005 10:34:05 +0000 (10:34 +0000)]
PR fortran/19478
* io/unix.c (fd_truncate): update positions when ftruncate
fails (like writing to /dev/null).
* gfortran.dg/dev_null.f90: New test.

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

19 years ago * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
rearnsha [Wed, 11 May 2005 10:13:23 +0000 (10:13 +0000)]
* arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
* gcc.dg/arm-vfp1.c: Revert last change.

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

19 years ago2005-05-11 Richard Guenther <rguenth@gcc.gnu.org>
rguenth [Wed, 11 May 2005 08:14:44 +0000 (08:14 +0000)]
2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>

PR middle-end/19807
PR tree-optimization/19639
* fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
and generic summands for char* as s * delta, too, folding &a[i]
CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
for comparison of steps.  Convert types for index addition.
(fold_binary): Adjust the callers to always dispatch to
try_move_mult_to_index.
* tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
expr with non-gimple ARRAY_REF offset.

* g++.dg/tree-ssa/pr19807.C: New testcase.

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

19 years ago2005-05-11 Richard Guenther <rguenth@gcc.gnu.org>
rguenth [Wed, 11 May 2005 07:43:33 +0000 (07:43 +0000)]
2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>

* fold-const.c (fold_indirect_ref_1): Avoid removing
NOP_EXPRs with type qualifiers like const.

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

19 years ago PR c/21502
rth [Wed, 11 May 2005 07:33:31 +0000 (07:33 +0000)]
    PR c/21502
        * c-decl.c (finish_decl): Propagate the completed array type of
        a global variable into the binding.

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

19 years ago PR libfortran/21471
fxcoudert [Wed, 11 May 2005 05:56:20 +0000 (05:56 +0000)]
PR libfortran/21471
* open.c (new_unit): Take care of the case where POSITION_APPEND
is specified (sseek to the end, and set u>-endfile).
* gfortran.dg/append-1.f90: New test.

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

19 years ago * Makefile.in (gtype-desc.o, build/genautomata.o)
kraai [Wed, 11 May 2005 05:01:34 +0000 (05:01 +0000)]
* Makefile.in (gtype-desc.o, build/genautomata.o)
(build/varray.o): Depend on $(VARRAY_H).

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

19 years ago * tree-optimize.c (init_tree_optimization_passes): Re-organize
dnovillo [Wed, 11 May 2005 02:24:44 +0000 (02:24 +0000)]
* tree-optimize.c (init_tree_optimization_passes): Re-organize
optimization passes to do an initial batch of scalar cleanups.

testsuite/ChangeLog

* gcc.dg/pr18501.c: XFAIL.
* gcc.dg/tree-ssa/loop-4.c: Fix expected pattern.
* gcc.dg/tree-ssa/pr20913.c: Change to link-time test.
* gcc.dg/tree-ssa/ssa-ccp-2.c: Change to a .optimized scan.
* gcc.dg/tree-ssa/ssa-ccp-7.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-9.c: Likewise.
* gcc.dg/tree-ssa/ssa-dom-ccp-1.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-7.c: Change to a .fre scan.
* gcc.dg/tree-ssa/ssa-pre-8.c: Likewise.

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

19 years ago2005-05-11 Paul Brook <paul@codesourcery.com>
pbrook [Wed, 11 May 2005 01:39:32 +0000 (01:39 +0000)]
2005-05-11  Paul Brook  <paul@codesourcery.com>

* Makefile.in: Regenerate dependencies.

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

19 years agoDaily bump.
gccadmin [Wed, 11 May 2005 00:16:18 +0000 (00:16 +0000)]
Daily bump.

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

19 years ago * read-rtl.c (struct macro_traverse_data): Define.
ian [Tue, 10 May 2005 22:40:37 +0000 (22:40 +0000)]
* read-rtl.c (struct macro_traverse_data): Define.
(map_attr_string): New static function, broken out of
apply_macro_to_string.
(mode_attr_index, apply_mode_maps): New static functions.
(apply_macro_to_string): Call map_attr_string.
(apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
all callers.
(apply_macro_traverse): Expect data to point to a struct
macro_traverse_data.
(read_rtx): Add mode_maps local variable.  Use mode_traverse_data
to pass data through htab_traverse.
(read_rtx_1): Add mode_maps parameter.  Change all callers.
Handle mode names which are attribute strings.
* doc/md.texi (Substitutions): Rename from String Substitutions.
Change references.  Document using attributes as modes.

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

19 years ago * tree-cfg.c (tree_duplicate_sese_region): Update profile.
rakdver [Tue, 10 May 2005 22:33:30 +0000 (22:33 +0000)]
* tree-cfg.c (tree_duplicate_sese_region): Update profile.
* tree-optimize.c (init_tree_optimization_passes) Swap
pass_ch and pass_profile.
* tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
here.  Remove rewrite_into_loop_closed_ssa call.

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

19 years ago * gfortran.dg/return_1.f90: Fix dg annotation.
tobi [Tue, 10 May 2005 22:32:38 +0000 (22:32 +0000)]
* gfortran.dg/return_1.f90: Fix dg annotation.

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

19 years agoFix previous buggy checkin to invoke.texi.
tobi [Tue, 10 May 2005 22:12:04 +0000 (22:12 +0000)]
Fix previous buggy checkin to invoke.texi.

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

19 years agogcc/fortran/
tobi [Tue, 10 May 2005 22:06:55 +0000 (22:06 +0000)]
gcc/fortran/
PR fortran/20178
* gfortran.h (gfc_option): Add flag_f2c.
* invoke.texi: Document '-ff2c' command line option.  Adapt
documentation for '-fno-second-underscore' and '-fno-underscoring'.
* lang.opt (ff2c): New entry.
* options.c (gfc-init_options): Set default calling convention
to -fno-f2c.  Mark -fsecond-underscore unset.
(gfc_post_options): Set -fsecond-underscore if not explicitly set
by user.
(handle_options): Set gfc_option.flag_f2c according to requested
calling convention.
* trans-decl.c (gfc_get_extern_function_decl): Use special f2c
intrinsics where necessary.
(gfc_trans_deferred_vars): Change todo error to assertion.
* trans-expr.c (gfc_conv_variable): Dereference access
to hidden result argument.
(gfc_conv_function_call): Add hidden result argument to argument
list if f2c calling conventions requested.  Slightly restructure
tests.  Convert result of default REAL function to requested type
if f2c calling conventions are used.  Dereference COMPLEX result
if f2c cc are used.
* trans-types.c (gfc_sym_type):  Return double for default REAL
function if f2c cc are used.
(gfc_return_by_reference): Slightly restructure logic.  Return
COMPLEX by reference depending on calling conventions.
(gfc_get_function_type): Correctly make hidden result argument a
pass-by-reference argument for COMPLEX.  Remove old code which does
this for derived types.
libgfortran/
PR fortran/20178
* Makefile.am (gfor_specific_src): Add 'intrinsics/f2c_intrinsics.F90'
to dependencies.
* Makefile.in: Regenerate.
* intrinsics/f2c_specific.F90: New file.
gcc/testsuite/
PR fortran/20178
* gfortran.dg/f2c_1.f90, gfortran.dg/f2c_2.f90,
gfortran.dg/f2c_3.f90: New tests.

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

19 years ago2005-05-10 Adrian Straetling <straetling@de.ibm.com>
uweigand [Tue, 10 May 2005 20:43:36 +0000 (20:43 +0000)]
2005-05-10  Adrian Straetling  <straetling@de.ibm.com>

* config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
function.
(legitimate_reload_constant_p): Add check for const double zero.
* config/s390/s390.md: Add comment for constraint letter 'G'.
("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
attributes for new case.
* config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
s390_const_double_ok_for_constraint_p.
* config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
Add prototype.

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

19 years ago PR tree-optimization/21170
kazu [Tue, 10 May 2005 20:21:28 +0000 (20:21 +0000)]
PR tree-optimization/21170
* tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
rewrite_ssa_into_ssa in comments with update_ssa.

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

19 years ago * tree-ssa-loop-im.c: Include hashtab.h.
rakdver [Tue, 10 May 2005 20:04:27 +0000 (20:04 +0000)]
* tree-ssa-loop-im.c: Include hashtab.h.
(struct mem_ref_loc): New.
(struct mem_ref): Describe the set of references with the same
shape.
(max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
maybe_queue_var, fem_single_reachable_address,
for_each_memref, single_reachable_address,
is_call_clobbered_ref, determine_lsm_reg): Removed.
(record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
hoist_memory_reference, memref_hash, memref_eq, memref_del,
gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
New functions.
(rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
(determine_lsm_loop): Rewritten.
(determine_lsm): Do not set stmt uids.

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

19 years ago2005-05-10 Adrian Straetling <straetling@de.ibm.com>
uweigand [Tue, 10 May 2005 19:25:40 +0000 (19:25 +0000)]
2005-05-10  Adrian Straetling  <straetling@de.ibm.com>

* config/s390/s390.md: Add comment lines for 'f' and 't' constraint
letters.

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

19 years ago2005-05-10 Adrian Straetling <straetling@de.ibm.com>
uweigand [Tue, 10 May 2005 19:22:05 +0000 (19:22 +0000)]
2005-05-10  Adrian Straetling  <straetling@de.ibm.com>

* config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.

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

19 years ago * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
law [Tue, 10 May 2005 19:19:30 +0000 (19:19 +0000)]
* tree-ssa-dom.c (dom_opt_finalize_block): Do not call
thread_across_edge for any abnormal edges.

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

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

19 years ago * gcj/javaprims.h: Updated.
tromey [Tue, 10 May 2005 18:28:31 +0000 (18:28 +0000)]
* gcj/javaprims.h: Updated.
* java/lang/String.java (String(StringBuilder)): New constructor.
* java/lang/natStringBuilder.cc: New file.
* java/lang/StringBuilder.java: New file.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added StringBuilder.java.
(nat_source_files): Added natStringBuilder.cc.

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

19 years ago * include/debug/debug.h: Fix typo in macro name.
redi [Tue, 10 May 2005 17:30:36 +0000 (17:30 +0000)]
* include/debug/debug.h: Fix typo in macro name.

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

19 years ago * gcc.dg/arm-vfp1.c: Remove test for fnegs.
mmitchel [Tue, 10 May 2005 16:54:36 +0000 (16:54 +0000)]
* gcc.dg/arm-vfp1.c: Remove test for fnegs.

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

19 years ago * config/ia64/ia64.c (ia64_expand_atomic_op): New.
rth [Tue, 10 May 2005 16:37:36 +0000 (16:37 +0000)]
    * config/ia64/ia64.c (ia64_expand_atomic_op): New.
        * config/ia64/ia64-protos.h: Declare it.
        * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
        (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
        (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
        (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
        (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
        (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
        extend result; use release semantics.
        (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
        (sync_val_compare_and_swap_<IMODE>): Update to match.

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

19 years ago * gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
bwilson [Tue, 10 May 2005 16:27:48 +0000 (16:27 +0000)]
* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.

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

19 years ago * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
rth [Tue, 10 May 2005 16:24:41 +0000 (16:24 +0000)]
    * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
        before comparing it for success.

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

19 years ago * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
rth [Tue, 10 May 2005 16:20:35 +0000 (16:20 +0000)]
    * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
        no return value pattern.

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

19 years ago * libgcov.c (create_file_directory): New function. Create
nathan [Tue, 10 May 2005 16:10:54 +0000 (16:10 +0000)]
* libgcov.c (create_file_directory): New function. Create
directory for the given file name.
(gcov_max_filename): New static var. Keeps size of the longest
file name.
(gcov_exit): Always try to create directory for output
file. Relocate each filename basing on environment vars.
(__gcov_init): Remember the longest file name.
* tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
* doc/gcov.texi (Cross-profiling): New node documenting
cross-profiling management.
* doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.

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

19 years ago * config/sparc/sparc.c (mem_min_alignment): Do not rely
ebotcazou [Tue, 10 May 2005 15:59:16 +0000 (15:59 +0000)]
* config/sparc/sparc.c (mem_min_alignment): Do not rely
on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.

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

19 years ago * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
bwilson [Tue, 10 May 2005 15:56:54 +0000 (15:56 +0000)]
* config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
case code to avoid one move instruction.
(__umodsi3, __modsi3): Merge duplicated code sequences.

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

19 years agoUpdate the address and phone number of the FSF organization.
nickc [Tue, 10 May 2005 15:33:18 +0000 (15:33 +0000)]
Update the address and phone number of the FSF organization.

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

19 years agoUpdate the address and phone number of the FSF organization.
nickc [Tue, 10 May 2005 15:22:21 +0000 (15:22 +0000)]
Update the address and phone number of the FSF organization.

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

19 years ago * tree-data-ref.c (analyze_array_indexes, analyze_array,
kazu [Tue, 10 May 2005 14:50:35 +0000 (14:50 +0000)]
* tree-data-ref.c (analyze_array_indexes, analyze_array,
init_data_ref, access_functions_are_affine_or_constant_p,
free_data_refs): Use VEC instead of VARRAY.
* tree-data-ref.h (data_reference): Change the type of
access_fns to VEC(tree,gc)*.
(DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.

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

19 years ago * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
kazu [Tue, 10 May 2005 14:42:17 +0000 (14:42 +0000)]
* config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
config/sh/sh.md, config/sh/superh.h: Fix comment typos.
* doc/invoke.texi: Fix typos.

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

19 years ago2005-05-10 Gabor Loki <loki@gcc.gnu.org>
loki [Tue, 10 May 2005 13:47:05 +0000 (13:47 +0000)]
2005-05-10  Gabor Loki <loki@gcc.gnu.org>

PR c/17913
* c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
* fold-const.c (fold): Expand the condition of reducing cond_expr.
(contains_label_1, contains_label_p): New functions for checking
labels in a sub-tree.

testsuite:
2005-05-10  Gabor Loki <loki@gcc.gnu.org>

PR c/17913
* gcc.c-torture/compile/pr17913.c: Computed jump test for PR17913

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

19 years agogcc/java:
bonzini [Tue, 10 May 2005 13:23:35 +0000 (13:23 +0000)]
gcc/java:
2005-05-10  Paolo Bonzini  <bonzini@gnu.org>

PR java/21436
* class.c (maybe_layout_super_class): Look for imports in this_class.
* parse.h (ctxp_for_generation_last): New.
(do_resolve_class): Add a parameter.
* parse.y (ctxp_for_generation_last): New.
(java_pop_parser_context): Add at end of list.
(find_in_imports, find_in_imports_on_demand): Look in ctxp
if the TYPE_IMPORT_LIST or respectively the TYPE_IMPORT_DEMAND_LIST of
the given type are NULL.
(do_resolve_class): Look into the imports of the new second parameter.
Adjust recursive calls.
(resolve_class, resolve_inner_class, find_as_inner_class): Adjust
calls to do_resolve_class.
(create_class): Set the TYPE_IMPORT_LIST and TYPE_IMPORT_DEMAND_LIST.
(java_complete_class): Do not do that here.

libjava:
2005-05-10  Paolo Bonzini  <bonzini@gnu.org>

PR java/21436
* testsuite/libjava.jacks/jacks.xfail: Adjust.

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

19 years ago PR c/21342
jsm28 [Tue, 10 May 2005 12:38:34 +0000 (12:38 +0000)]
PR c/21342
* c-decl.c (pushdecl): When there is a declaration in the current
scope and the declarations are external linkage, check for
compatibility with the type in the external scope and update the
type in the external scope with the composite type information.
Do not form a composite type of the new type and the visible type
if they are incompatible.

testsuite:
* gcc.dg/redecl-11.c, gcc.dg/redecl-12.c, gcc.dg/redecl-13.c,
gcc.dg/redecl-14.c, gcc.dg/redecl-15.c: New tests.

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

19 years ago * crtstuff.c: Revert part of 2005-05-08 Change.
nathan [Tue, 10 May 2005 10:27:44 +0000 (10:27 +0000)]
* crtstuff.c: Revert part of 2005-05-08 Change.
(IN_LIBGCC2): Define.

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

19 years ago PR libfortran/20788
fxcoudert [Tue, 10 May 2005 08:34:58 +0000 (08:34 +0000)]
PR libfortran/20788
Missing entry from previous commit:
* io/unix.c (fd_to_stream): Add an avoid_mmap argument indicating
we don't we to mmap this stream. Use fd_open instead of mmap_open
in that case.
(open_external): Call fd_to_stream with avoid_mmap = 0.
(input_stream): Call fd_to_stream with avoid_mmap = 1.
(output_stream): Likewise.
(error_stream): Likewise.

Really committing:
* io/read.c (read_f): Accept 'e', 'E', 'd' and 'D' as first
non-blank characters of a real number.

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

19 years ago * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
ebotcazou [Tue, 10 May 2005 07:50:33 +0000 (07:50 +0000)]
* config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
remove redundant test.
(fp_mov_p): Accept 0.
(fp_high_losum_p): Remove redundant test.
* config/sparc/predicates.md (const_high_operand): Explicitly test
(not small_int_operand).
(fp_const_high_losum_operand): New.
* config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
(movdi_insn_sp32_v9): Use canonical predicates.
(movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
(movdi_insn_sp64_novis): Delete.
(movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
(movsf_insn_novis): Delete.
(movsf_insn_vis): Rename into movsf_insn.
(movsf_no_f_insn): Rename into movsf_insn_no_fpu.
(movsf_lo_sum): Use fp_const_high_losum_operand.
(movsf_high): Likewise.
(movsf_high_losum splitter): Likewise.
(mov<V32:mode> expander): Use register_or_zero_operand.
(mov<V64:mode> expander): Likewise.
(movdf_insn_sp32): Use register_or_zero_operand.
(movdf_no_e_insn_sp32): Use register_or_zero_operand.
Rename into movdf_insn_sp32_no_fpu.
(movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
Rename into movdf_insn_sp32_v9_no_fpu.
(movdf_insn_v9only_novis): Delete.
(movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
(movdf_insn_sp64_novis): Delete.
(movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
(movdf_no_e_insn_sp64): Use register_or_zero_operand.
Rename into movdf_insn_sp64_no_fpu.
(movtf expander): Use register_or_zero_operand.
(movtf_insn_sp32): Delete.
(movtf_insn_vis_sp32): Use register_or_zero_operand.
Rename into movtf_insn_sp32.
(movtf_no_e_insn_sp32): Use register_or_zero_operand.
Rename into movtf_insn_sp32_no_fpu.
(movtf_insn_hq_sp64): Delete.
(movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
Rename into movtf_insn_sp64_hq.
(movtf_insn_sp64): Delete.
(movtf_insn_vis_sp64): Use register_or_zero_operand.
Rename into movtf_insn_sp64.
(movtf_no_e_insn_sp64): Use register_or_zero_operand.
Rename into movtf_insn_sp64_no_fpu.

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

19 years ago * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
nathan [Tue, 10 May 2005 07:44:42 +0000 (07:44 +0000)]
* config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
gcc_assert and gcc_unreachable as appropriate.
(xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
xstormy16_output_cbranch_si, xstormy16_split_move,
xstormy16_initial_elimination_offset,
xstormy16_encode_section_info, xstormy16_print_operand_address,
xstormy16_expand_call, xstormy16_expand_arith,
xstormy16_output_shift, xstormy16_init_builtins): Likewise.

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

19 years ago * typeck.c (build_unary_op): Do not resort to address arithmetic
mmitchel [Tue, 10 May 2005 05:31:15 +0000 (05:31 +0000)]
* typeck.c (build_unary_op): Do not resort to address arithmetic
when taking the address of a COMPONENT_REF.

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

19 years ago2005-05-09 Paolo Carlini <pcarlini@suse.de>
paolo [Tue, 10 May 2005 01:58:19 +0000 (01:58 +0000)]
2005-05-09  Paolo Carlini  <pcarlini@suse.de>
    Giovanni Bajo  <giovannibajo@gcc.gnu.org>

PR libstdc++/18604
* include/bits/deque.tcc: Fully qualify names from namespace std.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/vector.tcc: Likewise.
* include/std/std_bitset.h: Likewise.
* testsuite/23_containers/bitset/18604.cc: New.
* testsuite/23_containers/deque/18604.cc: Likewise.
* testsuite/23_containers/list/18604.cc: Likewise.
* testsuite/23_containers/map/18604.cc: Likewise.
* testsuite/23_containers/set/18604.cc: Likewise.
* testsuite/23_containers/vector/18604.cc: Likewise.

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

19 years ago * configure: Regenerate.
mrs [Tue, 10 May 2005 01:43:00 +0000 (01:43 +0000)]
    * configure: Regenerate.

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

19 years ago * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
kazu [Tue, 10 May 2005 01:39:22 +0000 (01:39 +0000)]
* tree-outof-ssa.c (_elim_graph): Change the type of nodes and
const_copies to VEC(tree,heap)*.
(new_elim_graph, delete_elim_graph, elim_graph_size,
elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
instead of VARRAY.

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

19 years ago * gcc.dg/debug/pr16676.c: New test.
bje [Tue, 10 May 2005 01:35:15 +0000 (01:35 +0000)]
* gcc.dg/debug/pr16676.c: New test.

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

19 years ago * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use quotes on
mrs [Tue, 10 May 2005 01:31:58 +0000 (01:31 +0000)]
    * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use quotes on
        lt_cv_sys_max_cmd_len for now.

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

19 years ago PR testsuite/21443
kazu [Tue, 10 May 2005 00:57:28 +0000 (00:57 +0000)]
PR testsuite/21443
* gcc.dg/tree-ssa/20030731-2.c, gcc.dg/tree-ssa/20030917-1.c,
gcc.dg/tree-ssa/20030917-3.c, gcc.dg/tree-ssa/ssa-ccp-1.c,
gcc.dg/tree-ssa/ssa-ccp-2.c, gcc.dg/tree-ssa/ssa-ccp-3.c,
gcc.dg/tree-ssa/ssa-ccp-7.c, gcc.dg/tree-ssa/ssa-ccp-9.c:
Change -O1 to -O2.
* gcc.dg/tree-ssa/20040721-1.c: Change -O1 to -O2.  Add
-fno-tree-dominator-opts.

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

19 years ago2005-05-09 David Daney <ddaney@avtrex.com>
daney [Tue, 10 May 2005 00:48:49 +0000 (00:48 +0000)]
2005-05-09  David Daney  <ddaney@avtrex.com>

        * java/util/BitSet.java (get(int, int)): Fix breakage when
        requested set doesn't start on a multiple of 64.

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

19 years ago * inclhack.def (stdio_stdarg_h, stdio_va_list): Bypass on
jsm28 [Tue, 10 May 2005 00:26:08 +0000 (00:26 +0000)]
* inclhack.def (stdio_stdarg_h, stdio_va_list): Bypass on
*-*-solaris2.1[0-9]*, not just *-*-solaris2.1[0-9].
* fixincl.x: Regenerate.

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

19 years ago PR other/21052
jsm28 [Tue, 10 May 2005 00:19:28 +0000 (00:19 +0000)]
PR other/21052
* doc/extend.texi (Type Attributes): Correct example syntax.

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

19 years agoDaily bump.
gccadmin [Tue, 10 May 2005 00:16:32 +0000 (00:16 +0000)]
Daily bump.

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

19 years ago PR c/21160
jsm28 [Mon, 9 May 2005 23:51:49 +0000 (23:51 +0000)]
PR c/21160
* doc/invoke.texi (-Wuninitialized): Update documentation.

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

19 years agoAdd missing ChangeLog entry
mmitchel [Mon, 9 May 2005 22:54:03 +0000 (22:54 +0000)]
Add missing ChangeLog entry

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

19 years ago * arm.c (const_ok_for_arm): Use a faster algorithm.
rearnsha [Mon, 9 May 2005 22:09:47 +0000 (22:09 +0000)]
* arm.c (const_ok_for_arm): Use a faster algorithm.

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

19 years ago PR target/21477
dje [Mon, 9 May 2005 22:04:48 +0000 (22:04 +0000)]
    PR target/21477
        * config/rs6000/rs6000.md (add_op2): New.
        (add<mode>3): Use it.

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

19 years ago * arm.c (arm_gen_constant): Add new heuristic for generating
rearnsha [Mon, 9 May 2005 22:00:06 +0000 (22:00 +0000)]
* arm.c (arm_gen_constant): Add new heuristic for generating
constant integers that can be expressed as the difference of two
valid immediates.

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

19 years agoRevert previous (not the patch described).
rearnsha [Mon, 9 May 2005 21:57:47 +0000 (21:57 +0000)]
Revert previous (not the patch described).

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

19 years ago * arm.c (arm_gen_constant): Add new heuristic for generating
rearnsha [Mon, 9 May 2005 21:55:08 +0000 (21:55 +0000)]
* arm.c (arm_gen_constant): Add new heuristic for generating
constant integers that can be expressed as the difference of two
valid immediates.

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

19 years ago * c-tree.h (parser_build_unary_op): New prototype.
sayle [Mon, 9 May 2005 20:48:33 +0000 (20:48 +0000)]
* c-tree.h (parser_build_unary_op): New prototype.
* c-typeck.c (parser_build_unary_op): New function to construct
a unary operation in the C parser.
* c-parser.c (c_parser_unary_expression):  Use the new function
parser_build_unary_op when appropriate.

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

19 years ago PR 18655
mmitchel [Mon, 9 May 2005 20:20:21 +0000 (20:20 +0000)]
PR 18655
* dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
before outputting DWARF_FRAME_RETURN_COLUMN.

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

19 years agofortran/
tobi [Mon, 9 May 2005 18:26:20 +0000 (18:26 +0000)]
fortran/
* match.c (gfc_match_return): Only require space after keyword when
it is obligatory.  Only give stdwarn to after matching is successful.
* dump-parse-tree.c (gfc_show_symbol): Deal with alternate returns.
testsuite/
* gfortran.dg/return_1.f90: New test.

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

19 years ago2005-05-09 Adrian Straetling <straetling@de.ibm.com>
uweigand [Mon, 9 May 2005 18:22:11 +0000 (18:22 +0000)]
2005-05-09  Adrian Straetling  <straetling@de.ibm.com>

* config/s390/s390.c: (s390_branch_condition_mask,
s390_branch_condition_mnemonic, s390_extra_constraint_str,
s390_const_ok_for_constraint_p, s390_expand_plus_operand,
legitimize_pic_address, s390_emit_tls_call_insn,
legitimize_tls_address, legitimize_tls_address,
s390_expand_addcc, print_shift_count_operand, print_operand,
addr_generation_dependency_p, annotate_constant_pool_refs,
s390_split_branches, find_constant_pool_ref,
replace_constant_pool_ref, s390_add_constant, s390_find_constant,
s390_find_execute, s390_mainpool_start, s390_chunkify_start,
s390_output_pool_entry, s390_function_value,
s390_call_saved_register_used, s390_emit_call): Replace
conditional aborts by gcc_assert and unconditional by gcc_unreachable.
(s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
get_some_local_dynamic_name, s390_function_arg_size,
s390_function_arg_advance, s390_function_arg,
s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
default case by gcc_unreachable.
* config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
conditional abort by gcc_assert.
("doloop_si31"): Replace abort in last else by gcc_unreachable.
("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.

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