summaryrefslogtreecommitdiff
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* [multiple changes]Arnaud Charlet2003-12-0327-590/+442
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-03 Thomas Quinot <quinot@act-europe.fr> PR ada/11724 * adaint.h, adaint.c, g-os_lib.ads: Do not assume that the offset argument to lseek(2) is a 32 bit integer, on some platforms (including FreeBSD), it is a 64 bit value. Introduce a __gnat_lseek wrapper in adaint.c to allow for portability. 2003-12-03 Arnaud Charlet <charlet@act-europe.fr> * gnatvsn.ads (Library_Version): Now contain only the relevant version info. (Verbose_Library_Version): New constant. * g-spipat.adb, g-awk.adb, g-debpoo.adb, g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb, s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa. * gnatlbr.adb: Clean up: replace Library_Version by Verbose_Library_Version. * make.adb, lib-writ.adb, exp_attr.adb: Clean up: replace Library_Version by Verbose_Library_Version. * 5lintman.adb: Removed. * Makefile.in: Update and simplify computation of LIBRARY_VERSION. Fix computation of GSMATCH_VERSION. 5lintman.adb is no longer used: replaced by 7sintman.adb. 2003-12-03 Robert Dewar <dewar@gnat.com> * exp_ch5.adb: (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new name. Modified to consider small non-bit-packed arrays as troublesome and in need of component-by-component assigment expansion. 2003-12-03 Vincent Celier <celier@gnat.com> * lang-specs.h: Process nostdlib as nostdinc * back_end.adb: Update Copyright notice (Scan_Compiler_Arguments): Process -nostdlib directly. 2003-12-03 Jose Ruiz <ruiz@act-europe.fr> * Makefile.in: When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always included in HIE_NONE_TARGET_PAIRS. 2003-12-03 Ed Schonberg <schonberg@gnat.com> * sem_attr.adb: (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it is legal in an instance, because legality is cheched in the template. * sem_prag.adb: (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be appplied to an unchecked conversion of a formal parameter. * sem_warn.adb: (Output_Unreferenced_Messages): Suppress "not read" warnings on imported variables. 2003-12-03 Olivier Hainque <hainque@act-europe.fr> * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New routines. The second one is new functionality to deal with backtracing through signal handlers. (unwind): Split into the two separate subroutines above. Update the documentation, and deal properly with sizeof (REG) different from sizeof (void*). From-SVN: r74226
* re PR target/11229 (pure-1.c fails on powerpc64-linux with -O1)Alan Modra2003-12-032-0/+16
| | | | | | | | PR target/11229 * cse.c (cse_insn): Set classp using src_const_elt if src_eqv_elt is NULL. From-SVN: r74225
* gcse.c (reg_clear_last_set): New function.Richard Earnshaw2003-12-032-15/+71
| | | | | | | | | | | | | | | * gcse.c (reg_clear_last_set): New function. (reg_set_info): If data is non-null, treat it as an sbitmap of registers, set the bit for the register being set. (compute_store_table): Allocate last_set_in with xcalloc. Do not memset this array on each iteration. Pass reg_set_in_block[bb->index] to note_stores while computing last_set_in instead of scanning last_set_in after the first pass through the insns. Clear last_set_in using reg_clear_last_set instead of explicitly rescanning after each insn. If checking is enabled, assert that last_set_in is completely zeroed after each bb has been processed. From-SVN: r74224
* df.c (df_uses_record): The argument of a MEM is read-only, never read-write.Geoffrey Keating2003-12-032-7/+10
| | | | | | | | | * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only, never read-write. <REG>: Delete incorrect comment. <SET>: Remove 'use_flags' variable. From-SVN: r74221
* re PR java/12374 (Segfault on "".x)Ralph Loader2003-12-033-197/+42
| | | | | | | | | | | | PR java/12374: * parse.y (qualify_ambiguous_name): Remove lots of broken field access processing - there's no need to do that here, because we have resolve_field_access. Remove RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else. * java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't used. From-SVN: r74217
* function.c (assign_parms): Make sure parm PARALLEL combined in reg is ↵David Edelsohn2003-12-022-5/+17
| | | | | | | | | | composed of more than one object and... * function.c (assign_parms): Make sure parm PARALLEL combined in reg is composed of more than one object and the mode really produces a reg. From-SVN: r74214
* * i386.c (classify_argument): Make it 64bit clean.Jan Hubicka2003-12-031-1/+1
| | | | From-SVN: r74209
* i386.c (classify_argument): Make it 64bit clean.Jan Hubicka2003-12-031-0/+4
| | | | | | | | * i386.c (classify_argument): Make it 64bit clean. [[Split portion of a mixed commit.]] From-SVN: r74208.2
* Daily bump.GCC Administrator2003-12-031-1/+1
| | | | From-SVN: r74206
* mips.c (mips_output_external): Replace checks for specific builtin-in ↵Richard Sandiford2003-12-022-6/+6
| | | | | | | | | functions with a check for DECL_BUILTIN_IN. * config/mips/mips.c (mips_output_external): Replace checks for specific builtin-in functions with a check for DECL_BUILTIN_IN. From-SVN: r74202
* vector-check.h: Corrected type for var g_##TMODEDavid Ung2003-12-022-1/+6
| | | | | | | | | 2003-12-02 David Ung <davidu@mips.com> * gcc.dg/compat/vector-check.h: Corrected type for var g_##TMODE From-SVN: r74197
* re PR c++/10126 (ICE in convert_nontype_argument on using overload ↵Giovanni Bajo2003-12-022-0/+25
| | | | | | | | | resolution in template args) PR c++/10126 * g++.dg/template/ptrmem8.C: New test. From-SVN: r74185
* re PR c++/10126 (ICE in convert_nontype_argument on using overload ↵Giovanni Bajo2003-12-022-2/+9
| | | | | | | | | | resolution in template args) PR c++/10126 * pt.c (convert_nontype_argument): Handle default conversions while converting a pointer to member function. From-SVN: r74184
* re PR c++/12573 (ICE (segfault) with Boost.Python)Giovanni Bajo2003-12-022-0/+19
| | | | | | | PR c++/12573 * g++.dg/template/dependent-expr3.C: New test. From-SVN: r74173
* re PR c++/12573 (ICE (segfault) with Boost.Python)Giovanni Bajo2003-12-022-0/+9
| | | | | | | | PR c++/12573 * pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by looking into them recursively. From-SVN: r74172
* rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.Richard Henderson2003-12-024-5/+10
| | | | | | | | * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast. * tree.h (TREE_SET_CODE): Likewise. * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD. From-SVN: r74170
* name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD.Richard Henderson2003-12-024-6/+13
| | | | | | | | | * name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD. * parser.c (struct cp_token): Likewise. (struct cp_parser_token_tree_map_node): Likewise. * lex.c (struct resword): Move const after ENUM_BITFIELD. From-SVN: r74169
* [approved by wilson]Ben Elliston2003-12-023-1/+7
| | | | | | | | * dbxstclass.h: Rename from this .. * xcoff.h: .. to this. * xcoffout.c: Include xcoff.h. From-SVN: r74167
* * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.Kaveh R. Ghazi2003-12-022-1/+5
| | | | From-SVN: r74153
* As per David's request.James E Wilson2003-12-012-1/+4
| | | | | | * doc/contrib.texi: Update David Mosberger. From-SVN: r74150
* arm.c (arm_rtx_costs): Improve for xscale multiply.James Lemke2003-12-024-6/+55
| | | | | | | * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply. * testsuite/gcc.dg/arm-g2.c: New test. From-SVN: r74149
* re PR rtl-optimization/11634 ([hppa] ICE in verify_local_live_at_start, at ↵Roger Sayle2003-12-024-61/+146
| | | | | | | | | | | | | | | | | flow.c:555) PR optimization/11634 * recog.c (split_insn): Factor test of INSN_P and handling of set_noop_p out of here into the two callers. (split_all_insns): Add INSN_P test and set_noop_p handling here. If deleting a no-op set after reload that has a REG_UNUSED note, mark the basic block as changed and recalculate life information. (split_all_insns_noflow): Add INSN_P test and set_noop_p handling here. * gcc.dg/20031201-2.c: New test case. From-SVN: r74145
* re PR rtl-optimization/12322 (Significant slowdown when compiling ↵Roger Sayle2003-12-022-56/+57
| | | | | | | | | | | | | | | | | computed-goto code in Parrot) PR optimization/12322 * gcse.c (struct ls_expr): Change type of hash_index from int to unsigned int. (hash_expr): Document hash_table_size parameter and wrap long line. (ldst_entry): Calculate expression's hash_index and record in ptr. (trim_ld_motion_mems): Use hash_index to search a single bucket instead of scanning the entire hash_table. Remove the "del" local variable and use the equivalent "expr == 0" instead. Change last to be a pointer to the pointer to the current element, to simplify and speed-up deleting from a linked list. From-SVN: r74144
* Fixes issues pointed out by Chris Lattner.James E Wilson2003-12-012-6/+8
| | | | | | | * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling of missing fields. From-SVN: r74143
* re PR target/8407 ([IA-64] ICE in simplify_gen_subreg, at ↵James E Wilson2003-12-012-2/+9
| | | | | | | | | | simplify-rtx.c:2711 with very simple code) PR target/8407 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call gen_rtx_REG to create new reg with argument mode. From-SVN: r74142
* Daily bump.GCC Administrator2003-12-021-1/+1
| | | | From-SVN: r74139
* re PR libobjc/11433 (Crash due to dereferencing null pointer when querying ↵Zack Weinberg2003-12-012-6/+36
| | | | | | | | | | | | | | protocol) PR 11433 gcc/testsuite: * objc.dg/proto-lossage-3.m: New test. libobjc: * Protocol.m (descriptionForInstanceMethod): Don't dereference instance_methods if it's NULL. (descriptionForClassMethod): Likewise for class_methods. From-SVN: r74137
* ggc.h (struct alloc_zone): Move forward declaration up.Steven Bosscher2003-12-015-51/+128
| | | | | | | | | | | | | | | | | | | * ggc.h (struct alloc_zone): Move forward declaration up. (new_ggc_zone): New function prototype. (destroy_ggc_zone): Ditto. * ggc-simple.c (new_ggc_zone): New function, does nothing. (destroy_ggc_zone): Ditto. * ggc-page.c (new_ggc_zone): New function, does nothing. (destroy_ggc_zone): Ditto. * ggc-zone.c (struct page_entry): Fix comment. (ggc_alloc_typed): Use a switch statement instead of ifs. (new_ggc_zone): New function to set up a new GC zone. (destroy_ggc_zone): New function to remove a GC zone. init_ggc): Use new_ggc_zone to set up the default zones. (ggc_collect): Walk a list of zones, instead of just the default zones. Report statistics using the zone name. From-SVN: r74132
* * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.Ulrich Weigand2003-12-012-2/+7
| | | | From-SVN: r74126
* re PR rtl-optimization/12628 (Segfault with -fno-expensive-optimizations ↵Roger Sayle2003-12-015-16/+48
| | | | | | | | | | | | | | -fno-rerun-loop-opt) PR optimization/12628 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan. * regclass.c (reg_scan): Include allocate_reg_info time in TV_REG_SCAN. Minor clean-ups. (reg_scan_update): Minor clean-ups. * gcc.dg/20031201-1.c: New test case. From-SVN: r74125
* * config.gcc (s390x-ibm-tpf*): Add extra_parts.Ulrich Weigand2003-12-012-0/+5
| | | | From-SVN: r74121
* Fix for aliasing problem reported by Michael Matz.James E Wilson2003-12-012-1/+6
| | | | | | | * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not GR_ARG_FIRST. From-SVN: r74120
* common.opt: Remove -fgnu-linker.Zack Weinberg2003-12-018-51/+26
| | | | | | | | | | | | | | * common.opt: Remove -fgnu-linker. * flags.h: Remove flag_gnu_linker. * opts.c: Don't handle OPT_fgnu_linker. * toplev.c: Don't initialize flag_gnu_linker. Remove gnu-linker entry from f_options. * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS): Don't reset flag_gnu_linker. * config/mips/mips.c (override_options): Likewise. * doc/invoke.texi: Remove all mention of -fgnu-linker. From-SVN: r74117
* ggc-zone.c (ggc_pch_write_object): Calculate object size using ggc_get_size ↵Daniel Berlin2003-12-012-1/+6
| | | | | | | | | | | (which accounts for large objects... 2003-12-01 Daniel Berlin <dberlin@dberlin.org> * ggc-zone.c (ggc_pch_write_object): Calculate object size using ggc_get_size (which accounts for large objects properly). From-SVN: r74114
* re PR rtl-optimization/13024 (gcj can't build current rhug)Jeff Sturm2003-12-012-24/+33
| | | | | | | | | | | | | | PR optimization/13024 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes parameter. (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes declaration. Rebuild jump labels following local_alloc if necessary. (rest_of_compilation): Remove rebuild_label_notes_after_reload declaration. Don't pass rebuild_notes parameter to rest_of_handle_new_regalloc and rest_of_handle_old_regalloc. Don't rebuild jump labels. From-SVN: r74113
* flow.c (count_or_remove_death_notes_bb): New.Jeff Law2003-12-012-41/+78
| | | | | | | | * flow.c (count_or_remove_death_notes_bb): New. Extracted from count_or_remove_death_notes. (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP. From-SVN: r74111
* builtins.c (expand_builtin_longjmp): Added two memory clobbers.Andreas Krebbel2003-12-012-0/+11
| | | | | | | | 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com> * builtins.c (expand_builtin_longjmp): Added two memory clobbers. From-SVN: r74108
* reload.c (find_reloads_address): Split addresses of type (plus (plus (reg) ↵Ulrich Weigand2003-12-012-0/+25
| | | | | | | | | | | (reg)) (const_int)) only if... * reload.c (find_reloads_address): Split addresses of type (plus (plus (reg) (reg)) (const_int)) only if one register is either a valid base register or else one of the stack frame related registers (sp/fp/ap). From-SVN: r74107
* re PR java/13237 (ICE on Math.sqrt(2.0))Jeff Sturm2003-12-012-5/+11
| | | | | | | | Fix PR java/13237 * parse.y (java_complete_lhs): Save location prior to patching CALL_EXPR. From-SVN: r74101
* [multiple changes]Arnaud Charlet2003-12-0115-146/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-01 Nicolas Setton <setton@act-europe.fr> * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point, so that the debugger can reliably access the value of the parameter, and therefore is able to display the exception name when an exception breakpoint is reached. 2003-12-01 Thomas Quinot <quinot@act-europe.fr> * fmap.adb: Fix typo in warning message. * g-socket.ads, g-socket.adb: Make Free a visible instance of Ada.Unchecked_Deallocation (no need to wrap it in a subprogram). 2003-12-01 Vincent Celier <celier@gnat.com> * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if ther is no Afile. (Build_Library): Get the switches only if Default_Switches is declared in package Binder. 2003-12-01 Ed Schonberg <schonberg@gnat.com> * exp_ch6.adb (Expand_Actuals): When applying validity checks to actuals that are indexed components, reanalyze actual to ensure that packed array references are properly expanded. * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for attempted assignment to a discriminant. 2003-12-01 Robert Dewar <dewar@gnat.com> * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor reformatting. * switch-c.adb: Minor reformatting of comments 2003-12-01 Arnaud Charlet <charlet@act-europe.fr> * Makefile.in: Clean ups. 2003-12-01 GNAT Script <nobody@gnat.com> * Make-lang.in: Makefile automatically updated From-SVN: r74100
* function.c (update_epilogue_consts): Don't use PARAMS.Steven Bosscher2003-12-014-5/+10
| | | | | | | | * function.c (update_epilogue_consts): Don't use PARAMS. * rtl.h (web_main): Ditto. * target.h (is_costly_dependence): Ditto From-SVN: r74099
* * 5wsystem.ads: Disable zero cost exception, not ready yet.Arnaud Charlet2003-12-012-2/+6
| | | | From-SVN: r74098
* re PR middle-end/7847 (pragma pack / attribute(packed): unaligned access to ↵Eric Botcazou2003-12-014-5/+68
| | | | | | | | | | | | packed structure) PR middle-end/7847 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero, do not recheck that 'op0' is a MEM. Move comment. When testing for unaligned objects, take also into account the alignment of 'op0' and 'mode1' if 'op0' is a MEM. From-SVN: r74092
* re PR c++/9849 (Missing keyword 'template' produces ICE with no diagnostic ↵Mark Mitchell2003-12-015-89/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on 3.3 (and unreadable diagnostic on 3.4)) PR c++/9849 * g++.dg/template/error4.C: New test. * g++.dg/template/nested3.C: Adjust error markers. PR c++/9849 * parser.c (cp_lexer_prev_token): New function. (cp_parser_skip_to_closing_parenthesis): Add consume_paren parameter. (cp_parser_nested_name_specifier_opt): Add is_declaration parameter. (cp_parser_nested_name_specifier): Likewise. (cp_parser_class_or_namespace_name): Likewise. (cp_parser_class_name): Likewise. (cp_parser_template_id): Likewise. (cp_parser_template_name): Likewise. (cp_parser_id_expression): Adjust calls to cp_parser_nested_name_specifier_op, cp_parser_template_id, cp_parser_class_name. (cp_parser_unqualified_id): Likewise. (cp_parser_postfix_expression): Likewise. (cp_parser_pseudo_destructor_name): Likewise. (cp_parser_cast_expression): Likewise. (cp_parser_mem_initializer_id): Likewise. (cp_parser_simple_type_specifier): Likewise. (cp_parser_type_name): Likewise. (cp_parser_elaborated_type_specifier): Likewise. (cp_parser_qualified_namespace_specifier): Likewise. (cp_parser_using_declaration): Likewise. (cp_parser_using_directive): Likewise. (cp_parser_ptr_operator): Likewise. (cp_parser_declarator_id): Likewise. (cp_parser_class_head): Likewise. (cp_parser_base_specifier): Likewise. (cp_parser_constructor_declarator_p): Likewise. (cp_parser_direct_declarator): Fix typo in comment. (cp_parser_parenthesized_expression_list): Adjust call to cp_parser_skip_to_closing_parenthesis. (cp_parser_selection_statement): Likewise. From-SVN: r74087
* * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.Gabriel Dos Reis2003-12-012-4/+8
| | | | From-SVN: r74084
* Makefile.am: Define AM_MAKINFOFLAGS.Kelley Cook2003-12-012-3/+9
| | | | | | | | | | | | | | | | | | fastjar/ 2003-12-01 Kelley Cook <kcook@gcc.gnu.org> * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack. * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools. * aclocal.m4, config.h.in, configure: Likewise. * install-sh, missing, mkinstalldirs, stamp-h.in: Remove. gcc/ 2003-12-01 Kelley Cook <kcook@gcc.gnu.org> * doc/install.texi: Note that fastjar is built with automake 1.7.x and autoconf 2.57. From-SVN: r74082
* Daily bump.GCC Administrator2003-12-011-1/+1
| | | | From-SVN: r74080
* linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test target_flags directly rather ↵Alan Modra2003-12-012-3/+8
| | | | | | | | | than using TARGET_* defines. * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test target_flags directly rather than using TARGET_* defines. From-SVN: r74078
* * gcc.dg/cpp/assert4.c: Check more #system assertions.Kaveh R. Ghazi2003-11-302-1/+61
| | | | From-SVN: r74076
* * doschk.c: Remove.Ben Elliston2003-12-012-360/+4
| | | | From-SVN: r74072