aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-06-07Correct previous ChangeLog entry.Ziemowit Laski1-2/+2
From-SVN: r82686
2004-06-07objc.exp (objc_target_compile): Revert the '-framework Foundation' flag fix...David Ayers7-14/+71
[gcc/testsuite/ChangeLog] 2004-06-07 David Ayers <d.ayers@inode.at> Ziemowit Laski <zlaski@apple.com> * lib/objc.exp (objc_target_compile): Revert the '-framework Foundation' flag fix, since bare Darwin does not ship with the Foundation framework. * objc/execute/next_mapping.h: Provide a local NSConstantString @interface and @implementation. (objc_constant_string_init): A constructor function, used to initialize the NSConstantString meta-class object. * objc/execute/string1.m: Include "next_mapping.h" instead of <Foundation/NSString.h>. * objc/execute/string2.m: Likewise. * objc/execute/string3.m: Likewise. * objc/execute/string4.m: Likewise. Co-Authored-By: Ziemowit Laski <zlaski@apple.com> From-SVN: r82685
2004-06-07config.in: Regenerate.Paolo Bonzini2-13/+9
2004-06-06 Paolo Bonzini <bonzini@gnu.org> * config.in: Regenerate. From-SVN: r82684
2004-06-07tree-cfg.c (tree_verify_flow_info): Make sure that labels in SWITCH_LABELS ↵Steven Bosscher2-0/+34
are always sorted. * tree-cfg.c (tree_verify_flow_info): Make sure that labels in SWITCH_LABELS are always sorted. From-SVN: r82683
2004-06-07hooks.c (hook_int_void_1): New generic hook.Steven Bosscher5-3/+22
* hooks.c (hook_int_void_1): New generic hook. * hooks.h (hook_int_void_1): Add prototype. * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/c4x/c4x.md: Replace dummies for the old pipeline model with dummies for the new one. From-SVN: r82682
2004-06-06fp-cmp-4.c (FLOAT): New.H.J. Lu11-37/+108
2004-06-06 H.J. Lu <hongjiu.lu@intel.com> * gcc.c-torture/execute/ieee/fp-cmp-4.c (FLOAT): New. Default to double. Replace double with FLOAT. * gcc.c-torture/execute/ieee/fp-cmp-8.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-4e.c: New file. * gcc.c-torture/execute/ieee/fp-cmp-4f.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-4l.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-4q.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-8e.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-8f.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-8l.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-8q.c: Likewise. From-SVN: r82680
2004-06-07tree.h (lvalue_or_else): Delete function prototype.Roger Sayle5-6/+12
* tree.h (lvalue_or_else): Delete function prototype. * c-typeck.c (lvalue_or_else): Make static. Add static prototype. * cp/cp-tree.h (lvalue_or_else): Add function prototype. From-SVN: r82679
2004-06-07Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r82676.2
2004-06-06re PR target/14542 (ICE on simple source)Stephane Carrez2-1/+13
PR target/14542 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid a live change of a register after peephole replacement. From-SVN: r82673
2004-06-06re PR c/13519 (typeof(nonconst+const) is const)Joseph Myers7-139/+295
PR c/13519 * c-typeck.c (composite_type, common_pointer_type): New functions. (common_type): Split parts into composite_type and common_pointer_type. Ensure that arithmetic operations return unqualified types without attributes. Don't make composite type of signed enum and compatible integer be unsigned. (build_conditional_expr, build_binary_op): Use common_pointer_type. * c-decl.c (merge_decls): Use composite_type. * c-tree.h (composite_type): Declare. testsuite: * gcc.c-torture/enum-3.c, gcc.dg/pr13519-1.c: New tests. From-SVN: r82671
2004-06-06re PR target/14457 (ICE with simple c++ source)Stephane Carrez5-10/+43
PR target/14457 * config/m68hc11/m68hc11.c (splitable_operand): New predicate. * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare. * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it. (inhibit_libc): Must define. * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand. ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise. ("xorhi3"): Likewise. From-SVN: r82670
2004-06-06cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in always_inline pass.Eric Botcazou2-3/+8
* cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in always_inline pass. From-SVN: r82668
2004-06-05Missed these two in previous commit.David S. Miller2-0/+8
From-SVN: r82665
2004-06-05linux.h (TARGET_C99_FUNCTIONS): Set.David S. Miller1-0/+5
2004-06-05 David S. Miller <davem@nuts.davemloft.net> * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set. * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise. From-SVN: r82664
2004-06-06re PR c++/15503 (nested template problem)Giovanni Bajo4-1/+43
PR c++/15503 * parser.c (cp_parser_mem_initializer_id): Gracefully reject 'typename', and accept 'template'. PR c++/15503 * g++.dg/template/meminit2.C: New test. From-SVN: r82660
2004-06-06Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r82657.2
2004-06-05regclass.c (init_reg_sets): Check for missing registers in target ↵Bernardo Innocenti2-0/+11
initializer macros FIXED_REGISTERS and... * regclass.c (init_reg_sets): Check for missing registers in target initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS. From-SVN: r82655
2004-06-05Makefile.am: Add makedepend.Zack Weinberg3-9/+28
libcpp: * Makefile.am: Add makedepend. * Makefile.in, aclocal.m4: Regenerate. * charset.c: Insert a space to avoid a warning. * directives.c: Include mkdeps.h. (_cpp_handle_directive): Reenable macro expander if appropriate. (undefine_macros): Inline body of _cpp_free_definition for speed. Do not call undef callback or _cpp_warn_if_unused_macro. (cpp_get_deps): New interface. * files.c (search_cache): Add pfile argument. Check for file that would be found by "" or <> search here... (_cpp_find_file): ...not here. Correct recorded start_dir of files found by directory-of-current-file search that would be found by "" or <> search. * init.c (cpp_add_dependency_target): Delete. * internal.h (struct lexer_state): Add discarding_output flag. * lex.c (lex_identifier): Compute hash function while scanning. * macro.c (cpp_scan_nooutput): Disable macro expansion outside directives. * makedepend.c: New file. * mkdeps.c (struct deps): Add vpath vector. (apply_vpath, deps_add_vpath): New function. (deps_free): Free vpath vector. (deps_add_dep, deps_add_target): Use apply_vpath. * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. (ht_lookup_with_hash): New function. * cpplib.h, mkdeps.h: Update prototypes. * symtab.h: Update prototypes. (HT_HASHSTEP, HT_FINISH): New macros. gcc: * Makefile.in (MKDEPS_H): New shorthand. (c-opts.o): Update dependencies. * c-opts.c: Include mkdeps.h. (handle_deferred_opts): Use cpp_get_deps and deps_add_target, not cpp_add_dependency_target. From-SVN: r82654
2004-06-05v850.c (v850_use_dfa_pipeline_interface): New.Steven Bosscher3-3/+25
* config/v850/v850.c (v850_use_dfa_pipeline_interface): New. * config/v850/v850.md: Convert to DFA scheduler description. From-SVN: r82653
2004-06-05re PR fortran/15478 (gfortran manual problems)Tobias Schlüter2-2/+8
PR fortran/15478 * gfortran.texi: The documentation doesn't contain infomration on how to report bugs, and shouldn't, so remove the line which says it does. From-SVN: r82650
2004-06-05Fix date on ChangeLog entry from previous commitTobias Schlüter1-1/+1
From-SVN: r82649
2004-06-05re PR fortran/15478 (gfortran manual problems)Tobias Schlüter3-59/+30
PR fortran/15478 * doc/install.texi: Document GMP as prerequisite. Document --with-gmp and --with-gmp-dir configure options. * fortran/gfortran.texi: Remove section 'Compiling and testing', remove TOC reference to it. From-SVN: r82648
2004-06-05intrinsic.c (sort_actual): Keep track of type of missing arguments.Tobias Schlüter2-1/+12
* intrinsic.c (sort_actual): Keep track of type of missing arguments. (Missing from previous commit.) From-SVN: r82645
2004-06-05combine.c (simplify_shift_const): Check shift amount is a CONST_INT.Graham Stott2-30/+37
* combine.c(simplify_shift_const): Check shift amount is a CONST_INT. From-SVN: r82644
2004-06-05toplev.c (init_asm_output): Add explicit 'b' to mode when opening asm_out_file.Danny Smith12-15/+234
* toplev.c (init_asm_output): Add explicit 'b' to mode when opening asm_out_file. * c-pch.c (c_common_write_pch): Remove unnecessary fflush before reading asm_out_file. Replace fflush after reading asm_out_file with fseek. * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define default and add to HOST_HOOKS_INITIALIZER. * hosthooks.h (gt_pch_alloc_granularity): Declare hook function. * ggc-common.c (default_gt_pch_alloc_granularity): New function. (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity to set mmi.offset padding. * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to $(srcdir)/config/i386/winnt.c. (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise. (i[34567]86-*-uwin*): Likewise. *i[34567]86-*-interix3*): Likewise. * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj. * config/i386/host-mingw32.c: New file. * config/i386/x-mingw32: Add rule for host-mingw32.o. * config/i386/winnt.c: (struct extern_list) Tag as GTY. (extern_head): Likewise. (struct export_list) Likewise. (export_head): Likewise. (i386_pe_record_external_function): Use ggc_alloc. (i386_pe_record_exported_symbol): Likewise. Include "gt-winnt.h" at end. * doc/hostconfig.texi: Document HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY. From-SVN: r82643
2004-06-05m68k.h: Remove comments copied over from tm.texi.Bernardo Innocenti2-539/+107
* config/m68k/m68k.h: Remove comments copied over from tm.texi. Rename 68000 and 68k to m68k for consistency in comments. Remove trailing whitespace before EOLs and before TABs. (MAX_CODE_ALIGN): Remove unused macro. (CALL_USED_REGISTERS): Reformat and add comments. From-SVN: r82642
2004-06-05Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r82639.2
2004-06-04gcc.c (MFLIB_SPEC): Remove library references...Frank Ch. Eigler2-1/+6
2004-06-04 Frank Ch. Eigler <fche@redhat.com> * gcc.c (MFLIB_SPEC): Remove library references, to require users to enumerate -lmudflap* and dependencies when linking. From-SVN: r82633
2004-06-04re PR target/15822 (Several alpha testsuite regressions: ↵Paolo Bonzini7-4/+23
gcc.c-torture/execute/ieee/fp-cmp-[458].c) 2004-06-04 Paolo Bonzini <bonzini@gnu.org> PR target/15822 * gcc.c-torture/execute/compare-fp-1.c, gcc.c-torture/execute/compare-fp-2.c, gcc.c-torture/execute/compare-fp-3.c, gcc.c-torture/execute/compare-fp-4.c, gcc.c-torture/execute/compare-fp-3.x, gcc.c-torture/execute/compare-fp-4.x: Moved... * gcc.c-torture/execute/ieee/compare-fp-1.c, gcc.c-torture/execute/ieee/compare-fp-2.c, gcc.c-torture/execute/ieee/compare-fp-3.c, gcc.c-torture/execute/ieee/compare-fp-4.c, gcc.c-torture/execute/ieee/compare-fp-3.x, gcc.c-torture/execute/ieee/compare-fp-4.x: ...here. From-SVN: r82631
2004-06-04re PR target/15822 (Several alpha testsuite regressions: ↵Paolo Bonzini2-1/+11
gcc.c-torture/execute/ieee/fp-cmp-[458].c) 2004-06-04 Paolo Bonzini <bonzini@gnu.org> PR target/15822 * dojump.c (do_jump): Fix uninitialized variable tcode1. From-SVN: r82626
2004-06-04Makefile.in (insn-conditions.o): Back out removal of reload.h.Jerry Quinn3-1/+8
2004-06-04 Jerry Quinn <jlquinn@optonline.net> * Makefile.in (insn-conditions.o): Back out removal of reload.h. * genconditions.c (write_header): Back out removal of reload.h. From-SVN: r82625
2004-06-04Re-apply hopefully fixed patch:Jan Hubicka2-7/+17
* i386.md (UNSPECV_EH_RETURN): Kill. (eh_return): Use jump_insn. (eh_return_si, eh_return_di): Change pattern to jump instruction. From-SVN: r82624
2004-06-04* cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.Jeff Law2-1/+5
From-SVN: r82623
2004-06-04except.c (for_each_eh_region): New function.Steven Bosscher4-4/+59
* except.c (for_each_eh_region): New function. * except.h (for_each_eh_region): Add a prototype for it. * tree-cfg.c (update_eh_labels): New function, callback for for_each_eh_region. (label_for_bb): Make global static, unfortunately. (cleanup_dead_labels): Also update label references for exception regions. From-SVN: r82622
2004-06-04New ObjC testcases to make sure Protocol-isEqual: is well implemented in theNicola Pero1-0/+10
runtime library From-SVN: r82621
2004-06-04New testcasesNicola Pero4-0/+79
From-SVN: r82620
2004-06-03mips.c (struct irix_section_align_entry): Fix GTY marker.Chris Demetriou2-1/+6
2004-06-03 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.c (struct irix_section_align_entry): Fix GTY marker. From-SVN: r82618
2004-06-04Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r82615.2
2004-06-03re PR c++/14639 ([non-unit-at-a-time] Incorrect emission of unused ↵Andrew Pinski2-1/+6
compiler-generated destructor) 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu> Jan Hubicka <jh@suse.cz> PR c++/14639 * method.c (use_think): Do not mark thunk as referenced. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r82612
2004-06-03toplev.c (check_global_declarations): Don't ask for DECL_ASSEMBLER_NAME ↵Geoffrey Keating2-3/+9
unless the function really is declared static... * toplev.c (check_global_declarations): Don't ask for DECL_ASSEMBLER_NAME unless the function really is declared static and not defined. From-SVN: r82611
2004-06-03re PR c++/15428 (vtables shouldn't always be weak on Darwin)Matt Austern6-18/+70
PR c++/15428 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense. * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise. * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite documentation to reflect the new macro name and to clarify its meaning. * cp/decl2.c (maybe_emit_vtables): If TARGET_WEAK_NOT_IN_ARCHIVE_TOC is nonzero, and if we see a noninline definition of a key method, make the vtables nonweak. From-SVN: r82610
2004-06-04gfortran.h (gfc_actual_arglist): New field missing_arg_type.Tobias Schlüter6-4/+49
fortran/ * gfortran.h (gfc_actual_arglist): New field missing_arg_type. * interface.c (compare_actual_formal): Keep type of omitted optional arguments. * trans-expr.c (gfc_conv_function_call): Add string length argument for omitted string argument. testsuite/ * gfortran.fortran-torture/execute/optstring_1.f90: New testcase. From-SVN: r82608
2004-06-03* rtl.def (VAR_LOCATION): Make RTX_EXTRA.Steven Bosscher2-2/+6
From-SVN: r82607
2004-06-03darwin.c (machopic_indirect_data_reference): Copy the SYMBOL_REF_DECL from ↵Andrew Pinski2-0/+8
the original RTX for the new non-lazy pointer RTX. 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu> * config/darwin.c (machopic_indirect_data_reference): Copy the SYMBOL_REF_DECL from the original RTX for the new non-lazy pointer RTX. From-SVN: r82606
2004-06-04One more comment updateTobias Schlüter1-2/+2
From-SVN: r82605
2004-06-03trans.c (gfc_finish_block, [...]): Build statement lists instead of compound ↵Paul Brook2-4/+30
expr chains. * trans.c (gfc_finish_block, gfc_add_expr_to_block): Build statement lists instead of compound expr chains. (gfc_trans_code): Annotate statement lists. From-SVN: r82604
2004-06-03* trans-array.c: Fix spelling in comments.Tobias Schlüter2-16/+20
From-SVN: r82603
2004-06-03tree.h: Remove include of version.hMark G. Adams10-7/+27
* tree.h: Remove include of version.h * c-cppbuiltin.c: Include version.h * diagnostic.c: Include version.h * dwarf2out.c: Include version.h * toplev.c: Include version.h * vmsdbgout.c: Include version.h * Makefile.in: Remove dependency on version.h from TREE_H, and add dependencies to required .o targets * gjavah.c: Include version.h From-SVN: r82601
2004-06-03Makefile.in (RA_H, [...]): New.Jerry Quinn12-55/+170
2004-06-03 Jerry Quinn <jlquinn@optonline.net> * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H, CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New. (TARGET_H): Add insn-modes.h. (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o, loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o, loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o, predict.o, cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H. (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o, bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with CFGLAYOUT_H. (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o): Replace ra.h with RA_H. (resource.o, regrename.o, insn-conditions.o, insn-emit.o, insn-recog.o): Replace resource.h with RESOURCE_H. (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h with SCHED_INT_H. (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o): Replace df.h with DF_H. (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H. (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o): Replace tree-ssa-live.h with TREE_SSA_LIVE_H. (insn-conditions.o): Remove unused reload.h. * cfglayout.h: Add include guard. Include basic-block.h. * cfgloop.h: Add include guard. Include basic-block.h, rtl.h. * ddg.h: Include sbitmap.h, basic-block.h, df.h. * df.h: Add include guard. Include bitmap.h, sbitmap.h, basic-block.h. * genconditions.c: Remove reload.h. * ra.h: Add include guard. Include bitmap.h, sbitmap.h, hard-reg-set.h, insn-modes.h. * resource.h: Add include guard. Include hard-reg-set.h. * sched-int.h: Add include guard. Include insn-attr.h, basic-block.h, rtl.h. * target.h: Add include guard. Include insn-modes.h. * tree-ssa-live.h: Include partition.h. From-SVN: r82600
2004-06-03tree-ssa-ccp.c (varying_ssa_edges): New worklist.Daniel Berlin2-26/+77
2004-06-03 Daniel Berlin <dberlin@dberlin.org> Kenneth Zadeck <zadeck@naturalbridge.com> * tree-ssa-ccp.c (varying_ssa_edges): New worklist. (add_var_to_ssa_edges_worklist): Add value argument. Update callers. Use new worklist. (process_ssa_edge_worklist): New function. (tree_ssa_ccp): Move worklist processing core to process_ssa_edge_worklist, and just call that for the two worklists. From-SVN: r82598