aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-11-26Daily bump.GCC Administrator1-1/+1
From-SVN: r73936
2003-11-25re PR java/13183 ([unit-at-a-time] incorrect multidimensional array ↵Jeff Sturm6-21/+36
initializer with -O2) Fix PR java/13183. * constants.c (cpool_for_class): New function. (outgoing_cpool): Remove global variable. (alloc_name_constant): Use cpool_for_class. (build_constants_constructor): Likewise. * decl.c (java_expand_body): Set current_class. * java-tree.h (outgoing_cpool) Remove declaration. (init_outgoing_cpool): Likewise. * jcf-parse.c (init_outgoing_cpool): Remove function. (parse_class_file): Don't call init_outgoing_cpool. * parse.y (java_complete_expand_methods): Don't call init_outgoing_cpool. Don't save outgoing_cpool. (java_expand_classes): Don't restore outgoing_cpool. (java_finish_classes): Likewise. From-SVN: r73926
2003-11-25Make-lang.in (treelang.tags): Create TAGS.sub files in each directory and ↵Jason Merrill2-2/+8
TAGS files that include them for... * Make-lang.in (treelang.tags): Create TAGS.sub files in each directory and TAGS files that include them for each front end. From-SVN: r73921
2003-11-25Fix date in my latest commit.Andreas Jaeger1-1/+1
From-SVN: r73915
2003-11-25Daily bump.GCC Administrator1-1/+1
From-SVN: r73905
2003-11-24re PR fortran/12633 (logical expression gives incorrect result with ↵Toon Moene2-18/+7
-fugly-logint option) 2003-11-24 Toon Moene <toon@moene.indiv.nluug.nl> PR fortran/12633 * expr.c (ffeexpr_reduced_ugly2log_): Revert change allowing logical .and. logical to be integer in expressions when -fugly-logint. From-SVN: r73898
2003-11-24re PR ada/13142 (gnat1 generating call to library 'setjmp', not using ↵Arnaud Charlet1-1/+8
__buitin_setjmp) PR ada/13142 * utils.c (init_gigi_decls): Change name of built-in setjmp to __builtin_setjmp, since this is apparently needed by recent non Ada changes. From-SVN: r73896
2003-11-24function.c: Make outer_function-chain external.Waldek Hebisch3-1/+9
2003-11-23 Waldek Hebisch <hebisch@math.uni.wroc.pl> * function.c: Make outer_function-chain external. * function.h: Likewise. From-SVN: r73894
2003-11-24config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when using GNU ld.Richard Sandiford7-10/+114
* config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when using GNU ld. * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the whole of the previous STARTFILE_SPEC except crtbegin.o%s. (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s. (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above. (SUBTARGET_EXTRA_SPECS): Define. * config/mips/iris6gld.h (LINK_SPEC): Change -init function to __gcc_init and -fini function to __gcc_fini. (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o. (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o. (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define. * config/mips/t-iris6gld, * config/mips/irix6-crti.asm, * config/mips/irix6-crtn.asm: New files. From-SVN: r73891
2003-11-24re PR c/13014 (if shortcut misses required diagnostics)Eric Christopher5-67/+118
2003-11-24 Eric Christopher <echristo@redhat.com> PR C/13014 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New. (start_function): Use. (c_push_function_context): Ditto. (c-pop_function_context): Ditto. (language_function): Move... * c-tree.h: ... here. Add x_in_iteration_stmt, and x_in_case_stmt. * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use c_in_iteration_stmt, c_in_case_stmt for parser state. Move check for valid break or continue statment here... * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From here. Change original errors to abort. From-SVN: r73887
2003-11-24Apply lost changelog entry.Jan Hubicka1-0/+5
From-SVN: r73886
2003-11-24h8300.md (tablejump_h8300): Change to *tablejump_h8300.Kazu Hirata2-6/+18
* config/h8300/h8300.md (tablejump_h8300): Change to *tablejump_h8300. (tablejump_h8300h): Change to *tablejump_h8300hs_advanced. (tablejump_normal_mode): Change to *tablejump_h8300hs_normal. (indirect_jump_h8300): Change to *indirect_jump_h8300. (indirect_jump_h8300h): Change to *indirect_jump_h8300hs_advanced. (indirect_jump_normal_mode): Change to *indirect_jump_h8300hs_normal. From-SVN: r73883
2003-11-24re PR ada/13142 (gnat1 generating call to library 'setjmp', not using ↵Arnaud Charlet1-1/+1
__buitin_setjmp) PR ada/13142 * utils.c (init_gigi_decls): Change name of built-in setjmp to __builtin_setjmp, since this is apparently needed by recent non Ada changes. From-SVN: r73881
2003-11-24* config/h8300/h8300.md: Remove constraints from expanders.Kazu Hirata2-6/+10
From-SVN: r73880
2003-11-24h8300.md: (stm_h8300s_2): Change the name to stm_h8300s_2_advanced.Kazu Hirata2-17/+365
* config/h8300/h8300.md: (stm_h8300s_2): Change the name to stm_h8300s_2_advanced. (stm_h8300s_2_normal): New. (stm_h8300s_2): Likewise. (stm_h8300s_3): Change the name to stm_h8300s_3_advanced. (stm_h8300s_3_normal): New. (stm_h8300s_3): Likewise. (stm_h8300s_4): Change the name to stm_h8300s_4_advanced. (stm_h8300s_4_normal): New. (stm_h8300s_4): Likewise. (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced. (ldm_h8300s_2_normal): New. (ldm_h8300s_2): Likewise. (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced. (ldm_h8300s_3_normal): New. (ldm_h8300s_3): Likewise. (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced. (ldm_h8300s_4_normal): New. (ldm_h8300s_4): Likewise. (two peephole2's): Enable only with !TARGET_NORMAL_MODE. (two peephole2's): New. From-SVN: r73879
2003-11-24adadecode.c: Only include ctype.h if IN_GCC.Rainer Orth2-2/+8
* adadecode.c: Only include ctype.h if IN_GCC. (__gnat_decode): Use ISDIGIT from safe-ctype.h. From-SVN: r73876
2003-11-24Make-lang.in: (java.install-common) Add symlink for ↵Mohan Embar2-0/+17
$(target_noncanonical)-gcjh for native builds. * Make-lang.in: (java.install-common) Add symlink for $(target_noncanonical)-gcjh for native builds. From-SVN: r73875
2003-11-24[multiple changes]Arnaud Charlet22-140/+554
2003-11-24 Jose Ruiz <ruiz@act-europe.fr> * Makefile.in: Use 5zintman.ads for VxWorks targets. This file avoid confusion between signals and interrupts. * 5zintman.ads: New File. * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and add exception signals to the set of unmasked signals. * 5ztaprop.adb: Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion between signals and interrupts. Add to Unblocked_Signal_Mask the set of signals that are in Keep_Unmasked. * 7sinmaop.adb: Adding a check to see whether the Interrupt_ID we want to unmask is in the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The reason is that the index type of the Keep_Unmasked array is not always Interrupt_ID; it may be a subtype of Interrupt_ID. 2003-11-24 Gary Dismukes <dismukes@gnat.com> * exp_util.adb: (Remove_Side_Effects): Condition constantness of object created for a an unchecked type conversion on the constantness of the expression to ensure the correct value for 'Constrained when passing components of view-converted class-wide objects. 2003-11-24 Robert Dewar <dewar@gnat.com> * par-load.adb (Load): Improve handling of misspelled and missing units Removes several cases of compilation abandoned messages * lib.adb: (Remove_Unit): New procedure * lib.ads: (Remove_Unit): New procedure * lib-load.adb: Minor reformatting 2003-11-24 Vincent Celier <celier@gnat.com> * make.adb: (Gnatmake, Initialize): Call Usage instead of Makeusg directly (Marking_Label): Label to mark processed source files. Incremented for each executable. (Gnatmake): Increase Marking_Labet for each executable (Is_Marked): Compare against marking label (Mark): Mark with marking label 2003-11-24 Jerome Guitton <guitton@act-europe.fr> * s-thread.ads: Move the declaration of the TSD for System.Threads to System.Soft_Links. Add some comments. * Makefile.in: Added target pair for s-thread.adb for cert runtime. (rts-cert): build a single relocatable object for the run-time lib. Fix perms. 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr> * Make-lang.in: Use gnatls rather than gcc to obtain the location of GNAT RTL for crosstools build. 2003-11-24 Sergey Rybin <rybin@act-europe.fr> * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we can not use it as before (that is, as a variable) when dumping it into the tree file. Add a local variable to store the result of this function and to be used as the string to be written into the tree. * scn.adb (Initialize_Scanner): Add comments explaining the recent changes. * sinput.adb (Source_First, Source_Last): In case of Internal_Source_File, replace returning attributes of Internal_Source_Ptr (which is wrong) with returning attributes of Internal_Source. 2003-11-24 Ed Schonberg <schonberg@gnat.com> * sem_ch3.adb: (New_Concatenation_Op): Proper name for New_Binary_Operator, only used for implicit concatenation operators. Code cleanup. * sem_elab.adb: (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in task bodies that are in the scope of a Suppress pragma. (Check_A Call): Use the flag to prevent spurious elaboration checks. * sinfo.ads, sinfo.adb: New flag No_Elaboration_Check on function/procedure calls, to properly suppress checks on calls in task bodies that are within a local suppress pragma. * exp_ch4.adb: (Expand_Concatenate_Other): Use the proper integer type for the expression for the upper bound, to avoid universal_integer computations when possible. From-SVN: r73874
2003-11-24genattrtab.c (simplify_cond): Update indices correctly.Zdenek Dvorak3-38/+327
* genattrtab.c (simplify_cond): Update indices correctly. (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection, attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New. (check_attr_test, encode_units_mask, compute_alternative_mask, make_alternative_compare, simplify_and_tree, attr_rtx_cost, simplify_test_exp, gen_attr, write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT. * rtl.def (EQ_ATTR_ALT): New. From-SVN: r73873
2003-11-24fold-const.c (fold): Do not return early when optimizing COMPONENT_REF and ↵Jan Hubicka1-1/+2
constant. * fold-const.c (fold): Do not return early when optimizing COMPONENT_REF and constant. From-SVN: r73870
2003-11-24genattrtab.c (strcmp_check, [...]): New macros.Zdenek Dvorak2-46/+118
* genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros. (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str): New variables. (main): Initialize them. (find_attr): Canonicalize the attribute name string. (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize string arguments. (attr_printf, attr_eq): Use DEF_ATTR_STRING. (check_attr_test, check_attr_value, make_length_attrs, write_length_unit_log, simplify_by_exploding, gen_attr, write_test_expr, write_attr_value, write_eligible_delay, write_complex_function, make_internal_attr, write_const_num_delay_slots): Changed due to change of type of find_attr. (fill_attr, evaluate_eq_attr, simplify_and_tree, attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use strcmp_check. From-SVN: r73869
2003-11-24Daily bump.GCC Administrator1-1/+1
From-SVN: r73866
2003-11-23I forgot to mention the PR number.Kazu Hirata1-0/+1
From-SVN: r73863
2003-11-23h8300.c (push): Call push_h8300hs_normal in normal mode.Kazu Hirata3-5/+60
* config/h8300/h8300.c (push): Call push_h8300hs_normal in normal mode. (pop): Call pop_h8300hs_normal in normal mode. * config/h8300/h8300.md: Likewise. (pushqi1_h8300hs_normal): New. (pushqi1): Call pushqi1_h8300hs_normal in normal mode. (pushhi1_h8300hs_normal): New. (pushhi1): Call pushhi1_h8300hs_normal in normal mode. (push_h8300hs_normal): New. (pop_h8300hs_normal): Likewise. From-SVN: r73862
2003-11-23* genattrtab.c (count_sub_rtxs): Removed.Zdenek Dvorak2-60/+4
From-SVN: r73860
2003-11-23recog.c (preprocess_constraints): Only zero those elements of recog_op_alt ↵Richard Earnshaw3-1/+14
that are needed for this insn. * recog.c (preprocess_constraints): Only zero those elements of recog_op_alt that are needed for this insn. * arm.c (note_invalid_constants): A function can't contain invalid constants if it has no constraints. From-SVN: r73855
2003-11-23re PR c++/12924 (ICE in lookup_member, at cp/search.c:1228)Kriang Lerdsuwanakij4-0/+38
PR c++/12924 * typeck.c (finish_class_member_access_expr): Handle TEMPLATE_ID_EXPR with OVERLOAD and DECL nodes as the first operand. * g++.dg/template/template-id-2.C: New test. From-SVN: r73851
2003-11-23Daily bump.GCC Administrator1-1/+1
From-SVN: r73846
2003-11-22i386.c (classify_argument): Pass __float128 in memory.Jan Hubicka2-17/+9
* i386.c (classify_argument): Pass __float128 in memory. (ix86_return_in_memory): Likewise. (ix86_libcall_value): Likewsie. From-SVN: r73842
2003-11-22* config/h8300/h8300.c (dosize): Convert to ISO-C.Kazu Hirata2-3/+5
From-SVN: r73841
2003-11-22flow.c (update_life_info): Amend comment about when a register can become dead.J"orn Rennecke2-0/+8
* flow.c (update_life_info): Amend comment about when a register can become dead. From-SVN: r73838
2003-11-22* pt.c (tsubst) <ARRAY_REF>: Remove erroneous argument to build_nt.Kriang Lerdsuwanakij2-1/+5
From-SVN: r73834
2003-11-22re PR c++/5369 (template member friend declaration not honored)Kriang Lerdsuwanakij16-46/+692
PR c++/5369 * friend.c (is_friend): Handle member function of a class template as template friend. (do_friend): Likewise. * decl2.c (check_classfn): Add template_header_p parameter. * decl.c (start_decl): Adjust check_classfn call. (grokfndecl): Likewise. * pt.c (is_specialization_of_friend): New function. (uses_template_parms_level): Likewise. (push_template_decl_real): Use uses_template_parms_level. (tsubst_friend_function): Adjust check_classfn call. * cp-tree.h (check_classfn): Adjust declaration. (uses_template_parms_level): Add declaration. (is_specialization_of_friend): Likewise. * g++.dg/template/memfriend1.C: New test. * g++.dg/template/memfriend2.C: Likewise. * g++.dg/template/memfriend3.C: Likewise. * g++.dg/template/memfriend4.C: Likewise. * g++.dg/template/memfriend5.C: Likewise. * g++.dg/template/memfriend6.C: Likewise. * g++.dg/template/memfriend7.C: Likewise. * g++.dg/template/memfriend8.C: Likewise. * g++.old-deja/g++.pt/friend44.C: Remove a bogus error. From-SVN: r73833
2003-11-22Daily bump.GCC Administrator1-1/+1
From-SVN: r73827
2003-11-21Remove some .cvsignore files due to doc files now being built in build directoryKelley Cook8-21/+17
From-SVN: r73824
2003-11-21re PR c++/12515 (Use of ?: operator in templated class causes ICE)Mark Mitchell4-1/+18
PR c++/12515 * pt.c (build_non_dependent_expr): Handle GNU extension to ?: operator. PR c++/12515 * g++.dg/ext/cond1.C: New test. From-SVN: r73820
2003-11-21dwarf2out.c (add_location_or_const_value_attribute): Add support for PARALLEL.Daniel Berlin2-0/+33
2003-11-21 Daniel Berlin <dberlin@dberlin.org> David Edelsohn <edelsohn@gnu.org> * dwarf2out.c (add_location_or_const_value_attribute): Add support for PARALLEL. Co-Authored-By: David Edelsohn <edelsohn@gnu.org> From-SVN: r73817
2003-11-21t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.Rainer Orth3-2/+18
* config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error. (TARGET_LIBGCC2_CFLAGS): Define. * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare. (__do_global_ctors): Likewise. From-SVN: r73811
2003-11-21* 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.Andreas Schwab2-2/+6
From-SVN: r73809
2003-11-21* doc/invoke.texi (-O2): Doesn't enable -fweb.Mark Wielaard2-1/+5
From-SVN: r73803
2003-11-21parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE.Jan Hubicka1-1/+1
* parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE. From-SVN: r73802
2003-11-21parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE.Jan Hubicka1-0/+5
* parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE. [[Split portion of a mixed commit.]] From-SVN: r73801.2
2003-11-21* 5wsystem.ads: Enable zero cost exception.Vasiliy Fofanov1-0/+4
From-SVN: r73799
2003-11-21[multiple changes]Arnaud Charlet15-60/+147
2003-11-20 Jerome Guitton <guitton@act-europe.fr> * 5ztiitho.adb: Remove an unreferenced variable. 2003-11-20 Thomas Quinot <quinot@act-europe.fr> * adaint.c: For FreeBSD, use mkstemp. 2003-11-20 Arnaud Charlet <charlet@act-europe.fr> * gnatlbr.adb: Now reference Gnat_Static_Version_String. 2003-11-20 Robert Dewar <dewar@gnat.com> * bld.adb: Remove useless USE of gnatvsn * gnatchop.adb: Minor reformatting Clean up version handling to be more consistent * gnatxref.adb: Minor reformatting * gprcmd.adb: Minor reformatting Fix output of copyright to be more consistent with other tools 2003-11-20 Vincent Celier <celier@gnat.com> * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink 2003-11-20 Sergey Rybin <rybin@act-europe.fr> * atree.adb (Initialize): Add initializations for global variables used in New_Copy_Tree. * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with Internal_Source_File as the actual). Put the set of statements creating Any_Character before the set of statements creating Any_Array to have Any_Character fully initialized when it is used in creating Any_Array. * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do not call Scan in case if the actual is Internal_Source_File Add 2003 to copyright note. * sinput.adb (Source_First, Source_Last, Source_Text): Add code for processing Internal_Source_File. * types.ads: Add the constant Internal_Source_File representing the source buffer for artificial source-code-like strings created within the compiler (the definition of Source_File_Index is changed). From-SVN: r73798
2003-11-21ChangeLog.7: Fix comment typos.Kazu Hirata22-26/+26
* ChangeLog.7: Fix comment typos. * c-common.c: Likewise. * c-pretty-print.c: Likewise. * cgraphunit.c: Likewise. * et-forest.h: Likewise. * expr.c: Likewise. * gcse.c: Likewise. * genautomata.c: Likewise. * genrecog.c: Likewise. * gensupport.c: Likewise. * ggc-zone.c: Likewise. * haifa-sched.c: Likewise. * ifcvt.c: Likewise. * loop.c: Likewise. * optabs.c: Likewise. * pretty-print.h: Likewise. * regrename.c: Likewise. * rtl.h: Likewise. * sched-rgn.c: Likewise. * target.h: Likewise. * value-prof.c: Likewise. * web.c: Likewise. From-SVN: r73795
2003-11-21* doc/invoke.texi: Mention dV and dZ.Kazu Hirata2-0/+10
From-SVN: r73794
2003-11-21invoke.texi: Update dump file names.Kazu Hirata2-42/+36
* doc/invoke.texi: Update dump file names. Remove de, dW, and dX. From-SVN: r73793
2003-11-20re PR c/13133 (Extraneous register-saves triggered by setjmp())James E Wilson2-9/+6
PR c/13133 * reload1.c (reload): Delete special handling for setjmp. From-SVN: r73791
2003-11-21mklibgcc.in: Evaluate shlib_slibdir_qual during link step too.Andreas Tobler4-5/+19
2003-11-21 Andreas Tobler <a.tobler@schweiz.ch> * mklibgcc.in: Evaluate shlib_slibdir_qual during link step too. * config/t-slibgcc-darwin: Adjust install path. * config/rs6000/t-darwin: Revert multilib matches since it is not used on darwin. From-SVN: r73790
2003-11-20ssa.c, [...]: Remove files.Richard Henderson20-4548/+44
* ssa.c, ssa-dce.c, ssa-ccp.c: Remove files. * Makefile.in (OBJS-common, GTFILES): Don't reference them. (gtype-desc.o, toplev.o, flow.o): Remove ssa.h. (ssa.o, ssa-dce.o, ssa-ccp.o): Remove. * flow.c: Don't include ssa.h. (set_phi_alternative_reg): Remove. (calculate_global_regs_live): Don't call it. (mark_used_regs): Don't handle PHI. * gengtype.c (open_base_files): Don't reference ssa.h. * rtl.def (PHI): Remove. * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill. * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce. * opts.c (common_handle_option): Likewise. * toplev.c (f_options): Likewise. (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove. (dump_file): Update to match. (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove. (rest_of_handle_ssa): Remove. (rest_of_compilation): Don't call it. * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove. * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce. * doc/passes.texi (SSA optimizations): Remove. * gcc.dg/20020201-2.c: Remove. * gcc.dg/20020201-4.c: Remove. * gcc.dg/20020304-1.c: Remove. From-SVN: r73789