aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2007-02-25re PR libfortran/30918 (Failure to skip commented out NAMELIST)Jerry DeLisle2-0/+53
2007-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/30918 * gfortran.dg/namelist_26.f90: New test. From-SVN: r122308
2007-02-25Daily bump.GCC Administrator1-1/+1
From-SVN: r122305
2007-02-25re PR target/30770 (BOOT_CFLAGS="-O2 -g -mtune=nocona" miscompiled the stage ↵Uros Bizjak2-2/+9
3 compiler) PR target/30770 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask count argument with 0x10, not with 0x16. (expand_setmem_epilogue): Ditto. From-SVN: r122301
2007-02-24Fix typoMike Stump1-4/+3
From-SVN: r122299
2007-02-24i386.c (output_pic_addr_const): Stubify optimized symbols.Mike Stump2-1/+23
* config/i386/i386.c (output_pic_addr_const): Stubify optimized symbols. From-SVN: r122297
2007-02-24re PR middle-end/30951 (Does not fold x + CST == x and x + CST != x)Richard Guenther4-0/+65
2007-02-24 Richard Guenther <rguenther@suse.de> PR middle-end/30951 * fold-const.c (fold_binary): Fold x +- CST op x for EQ_EXPR and NE_EXPR. * gcc.dg/pr30951.c: New testcase. From-SVN: r122295
2007-02-24pa.md (muldi3): Force subregs to registers in 64-bit expander.John David Anglin2-4/+8
* pa.md (muldi3): Force subregs to registers in 64-bit expander. From-SVN: r122294
2007-02-24cgraphunit.c (decide_is_function_needed): Honor -fkeep-inline-functions.Jan Hubicka2-0/+12
* cgraphunit.c (decide_is_function_needed): Honor -fkeep-inline-functions. From-SVN: r122293
2007-02-24builtins.c (fold_builtin_modf): New.Kaveh R. Ghazi4-0/+227
* builtins.c (fold_builtin_modf): New. (fold_builtin_2): Use it. testsuite: * gcc.dg/torture/builtin-modf-1.c: New test. From-SVN: r122292
2007-02-24loop-iv.c (simplify_using_initial_values): Return if the expression becomes ↵Bernd Schmidt2-0/+4
invalid due to altered regs. * loop-iv.c (simplify_using_initial_values): Return if the expression becomes invalid due to altered regs. From-SVN: r122291
2007-02-24re PR tree-optimization/30904 (VRP does not track values of shifts and/or ↵Paolo Bonzini2-0/+23
bitfields?) 2007-02-23 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/30904 * gcc.dg/pr30904.c: New test. From-SVN: r122290
2007-02-24loop-iv.c (implies_p): Detect additional cases where A implies B.Bernd Schmidt2-39/+112
* loop-iv.c (implies_p): Detect additional cases where A implies B. (determine_max_iter): Take additional LOOP arg; all callers changed. Lose broken logic dealing with PLUS. Try to limit the upper bound by one using simplifications. From-SVN: r122288
2007-02-24tlink.c (scan_linker_output): Parse linker messages from darwin9's linker ↵Mike Stump1-9/+11
better. * tlink.c (scan_linker_output): Parse linker messages from darwin9's linker better. From-SVN: r122286
2007-02-23* doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.DJ Delorie2-1/+7
From-SVN: r122285
2007-02-24Fix thinko in last fix.Mike Stump1-1/+4
From-SVN: r122284
2007-02-24tlink.c (scan_linker_output): Parse linker messages from darwin9's linker ↵Mike Stump2-1/+25
better. * tlink.c (scan_linker_output): Parse linker messages from darwin9's linker better. From-SVN: r122283
2007-02-24Daily bump.GCC Administrator1-1/+1
From-SVN: r122281
2007-02-24re PR debug/29614 (DWARF information for function static variable is missing ↵Steve Ellcey2-0/+9
after unrelated code addition) PR debug/29614 * varpool.c (varpool_assemble_pending_decls): Set varpool_last_needed_node to null. From-SVN: r122277
2007-02-23i386.c (ix86_data_alignment): Don't specify an alignment bigger than the ↵DJ Delorie2-1/+6
object file can handle. * config/i386/i386.c (ix86_data_alignment): Don't specify an alignment bigger than the object file can handle. From-SVN: r122275
2007-02-23README: Correct command.Manuel López-Ibáñez4-3/+10
2007-02-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * gcc.test-framework/README: Correct command. * gcc.test-framework/dg-outexistsnot-exp-P.c: Replace -W with -Wunused-value. * gcc.test-framework/dg-outexists-exp-F.c: Likewise. From-SVN: r122274
2007-02-23target-supports.exp (check_effective_target_unwrapped): New.Mark Mitchell2-0/+15
* lib/target-supports.exp (check_effective_target_unwrapped): New. * testsuite/27_io/ios_base/sync_with_stdio/1.cc: XFAIL for wrapped targets. From-SVN: r122273
2007-02-23target-supports.exp (check_effective_target_unwrapped): New.Mark Mitchell2-0/+12
* lib/target-supports.exp (check_effective_target_unwrapped): New. * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: XFAIL for Newlib targets. From-SVN: r122272
2007-02-23re PR target/30825 (current mainline fails to bootstrap when -msse is used)Uros Bizjak2-8/+15
PR target/30825 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32, zero_extendsidi2_rex64): Penalize MMX register<->memory moves. (*movsf_1): Penalize MMX moves. From-SVN: r122268
2007-02-23loop-iv.c (determine_max_iter): Moved in front of its sole user.Bernd Schmidt2-65/+67
* loop-iv.c (determine_max_iter): Moved in front of its sole user. From-SVN: r122264
2007-02-23re PR fortran/30660 (Allocatable components of a derived type "require" the ↵Paul Thomas4-3/+38
SAVE attribute.) 2007-02-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/30660 * resolve.c (has_default_initializer): New function. (resolve_fl_variable): Call has_default_initializer to determine if the derived type has a default initializer to its ultimate components. 2007-02-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/30660 * gfortran.dg/alloc_comp_basics_4.f90: Add component with an allocatable component. From-SVN: r122263
2007-02-23bfin.md (doloop_end): Fail for loops that can iterate 2^32-1 or more times ↵Bernd Schmidt2-1/+15
unless... * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate 2^32-1 or more times unless flag_unsafe_loop_optimizations. From-SVN: r122262
2007-02-23builtins.c (fold_builtin_logb, [...]): New.Kaveh R. Ghazi8-0/+308
* builtins.c (fold_builtin_logb, fold_builtin_significand): New. (fold_builtin_1): Use them. * fold-const.c (tree_expr_nonnegative_warnv_p): Handle BUILT_IN_SIGNIFICAND. testsuite: * gcc.dg/torture/builtin-logb-1.c: New test. * gcc.dg/torture/builtin-math-2.c: Test logb/ilogb. * gcc.dg/torture/builtin-nonneg-1.c: Test significand. * gcc.dg/torture/builtin-frexp-1.c: Use -fno-finite-math-only on sh* targets. From-SVN: r122257
2007-02-23class.c (note_name_declared_in_class): Make declaration changes meaning a ↵Richard Guenther4-3/+23
pedwarn. 2007-02-23 Richard Guenther <rguenther@suse.de> * class.c (note_name_declared_in_class): Make declaration changes meaning a pedwarn. * g++.dg/warn/changes-meaning.C: New testcase. From-SVN: r122255
2007-02-23i386.c (bdesc_1arg): Initialize IX86_BUILTIN_MOVSHDUP and ↵H.J. Lu2-9/+11
IX86_BUILTIN_MOVSLDUP with... 2007-02-23 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (bdesc_1arg): Initialize IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup". (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP. From-SVN: r122254
2007-02-23re PR rtl-optimization/30841 (Missed optimizations for sbi/cbi instructions)Paolo Bonzini2-1/+7
2007-02-22 Paolo Bonzini <bonzini@gnu.org> PR rtl-optimization/30841 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address. From-SVN: r122253
2007-02-23options.c (set_default_std_flags): New function to consolidate setting the ↵Jerry DeLisle2-12/+22
flags. 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> * options.c (set_default_std_flags): New function to consolidate setting the flags. (gfc_init_options): Use new function. (gfc_handle_option): Use new function. From-SVN: r122252
2007-02-23re PR fortran/30910 ([Regression 4.2, 4.3] Gfortran: ES format not quite ↵Jerry DeLisle2-0/+60
right...) 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/30910 * gfortran.dg/fmt_zero_precision.f90: Update test. From-SVN: r122251
2007-02-23builtins.c (fold_builtin_frexp): New.Kaveh R. Ghazi4-0/+186
* builtins.c (fold_builtin_frexp): New. (fold_builtin_2): Use it. testsuite: * gcc.dg/torture/builtin-frexp-1.c: New test. From-SVN: r122249
2007-02-23* doc/invoke.texi (Spec Files): Document getenv spec function.Mark Mitchell2-0/+15
From-SVN: r122248
2007-02-23Daily bump.GCC Administrator1-1/+1
From-SVN: r122244
2007-02-22gcc.c (getenv_spec_function): New function.Mark Mitchell3-4/+38
* gcc.c (getenv_spec_function): New function. (static_spec_functions): Add it. * config/vxworks.h (VXWORKS_TARGET_DIR): Remove. (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks header files. From-SVN: r122240
2007-02-22gfortran.texi (Old-style kind specifications): Document special handling of ↵Brooks Moses3-8/+19
old-style kind specifiers for COMPLEX. * gfortran.texi (Old-style kind specifications): Document special handling of old-style kind specifiers for COMPLEX. * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize assumptions in comment. From-SVN: r122238
2007-02-22* g++.dg/opt/switch4.C: Pass -fshort-enums -w.Mark Mitchell2-0/+5
From-SVN: r122235
2007-02-22dwarf2out.c (add_AT_string): Call ggc_strdup once per string.Michael Matz7-144/+74
* dwarf2out.c (add_AT_string): Call ggc_strdup once per string. (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME. * cp-tree.h (TFF_NO_OUTER_SCOPE): New formatting flag. * error.c (dump_aggr_type, dump_simple_decl, dump_decl, dump_function_decl): Guard emitting outer scopes by new flag. * cp-lang.c (cxx_dwarf_name): New function. (LANG_HOOKS_DWARF_NAME): Define to cxx_dwarf_name. * pt.c (classtype_mangled_name, mangle_class_name_for_template): Remove functions. (push_template_decl_real, lookup_template_class): Remove calls to above functions. From-SVN: r122230
2007-02-22re PR debug/30898 (ICE with anonymous union and -g)Ian Lance Taylor4-0/+54
./: PR debug/30898 * dwarf2out.c (concatn_mem_loc_descriptor): New static function. (mem_loc_descriptor): Call it. testsuite/: * g++.dg/debug/pr30898.C: New test. From-SVN: r122228
2007-02-22* tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.Ira Rosen4-1/+96
From-SVN: r122226
2007-02-22re PR tree-optimization/30843 (ice for legal code with -ftree-vectorize -O2)Ira Rosen4-11/+40
PR tree-optimization/30843 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar stores only after all the group is vectorized. From-SVN: r122225
2007-02-22Update test to be compatible with Ada 2005.Arnaud Charlet2-2/+2
From-SVN: r122222
2007-02-22re PR tree-optimization/30858 (ice for legal code with -O2 -ftree-vectorize)Dorit Nuzman5-8/+79
PR tree-optimization/30858 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts in the reduction cycle have a single use in the loop. * tree-vectorizer.h (relevant): Add documentation. From-SVN: r122220
2007-02-22wrapper.exp (${tool}_maybe_build_wrapper): Allow the caller to set options ↵Mark Mitchell4-5/+17
for compiling testglue. * lib/wrapper.exp (${tool}_maybe_build_wrapper): Allow the caller to set options for compiling testglue. * lib/g++.exp (g++_init): Compile testglue with -fexceptions. * lib/obj-c++.exp (obj-c++_init): Likewise. * testsuite/lib/libstdc++.exp (libstdc++_init): Compile testglue with -fexceptions. From-SVN: r122217
2007-02-22Daily bump.GCC Administrator1-1/+1
From-SVN: r122215
2007-02-21configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.Mike Stump3-2/+9
* configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>. * configure: Regenerate. From-SVN: r122211
2007-02-21Change the defaults of some parameters and options.Trevor Smigiel11-181/+404
2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com> Change the defaults of some parameters and options. * config/spu/spu-protos.h (spu_optimization_options): Declare. * config/spu/spu.c (spu_optimization_options): Add. (spu_override_options): Change params in spu_optimization_options. * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define. Register 127 is only 16 byte aligned when used as a frame pointer. * config/spu/spu-protos.h (spu_init_expanders): Declare. * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for HARD_FRAME_POINTER_REGNUM. (spu_legitimate_address): Use regno_aligned_for_reload. (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte aligned when frame_pointer_needed is true. (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM to 8 bits. * config/spu/spu.h (INIT_EXPANDERS): Define. Make sure shift and rotate instructions have valid immediate operands. * config/spu/predicates.md (spu_shift_operand): Remove. * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers. * config/spu/constraints.md (W, O): Extend range. * config/spu/spu.md (umask, nmask): Define. (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti, lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>, rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>, rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use spu_nonmem_operand instead of spu_shift_operands. Use new modifiers. (lshr<mode>3_reg): Fix rtl description. Make sure mulhisi immediate operands are valid. * config/spu/predicates.md (imm_K_operand): Add. * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand. Generate constants using fsmbi and andi. * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2. (print_operand, spu_split_immediate, classify_immediate, fsmbi_const_p): Handle IC_FSMBI2. Correctly handle a CONST_VECTOR containing symbols. * config/spu/spu.c (print_operand): Handle HIGH correctly. (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem. (immediate_load_p): Allow symbols that use 2 instructions to create. (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR with symbols when flag_pic is set. (const_vector_immediate_p): New. (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't accept a CONST_VECTOR with symbols. (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH correctly. * config/spu/spu.md (high, low): Delete. (low_<mode>): Define. Remove INTRmode and INTR_REGNUM, which didn't work. * config/spu/spu.c (spu_conditional_register_usage): Remove reference of INTR_REGNUM. * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr, set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed peephole2 pattern): Don't use INTR or 131. (movintrcc): Delete. * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM. * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove. (UNSPEC_SET_INTR): Add. * config/spu/spu-modes.def (INTR): Remove. More accurate warnings about run-time relocations. * config/spu/spu.c (reloc_diagnostic): Test in_section. Correctly warn about immediate arguments to specific intrinsics. * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs. (spu_expand_builtin_1): Call spu_check_builtin_parm before checking the instruction predicate. Fix tree check errors with latest update. * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use CALL_EXPR_ARG. (spu_expand_builtin): Use CALL_EXPR_FN. Add missing specific intrinsics. * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and si_bislede. * config/spu/spu_internals.h: Ditto. Fix incorrect operand modifiers. * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H. * config/spu/spu.md (xor<mode>3): Change %S to %J. Optimize one case of zero_extend of a vec_select. * config/spu/spu.md (_vec_extractv8hi_ze): Add. Accept any immediate for hbr. * config/spu/spu.md (hbr): Change s constraints to i. From-SVN: r122210
2007-02-21re PR ada/18819 (ACATS cdd2a02 fail at runtime)Eric Botcazou4-6/+135
PR ada/18819 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an untagged derived type, add hidden components to keep discriminant layout consistent, when a given discriminant of the derived type constraints several discriminants of the parent type. From-SVN: r122208
2007-02-21builtin-ldexp-1.c: Use -fno-finite-math-only on sh* targets.Kaveh R. Ghazi2-4/+10
* gcc.dg/torture/builtin-ldexp-1.c: Use -fno-finite-math-only on sh* targets. Call the correct CKSGN macro. From-SVN: r122206