- 23 Feb, 2007 10 commits
-
-
* 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
Kaveh R. Ghazi committed -
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
Richard Guenther committed -
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
H.J. Lu committed -
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
Paolo Bonzini committed -
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
Jerry DeLisle committed -
2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/30910 * gfortran.dg/fmt_zero_precision.f90: Update test. From-SVN: r122251
Jerry DeLisle committed -
2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/30910 * io/write.c (output_float): Add condition of format F only for special case rounding with zero precision. From-SVN: r122250
Jerry DeLisle committed -
* builtins.c (fold_builtin_frexp): New. (fold_builtin_2): Use it. testsuite: * gcc.dg/torture/builtin-frexp-1.c: New test. From-SVN: r122249
Kaveh R. Ghazi committed -
From-SVN: r122248
Mark Mitchell committed -
From-SVN: r122244
GCC Administrator committed
-
- 22 Feb, 2007 16 commits
-
-
* 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
Mark Mitchell committed -
gfortran.texi (Old-style kind specifications): Document special handling of 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
Brooks Moses committed -
2007-02-22 Simon Martin <simartin@users.sourceforge.net> * testsuite/27_io/basic_ios/cons/char/3.cc: Fixed type mismatches in explicit instantiations. * testsuite/27_io/basic_istream/extractors_other/pod/3983-3.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Likewise. * testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc: Likewise. * testsuite/27_io/basic_istream/sentry/pod/1.cc: Likewise. * testsuite/27_io/basic_ostream/sentry/pod/1.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/pod/10081-in.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/pod/10081-out.cc: Likewise. * testsuite/21_strings/basic_string/capacity/1.cc: Likewise. From-SVN: r122237
Simon Martin committed -
From-SVN: r122235
Mark Mitchell committed -
* 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
Michael Matz committed -
libjava/ PR libgcj/17002 PR classpath/28550 * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read /etc/localtime, use ZoneInfo.readTZFile instead of VMTimeZone.readtzFile. Get better timezone name for /etc/localtime, either if it is a symlink or through /etc/sysconfig/clock. (readSysconfigClockFile): New static method. (readtzFile): Removed. * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments. * posix.cc (_Jv_platform_initProperties): Set gnu.java.util.zoneinfo.dir. * sources.am (gnu_java_util_source_files): Add classpath/gnu/java/util/ZoneInfo.java. * Makefile.in: Regenerated. * java/util/VMTimeZone.h: Regenerated. * java/util/TimeZone.h: Regenerated. * gnu/java/util/ZoneInfo.h: Generated. libjava/classpath/ * java/util/Date.java (parse): Properly parse 09:01:02 as hours/minutes/seconds, not as hours/minutes/year. * java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify {start,end}TimeMode constructor by calling shorter constructor, set {start,end}TimeMode fields after it returns. (setStartRule): Don't adjust startTime into WALL_TIME. Set startTimeMode to WALL_TIME. (endStartRule): Similarly. (getOffset): Handle properly millis + dstOffset overflowing into the next day. Adjust startTime resp. endTime based on startTimeMode resp. endTimeMode. * java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New static fields. (timezones): Remove synchronized keyword. Set zoneinfo_dir. If non-null, set up aliases0 and don't put anything into timezones0. (defaultZone): Call getTimeZone instead of timezones().get. (getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6. Use getTimeZoneInternal instead of timezones().get. (parseTime): Parse correctly hour:minute. (getTimeZoneInternal): New private method. (getTimeZone): Do the custom ID checking first, canonicalize ID for custom IDs as required by documentation. Call getTimeZoneInternal to handle the rest. (getAvailableIDs(int)): Add locking. Handle zoneinfo_dir != null. (getAvailableIDs(File,String,ArrayList)): New private method. (getAvailableIDs()): Add locking. Handle zoneinfo_dir != null. * gnu/java/util/ZoneInfo.java: New file. From-SVN: r122229
Jakub Jelinek committed -
./: 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
Ian Lance Taylor committed -
From-SVN: r122227
Mohan Embar committed -
From-SVN: r122226
Ira Rosen committed -
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
Ira Rosen committed -
2007-02-22 Paolo Carlini <pcarlini@suse.de> * include/tr1/unordered_map (class __unordered_map, class __unordered_multimap): New. (class unordered_map, class unordered_multimap): Forward to the latter. * include/tr1/unordered_set: Likewise for unordered_set and unordered_multiset. * testsuite/tr1/6_containers/headers/unordered_set/synopsis.cc: Remove xfail. * testsuite/tr1/6_containers/headers/unordered_map/synopsis.cc: Likewise. * testsuite/tr1/6_containers/unordered_multimap/requirements/ explicit_instantiation.cc: Adjust. * testsuite/tr1/6_containers/unordered_set/requirements/ explicit_instantiation.cc: Likewise. * testsuite/tr1/6_containers/unordered_map/requirements/ explicit_instantiation.cc: Likewise. * testsuite/tr1/6_containers/unordered_multiset/requirements/ explicit_instantiation.cc: Likewise. * testsuite/tr1/6_containers/unordered_map/24064.cc: Likewise. * testsuite/util/native_type/assoc/native_hash_set.hpp: Likewise. * testsuite/util/native_type/assoc/native_hash_map.hpp: Likewise. From-SVN: r122224
Paolo Carlini committed -
2007-02-22 Paolo Carlini <pcarlini@suse.de> * include/tr1/unordered_map (class __unordered_map, class __unordered_multimap): New. (class unordered_map, class unordered_multimap): Forward to the latter. * include/tr1/unordered_set: Likewise for unordered_set and unordered_multiset. * testsuite/tr1/6_containers/headers/unordered_set/synopsis.cc: Remove xfail. * testsuite/tr1/6_containers/headers/unordered_map/synopsis.cc: Likewise. * testsuite/tr1/6_containers/unordered_multimap/requirements/ explicit_instantiation.cc: Adjust. * testsuite/tr1/6_containers/unordered_set/requirements/ explicit_instantiation.cc: Likewise. * testsuite/tr1/6_containers/unordered_map/requirements/ explicit_instantiation.cc: Likewise. * testsuite/tr1/6_containers/unordered_multiset/requirements/ explicit_instantiation.cc: Likewise. * testsuite/tr1/6_containers/unordered_map/24064.cc: Likewise. * testsuite/util/native_type/assoc/native_hash_set.hpp: Likewise. * testsuite/util/native_type/assoc/native_hash_map.hpp: Likewise. From-SVN: r122223
Paolo Carlini committed -
From-SVN: r122222
Arnaud Charlet committed -
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
Dorit Nuzman committed -
* 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
Mark Mitchell committed -
From-SVN: r122215
GCC Administrator committed
-
- 21 Feb, 2007 13 commits
-
-
* configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>. * configure: Regenerate. From-SVN: r122211
Mike Stump committed -
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
Trevor Smigiel committed -
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
Eric Botcazou committed -
* gcc.dg/torture/builtin-ldexp-1.c: Use -fno-finite-math-only on sh* targets. Call the correct CKSGN macro. From-SVN: r122206
Kaveh R. Ghazi committed -
2007-02-21 Paul Brook <paul@codesourcery.com> * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt condexec_count when skipping USE and CLOBBER. From-SVN: r122205
Paul Brook committed -
2007-02-21 Kyle Galloway <kgallowa@redhat.com> * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function. * testsuite/libjava.jvmti/interp/getargssize.java: New test. * testsuite/libjava.jvmti/interp/getargssize.h: Ditto. * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto. * testsuite/libjava.jvmti/interp/getargssize.out: Ditto. * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto. From-SVN: r122201
Kyle Galloway committed -
* common.opt (Warray-bounds): Add Warning attribute. (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch): Likewise. (fsized-zeroes): Add Optimization attribute. (fsplit-wide-types, ftree-scev-cprop): Likewise. * c.opt (Wc++0x-compat): Add Warning attribute. From-SVN: r122200
Nick Clifton committed -
PR middle-end/30761 * reload1.c (eliminate_regs_in_insn): In the single_set special case, attempt to re-recognize the insn before falling back to having reload fix it up. From-SVN: r122199
Ulrich Weigand committed -
2007-02-21 Gary Benson <gbenson@redhat.com> * java/util/GregorianCalendar.java: Removed. * sources.am, Makefile.in: Rebuilt. From-SVN: r122198
Gary Benson committed -
* java/util/GregorianCalendar.java, (add): Don't set fields directly anymore. Use set() From-SVN: r122197
Gary Benson committed -
2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org> * parse.c (next_free): Gooble spaces after OpenMP sentinel. 2007-02-21 Jakub Jelinek <jakub@redhat.com> * gfortran.dg/gomp/omp_parse1.f90: New test. * gfortran.dg/gomp/omp_parse2.f: New test. From-SVN: r122190
Jakub Jelinek committed -
From-SVN: r122187
GCC Administrator committed -
2007-02-20 Eric Christopher <echristo@gmail.com> * config/frv/frv.c (frv_read_argument): Take a tree and int argument. Rewrite accordingly. (frv_read_iacc_argument): Ditto. (frv_expand_set_builtin): Take a call instead of arglist, update for above changes. (frv_expand_unop_builtin): Ditto. (frv_expand_binop_builtin): Ditto. (frv_expand_cut_builtin): Ditto. (frv_expand_binopimm_builtin): Ditto. (frv_expand_voidbinop_builtin): Ditto. (frv_expand_int_void2arg): Ditto. (frv_expand_prefetches): Ditto. (frv_expand_voidtriop_builtin): Ditto. (frv_expand_voidaccop_builtin): Ditto. (frv_expand_load_builtin): Ditto. (frv_expand_store_builtin): Ditto. (frv_expand_mdpackh_builtin): Ditto. (frv_expand_mclracc_builtin): Ditto. (frv_expand_mrdacc_builtin): Ditto. (frv_expand_mwtacc_builtin): Ditto. (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update calls for above. From-SVN: r122182
Eric Christopher committed
-
- 20 Feb, 2007 1 commit
-
-
* doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp. * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the cmpb instruction. (HAVE_GAS_DFP): Check for assembler support of decimal floating point instructions. * configure: Regenerate. * config.in: Regenerate. * config/rs6000/rs6000.opt (mcmpb, mdfp): New. * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP masks to power6 and power6x and to POWERPC_MASKS. * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define _ARCH_PWR6. * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP. * config/rs6000/sysv4.opt (mprototype): Use variable, not mask. * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Access PROTOTYPE as variable, not mask. From-SVN: r122179
Janis Johnson committed
-