aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-11-27Fix a typo in ChangeLog.Kazu Hirata1-1/+1
From-SVN: r73999
2003-11-27h8300.h (FUNCTION_VALUE): Use R0_REG.Kazu Hirata3-3/+10
* config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG. (FUNCTION_VALUE_REGNO_P): Likewise. * config/h8300/h8300.md: Define R0_REG. From-SVN: r73998
2003-11-27h8300.c: Fix formatting.Kazu Hirata3-9/+13
* config/h8300/h8300.c: Fix formatting. * config/h8300/h8300.md: Likewise. From-SVN: r73997
2003-11-27* config/h8300/h8300.h (ELIMINABLE_REGS): Update a coment.Kazu Hirata2-4/+10
From-SVN: r73996
2003-11-27* config/h8300/h8300.md: Give names to anonymous insns.Kazu Hirata2-20/+24
From-SVN: r73994
2003-11-27* config/h8300/h8300.md (extendqisi2): Remove constraints.Kazu Hirata2-1/+5
From-SVN: r73993
2003-11-27[multiple changes]Arnaud Charlet15-70/+286
2003-11-26 Thomas Quinot <quinot@act-europe.fr> * g-socket.ads, g-socket.adb: Clarify documentation of function Stream. Introduce a Free procedure to release the returned Stream once it becomes unused. * 5asystem.ads: For Alpha Tru64, enable ZCX by default. 2003-11-26 Arnaud Charlet <charlet@act-europe.fr> (Cond_Timed_Wait): Introduce new constant Time_Out_Max, since NT 4 cannot handle timeout values that are too large, e.g. DWORD'Last - 1. 2003-11-26 Ed Schonberg <schonberg@gnat.com> * exp_ch4.adb: (Expand_N_Slice): Recognize all cases of slices that appear as actuals in procedure calls and whose expansion must be deferred. * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix is in exp_ch4. * sem_ch3.adb: (Build_Derived_Array_Type): Create operator for unconstrained type if ancestor is unconstrained. 2003-11-26 Vincent Celier <celier@gnat.com> * make.adb (Project_Object_Directory): New global variable (Change_To_Object_Directory): New procedure (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead of Change_Dir directly. Do not change working directory to object directory of main project after each compilation. (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir directly. Change to object directory of main project before binding step. (Initialize): Initialize Project_Object_Directory to No_Project * mlib-prj.adb: (Build_Library): Take into account Builder'Default_Switches ("Ada") when binding a Stand-Alone Library. * output.adb: Update Copyright notice (Write_Char): Output buffer when full 2003-11-26 Robert Dewar <dewar@gnat.com> * sem_ch13.adb: (Check_Size): Reset size if size is too small * sem_ch13.ads: (Check_Size): Fix documentation to include bit-packed array case * sem_res.adb: Implement restriction No_Direct_Boolean_Operators * s-rident.ads: Put No_Direct_Boolean_Operators in proper order * s-rident.ads: Add new restriction No_Direct_Boolean_Operators From-SVN: r73991
2003-11-27tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.Gunther Nikl2-1/+5
2003-11-27 Gunther Nikl <gni@gecko.de> * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo. From-SVN: r73990
2003-11-27compat.exp (compat-obj): New xfaildata parameter.Eric Botcazou6-8/+35
* lib/compat.exp (compat-obj): New xfaildata parameter. Use it to set compiler_conditional_xfail_data before compiling. (compat-get-options): Handle dg-xfail-if. (compat-execute): Retrieve XFAIL data and pass them to compat-obj. * gcc.dg/compat/vector-1_x.c: XFAIL on SPARC. * gcc.dg/compat/vector-1_y.c: Likewise. * gcc.dg/compat/vector-2_x.c: Likewise. * gcc.dg/compat/vector-2_y.c: Likewise. From-SVN: r73989
2003-11-27re PR rtl-optimization/13041 (linux-2.6/sound/core/oss/rate.c miscompiled)Eric Botcazou3-2/+17
PR optimization/13041 * final.c (frame_pointer_needed): Fix comment. * reload1.c (reload): Decrease alignment of the frame pointer if it was used for register allocation. From-SVN: r73978
2003-11-27re PR target/12900 (g++ ICE in rtl_verify_flow_info_1)Eric Botcazou4-35/+97
PR target/12900 * reg-stack (move_for_stack_reg): New prototype. Return whether a control flow insn was deleted. (subst_stack_regs_pat): Likewise, using the information provided by move_for_stack_reg. (subst_stack_regs): Likewise, using the information provided by subst_stack_regs_pat. (convert_regs_1): Record whether a control flow insn was deleted, using the information provided by subst_stack_regs. Purge dead edges only if a control flow insn was deleted. From-SVN: r73977
2003-11-27re PR middle-end/8028 (__builtin_apply() passes wrong arguments)Eric Botcazou4-6/+64
PR middle-end/8028 PR middle-end/9890 PR middle-end/11151 PR middle-end/12210 PR middle-end/12503 PR middle-end/12692 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx as the base address to copy the memory arguments to. From-SVN: r73976
2003-11-27Daily bump.GCC Administrator1-1/+1
From-SVN: r73972
2003-11-26cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare function aliases as functions.Danny Smith2-2/+9
* config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare function aliases as functions. Fix typo in 2003-10-24 entry. From-SVN: r73966
2003-11-26aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal of ADAC.Nathanael Nerode3-292/+272
* aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal of ADAC. * configure: Regenerate. From-SVN: r73960
2003-11-26* Makefile.in: Remove references to ADAC.Nathanael Nerode2-2/+2
From-SVN: r73959
2003-11-26configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.Nathanael Nerode3-274/+239
* configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long. * configure: Regenerate. From-SVN: r73958
2003-11-26* de.po: Update.Joseph Myers2-202/+206
From-SVN: r73955
2003-11-26* gcc.c-torture/compile/20031023-4.c: Don't XFAIL on SPARC64.Eric Botcazou2-5/+4
From-SVN: r73943
2003-11-26re PR target/6466 (backend uses bad type for frame size calculation.)Eric Botcazou3-129/+250
PR target/6466 * config/sparc/sparc-protos.h (compute_frame_size): New prototype. (sparc_flat_compute_frame_size): Likewise. (sparc_flat_save_restore): Move prototype... * config/sparc/sparc.c (sparc_flat_save_restore): ...here. (save_regs): New prototype. (build_big_number): Likewise. (apparent_fsize): Change type to HOST_WIDE_INT. (actual_fsize): Likewise. (frame_base_offset): Likewise. (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64. Change string descriptor to HOST_WIDE_INT_PRINT_DEC. [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway to load a 64-bit constant. (sparc_nonflat_function_prologue): Change string descriptor to HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT. (output_restore_regs): Change offset type to HOST_WIDE_INT. (sparc_nonflat_function_epilogue): Change string descriptor to HOST_WIDE_INT_PRINT_DEC. Use build_big_number. (output_sibcall): Change size type to HOST_WIDE_INT. Use build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC. (sparc_frame_info): Change types for several components. (sparc_flat_compute_frame_size): Update types according to previous change. (sparc_flat_function_prologue): Change string descriptor to HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use build_big_number. (sparc_flat_function_epilogue): Change offset type to int. Rename 'size1' into 'reg_offset1'. Change string descriptor to HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number limit to 4096 instead of 4095. * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to HOST_WIDE_INT. Co-Authored-By: Olivier Hainque <hainque@act-europe.fr> From-SVN: r73942
2003-11-26re PR middle-end/12548 ([non-weak] gcj now failes to compile included example)Mohan Embar2-1/+11
PR java/12548 * resource.c (write_resource_constructor): Append "_resource" to constructor identifier name. From-SVN: r73940
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