Skip to content
Snippets Groups Projects
  1. Dec 14, 2005
  2. Dec 13, 2005
    • Ben Elliston's avatar
      c-common.c (c_common_truthvalue_conversion): Generalise warning for addresses... · 690a704a
      Ben Elliston authored
      c-common.c (c_common_truthvalue_conversion): Generalise warning for addresses converted to booleans; not just function addresses.
      
      	* c-common.c (c_common_truthvalue_conversion): Generalise warning
      	for addresses converted to booleans; not just function addresses.
      	* c-typeck.c (build_binary_op): Warn for address comparisons which
      	can never be NULL (eg. func == NULL or &var == NULL).
      	* common.opt (Walways-true): New option.
      	* c-opts.c (c_common_handle_option): Set it with -Wall.
      	* doc/invoke.texi: Document it.
      testsuite/
      	* gcc.dg/warn-addr-cmp.c: New test.
      
      From-SVN: r108489
      690a704a
    • Paul Brook's avatar
      fpgnulib.c (__unordsf2, [...]): New functions. · 383eca9c
      Paul Brook authored
      2005-12-13  Paul Brook  <paul@codesourcery.com>
      
      	* config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
      	__floatunsidf, __floatunsisf, __floatunsixf): New functions.
      
      From-SVN: r108487
      383eca9c
    • Nathan Sidwell's avatar
      t-mt (crti.o, crtn.o): Add multilib options. · c3d7c86d
      Nathan Sidwell authored
      	* config/mt/t-mt (crti.o, crtn.o): Add multilib options.
      	(EXTRA_MULTILIB_PARTS): Define.
      
      From-SVN: r108481
      c3d7c86d
    • J"orn Rennecke's avatar
      PR rtl-optimization/20070 / part1 · 7d22e898
      J"orn Rennecke authored
      	PR rtl-optimization/20070 / part1
      	* flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
      	count_or_remove_death_notes with kill == -1.
      	(mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
      	registers if PROP_POST_REGSTACK is set.
      	(mark_used_reg): Likewise.
      	(count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
      	REG_UNUSED notes for stack regs.
      	* cfgcleanup.c (condjump_equiv_p): Change parameters and processing
      	to match rtx_equiv_p machinery.  Change caller.
      	(outgoing_edges_match): Likewise.
      	(try_crossjump_to_edge): Use struct_equiv_block_eq
      	instead of flow_find_cross_jump.
      	* basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
      	(STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
      	(STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
      	(STRUCT_EQUIV_MAX_LOCAL): Likewise.
      	(struct struct_equiv_checkpoint, struct equiv_info): Likewise.
      	(insns_match_p): Update prototype.
      	(flow_find_cross_jump): Remove prototype.
      	(struct_equiv_block_eq, struct_equiv_init): Declare.
      	(rtx_equiv_p, condjump_equiv_p): Likewise.
      	* struct-equiv.c: Include reload.h.
      	(IMPOSSIBLE_MOVE_FACTOR): Define.
      	(assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
      	(struct_equiv_improve_checkpoint): Likewise.
      	(struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
      	(set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
      	(struct_equiv_merge, find_dying_input): Likewise.
      	(resolve_input_conflict, note_local_live): Likewise.
      	(death_notes_match_p): Change parameters and processing
      	to match rtx_equiv_p machinery.  Change caller.
      	(insns_match_p): Likewise.
      	(flow_find_cross_jump): Replace with:
      	(struct_equiv_block_eq).
      
      	Back out this change:
      	2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
                * recog.c (verify_changes): Make it static.
                * recog.h: Remove the corresponding prototype.
      
      From-SVN: r108480
      7d22e898
    • J"orn Rennecke's avatar
      rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point values. · 80e6edb0
      J"orn Rennecke authored
      	* rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
      	values.
      
      From-SVN: r108479
      80e6edb0
    • Nathan Sidwell's avatar
      t-mt (MULTILIB_OPTIONS): Add ms2 · ce9d5668
      Nathan Sidwell authored
      	* config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
      	(MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
      	* config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
      	TARGET_MS1_64_001 appropriately.
      	(ms1_machine_reorg): Use TARGET_MS2.
      
      From-SVN: r108477
      ce9d5668
    • Richard Guenther's avatar
      trans-expr.c (gfc_conv_substring): Use fold_build2 and build_int_cst. · 93fc8073
      Richard Guenther authored
      2005-12-13  Richard Guenther  <rguenther@suse.de>
      
      	* trans-expr.c (gfc_conv_substring): Use fold_build2 and
      	build_int_cst.
      
      From-SVN: r108476
      93fc8073
    • Andrew Haley's avatar
      re PR java/25366 (ICE in do_resolve_class) · 65260edb
      Andrew Haley authored
      2005-12-13  Andrew Haley  <aph@redhat.com>
      
              PR java/25366
              PR java/25368
              * class.c (maybe_layout_super_class): Update current_class before
              calling do_resolve_class.
      
      From-SVN: r108474
      65260edb
    • Jakub Jelinek's avatar
      re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No... · 78fdb6d2
      Jakub Jelinek authored
      re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No such file or directory)
      
      	PR libfortran/24991
      	* acinclude.m4 (LIBGFOR_CHECK_PRAGMA_WEAK): Rename to...
      	(LIBGFOR_GTHREAD_WEAK): ... this.  Define SUPPORTS_WEAK rather
      	than HAVE_PRAGMA_WEAK.  Define GTHREAD_USE_WEAK to 0 on hosts
      	that shouldn't use weak in gthr.h.
      	* configure.ac: Use LIBGFOR_GTHREAD_WEAK instead of
      	LIBGFOR_CHECK_PRAGMA_WEAK.
      	* config.h.in: Regenerated.
      	* configure: Regenerated.
      	* io/io.h (SUPPORTS_WEAK): Don't define here.
      
      	* intrinsics/ftell.c (ftell, FTELL_SUB): Add unlock_unit call.
      	* intrinsics/fget.c (fgetc, fputs): Likewise.
      	* intrinsics/tty.c (ttynam): Likewise.
      
      From-SVN: r108471
      78fdb6d2
    • Jakub Jelinek's avatar
      Update. · f767c88d
      Jakub Jelinek authored
      From-SVN: r108465
      f767c88d
    • Jakub Jelinek's avatar
      re PR debug/25023 (ICE in def_cfa_1, at dwarf2out.c:792) · 6541fe75
      Jakub Jelinek authored
      	PR debug/25023
      	PR target/25293
      	* expr.c (emit_move_resolve_push): Handle PRE_MODIFY
      	and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
      	Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
      	* config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
      	Set mode to SI, adjust constraints.
      	(pushhi2_rex64, pushqi2_rex64): Set mode to DI.
      	* config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
      	32-bit code.
      
      	* gcc.target/i386/pr25293.c: New test.
      
      From-SVN: r108463
      6541fe75
    • Petr Machata's avatar
      re PR c++/24907 ("int x, ;" accepted) · 6d328225
      Petr Machata authored
      2005-12-13  Petr Machata  <machata@post.cz>
      
      	PR c++/24907
      	* parser.c (cp_parser_simple_declaration): Require comma at the
      	beginning of processing second and later declarators, instead of
      	allowing the comma at the end of each iteration.
      
      	* g++.dg/parse/comma2.C: New test.
      
      From-SVN: r108462
      6d328225
    • Mark Mitchell's avatar
      struct-layout-1.exp: Do not link with libiberty. · 7e825da0
      Mark Mitchell authored
      
      	* g++.dg/compat/struct-layout-1.exp: Do not link with libiberty.
      	* g++.dg/compat/struct-layout-1_generate.c (config.h): Do not include.
      	(limits.h): Include unconditionally.
      	(stdlib.h): Likewise.
      	(hashtab.h): Do not include.
      	(getopt.h): Likewise.
      	(stddef.h): Include.
      	(hashval_t): Define.
      	(struct entry): Add "next" field.
      	(HASH_SIZE): New macro.
      	(hash_table): New variable.
      	(switchfiles): Do not use xmalloc.
      	(mix): New macro.
      	(iterative_hash): New function.
      	(hasht): Remove.
      	(e_exists): New function.
      	(e_insert): Likewise.
      	(output): Use, instead of libiberty hashtable functions.
      	(main): Do not use getopt.  Do not call htab_create.
      
      Co-Authored-By: default avatarJakub Jelinek <jakub@redhat.com>
      
      From-SVN: r108461
      7e825da0
    • Jakub Jelinek's avatar
      re PR c++/25331 (FAIL: tmpdir-g++.dg-struct-layout-1/t028 cp_compat_[xy]_tst.o compile) · e2796397
      Jakub Jelinek authored
      	PR c++/25331
      	* gcc.dg/compat/struct-layout-1_generate.c (subfield): Don't
      	put atal* and atpaal* attributes on array elements.
      	(generate_fields): Revert 2005-10-07 and 2005-10-11 changes.
      	* g++.dg/compat/struct-layout-1_generate.c (subfield): Don't
      	put atal* and atpaal* attributes on array elements.
      	(generate_fields): Don't prevent atal* attribute on ETYPE_ARRAY.
      
      From-SVN: r108460
      e2796397
    • Richard Sandiford's avatar
      Make-lang.in (fortran/trans-resolve.o): Depend on fortran/dependency.h. · 1524f80b
      Richard Sandiford authored
      
      gcc/fortran/
      	* Make-lang.in (fortran/trans-resolve.o): Depend on
      	fortran/dependency.h.
      	* gfortran.h (gfc_expr): Add an "inline_noncopying_intrinsic" flag.
      	* dependency.h (gfc_get_noncopying_intrinsic_argument): Declare.
      	(gfc_check_fncall_dependency): Change prototype.
      	* dependency.c (gfc_get_noncopying_intrinsic_argument): New function.
      	(gfc_check_argument_var_dependency): New function, split from
      	gfc_check_fncall_dependency.
      	(gfc_check_argument_dependency): New function.
      	(gfc_check_fncall_dependency): Replace the expression parameter with
      	separate symbol and argument list parameters.  Generalize the function
      	to handle dependencies for any type of expression, not just variables.
      	Accept a further argument giving the intent of the expression being
      	tested.  Ignore	intent(in) arguments if that expression is also
      	intent(in).
      	* resolve.c: Include dependency.h.
      	(find_noncopying_intrinsics): New function.
      	(resolve_function, resolve_call): Call it on success.
      	* trans-array.h (gfc_conv_array_transpose): Declare.
      	(gfc_check_fncall_dependency): Remove prototype.
      	* trans-array.c (gfc_conv_array_transpose): New function.
      	* trans-intrinsic.c (gfc_conv_intrinsic_function): Don't use the
      	libcall handling if the expression is to be evaluated inline.
      	Add a case for handling inline transpose()s.
      	* trans-expr.c (gfc_trans_arrayfunc_assign): Adjust for the new
      	interface provided by gfc_check_fncall_dependency.
      
      libgfortran/
      	* m4/matmul.m4: Use a different order in the special case of a
      	transposed first argument.
      	* generated/matmul_c4.c, generated/matmul_c8.c, generated/matmul_c10.c,
      	* generated/matmul_c16.c, generated/matmul_i4.c, generated/matmul_i8.c,
      	* generated/matmul_i10.c, generated/matmul_r4.c, generated/matmul_r8.c
      	* generated/matmul_r10.c, generated/matmul_r16.c: Regenerated.
      
      Co-Authored-By: default avatarVictor Leikehman <LEI@il.ibm.com>
      
      From-SVN: r108459
      1524f80b
    • Carlos O'Donell's avatar
      c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter, pass... · 264c41ed
      Carlos O'Donell authored
      c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter, pass to builtin_define_with_hex_fp_value.
      
      2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
      
      gcc/
      
      	* c-cppbuiltin.c (builtin_define_float_constants): Add
      	fp_cast parameter, pass to builtin_define_with_hex_fp_value.
      	Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
      	(builtin_define_with_hex_fp_value): Use fp_cast when building macro.
      	(c_cpp_builtins): If flag_single_precision_constant then set fp_cast
      	to "((double)%sL)" otherwise "%s".
      
      gcc/testsuite/
      
      	* gcc.dg/single-precision-constant.c: New test.
      
      libstdc++-v3/
      
      	* include/std/std_limits.h (struct numeric_limits):
      	Use __DBL_HAS_DENORM__, __FLT_HAS_DENORM__, __LDBL_HAS_DENORM__.
      
      From-SVN: r108458
      264c41ed
    • Alan Modra's avatar
      980523-1.c, [...]: Don't use powerpc-*-* or powerpc64-*-* in target selection strings. · 65b1344e
      Alan Modra authored
      	* gcc.dg/980523-1.c, gcc.dg/980526-1.c, gcc.dg/20020103-1.c,
      	gcc.dg/20040625-1.c, gcc.dg/asm-b.c, gcc.dg/iftrap-1.c,
      	gcc.dg/iftrap-2.c, gcc.dg/simd-3.c, gcc.dg/switch-1.c,
      	gcc.dg/tree-ssa/bool-1.c, gcc.dg/tree-ssa/bool-2.c,
      	gcc.dg/tree-ssa/bool-4.c, gcc.dg/tree-ssa/bool-5.c,
      	gcc.dg/tree-ssa/bool-6.c, gcc.dg/tree-ssa/bool-8.c,
      	gcc.dg/tree-ssa/bool-9.c, gcc.target/powerpc/980827-1.c,
      	gcc.target/powerpc/20040622-1.c, gcc.target/powerpc/20050603-3.c,
      	gcc.target/powerpc/20050830-1.c, gcc.target/powerpc/altivec-6.c,
      	gcc.target/powerpc/altivec-14.c, gcc.target/powerpc/altivec-22.c,
      	gcc.target/powerpc/doloop-1.c, gcc.target/powerpc/ppc-and-1.c,
      	gcc.target/powerpc/ppc-bitfield1.c, gcc.target/powerpc/ppc-compare-1.c,
      	gcc.target/powerpc/ppc-mov-1.c, gcc.target/powerpc/ppc-sdata-1.c,
      	gcc.target/powerpc/ppc-sdata-2.c,
      	gcc.target/powerpc/ppc-stackalign-1.c,
      	gcc.target/powerpc/ppc64-abi-1.c, gcc.target/powerpc/ppc64-abi-2.c,
      	gcc.target/powerpc/ppc64-abi-3.c, gcc.target/powerpc/ppc64-toc.c,
      	gcc.target/powerpc/pr18096-1.c, gcc.target/powerpc/rs6000-ldouble-1.c,
      	gcc.target/powerpc/rs6000-ldouble-2.c,
      	gcc.target/powerpc/rs6000-power2-1.c,
      	gcc.target/powerpc/rs6000-power2-2.c: Don't use powerpc-*-* or
      	powerpc64-*-* in target selection strings.  Instead use powerpc*-*-*
      	and ilp32 or lp64 as appropriate.  Merge dg-require-effective-target
      	option into target selector.
      	* gcc.dg/20020919-1.c: Compile for powerpc*-*-*.  Handle powerpc64.
      	* gcc.misc-tests/linkage.exp: Set native_cflags for powerpc*-*-linux*.
      
      From-SVN: r108457
      65b1344e
    • Paul Brook's avatar
      bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for apcs/atpcs. · dbff657a
      Paul Brook authored
      	* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
      	apcs/atpcs.
      
      From-SVN: r108450
      dbff657a
    • Paul Brook's avatar
      bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for apcs/atpcs. · 99700fec
      Paul Brook authored
      	* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
      	apcs/atpcs.
      
      From-SVN: r108448
      99700fec
    • Carlos O'Donell's avatar
      MAINTAINERS (Write After Approval): Add myself. · 9174b3cf
      Carlos O'Donell authored
      2005-12-12  Carlos O'Donell <carlos@codesourcery.com>
      
      	* MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r108443
      9174b3cf
    • GCC Administrator's avatar
      Daily bump. · bd4c7092
      GCC Administrator authored
      From-SVN: r108439
      bd4c7092
  3. Dec 12, 2005
Loading