summaryrefslogtreecommitdiffstats
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete errorkenner2004-07-282-8/+3
| | | | | | | check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85250 138bc75d-0d04-0410-961f-82ee72b054a4
* * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,kenner2004-07-282-10/+18
| | | | | | | don't make another one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85249 138bc75d-0d04-0410-961f-82ee72b054a4
* PR optimization/15077kenner2004-07-285-9/+36
| | | | | | | | | | | | * function.h (struct function): Add field saved_static_chain_decl. Fix comment for static_chain_decl. * tree-inline.c (save_body): Add new arg and handle static_chain_decl. * tree-inline.h (save_body): Add new arg. * tree-optimize.c (tree_rest_of_compilation): Handle saving static_chain_decl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85247 138bc75d-0d04-0410-961f-82ee72b054a4
* * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.rth2004-07-286-24/+28
| | | | | | | | | | | | | (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use is_gimple_addressable. * tree-gimple.c (is_gimple_addressable): Rename from is_gimple_addr_expr_arg; accept INDIRECT_REF. (is_gimple_lvalue): Don't test INDIRECT_REF directly. * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for rename to is_gimple_addressable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85243 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.amodra2004-07-282-3/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85242 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-07-281-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85240 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-27 Kelley Cook <kcook@gcc.gnu.org>kcook2004-07-273-3/+7
| | | | | | | * pt.c, typeck.c: Remove spurious carriage returns. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85237 138bc75d-0d04-0410-961f-82ee72b054a4
* * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INTrth2004-07-272-2/+9
| | | | | | | before rounding. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85233 138bc75d-0d04-0410-961f-82ee72b054a4
* * libgcc2.c: Change all conditionals testingzack2004-07-2714-40/+59
| | | | | | | | | | | | | | | | | | | | | | | LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80. * libgcc2.h: Likewise. * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set TYPE_PRECISION of float80_type to 80. * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION of fpreg_type and float80_type to 80. * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h * config/m68k/netbsd-elf.h: Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE to evaluate to 80 whenever they would formerly have evaluated to 96. * config/i386/sco5.h: Remove unnecessary redefinition of LONG_DOUBLE_TYPE_SIZE. * doc/rtl.texi: Clarify uses of XFmode and TFmode. * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for XFmode, with a bitsize of 80. Update commentary. * config/ia64/ia64-modes.def: Likewise. * config/m68k/m68k-modes.def: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85232 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-27 Andrew Pinski <apinski@apple.com>pinskia2004-07-272-3/+7
| | | | | | | * g++.dg/rtti/tinfo1.C: Correct the xfail. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85231 138bc75d-0d04-0410-961f-82ee72b054a4
* * cfgexpand.c (tree_expand_cfg): Fix comment.steven2004-07-2713-178/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calls.c (expand_call): Ignore rtx_equal_function_value_matters. * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets): Remove. (prepare_function_start): Don't set rtx_equal_function_value_matters. * integrate.c (copy_rtx_and_substitute): Don't test for it. * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets. Don't set rtx_equal_function_value_matters. Don't register RTL hooks here again. Update leading comment. * rtl.c (rtx_equal_function_value_matters): Remove. (rtx_equal_p): Don't test for it. * simplify-rtx.c (simplify_binary_operation, simplify_subreg): Likewise. * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND. * rtl.c (note_insn_name): Likewise. * emit-rtl.c (remove_unnecessary_notes): Don't handle it. * final.c (final_scan_insn): Likewise. * except.c (finish_eh_generation): Don't call cfg_cleanup from here. * passes.c (rest_of_handle_eh): Do it here. * stmt.c (struct nesting): Remove struct nesting block member. (struct stmt_status): Remove x_block_start_count field. (current_block_start_count): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85228 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree-optimize.c (register_one_dump_file): Update condition that usesbbooth2004-07-273-44/+64
| | | | | | | | | | | | | | | | static_pass_number. (dup_pass_1): Replace with... (next_pass_1): This. (NEXT_PASS): Call next_pass_1. (DUP_PASS): Remove. (init_tree_optimization_passes): Remove uses of DUP_PASS. (execute_one_pass): Update condition that uses static_pass_number. * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed integer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85226 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/pragma-isr.c: New test.law2004-07-271-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85225 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/14429lerdsuwa2004-07-275-4/+53
| | | | | | | | | | * pt.c (coerce_template_template_parms) <PARM_DECL case>: Only check when the type of ARG is not dependent. * g++.dg/template/ttp11.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85222 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/m32r/m32r.c: Include integrate.h in order to get the prototype fornickc2004-07-273-8/+19
| | | | | | | | | | | get_hard_reg_initial_val(). * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r" and tidy up indentation. (final_presence_set): Use absence_set instead, so that if there is nothing in the "o" pipe the "s" pipe can be scheduled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85221 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree-ssa-alias.c (create_name_tags): Ignore pointers thatdnovillo2004-07-275-2/+59
| | | | | | | | | | | | | | | | don't have PT_VARS nor PT_MALLOC set. Clear name tag from pointers that have not been dereferenced. (set_pt_anything, set_pt_malloc): Forward declare. * tree-ssa-copy.c (may_propagate_copy): Compare alias sets, not type compatibility when determining if a pointer can be copy propagated. testsuite/ChangeLog * gcc.c-torture/compile/20040727-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85220 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.h (canonicalize_condition, get_condition): Add an int argument.rsandifo2004-07-278-98/+53
| | | | | | | | | | | | | | | | | | | | | | * gcse.c (fis_get_condition): Reimplement using get_condition, leaving it to check whether the condition is still valid at the jump insn. * ifcvt.c (noce_get_condition): Likewise. (noce_get_alt_condition): Update call to canonicalize_condition. * loop-iv.c (simplify_using_initial_values): Update call to get_condition. Remove FIXME. (check_simple_exit): Update call to get_condition. * loop-unswitch.c (may_unswitch_on): Likewise. * loop.c (check_dbra_loop): Likewise. (canonicalize_condition, get_condition): Add an argument to say whether the condition must still be valid at INSN. (get_condition_for_loop): Update call to get_condition. Require that the condition be valid at INSN. * predict.c (estimate_probability): Update call to get_condition. Remove unused earliest parameter. (expected_value_to_br_prob): Update call to canonicalize_condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85218 138bc75d-0d04-0410-961f-82ee72b054a4
* - note PR target/16239 in previous rs6000.md ChangeLog entry.dje2004-07-271-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85216 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-26 Eric Christopher <echristo@redhat.com>echristo2004-07-274-29/+68
| | | | | | | | | | | | * tree-dfa.c (add_referenced_var): Register initializers of global variables. 2004-07-26 Eric Christopher <echristo@redhat.com> * gcc.c-torture/compile/20040726-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85214 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-07-271-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85212 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-26 Andrew Pinski <apinski@apple.com>pinskia2004-07-262-3/+7
| | | | | | | * g++.dg/rtti/tinfo1.C: Xfail. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85209 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/i386.c (function_arg): Always treat 8-rth2004-07-262-1/+30
| | | | | | | | | and 16-byte wide vectors the same, even if MMX/SSE are disabled. (contains_128bit_aligned_vector_p): Add comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85207 138bc75d-0d04-0410-961f-82ee72b054a4
* * ra.h (enum node_type): Rename to:amylaar2004-07-263-8/+14
| | | | | | | | (enum ra_node_type). * ra-colorize.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85202 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++spec.c (LIBSTDCXX_PROFILE): Default to LIBSTDCXX.geoffk2004-07-262-5/+15
| | | | | | | | (lang_specific_driver): If the C++ or math library options don't start with '-l', don't count them as added libraries. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85201 138bc75d-0d04-0410-961f-82ee72b054a4
* * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flagrsandifo2004-07-262-0/+6
| | | | | | | after simplifying the jump. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85200 138bc75d-0d04-0410-961f-82ee72b054a4
* * calls.c (combine_pending_stack_adjustment_and_call): Makerth2004-07-266-12/+30
| | | | | | | | | | | | | | | | | preferred_unit_stack_boundary argument unsigned. Make unadjusted_alignment unsigned. (expand_call): Make preferred_stack_boundary and preferred_unit_stack_boundary variables unsigned. * function.c (assign_stack_local_1): Make alignment unsigned. * function.h (struct function): Make stack_alignment_needed, preferred_stack_boundary unsigned. * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned. (ix86_compute_frame_layout): Make stack_alignment_needed, preferred_alignment variables unsigned. * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85196 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.h: Fix typo in comment.tromey2004-07-262-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85195 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/12804drow2004-07-262-8/+13
| | | | | | | | | | * ggc-zone.c (struct alloc_chunk): Remove attribute packed. (MAX_FREE_BIN_SIZE): Increase on 64-bit targets. (ggc_free): Remove incorrect freeing. (sweep_pages): Advance PP for large pages. Fix indentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85194 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/16643rsandifo2004-07-2611-26/+66
| | | | | | | | | | | | | | | | | | | * cfglayout.h (cfg_layout_initialize): Add a flags parameter. * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg. * basic-block.h (reorder_basic_blocks): Add a flags parameter. * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize. (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize. * function.c (thread_prologue_and_epilogue_insns): Likewise. * rtl.h (tracer): Add a flags parameter. * tracer.c (tracer): Pass it to cfg_layout_initialise. * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks. (rest_of_handle_reorder_blocks): Update calls to tracer and reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate. (rest_of_handle_tracer): Pass 0 to tracer. (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85191 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/rs6000/rs6000.md (movdi_internal64): Further disparagedje2004-07-262-1/+6
| | | | | | | f->f. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85190 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (build_super_invocation): Adjust declaration order tohp2004-07-262-1/+8
| | | | | | | avoid declaration after statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85189 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>charlet2004-07-2627-1580/+1959
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sem_util.adb (Requires_Transient_Scope): Temporarily disable optimization, not supported by the tree-ssa back-end. 2004-07-26 Olivier Hainque <hainque@act-europe.fr> * s-mastop-irix.adb: Update comments. * a-except.adb (Exception_Information): Raise Constraint_Error if exception Id is Null_Id. This is required behavior, which is more reliably and clearly checked at the top level interface level. 2004-07-26 Javier Miranda <miranda@gnat.com> * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization call if a component has no default_expression and the box is used. * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no default_expression and you use box, it behaves as if you had declared a stand-alone object. (Resolve_Record_Aggregate): If a component has no default_expression and you use box, it behaves as if you had declared a stand-alone object. * sem_ch10.adb (Install_Siblings): Do not make visible the private entities of private-with siblings. 2004-07-26 Ed Schonberg <schonberg@gnat.com> * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view for a component of an itype, set the parent pointer for analysis, there is no list in which to insert it. * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for bona-fide renamings, not for inherited operations. * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an actual for a formal that is an access parameter, create local finalization list even if the expression is not an aggregate. 2004-07-26 Ed Schonberg <schonberg@gnat.com> PR ada/16213 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming): Diagnose properly illegal subprogram renamings that are library units. 2004-07-26 Ed Schonberg <schonberg@gnat.com> PR ada/15588 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type conversion rewritten as an unchecked conversion, check that original expression is a variable. * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an unchecked_conversion, create new node rather than rewriting in place, to preserve original construct. 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * gigi.h (gnat_expand_body): Deleted. * Make-lang.in: (trans.o): Depends on function.h. * misc.c: (gnat_expand_body): Moved to here. * trans.c (gnat_expand_body_1): Deleted. (gnat_expand_body): Moved from here. (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc. (add_stmt): Check for marked visited with global_bindings_p. (gnat_gimplify_expr, case COMPONENT_REF): New case. (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp. * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a VIEW_CONVERT_EXPR if not operation type. * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for fat pointer. * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor changes: reformatting of negation operators, removing unneeded inequality comparison with zero, converting equality comparisons with zero to negations, changing int/0/1 to bool/false/true, replace calls to gigi_abort with abort, and various other similar changes. 2004-07-26 Vincent Celier <celier@gnat.com> * gnatcmd.adb (GNATCmd): Add processing for new built-in command "setup". * make.adb (Gnatmake): Fail when a library is not present and there is no object directory. * mlib-prj.adb (Check_Library): No need to check if the library needs to be rebuilt if there is no object directory, hence no object files to build the library. * opt.ads (Setup_Projects): New Boolean flag. * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and Location. Create directory when Kind /= "" and in "gnat setup". Report error if directory cannot be created. (Ada_Check): Create library interface copy dir if it does not exist and we are in "gnat setup". (Find_Sources): No error if in "gnat setup" and no Ada sources were found. (Language_Independent_Check): Create object directory, exec directory and/or library directory if they do not exist and we are in "gnat setup". * vms_conv.ads: (Command_Type): New command Setup. * vms_conv.adb (Initialize): Add Setup component of Cammand_List. * vms_data.ads: Add qualifiers/switches for new built-in command "setup". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85188 138bc75d-0d04-0410-961f-82ee72b054a4
* .:nathan2004-07-269-28/+43
| | | | | | | | | | | | | | | | | | * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree). (BINFO_BASE_ACCESS): Adjust. (BINFO_BASE_ACCESS_APPEND): New. (struct tree_binfo): Make base_accesses a VEC(tree) pointer. * dbxout.c (dbxout_type): Adjust binfo access accessing. * dwarf2out.c (gen_member_die): Likewise. * tree-dump.c (deque_and_dump): Likewise. cp: * decl.c (xref_basetypes): Adjust base access vector creation. * rtti.c (get_pseudo_ti_init, get_pseudo_ti_desc): Adjust base access accesses. * search.c (dynamic_cast_base_recurse, dfs_access_in_type): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85187 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_divfalk2004-07-262-3/+8
| | | | | | | costs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85186 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/i386.c (output_fp_compare): Use ffreep to pop topsayle2004-07-262-1/+6
| | | | | | | value off of the stack if TARGET_USE_FFREEP. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85178 138bc75d-0d04-0410-961f-82ee72b054a4
* * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().bernie2004-07-264-8/+12
| | | | | | | | | * gengtype-yacc.y: Likewise. Replace free() with XDELETE (). * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer check on invocation of XRESIZEVEC (). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85177 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c (disable_builtin_function): Rename variable n tobernie2004-07-265-46/+60
| | | | | | | | | | | | new_disabled_builtin. * c-decl.c (duplicate_decls): Rename parameter decl to new_decl. Rename local variable old to old_decl. * gensupport.c (shift_output_template): Rename parameter old to src. * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to old_rtx and newx to new_rtx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85175 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (C_PRAGMA_H): New variable to track dependenciesbernie2004-07-264-16/+27
| | | | | | | | | | of c-pragma.h. * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to enum cpp_ttype. * c-lex.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85174 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-07-261-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85172 138bc75d-0d04-0410-961f-82ee72b054a4
* * fold-const.c (constant_boolean_node): Make extern.sayle2004-07-256-32/+66
| | | | | | | | | | | | | | | | | | (make_range): Wrap long lines. (fold_cond_expr_with_comparison): Remove unnecessary call to pedantic_non_lvalue. Add missing calls to fold_convert. (fold_truthop): Add missing calls to fold_convert. (fold): Likewise. * tree.h (constant_boolean_node): Add prototype here. * builtins.c (expand_builtin_strncmp): Add missing calls to fold_convert. * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Call fold_convert and constant_boolean_node to correct types. * tree-ssa-forwprop.c (substitute_single_use_vars): Add missing call to fold_convert to correct types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85169 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove DOS line endingsgiovannibajo2004-07-253-59/+59
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85168 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9283giovannibajo2004-07-2542-25/+584
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/15000 * c-common.c (c_common_attribute_table): Allow handle_visibility_attribute to be called for types. (handle_visibility_attribute) When given a type, set the visibility bits on the TYPE_NAME. When given a decl, don't set no_add_attrs so that we can check later whether the attribute was present. Added warning if attribute applied to non class type. * c-decl.c (diagnose_mismatched_decls): Updated rules for merging decls and checking that they are consistent. * common.opt: Added -fvisibility. * c.opt, c-opts.c: Added -fvisibility-inlines-hidden. * c-pragma.h, c-pragma.c: Added handle_pragma_visibility(). * flags.h, tree.h: Added assorted support defines for overall patch * opts.c: Added parsing support for -fvisibility. * tree.c (build_decl): Set visibility for all decls to be whatever is in force at that time. * varasm.c (default_binds_local_p_1): Reworked logic determining when to make a symbol locally bound. * doc/invoke.texi: Added documentation for -fvisibility and -fvisibility-inlines-hidden. PR c++/15000 PR c++/9283 * class.c (check_field_decls): Apply hidden visibility if -fvisibility-inlines-hidden and inlined unless otherwise specified (build_vtable): Set vtable visibility to class visibility. (check_field_decls): Default static member visibility to class visibility. (check_methods): Default method visibility to class visibility. * cp-tree.h: Added CLASSTYPE_VISIBILITY and CLASSTYPE_VISIBILITY_SPECIFIED macro. * decl.c (duplicate_decls): New logic for merging definition decls with declaration decls. Added ignore & warning when non default applied to global operator new or delete. * method.c, optimize.c, rtti.c: Added setting of VISIBILITY_SPECIFIED wherever VISIBILITY was changed * rtti.c (get_tinfo_decl): Set typeinfo visibility to class visibility. (tinfo_base_init): Set typeinfo name visibility to class visibility. PR c++/9283 PR c++/15000 * gcc.dg/visibility-9.c, gcc.dg/visibility-a.c: New tests. * g++.dg/ext/visibility/: New directory. * g++.dg/ext/visibility-1.C, g++.dg/ext/visibility-2.C g++.dg/ext/visibility-3.C, g++.dg/ext/visibility-4.C, g++.dg/ext/visibility-5.C, g++.dg/ext/visibility-6.C, g++.dg/ext/visibility-7.C: Move to g++.dg/ext/visibility/. * g++.dg/ext/visibility/fvisibility.C, g++.dg/ext/visibility/fvisibility-inlines-hidden.C, g++.dg/ext/visibility/fvisibility-override1.C g++.dg/ext/visibility/fvisibility-override2.C g++.dg/ext/visibility/memfuncts.C g++.dg/ext/visibility/noPLT.C g++.dg/ext/visibility/pragma.C g++.dg/ext/visibility/pragma-override1.C g++.dg/ext/visibility/pragma-override2.C g++.dg/ext/visibility/staticmemfuncts.C g++.dg/ext/visibility/virtual.C: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85167 138bc75d-0d04-0410-961f-82ee72b054a4
* * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.bernie2004-07-2514-64/+97
| | | | | | | | | | | | | | | | | | * c-common.c: Add missing casts from void * to other types. * c-decl.c: Likewise. * c-format.c: Likewise. * c-lex.c: Likewise. * c-pragma.c: Likewise. * c-typeck.c: Likewise. * defaults.h: Likewise. * genconstants.c: Likewise. * gengtype-lex.l: Likewise. * genmodes.c: Likewise. * read-rtl.c: Likewise. * rtl.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85166 138bc75d-0d04-0410-961f-82ee72b054a4
* Add a few missing items to a ChangeLog entry of mine.bernie2004-07-251-0/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85164 138bc75d-0d04-0410-961f-82ee72b054a4
* * bitmap.c: Use type-safe memory allocation macros from libiberty.bernie2004-07-2516-80/+102
| | | | | | | | | | | | | | | | | | | | | | * c-common.c: Likewise. * c-decl.c: Likewise. * c-lang.c: Likewise. * c-lex.c: Likewise. * c-opts.c: Likewise. * c-parse.in: Likewise. * c-typeck.c: Likewise. * genconditions.c: Likewise. * gengtype-lex.l: Likewise. * gengtype-yacc.y: Likewise. * gengtype.c: Likewise. * genmodes.c: Likewise. * gensupport.c: Likewise. * read-rtl.c: Likewise. * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to htab_find_slot(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85163 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix a ChangeLog entry.bernie2004-07-251-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85162 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-decl.c (groktypename, groktypename_in_param_context): Renamebernie2004-07-253-18/+24
| | | | | | | | variable typename to type_name. * c-lex.c (interpret_float): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85161 138bc75d-0d04-0410-961f-82ee72b054a4
* * convert.c (convert_to_real, convert_to_integer,sayle2004-07-2514-159/+184
| | | | | | | | | | | | | | | | | | | | | | | | convert_to_complex): Replace calls to build with calls to buildN. * coverage.c (tree_coverage_counter_ref): Likewise. * dojump.c (do_jump): Likewise. * dwarf2out.c (loc_descriptor_from_tree): Likewise. * emit-rtl.c (component_ref_for_mem_expr, set_mem_attributes_minus_bitpos): Likewise. * explow.c (update_nonlocal_goto_save_area): Likewise. * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p, expand_mult_add): Likewise. * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall, store_constructor, get_inner_reference, expand_expr_real_1, try_casesi, try_tablejump): Likewise. * function.c (expand_function_start): Likewise. * stmt.c (emit_case_bit_tests, expand_end_case_type, node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise. * stor-layout.c (place_union_field, layout_type): Likewise. * tree.c (substitute_in_expr, tree_fold_gcd): Likewise. * varasm.c (copy_constant): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85160 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c: Rename all identifiers named `new'.bernie2004-07-255-55/+62
| | | | | | | | | * c-decl.c: Likewise. * gensupport.c: Likewise. * simplify-rtx.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85159 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/15360jsm282004-07-254-2/+44
| | | | | | | | | | | | | * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized declarations until after calling pushdecl. (grokdeclarator): Set DECL_EXTERNAL for variables based on use of "extern" and not on whether the declaration is initialized. testsuite: * gcc.dg/pr15360-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85156 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud