- 15 May, 2004 15 commits
-
-
* arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM implementations for ARM and Thumb. * arm/t-arm-elf (LIB1ASMFUNCS): Use them. From-SVN: r81889
Richard Earnshaw committed -
re PR fortran/13702 (When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.) PR fortran/13702 (Port from g95) * gfortran.h (gfc_linebuf): New typedef. (linebuf): Remove. (gfc_file): Revamped, use new gfc_linebuf. (locus): Revamped, use new types. (gfc_current_file): Remove. (gfc_current_form, gfc_source_file): New global variables. * match.c (gfc_match_space, gfc_match_strings): Use gfc_current_form to find source form. * module.c (gfc_dump_module): Use gfc_source_file when printing module header. * error.c (show_locus, show_loci) Use new data structures to print locus. * scanner.c (first_file, first_duplicated_file, gfc_current_file): Remove. (file_head, current_file, gfc_current_form, line_head, line_tail, gfc_current_locus1, gfc_source_file): New global variables. (gfc_scanner_init1): Set new global variables. (gfc_scanner_done1): Free new data structures. (gfc_current_locus): Return pointer to gfc_current_locus1. (gfc_set_locus): Set gfc_current_locus1. (gfc_at_eof): Set new variables. (gfc_at_bol, gfc_at_eol, gfc_advance_line, gfc_next_char): Adapt to new locus structure. (gfc_check_include): Remove. (skip_free_comments, skip_fixed_comments): Use gfc_current_locus1. (gfc_skip_comments): Use gfc_current_form, find locus with gfc_current_locus1. (gfc_next_char): Use gfc_current_form. (gfc_peek_char, gfc_gobble_whitespace): Use gfc_current_locus1. (load_line): Use gfc_current_form. Recognize ^Z as EOF. Fix comment formatting. (get_file): New function. (preprocessor_line, include_line): New functions. (load_file): Move down, rewrite to match new data structures. (gfc_new_file): Rewrite to match new data structures. * parse.c (next_statement): Remove code which is now useless. Use gfc_source_form and gfc_source_file where appropriate. * trans-decl.c (gfc_get_label_decl): adapt to new data structures when determining locus of frontend code. * trans-io.c (set_error_locus): Same. * trans.c (gfc_get_backend_locus, gfc_set_backend_locus): Likewise. * lang-specs.h (@f77-cpp-input, @f95-cpp-input): Remove '-P' from preprocessor flags. (all): Add missing initializers. From-SVN: r81888
Tobias Schlüter committed -
* Make-lang.in (trans-common.o): Remove redundant dependency. (data.c): Replace object file name ... (data.o): ... by the correct one. From-SVN: r81887
Tobias Schlüter committed -
From-SVN: r81884
Roger Sayle committed -
2004-05-15 Thomas Quinot <quinot@act-europe.fr> * prefix.c (update_path): Replace PREFIX with KEY only when it matches a full directory name in PATH. From-SVN: r81883
Thomas Quinot committed -
* arm.h (TARGET_APCS_32): Delete. (TARGET_MMU_TRAPS): Delete. (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never define __APCS_26__. (CPP_SPEC): Remove checking of -mapcs-{26,32}. (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete. (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches. (prog_mode_type): Delete. (PROMOTE_MODE): Always promote unsigned for HImode. (SECONDARY_INPUT_RELOAD_CLASS): Simplify. (MASK_RETURN_ADDR): Simplify. * arm.c (arm_prgmode): Delete. (arm_override_options, arm_gen_rotated_half_load): Simplify. (print_multi_reg, output_return_instruction): Simplify. (arm_output_epilogue, arm_final_prescan_insn): Simplify. (arm_return_addr): Simplify. * arm.md (prog_mode): Delete. (conds): Simplify. (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify. (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete. (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete. (loadhi_shiftpredec): Delete. (peephole for post-increment on HImode load): Delete. * arm/crtn.asm: (FUNC_END): Simplify. * arm/lib1funcs.asm: Remove APCS-26 return macros. * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and MULTILIB_DEFAULTS as required. * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB variables as required. * doc/invoke.texi (ARM Options): Remove obsolete flags. From-SVN: r81881
Richard Earnshaw committed -
* config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg count to 8 to handle n_reg > 2. From-SVN: r81880
Alan Modra committed -
* gcc.dg/const-elim-1.c: Remove XFAIL for s390*-*-*. * gcc.dg/uninit-H.c: Define ASM for __s390__. From-SVN: r81879
Ulrich Weigand committed -
2004-05-15 Paolo Carlini <pcarlini@suse.de> * include/std/std_bitset.h: Trivial formatting fixes. From-SVN: r81878
Paolo Carlini committed -
* doc/extend.texi: Update WG14 URL. testsuite: * gcc.c-torture/execute/20000603-1.c: Update WG14 URL. From-SVN: r81876
Joseph Myers committed -
From-SVN: r81874
Joseph Myers committed -
* basic-block.h (life_analysis, delete_noop_moves): Update prototypes. * bt-load.c (branch_target_load_optimize): Don't take the insns stream as an argument. Update the life_analysis calls. * combine.c (combine_instructions): Update delete_noop_moves calls. * flow.c (notice_stack_pointer_modification): Don't take the insns stream as an argument. Work on the flow graph. (life_analysis): Likewise. (delete_noop_moves): Likewise. * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call. (rest_of_handle_life): Update life_analysis call. (rest_of_compilation): Likewise, and also update branch_target_load_optimize call. * ra.c (reg_alloc): Update life_analysis call. * reg-stack.c (reg_to_stack): Likewise. Also, don't take the insns stream as an argument. * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves call. * rtl.c (branch_target_load_optimize, reg_to_stack): Update prototypes. * value-profile.c (branch_prob): Update life_analysis call. * web.c (web_main): Work on the CFG, not on the insns stream. * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls. * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise. * config/sh/sh.c (sh_output_mi_thunk): Likewise. From-SVN: r81873
Steven Bosscher committed -
tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even bother marking bypassed virtuals for out-of-ssa. * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even bother marking bypassed virtuals for out-of-ssa. Instead merge bypassed virtuals into vars_to_rename just before into-ssa pass. From-SVN: r81872
Jeff Law committed -
PR c/15444 * c-format.c (avoid_dollar_number): New function. (check_format_info_main): Call avoid_dollar_number when operand numbers might occur but has_operand_number == 0. testsuite: * gcc.dg/format/xopen-1.c: Adjust expected message. * gcc.dg/format/xopen-3.c: New test. From-SVN: r81871
Joseph Myers committed -
From-SVN: r81869
GCC Administrator committed
-
- 14 May, 2004 25 commits
-
-
* dump-parse-tree.c (gfc_show_array_ref): Print colon only for ranges when dumping array references. From-SVN: r81866
Tobias Schlüter committed -
fortran/ * decl.c (variable_decl): Always apply default initializer. libgfortran/ * gfortran.fortran-torture/execute/def_init_3.f90: New test. From-SVN: r81865
Victor Leikehman committed -
* name-lookup.c (struct scope_binding): New. (EMPTY_SCOPE_BINDING): New. (lookup_using_namespace): Take a scope_binding instead of a cxx_binding. (qualified_lookup_using_namespace): Likewise. (cxx_binding_clear): Delete. (do_nonmember_using_decl): Use a scope_binding instead of a cxx_binding. (lookup_tag): Don't call select_decl. (ambiguous_decl): Don't return anything (and change callers to match). Take a scope_binding as the second parameter. (lookup_namespace_name): Use a scope_binding instead of a cxx_binding. (unqualified_namespace_lookup): Likewise. (lookup_qualified_name): Likewise. (select_decl): Take a scope_binding instead of a cxx_binding. Use macros rather than hand-coding tests for type-ness. From-SVN: r81864
Geoffrey Keating committed -
* gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage', not `XGraphicsConfiguration.XOffScreenImage'. From-SVN: r81863
Tom Tromey committed -
From-SVN: r81862
Joseph Myers committed -
* arm.md (all peephole2 patterns): Use predicates that validate register classes as appropriate. From-SVN: r81860
Richard Earnshaw committed -
From-SVN: r81859
Scott Gilbertson committed -
PR opt/14472 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to ignore type conversions that do not inhibit tail calling. (find_tail_calls): Likewise. From-SVN: r81855
Steven Bosscher committed -
tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize so that it picks up more opportunities to eliminate ABS expressions... * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize so that it picks up more opportunities to eliminate ABS expressions or turn them into negations. * gcc.dg/tree-ssa/20040514-2.c: New test. From-SVN: r81853
Jeff Law committed -
2004-05-14 Paolo Carlini <pcarlini@suse.de> Ivan Godard <igodard@pacbell.net> PR libstdc++/15361 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix. * testsuite/23_containers/bitset/ext/15361.cc: New. Co-Authored-By: Ivan Godard <igodard@pacbell.net> From-SVN: r81852
Paolo Carlini committed -
2004-05-14 Steven Augart <augart@watson.ibm.com> * include/jni.h (_Jv_func): Removed. (struct JNINativeInterface): Use `void *' for reserved slots. (struct JNIInvokeInterface): Likewise. From-SVN: r81851
Steven Augart committed -
* gfortran.fortran-torture/compile/noncontinuation_1.f90: Rename this ... * gfortran.fortran-torture/compile/noncontinuation_1.f: ... to this. (Correcting previous mistake) From-SVN: r81850
Tobias Schlüter committed -
* passes.c (rest_of_handle_null_pointer): Remove. (rest_of_handle_cse): Don't call rest_of_handle_null_pointer. (rest_of_compilation): Likewise. * rtl.h (delete_null_pointer_checks): Remove prototype. * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out): Remove declarations. (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set, compute_kill_rd, compute_rd, alloc_avail_expr_mem, free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill, expr_reaches_here_p, computing_insn, def_reaches_here_p, can_disregard_other_sets, handle_avail_expr, classic_gcse, one_classic_gcse_pass, invalidate_nonnull_info, delete_null_pointer_checks_1, delete_null_pointer_checks, expr_reached_here_p_work): Remove. (gcse_main): Do not perform classic GCSE when optimizing for size. (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they are never used. From-SVN: r81849
Steven Bosscher committed -
PR fortran/15206 * trans-intrinsic.c (gfc_conv_intrinsic_rrspacing): Fixed to handle zero correctly. From-SVN: r81848
Tobias Schlüter committed -
2004-05-14 Andrew Pinski <pinskia@physics.uc.edu> PR optimization/14466 * tree-complex.c (make_temp): Remove. (gimplify_val): Replace make_temp with make_rename_temp and add NULL as the second argument. (expand_complex_div_wide): Likewise. * tree-dfa.c (make_rename_temp): New function. * tree-flow.h (make_rename_temp): Declare. * tree-sra.c (make_temp): Remove. (lookup_scalar): Replace make_temp with make_rename_temp. (create_scalar_copies): Likewise. * tree-ssa-phiopt.c (conditional_replacement): When we get non gimple create a temporary variable to hold the casted expression. 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu> PR optimization/14466 * gcc.dg/tree-ssa/20040514-1.c: New test. From-SVN: r81847
Andrew Pinski committed -
From-SVN: r81846
Tobias Schlüter committed -
parse.c (gfc_statement_next_fixed): (Change from Andy's tree) Detect bad continuation line in fixed form sources. fortran: * parse.c (gfc_statement_next_fixed): (Change from Andy's tree) Detect bad continuation line in fixed form sources. testsuite: * gfortran.fortran-torture/compile/noncontinuation_1.f90: New test. From-SVN: r81845
Tobias Schlüter committed -
2004-05-14 Robert Dewar <dewar@gnat.com> * gnat_ugn.texi: Minor change to -gnatS documentation * sprint.adb: Remove some instances of Assert (False) and for this purpose replace them by output of a ??? string. * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma Assert (False). * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit flag processing. This was suppressing required dependencies in No_Run_Time mode and is not needed since the binder does not generate references for things in libgnat anyway. * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC warning. 2004-05-14 Thomas Quinot <quinot@act-europe.fr> * gnat_ugn.texi: Document AIX-specific issue with initialization of resolver library. * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference action for the case of an actual parameter in an init proc call. 2004-05-14 Ed Schonberg <schonberg@gnat.com> * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected subtype, check visible entities in base type. * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup actions if the object is a renaming. * sem_ch12.adb (Same_Instantiated_Entity): Predicate for Check_Formal_Package_Instance, to determine more precisely when the formal and the actual denote the same entity. 2004-05-14 Javier Miranda <miranda@gnat.com> * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity corresponding to a private_with must be removed from visibility; it will be made visible later, just before we analyze the private part of the package. (Check_Private_Child_Unit): Allow private_with clauses in public siblings. (Install_Siblings): Make visible the private entities of private-withed siblings. (Install_Withed_Unit): Do not install the private withed unit if we are compiling a package declaration and the Private_With_OK flag was not set by the caller. These declarations will be installed later, just before we analyze the private part of the package. * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected during the evaluation of the expression that initializes the object, decorate it with the expected type to avoid cascade errors. Code cleanup. * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library subprogram we have to install the private_with clauses after its specification has been analyzed (as documented in AI-262.TXT). * sem_ch8.adb (Has_Private_With): New function. Determines if the current compilation unit has a private with on a given entity. (Find_Direct_Name): Detect the Beaujolais problem described in AI-262.TXT * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It provides the functionality of the function Is_Ancestor that was previously available in sem_ch10. It has been renamed to avoid overloading. * sprint.adb (Sprint_Node_Actual): Print limited_with clauses 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * utils.c (build_vms_descriptor): Use SImode pointers. 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr> * gnat_ugn.texi: Revised chapter "GNAT and Libraries". 2004-05-14 GNAT Script <nobody@gnat.com> * Make-lang.in: Makefile automatically updated From-SVN: r81844
Arnaud Charlet committed -
PR fortran/15205 * iresolve.c (gfc_resolve_nearest): Add new function. * intrinsic.h: ... declare it here. * intrinsic.c (add_functions): ... add it as resolving function for NEAREST. From-SVN: r81843
Tobias Schlüter committed -
fortran: PR fortran/14066 * match.c (gfc_match_do): Allow infinite loops with label-do-stmt. Do not enforce space after comma. testsuite: PR fortran/14066 * gfortran.fortran-torture/compile/do_1.f90: New test. Also fixed date on previous ChangeLog entries. From-SVN: r81842
Tobias Schlüter committed -
testsuite: PR fortran/15051 * gfortran.fortran-torture/compile/empty_interface_1.f90: New test. fortran: PR fortran/15051 * parse.c (parse_interface): Allow empty INTERFACE, remove seen_body. Also added ChangeLog entry missing from previous commit, removed umlaut from ChangeLog, and fixed previous entry to use tabs. From-SVN: r81841
Tobias Schlüter committed -
* Make-lang.in, arith.c, arith.h, array.c, bbt.c, check.c, decl.c, dependency.c, dependency.h, dump-parse-tree.c, error.c, expr.c, f95-lang.c, gfortran.h, interface.c, intrinsic.c, intrinsic.h, io.c, iresolve.c, lang-specs.h, match.c, match.h, matchexp.c, misc.c, module.c, options.c, parse.c, parse.h, primary.c, resolve.c, scanner.c, simplify.c, st.c, symbol.c, trans-array.c, trans-array.h, trans-common.c, trans-const.c, trans-const.h, trans-decl.c, trans-expr.c, trans-intrinsic.c, trans-io.c, trans-stmt.c, trans-stmt.h, trans-types.c, trans-types.h, trans.c, trans.h: Update copyright years and boilerplate. * data.c: Likewise, also removed two whitespace-only lines. * gfortranspec.c, lang.opt: Update copyright years. From-SVN: r81839
Tobias Schlüter committed -
* stor-layout.c (update_alignment_for_field): Use targetm.align_anon_bitfield. * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define. (TARGET_INITIALIZER): Use it. * target.h (struct gcc_target): Add align_anon_bitfield. * config/arm/arm.c (arm_align_anon_bitfield): New function. (TARGET_ALIGN_ANON_BITFIELD): Define. * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD. From-SVN: r81838
Paul Brook committed -
PR fortran/14568 * trans-decl.c (generate_local_decl): Don't warn for unused variables which are in common blocks. From-SVN: r81837
Tobias Schlüter committed -
PR fortran/15149 * gfortran.fortran-torture/execute/random_init.f90: New test. * libgfortan.h,intrinsics/random.c: Made random_seed visible. * runtime/main.c(init): Call random_seed as part of MAIN init. From-SVN: r81836
Bud Davis committed
-