- 07 Jun, 2002 3 commits
-
-
* fold-const.c (fold) [EQ_EXPR]: Place both integer and real constants last in comparisons. Optimize (x+1.0)>0.0 into the equivalent x > -1.0 when -ffast-math. * gcc.dg/20020607-2.c: New test case. From-SVN: r54356
Roger Sayle committed -
From-SVN: r54350
Jason Merrill committed -
From-SVN: r54342
Jakub Jelinek committed
-
- 04 Jun, 2002 3 commits
-
-
* config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs. (print_operand) ['U']: Likewise. (alpha_expand_unaligned_store): Correct constants for 32-bit cross. (alpha_expand_unaligned_store_words): Likewise. (alpha_expand_builtin_vector_binop): Fix typo. (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk, umulh, and cix insns. (one_arg_builtins): Add cix builtins. (two_arg_builtins): Add ext, ins, msk, umulh builtins. (alpha_expand_builtin): Fix typo in arity. * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New. (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh, builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll, builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh, builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql, builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz, builtin_ctlz, builtin_ctpop): New. * doc/extend.texi (Alpha Built-in Functions): Update. * gcc.dg/alpha-base-1.c: Add ext/ins/msk/umulh cases. * gcc.dg/alpha-max-1.c, gcc.dg/alpha-max-2.c: Use -mcpu=ev67. * gcc.dg/alpha-cix-1.c, gcc.dg/alpha-cix-2.c: New. From-SVN: r54267
Richard Henderson committed -
2002-06-04 Aldy Hernandez <aldyh@redhat.com> * gcc.dg/altivec-2.c: Remove test for invalid vector type V2DF. From-SVN: r54231
Aldy Hernandez committed -
* config/alpha/alpha.c (reg_or_const_int_operand): New. (some_operand, input_operand): Accept CONST_VECTOR. (alpha_extra_constraint): Add 'W'. (alpha_expand_zap_mask): New. (alpha_expand_builtin_vector_binop): New. (enum alpha_builtin): New. (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New. (alpha_init_builtins, alpha_expand_builtin): New. (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New. * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New. (PREDICATE_CODES): Update. * config/alpha/alpha-protos.h: Update. * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP, UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New. (movv8qi, movv8qi_fix, movv8qi_nofix): New. (movv4hi, movv4hi_fix, movv4hi_nofix): New. (movv2si, movv2si_fix, movv2si_nofix): New. (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New. (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New. (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap, builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask, builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8, builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8, builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb, pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl, builtin_unpkbw, unpkbw): New. * doc/extend.texi (Alpha Built-in Functions): New. * gcc.dg/alpha-base-1.c, gcc.dg/alpha-base-2.c: New. * gcc.dg/alpha-max-1.c, gcc.dg/alpha-max-2.c: New. From-SVN: r54229
Richard Henderson committed
-
- 02 Jun, 2002 4 commits
-
-
* alias.c: Include target.h. (mark_constant_function): Use targetm.binds_local_p instead of checking TREE_PUBLIC ourselves. * Makefile.in (alias.o): Add TARGET_H. * gcc.c-torture/execute/pure-1.c: Don't mark any of the test functions static. From-SVN: r54186
Richard Henderson committed -
* gcc.c-torture/execute/loop-3c.x: Remove, the test should pass now. From-SVN: r54183
Andreas Jaeger committed -
* c-common.c (c_common_init): Override cpplib's default warn_long_long setting. * c-lex.c (lex_number): Replace with interpret_integer, interpret_float, narrowest_unsigned_type and narrowest_signed_type, taking advantage of the new cpplib functionality. * cpperror.c (_cpp_begin_message): If a warning is turned into an error, avoid printing "warning:". * cppexp.c (cpp_num_sign_extend): New. * cppinit.c: Update comment. * cpplib.h (cpp_num_sign_extend): New. * tree.h: Update comment. testsuite: * gcc.dg/wtr-int-type-1.c, gcc.dg/wtr-suffix-1.c, gcc.dg/cpp/paste4.c, gcc.dg/cpp/sysmac2.c: Update for mofified diagnostics. * gcc.dg/c99-intconst-1.c: No longer fail. From-SVN: r54180
Neil Booth committed -
From-SVN: r54177
Richard Henderson committed
-
- 01 Jun, 2002 1 commit
-
-
* tree.c (real_minus_onep): New function to test for -1.0. * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x. * gcc.dg/fnegate-1.c: New test case. From-SVN: r54149
Roger Sayle committed
-
- 30 May, 2002 2 commits
-
-
PR optimization/6822 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL to unsigned int for op1 comparisons. Use gen_int_mode. * gcc.c-torture/compile/20020530-1.c: New. Co-Authored-By: Eric Botcazou <ebotcazou@multimania.com> From-SVN: r54076
Richard Henderson committed -
* c-common.c (c_common_attribute_table): Add "may_alias" entry. (c_common_get_alias_set): Handle it. * doc/extend.texi: Document it. * gcc.c-torture/execute/mayalias-1.c: New file. From-SVN: r54074
Osku Salerma committed
-
- 29 May, 2002 3 commits
-
-
* config/i386/i386.c (ix86_compute_frame_layout): Do add bottom alignment for alloca. * gcc.c-torture/execute/alloca-1.c: New. From-SVN: r54018
Richard Henderson committed -
2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk> Zack Weinberg <zack@codesourcery.com> * cppexp.c (cpp_num): Move to cpplib.h. (CPP_ERROR): Remove. (interpret_float_suffix, interpret_int_suffix): New. (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove. (cpp_classify_number, cpp_interpret_integer): New. (interpret_number): Remove. (eval_token): Update to use new routines. * cpphash.h (cpp_num_part): Move to cpplib.h. * cppinit.c (cpp_post_options): Set warn_long_long. * cpplib.h (struct cpp_options): Add warn_long_long. (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID, CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX, CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number, cpp_interpret_integer): New. testsuite: * gcc.dg/cpp/c++98-pedantic.c, gcc.dg/cpp/c89-pedantic.c, gcc.dg/cpp/c94-pedantic.c, gcc.dg/cpp/gnuc89-pedantic.c, gcc.dg/cpp/if-1.c: Update for modified diagnostics. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r54007
Neil Booth committed -
From-SVN: r53998
Hans-Peter Nilsson committed
-
- 27 May, 2002 6 commits
-
-
* c-common.c: Add support for __attribute__((nothrow)) to specify that a function cannot throw an exception (using TREE_NOTHROW). (handle_nothrow_attribute): New function to process this attribute. * doc/extend.texi: Document the new nothrow function attribute. 2002-05-27 Richard Henderson <rth@redhat.com> * g++.dg/ext/attrib6.C: New test case. From-SVN: r53940
Roger Sayle committed -
From-SVN: r53938
Neil Booth committed -
From-SVN: r53937
Kaveh R. Ghazi committed -
* c-common.c (c_common_init): Always use intmax_t. testsuite: * gcc.dg/cpp/arith-2.c: Remove. * gcc.dg/cpp/arith-3.c: Don't set std=c99. From-SVN: r53936
Neil Booth committed -
From-SVN: r53912
Neil Booth committed -
* c-common.c (c_common_init): Set CPP arithmetic precision. * cppexp.c (cpp_num_part): Move typedef ... * cpphash.h: ...here; make unsigned HOST_WIDE_INT. * cppinit.c (cpp_create_reader): Default to host long arithmetic. (sanity_checks): Update. testsuite: * gcc.dg/cpp/arith-2.c, gcc.dg/cpp/arith-3.c: New tests. * gcc.dg/cpp/if-3.c: Remove. From-SVN: r53911
Neil Booth committed
-
- 26 May, 2002 4 commits
-
-
* cse.c (fold_rtx): Don't optimize if SUBREG changes mode class. * g++.dg/opt/cse2.C: New test. From-SVN: r53905
Jakub Jelinek committed -
* cppexp.c (possible_sum_sign, integer_overflow, left_shift, right_shift): Remove. (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART, HIGH_PART): New. (struct op): Use cpp_num. (num_zerop, num_eq, num_positive, num_greater_freq, num_trim, num_part_mul, num_unary_op, num_binary_op, num_negate, num_bitwise_op, num_inequality_op, num_equality_op, num_mul, num_div_op, num_lshift, num_rshift, append_digit): New. (interpret_number, parse_defined, eval_token, reduce): Update for two-integer arithmetic. (binary_handler): New typedef. (optab): Update. (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete. (_cpp_parse_expr, reduce): Update to handle two-integers. * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF. testsuite: * gcc.dg/cpp/arith-1.c: New semantic tests. * gcc.dg/cpp/if-1.c: Update. From-SVN: r53900
Neil Booth committed -
* c-pragma.c (apply_pragma_weak): Convert value identifier to string for decl_attributes. (handle_pragma_weak): Call assemble_alias if we're modifying an existing decl. From-SVN: r53884
Richard Henderson committed -
From-SVN: r53881
Richard Henderson committed
-
- 25 May, 2002 1 commit
-
-
2002-05-24 Ben Elliston <bje@redhat.com> * lib/c-torture.exp (c-torture-execute): Handle multiple sources. From-SVN: r53863
Ben Elliston committed
-
- 24 May, 2002 2 commits
-
-
PR other/6782 * final.c (get_mem_expr_from_op): Return 0 if op is NULL. * gcc.dg/verbose-asm.c: New test. From-SVN: r53856
Jakub Jelinek committed -
PR preprocessor/6780 * cppmacro.c (enter_macro_context): Clear state.angled_headers. testsuite: * gcc.dg/cpp/paste12.c: New test. From-SVN: r53851
Neil Booth committed
-
- 23 May, 2002 9 commits
-
-
testsuite: * gcc.dg/cpp/testsuite/named_ops.c: Remove. * g++.dg/parse/named_ops.C: New test. From-SVN: r53814
Neil Booth committed -
* cppinit.c (mark_named_operators): Split out from init_builtins. (cpp_finish_options): Call it from here instead. testsuite: * gcc.dg/cpp/named_ops.c: New test. From-SVN: r53803
Neil Booth committed -
* builtin-attrs.def: Update copyright years. (ATTR_NONNULL): New attribute identifier. (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New attribute tree lists. (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the format operand. (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use... (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg attribute lists. Chain the appropriate nonnull attribute. * c-format.c (check_format_arg): Remove null format string warning. * testsuite/gcc.dg/format/null-1.c: New test. From-SVN: r53801
Jason Thorpe committed -
* varasm.c (make_decl_rtl): Don't allow weak variables to be placed in common. * gcc/testsuite/gcc.dg/weak-8.c: New test. From-SVN: r53798
Mark Mitchell committed -
* c-common.c (warn_nonnull): Declare. (c_common_attribute_table): Add "nonnull" attribute. (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p, check_nonnull_arg, get_nonnull_operand, check_function_arguments, check_function_arguments_recurse): New functions. * c-common.h (warn_nonnull): Declare extern. (check_function_arguments, check_function_arguments_recurse): New prototypes. * c-decl.c (c_decode_option): Add -Wnonnull option. * c-format.c (set_Wformat): Set warn_nonnull if enabling format checking. (format_check_context): New structure. (check_format_info_recurse): Remove recursion and rename to... (check_format_arg): ...this. Update comment. (check_format_info): Use check_function_arguments_recurse. * c-typeck.c (build_function_call): Call check_function_arguments instead of check_function_format. * doc/extend.texi: Document "nonnull" attribute. * doc/invoke.texi: Docuemnt -Wnonnull option. * testsuite/gcc.dg/nonnull-1.c: New test. * testsuite/gcc.dg/nonnull-2.c: New test. From-SVN: r53790
Jason Thorpe committed -
* gcc.dg/weak-2.c: Allow optional leading underscore in scan-assembler symbol name. * gcc.dg/weak-3.c: Likewise. * gcc.dg/weak-4.c: Likewise. * gcc.dg/weak-5.c: Likewise. From-SVN: r53785
J"orn Rennecke committed -
PR target/6753 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead of x in constraints for clarity. (sse_mov?fcc split): abort if op2 == op3. (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4): Add earlyclobber. (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3, sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode. Use Y instead of x in constraints. * gcc.dg/20020523-1.c: New test. From-SVN: r53784
Jakub Jelinek committed -
testsuite: * objc.dg/const-str-2.m: Update now that we stop after a command line error. From-SVN: r53764
Neil Booth committed -
From-SVN: r53762
Richard Henderson committed
-
- 22 May, 2002 2 commits
-
-
* decl.c (check_tag_decl): Handle RID_THREAD. (obscure_complex_init): Reject run-time init of tls. (grokvardecl, grokdeclarator): Handle RID_THREAD. * lex.c (reswords): Add __thread. (rid_to_yy): Map RID_THREAD to SCSPEC. * g++.dg/dg.exp: Prune the tls subdirectory. * g++.dg/tls/tls.exp, g++.dg/tls/trivial.C: New. * g++.dg/tls/diag-1.C, g++.dg/tls/diag-2.C: New. * g++.dg/tls/init-1.C: New. From-SVN: r53754
Richard Henderson committed -
* varasm.c (default_section_type_flags): Handle tls data and default sections. (default_unique_section): Handle tls sections. From-SVN: r53753
Richard Henderson committed
-