aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-08-24params.def (PARAM_MIN_SPEC_PROB): New.Pete Steinmetz4-5/+17
2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com> * params.def (PARAM_MIN_SPEC_PROB): New. * sched-rgn.c (MIN_PROBABILITY): Delete. (compute_trg_info): Convert to PARAM_VALUE. * doc/invoke.texi (param): Document min-spec-prob. From-SVN: r103450
2005-08-24re PR fortran/17758 (gfortran_abort and some others should be marked as ↵Thomas Koenig6-1/+68
noreturn) 2005-08-24 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/17758 * gfortran.h (symbol_attribute): Add noreturn to the structure. (gfc_intrinsic_sym): Add noreturn to the structure. * intrinsic.c (make_noreturn): New function. (add_subroutines): Mark subroutines abort and exit as noreturn. (gfc_intrinsic_sub_interface): Copy noreturn attribute from isym to the resolved symbol. * trans-decl.c (gfc_get_extern_function_decl): Set function as VOLATILE (== noreturn) if the noreturn attribute is set. 2005-08-24 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/17758 gfortran.dg/nonreturning_statements.f90: New test. From-SVN: r103449
2005-08-24Define __PIC__ for darwin targets.Fariborz Jahanian4-0/+25
OKed by Mike Stump. From-SVN: r103447
2005-08-24rs6000.md: Fix thinko in the peephole2 I added yesterday.Paolo Bonzini2-8/+17
2005-08-24 Paolo Bonzini <bonzini@gnu.org> * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added yesterday. From-SVN: r103443
2005-08-24re PR c++/22454 (ICE with operator in default argument in template class)Nathan Sidwell4-2/+23
cp: PR c++/22454 * parser.c (cp_lexer_peek_nth_token): Relax assert. testsuite: PR c++/22454 * g++.dg/parse/crash29.C: New. From-SVN: r103438
2005-08-24bb-reorder.c (copy_bb, [...]): Add argument to duplicate_block.Zdenek Dvorak14-44/+122
* bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument to duplicate_block. * cfghooks.c (duplicate_block): Added position where to place new block as argument. * cfghooks.h (duplicate_block): Declaration changed. * cfglayout.c (copy_bbs): Add argument after. Pass it to duplicate_block. * cfglayout.h (copy_bbs): Declaration changed. * cfgloop.h (loop_version): Declaration changed. * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass position to copy_bbs. (loop_version): Pass position to duplicate_loop_to_header_edge. Add place_after argument and position new blocks according to it. * modulo-sched.c (sms_schedule): Pass place_after argument to loop_version. * tracer.c (tail_duplicate): Pass argument to duplicate_block. * tree-cfg.c (split_edge_bb_loc): New function. (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc to determine position of new blocks. * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument to loop_version. * tree-ssa-threadupdate.c (create_block_for_threading): Pass argument to duplicate_block. * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Pass position to copy_bbs. From-SVN: r103437
2005-08-24fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of ↵Zdenek Dvorak2-2/+7
host_integerp. * fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of host_integerp. From-SVN: r103436
2005-08-24darwin.c (gen_pic_offset): New.Paolo Bonzini2-20/+26
2005-08-24 Paolo Bonzini <bonzini@gnu.org> * config/darwin.c (gen_pic_offset): New. (machopic_indirect_data_reference, machopic_legitimize_pic_address): Use it. From-SVN: r103434
2005-08-24re PR tree-optimization/23486 (ICE in execute_todo, at passes.c:677)Zdenek Dvorak2-1/+7
PR tree-optimization/23486 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals. From-SVN: r103433
2005-08-24config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove ↵Phil Edwards13-193/+632
use_collect2. 2005-08-22 Phil Edwards <phil@codesourcery.com> * config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove use_collect2. (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target. * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target configuration files to override the default value. * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO, EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS. * config/vx-common.h: New file, split out from... * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode. * config/vxworksae.h: New file, for VxWorks AE. * config/vxworks.opt: New file. * config/vxlib.c: Update for VxWorks 6. * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust other MULTILIB_* variables appropriately. (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm. * config/rs6000/t-vxworksae: New file, adjust multilibs for AE. * config/rs6000/vxworks.h: Update for VxWorks 6. * config/rs6000/vxworksae.h: New file, mostly placeholder for now. From-SVN: r103432
2005-08-23re PR target/20799 (bad relocs for new/delete overrides)Andrew Pinski2-22/+7
2005-08-23 Andrew Pinski <pinskia@physics.uc.edu> PR target/20799 * config/darwin.c (machopic_select_section): Remove the hack to mark "::operator new" and "::operator delete" for coalescing even though they are not weak. From-SVN: r103426
2005-08-24configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.Alan Modra3-4/+9
* configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch. * configure: Regenerate. From-SVN: r103425
2005-08-24Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r103419.2
2005-08-23stdarg-2.c (main): Make sure long constants have the L suffix.DJ Delorie2-2/+7
* gcc.c-torture/execute/stdarg-2.c (main): Make sure long constants have the L suffix. From-SVN: r103412
2005-08-23re PR middle-end/23517 (can't cast between generic vector types and target ↵Paolo Bonzini4-19/+14
supported vector types) 2005-08-23 Paolo Bonzini <bonzini@gnu.org> PR middle-end/23517 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert between vectors. * convert.c (convert_to_integer, convert_to_vector): Likewise. * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1): Likewise. From-SVN: r103406
2005-08-23predicates.md (equality_operator): New.Paolo Bonzini3-22/+43
2005-08-23 Paolo Bonzini <bonzini@gnu.org> * config/rs6000/predicates.md (equality_operator): New. * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for comparison with a large constant. From-SVN: r103405
2005-08-23* hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.Mark Mitchell2-1/+5
From-SVN: r103402
2005-08-23sh.c (sh_builtin_saveregs): If the number of to-be-saved fp registers is even...J"orn Rennecke2-19/+55
* sh.c (sh_builtin_saveregs): If the number of to-be-saved fp registers is even, and we have a hardware double precision fp, align the buffer. (sh_gimplify_va_arg_expr): For floating point arguments, consider size of current argument when checking if argument was passed in registers. * sh.c (sh_attr_renesas_p): Handle error_mark_node. From-SVN: r103398
2005-08-23re PR c++/23044 (ICE on valid code)Nathan Sidwell4-1/+29
cp: PR c++/23044 * pt.c (tsubst_qualified_id): A SCOPE_REF can still remain. testsuite: PR c++/23044 * g++.dg/template/instantiate8.C: New. From-SVN: r103395
2005-08-23re PR middle-end/23467 (alignment of member doesn't always carry over to ↵J"orn Rennecke4-2/+38
alignment of struct.) gcc: PR middle-end/23467 * stor-layout.c (finalize_type_size): Dont override existing alignment with a smaller alignment from the mode. testsuite: PR middle-end/23467 * gcc.c-torture/execute/pr23467.c: New test. From-SVN: r103394
2005-08-23lambda-code.c (lambda_vector_lexico_pos): Moved...Sebastian Pop4-23/+47
* lambda-code.c (lambda_vector_lexico_pos): Moved... * lambda.h (lambda_vector_lexico_pos): ... here. * tree-data-ref.c (build_classic_dist_vector): Return false when the distance vector is lexicographically negative. From-SVN: r103392
2005-08-23re PR tree-optimization/23511 (Segfault in fold_binary)Sebastian Pop2-1/+9
PR tree-optimization/23511 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE. From-SVN: r103391
2005-08-23re PR middle-end/22043 (Fields not initialized for automatic structs with ↵Jakub Jelinek7-13/+79
flexible array members) PR tree-optimization/22043 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument. * expr.c (count_type_elements): Add ALLOW_FLEXARR argument. If ALLOW_FLEXARR, handle types ending with flexible array member. Pass false as second argument to recursive count_type_elements calls. (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second argument to count_type_elements call. * tree-sra.c (decide_block_copy): Likewise. * gimplify.c (gimplify_init_constructor): If num_type_elements < 0 for a constant-sized object, set cleared as well. Pass true as second argument to count_type_elements call. * gcc.c-torture/execute/20050613-1.c: New test. From-SVN: r103389
2005-08-23missed in last commitAlan Modra1-0/+10
From-SVN: r103383
2005-08-23re PR target/21571 (ICE in rs6000.c with -msdata=default.)Alan Modra3-6/+8
PR target/21571 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename from legitimate_small_data_p, and make global. Update use. Remove forward declaration. * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p): Declare. * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems. From-SVN: r103382
2005-08-22rs6000.md (eq<mode>): Use output operand instead of scratch intermediates.David Edelsohn2-35/+68
* config/rs6000/rs6000.md (eq<mode>): Use output operand instead of scratch intermediates. (eq<mode>_compare): Same. (neg_eq0<mode>): New. (neg_eq<mode>): Convert to define_insn_and_split. From-SVN: r103379
2005-08-23re PR target/23070 ([3.4 only] CALL_V4_CLEAR_FP_ARGS flag not properly set)Alan Modra3-3/+12
PR target/23070 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to stdarg functions, set/clear the fp marker even when no variable args are passed. * config/rs6000/sysv4.opt (mprototype): Describe. From-SVN: r103375
2005-08-23Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r103370.2
2005-08-23* gcc.c-torture/execute/ieee/ieee.exp: Load gcc-dg.exp library.Ben Elliston2-2/+7
From-SVN: r103365
2005-08-22Correct PR number in last patch checked in.Jim Wilson1-1/+1
PR tree-optimization/23426 * decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for array size check. From-SVN: r103364
2005-08-22Partial fix for too large arrays.James E Wilson2-2/+8
PR tree-optimization/21105 * decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for array size check. From-SVN: r103363
2005-08-22re PR rtl-optimization/23478 (Miscompilation due to reloading of a var that ↵Jakub Jelinek6-3/+248
is also used in EH pad) PR rtl-optimization/23478 * regs.h (reg_info): Add throw_calls_crossed. (REG_N_THROWING_CALLS_CROSSED): Define. * flow.c (allocate_reg_life_data): Initialize REG_N_THROWING_CALLS_CROSSED. (propagate_one_insn, attempt_auto_inc): Update REG_N_THROWING_CALLS_CROSSED. * global.c (global_alloc): Don't allocate pseudos across calls that may throw. * g++.dg/opt/pr23478.C: New test. From-SVN: r103348
2005-08-22Fix PR number in changelog:Andrew Pinski1-1/+1
2005-08-22 Andrew Pinski <pinskia@physics.uc.edu> PR c/18715 * gcc.dg/switch-warn-3.c: New test. From-SVN: r103344
2005-08-22re PR c/18715 (warning: "enumeration value not handled in switch" for '...' ↵Andrew Pinski4-1/+51
ranges) 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu> PR c/18715 * c-common.c (c_do_switch_warnings): Look for a node where the enum's value is inbetween the range if we did not find an exact match. 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu> PR c/18175 * gcc.dg/switch-warn-3.c: New test. From-SVN: r103343
2005-08-22invoke.texi (Option Summary): Add ms1 options.Aldy Hernandez15-1/+4819
* doc/invoke.texi (Option Summary): Add ms1 options. * doc/extend.texi: Document interrupt handler attribute for ms1. * doc/md.texi: Document ms1 constraints. * config.gcc: Add ms1-*-elf. * config/ms1/ms1.h: New. * config/ms1/ms1.c: New. * config/ms1/ms1.md: New. * config/ms1/ms1-protos.h: New. * config/ms1/ABI.txt: New. * config/ms1/crti.asm: New. * config/ms1/crtn.asm: New. * config/ms1/lib2extra-funcs.c: New. * config/ms1/t-ms1: New. * config/ms1/ms1.opt: New. From-SVN: r103342
2005-08-22re PR c++/22233 (ICE with wrong number of template parameters)Volker Reichelt4-0/+24
PR c++/22233 * pt.c (push_template_decl_real): Return error_mark_node if the number of template parameters does not match previous definition. * g++.dg/template/param1.C: New test. From-SVN: r103339
2005-08-22re PR c++/23089 (internal compiler error: in int_mode_for_mode, at ↵Volker Reichelt4-4/+24
stor-layout.c:251 at -O1) PR c++/23089 * decl.c (require_complete_types_for_parms): Mark incomplete types as invalid. * g++.dg/other/incomplete1.C: New test. From-SVN: r103336
2005-08-22altivec.md (xorv4sf3): New.Ira Rosen4-1/+78
* config/rs6000/altivec.md (xorv4sf3): New. (negv4sf2, neg<mode>2): Likewise. From-SVN: r103335
2005-08-21re PR target/23485 ([ia64]: Integer dvide by zero doesn't raise a signal)H.J. Lu2-5/+25
PR target/23485 * config/ia64/ia64.md (divsi3): Check divide by zero. (udivsi3): Likewise. (divdi3): Likewise. (udivdi3): Likewise. From-SVN: r103331
2005-08-22* decl.c: Typo in comment.Steven G. Kargl2-1/+5
From-SVN: r103330
2005-08-22Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r103327.2
2005-08-21* array.c: Bump GFC_MAX_AC_EXPAND from 100 to 65535.Steven G. Kargl2-1/+5
From-SVN: r103323
2005-08-21gfortran.h (gfc_option_t): Remove source field.Tobias Schlüter14-114/+218
fortran/ * gfortran.h (gfc_option_t): Remove source field. Add flag_d_lines field. (gfc_new_file): Remove arguments in prototype. (gfc_source_file): Make 'const char *'. * f95-lang.c (gfc_init): Use gfc_source_file instead of gfc_option.source. Call gfc_new_file without arguments. * invoke.texi: Document new options '-fd-lines-as-code' and '-fd-lines-as-comment'. * lang.opt: Add new options. Alphabetize. * options.c (gfc_init_options): Initialize gfc_source_file instead of gfc_option.source. Initialize gfc_option.flag_d_lines. (form_from_filename): Move here from scanner.c. Make 'filename' argument 'const'. (gfc_post_options): Set gfc_source_file. Determine source form. Warn if 'd-lines*' are used in free form. * scanner.c (gfc_source_file): Constify. (skip_fixed_comments): Deal with d-lines. (get_file): Constify argument 'name'. (load_file): Constify argument 'filename'. (form_from_filename): Moved to options.c. (gfc_new_file): Remove arguments. Don't initialize gfc_source_file, don't determine source form. * trans-const.c (gfc_init_constants): Use gfc_source_file instead of gfc_option.source. testsuite/ * d_lines_1.f, d_lines_2.f, d_lines_3.f, d_lines_4.f, d_lines_5.f: New. From-SVN: r103322
2005-08-21simplify-rtx.c (simplify_immed_subreg): Only clear up to elem_bitsize bits, ↵Jakub Jelinek4-1/+20
not max_bitsize. * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear up to elem_bitsize bits, not max_bitsize. * gcc.target/i386/sse-4.c: New test. From-SVN: r103318
2005-08-21re PR tree-optimization/23433 (ICE: tree check: expected real_cst, have ↵Sebastian Pop3-0/+21
integer_cst in const_binop, at fold-const.c:1512) PR tree-optimization/23433 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a REAL_CST when the type is SCALAR_FLOAT_TYPE_P. From-SVN: r103317
2005-08-21* testsuite/gcc.dg/tree-ssa/pr23391.c: Should be compiled with -O2.Sebastian Pop1-0/+1
From-SVN: r103316
2005-08-21re PR tree-optimization/23434 (ICE: Segmentation fault compiling gsl1.5 at -O2)Sebastian Pop3-0/+29
PR tree-optimization/23434 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when the iteration bound is not an INTEGER_CST. From-SVN: r103315
2005-08-21tree-vect-transform.c (get_initial_def_for_reduction): Set ↵Dorit Nuzman2-42/+33
need_epilog_adjust back to false for MIN/MAX case. * tree-vect-transform.c (get_initial_def_for_reduction): Set need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to NULL if need_epilog_adjust is false. (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed. Case 3 always peels first itration, not just for PLUS case, and no need to use scalar_initial_def here. Create an epilog adjustment only if scalar_initial_def is not NULL. (vectorizable_reduction): Remove assert. From-SVN: r103314
2005-08-21Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r103311.2
2005-08-20re PR target/23485 ([ia64]: Integer dvide by zero doesn't raise a signal)H.J. Lu2-0/+36
2005-08-20 H.J. Lu <hongjiu.lu@intel.com> PR target/23485 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero. (__moddi3): Likewise. (__udivdi3): Likewise. (__umoddi3): Likewise. (__divsi3): Likewise. (__modsi3): Likewise. (__udivsi3): Likewise. (__umodsi3): Likewise. From-SVN: r103309