summaryrefslogtreecommitdiff
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>charlet2004-05-1791-1917/+2144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of function-at-a-time conversion * misc.c (adjust_decl_rtl): Deleted. (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Define. * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted. (add_decl_stmt, add_stmt, block_has_vars): New functions. (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel. * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt when making a decl. (gnat_to_gnu_entity): Likewise. Use add_stmt to update setjmp buffer. Set TREE_ADDRESSABLE instead of calling put_var_into_stack and flush_addressof. No longer call adjust_decl_rtl. (DECL_INIT_BY_ASSIGN_P): New macro. (DECL_STMT_VAR): Likewise. * trans.c (gigi): Call start_block_stmt to make the outermost BLOCK_STMT. (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type): Call start_block_stmt and end_block_stmt temporarily. Use gnat_expand_stmt instead of expand_expr_stmt. (add_decl_stmt): New function. (tree_transform): Call it. (add_stmt): Also emit initializing assignment for DECL_STMT if needed. (end_block_stmt): Set type and NULL_STMT. (gnat_expand_stmt): Make recursize call instead of calling expand_expr_stmt. (gnat_expand_stmt, case DECL_STMT): New case. (set_lineno_from_sloc): Do nothing if global. (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables. (start_block_stmt, add_stmt, end_block_stmt): New functions. (build_block_stmt): Call them. (gnat_to_code): Don't expand NULL_STMT. (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change args. (tree_transform): Likewise. (tree_transform, case N_Null_Statement): Return NULL_STMT. (gnat_expand_stmt, case NULL_STMT): New case. (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no IF_STMT_TRUE. * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set TREE_ADDRESSABLE. * utils.c (create_var_decl): Do not call expand_decl or expand_decl_init. Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable. Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR here. (struct e_stack): Add chain_next to GTY. (struct binding_level): Deleted. (struct ada_binding_level): New struct. (free_block_chain): New. (global_binding_level, clear_binding_level): Deleted. (global_bindings_p): Rework to see if no chain. (kept_level_p, set_block): Deleted. (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use new data structure and work directly on BLOCK node. (gnat_poplevel): Similarly. (get_decls): Look at BLOCK_VARS. (insert_block): Work directly on BLOCK node. (block_has_var): New function. (pushdecl): Rework for new binding structures. (gnat_init_decl_processing): Rename and rework calls to pushlevel and poplevel. (build_subprog_body): Likewise. (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL. * ada-tree.def (DECL_STMT, NULL_STMT): New codes. * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro. (DECL_STMT_VAR): Likewise. 2004-05-17 Robert Dewar <dewar@gnat.com> * restrict.ads, restrict.adb (Process_Restriction_Synonym): New procedure * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling of restriction synonyums by using Restrict.Process_Restriction_Synonyms. * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym * s-restri.ads (Tasking_Allowed): Correct missing comment * s-rident.ads: Add entries for restriction synonyms * ali.adb: Fix some problems with badly formatted ALI files that can result in infinite loops. * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb, s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb, s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb, s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb, s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb, s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb, s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb, a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb, exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb, s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb, s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb, s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID to Task_Id (minor cleanup). 2004-05-17 Vincent Celier <celier@gnat.com> * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing directory separator. * prj-proc.adb (Recursive_Process): Inherit attribute Languages from project being extended, if Languages is not declared in extending project. 2004-05-17 Javier Miranda <miranda@gnat.com> * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the limited view of a visible sibling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81935 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.rsandifo2004-05-173-853/+82
| | | | | | | | | | | | | | | | | | | (TARGET_SWITCHES): Remove debugg. * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle TARGET_64BIT. (subdi3): Replace the define_expand with a define_insn, the latter renamed from subdi3_internal_3. (negdi2): Likewise negdi2_internal_2. (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3}) (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns and associated define_splits. (adddi3_internal): Renamed from adddi3_internal_3. (ashldi3_internal): Likewise ashldi3_internal4. (ashrdi3_internal): Likewise ashrdi3_internal4. (lshrdi3_internal): Likewise lshrdi3_internal4. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81934 138bc75d-0d04-0410-961f-82ee72b054a4
* * optabs.c (expand_unop): Try implementing negation using subtractionrsandifo2004-05-172-0/+14
| | | | | | | from zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81933 138bc75d-0d04-0410-961f-82ee72b054a4
* * pa.md: Fix typo from last change. Remove DFmode move to and fromdanglin2004-05-172-7/+10
| | | | | | | SAR register. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81932 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-05-171-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81930 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/10982rearnsha2004-05-162-5/+112
| | | | | | | | | | * arm.md (ne_zeroextractsi): Convert to insn-and-split. (ne_zeroextractsi_shifted): New pattern. (ite_ne_zeroextractsi): New pattern. (ite_ne_zeroextractsi_shifted): New pattern. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81926 138bc75d-0d04-0410-961f-82ee72b054a4
* * options.c (gfc_handle_module_path_options): Fix buffer overrun.pbrook2004-05-162-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81925 138bc75d-0d04-0410-961f-82ee72b054a4
* * arith.c (gfc_range_check): Fix logic error.pbrook2004-05-162-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81918 138bc75d-0d04-0410-961f-82ee72b054a4
* * arith.c: Fix comment typos.pbrook2004-05-162-4/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81912 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-05-161-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81910 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-gimplify.c (c_genericize):steven2004-05-1516-62/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace calls via (*lang_hooks.foo) with lang_hooks.foo. * c-parse.in <expr_no_commas>: Likewise. <if_prefix>: Likewise. <select_or_iter_stmt>: Likewise. * expr.c (expand_var, expand_expr_real_1): Likewise. * expr.h (expand_expr): Make it a static inline function. Move prototype for expand_expr_real up before this. * fold-const.c (fold_relational_hi_lo, fold_relational_const): Likewise. * gimplify.c (gimple_boolify, gimplify_addr_expr, gimplify_asm_expr, gimplify_expr): Likewise. * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg, dump_function_to_file): Likewise. * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise. * tree-inline.c (remap_block, save_body, walk_tree): Likewise. * tree-into-ssa.c (dump_tree_ssa): Likewise. * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree): Likewise. * tree-optimize.c (execute_one_pass): Likewise. * tree-pretty-print.c (dump_generic_bb_buff): Likewise. * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise. objc/ * objc-act.c (objc_build_try_enter_fragment, objc_build_try_epilogue, objc_build_catch_stmt, objc_build_finally_prologue): Replace calls via (*lang_hooks.foo) with lang_hooks.foo (). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81907 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-15 Andrew Pinski <pinskia@physics.uc.edu>pinskia2004-05-152-0/+5
| | | | | | | * gcc.dg/tree-ssa/20040514-1.c: Add '}' that was forgotten. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81900 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/13742tobi2004-05-153-3/+48
| | | | | | | | | | | * decl.c (add_init_expr_to_sym): Verify that COMMON variable is not initialized in a disallowed fashion. * match.c (gfc_match_common): Likewise. (var_element): Verify that variable is not in the blank COMMON, if it is in a common. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81899 138bc75d-0d04-0410-961f-82ee72b054a4
* * be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,jsm282004-05-1512-41022/+42012
| | | | | | | sv.po, tr.po: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81897 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (f95.generated-manpages): Remove.jsm282004-05-152-29/+22
| | | | | | | | | | | | | (f95.srcextra): New. (f95.info, fortran/gfortran.info, fortran/gfortran.dvi, f95.maintainer-clean): Generate info and dvi files in objdir/doc. (f95.dvi): Remove. (dvi): New. (f95.install-info): Remove. (install-info): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81896 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15311pbrook2004-05-152-0/+19
| | | | | | | | | * io/write.c (write_a): right justify A edit output. libgfortran/ * gfortran.fortran-torture/execute/write_a_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81895 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (add_init_expr_to_sym): Check for variable size arrays.pbrook2004-05-152-1/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81894 138bc75d-0d04-0410-961f-82ee72b054a4
* * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, sosayle2004-05-152-6/+14
| | | | | | | that simplify_builtin doesn't destructively modify its argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81893 138bc75d-0d04-0410-961f-82ee72b054a4
* testsuite:tobi2004-05-154-3/+16
| | | | | | | | | | | | | | PR fortran/13826 PR fortran/13940 * gfortran.fortran-torture/compile/data_1.f90: New test. (add second test) fortran: * primary.c (match_boz_constant): Use gfc_notify_std() for issuing a warning or an error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81892 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran:tobi2004-05-156-5/+30
| | | | | | | | | | | | | | | | | PR fortran/13826 * primary.c (match_structure_constructor): Rename ... (gfc_match_structure_constructor): ... to this. Make non-static. (gfc_match_rvalue): Call renamed function. * match.h (gfc_match_structure_constructor): Declare. * match.c (gfc_match_data_constant): Handle structure constructor. testsuite: PR fortran/13826 * gfortran.fortran-torture/compile/data_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81891 138bc75d-0d04-0410-961f-82ee72b054a4
* * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASMrearnsha2004-05-153-0/+117
| | | | | | | | implementations for ARM and Thumb. * arm/t-arm-elf (LIB1ASMFUNCS): Use them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81889 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/13702tobi2004-05-1511-347/+451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81888 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (trans-common.o): Remove redundant dependency.tobi2004-05-152-2/+8
| | | | | | | | (data.c): Replace object file name ... (data.o): ... by the correct one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81887 138bc75d-0d04-0410-961f-82ee72b054a4
* * prefix.c: Update copyright year for previous check-in.sayle2004-05-151-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81884 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-15 Thomas Quinot <quinot@act-europe.fr>sayle2004-05-152-5/+14
| | | | | | | | * prefix.c (update_path): Replace PREFIX with KEY only when it matches a full directory name in PATH. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81883 138bc75d-0d04-0410-961f-82ee72b054a4
* * arm.h (TARGET_APCS_32): Delete.rearnsha2004-05-1527-567/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81881 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't useamodra2004-05-152-2/+16
| | | | | | | | UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg count to 8 to handle n_reg > 2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81880 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/const-elim-1.c: Remove XFAIL for s390*-*-*.uweigand2004-05-153-2/+9
| | | | | | | * gcc.dg/uninit-H.c: Define ASM for __s390__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81879 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/extend.texi: Update WG14 URL.jsm282004-05-154-2/+10
| | | | | | | | testsuite: * gcc.c-torture/execute/20000603-1.c: Update WG14 URL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81876 138bc75d-0d04-0410-961f-82ee72b054a4
* * basic-block.h (life_analysis, delete_noop_moves):steven2004-05-1516-58/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81873 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't evenlaw2004-05-152-17/+40
| | | | | | | | bother marking bypassed virtuals for out-of-ssa. Instead merge bypassed virtuals into vars_to_rename just before into-ssa pass. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81872 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/15444jsm282004-05-155-1/+65
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81871 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-05-151-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81869 138bc75d-0d04-0410-961f-82ee72b054a4
* * dump-parse-tree.c (gfc_show_array_ref): Print colon onlytobi2004-05-142-7/+22
| | | | | | | for ranges when dumping array references. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81866 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/pbrook2004-05-144-4/+25
| | | | | | | | | * decl.c (variable_decl): Always apply default initializer. libgfortran/ * gfortran.fortran-torture/execute/def_init_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81865 138bc75d-0d04-0410-961f-82ee72b054a4
* * name-lookup.c (struct scope_binding): New.geoffk2004-05-142-43/+65
| | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81864 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.pot: Regenerate.jsm282004-05-142-4492/+5251
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81862 138bc75d-0d04-0410-961f-82ee72b054a4
* * arm.md (all peephole2 patterns): Use predicates that validaterearnsha2004-05-142-19/+19
| | | | | | | register classes as appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81860 138bc75d-0d04-0410-961f-82ee72b054a4
* PR opt/14472steven2004-05-142-6/+22
| | | | | | | | | * tree-tailcall.c (process_assignment): Use STRIP_NOPS to ignore type conversions that do not inhibit tail calling. (find_tail_calls): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81855 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganizelaw2004-05-144-2/+47
| | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81853 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/compile/noncontinuation_1.f90: Renametobi2004-05-142-0/+7
| | | | | | | | | | | this ... * gfortran.fortran-torture/compile/noncontinuation_1.f: ... to this. (Correcting previous mistake) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81850 138bc75d-0d04-0410-961f-82ee72b054a4
* * passes.c (rest_of_handle_null_pointer): Remove.steven2004-05-144-1173/+28
| | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81849 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15206tobi2004-05-142-11/+26
| | | | | | | | * trans-intrinsic.c (gfc_conv_intrinsic_rrspacing): Fixed to handle zero correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81848 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>pinskia2004-05-149-41/+110
| | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81847 138bc75d-0d04-0410-961f-82ee72b054a4
* * match.c (gfc_match): Eliminate dead code.tobi2004-05-142-9/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81846 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran:tobi2004-05-144-2/+24
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81845 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-14 Robert Dewar <dewar@gnat.com>charlet2004-05-1423-369/+743
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81844 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15205tobi2004-05-144-1/+20
| | | | | | | | | | * iresolve.c (gfc_resolve_nearest): Add new function. * intrinsic.h: ... declare it here. * intrinsic.c (add_functions): ... add it as resolving function for NEAREST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81843 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran:tobi2004-05-144-10/+49
| | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81842 138bc75d-0d04-0410-961f-82ee72b054a4
* testsuite:tobi2004-05-144-13/+37
| | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81841 138bc75d-0d04-0410-961f-82ee72b054a4