aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2009-02-20re PR c++/39225 (ICE if destructor doen't match class name)Jason Merrill4-9/+40
PR c++/39225 * decl.c (grokdeclarator): Handle ~identifier. From-SVN: r144314
2009-02-20Daily bump.GCC Administrator1-1/+1
From-SVN: r144311
2009-02-19* gcc.c-torture/execute/20090219-1.c: New.Kazu Hirata2-0/+33
From-SVN: r144307
2009-02-19mips.exp: Comment !CPU in the isa* pseudo-options.Adam Nemet4-27/+72
* gcc.target/mips/mips.exp: Comment !CPU in the isa* pseudo-options. (mips-dg-options): When matching isa* pseudo-options make 'value' optional and accept ! entries. Use $spec instead of $isa_spec in the isa pseudo-option error message. Only perform the ISA-range check when 'value' is set. If arch is matching any CPU in the ! entries switch to its generic ISA. * gcc.target/mips/branch-1.c: Pass isa=!octeon. * gcc.target/mips/dmult-1.c: Pass isa=64!octeon rather than -mips64. From-SVN: r144306
2009-02-19re PR target/39175 (ICE while compiling qt-4.5.0-rc1)Jakub Jelinek7-4/+85
PR target/39175 * c-common.c (c_determine_visibility): If visibility changed and DECL_RTL has been already set, call make_decl_rtl to update symbol flags. * decl2.c (determine_visibility): If visibility changed and DECL_RTL has been already set, call make_decl_rtl to update symbol flags. * gcc.dg/visibility-20.c: New test. * g++.dg/ext/visibility/visibility-11.C: New test. From-SVN: r144305
2009-02-19scanner.c (load_line): At end of line, skip '\r' without setting the ↵Daniel Franke2-0/+8
truncation flag. 2009-02-19 Daniel Franke <franke.daniel@gmail.com> * scanner.c (load_line): At end of line, skip '\r' without setting the truncation flag. From-SVN: r144303
2009-02-19re PR c++/39188 (G++ doesn't handle static anonymous union right)H.J. Lu16-3/+146
gcc/ 2009-02-19 H.J. Lu <hongjiu.lu@intel.com> PR c++/39188 * varasm.c (assemble_variable): Don't check DECL_NAME when globalizing a variable. gcc/cp/ 2009-02-19 H.J. Lu <hongjiu.lu@intel.com> PR c++/39188 * cp-tree.h (maybe_commonize_var): New. * decl.c (maybe_commonize_var): Make it extern. * decl2.c (finish_anon_union): Call maybe_commonize_var. gcc/testsuite/ 2009-02-19 H.J. Lu <hongjiu.lu@intel.com> PR c++/39188 * g++.dg/abi/pr39188-1a.C: New. * g++.dg/abi/pr39188-1b.C: Likewise. * g++.dg/abi/pr39188-1.h: Likewise. * g++.dg/abi/pr39188-2a.C: Likewise. * g++.dg/abi/pr39188-2b.C: Likewise. * g++.dg/abi/pr39188-2.h: Likewise. * g++.dg/abi/pr39188-3a.C: Likewise. * g++.dg/abi/pr39188-3b.C: Likewise. * g++.dg/abi/pr39188-3.h: Likewise. From-SVN: r144297
2009-02-19re PR c/38483 (generated aborts lose previous side-effects)Joseph Myers7-10/+105
PR c/38483 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list expression before any __builtin_trap call. * c-typeck.c (build_function_call): Convert and check function arguments before generating a call to a trap. Evaluate the function arguments before the trap. testsuite: * gcc.c-torture/execute/call-trap-1.c, gcc.c-torture/execute/va-arg-trap-1.c, gcc.dg/call-diag-1.c: New tests. From-SVN: r144296
2009-02-19re PR target/39228 (387 optimised __builtin_isinf() gives incorrect result)Uros Bizjak4-16/+122
PR target/39228 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2. (UNSPEC_FXAM_MEM): New unspec. (fxam<mode>2_i387_with_temp): New insn and split pattern. (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through memory using fxam<mode>2_i387_with_temp to remove excess precision. testsuite/ChangeLog: PR target/39228 * gcc.c-torture/execute/pr39228.c: New test. From-SVN: r144293
2009-02-19re PR tree-optimization/39207 (Strict aliasing warnings in libstdc++ headers)Richard Guenther6-55/+226
2009-02-19 Richard Guenther <rguenther@suse.de> PR tree-optimization/39207 PR tree-optimization/39074 * tree-ssa-structalias.c (storedanything_id, var_storedanything, storedanything_tree): New. (do_ds_constraint): Simplify ANYTHING shortcutting. Update the STOREDANYTHING solution if the lhs solution contains ANYTHING. (build_succ_graph): Add edges from STOREDANYTHING to all non-direct nodes. (init_base_vars): Initialize STOREDANYTHING. (compute_points_to_sets): Free substitution info after building the succ graph. (ipa_pta_execute): Likewise. * gcc.dg/torture/pr39074.c: New testcase. * gcc.dg/torture/pr39074-2.c: Likewise. * gcc.dg/torture/pr39074-3.c: Likewise. * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers field. (do_ds_constraint): Do not add to special var or non-pointer field solutions. (type_could_have_pointers): Split out from ... (could_have_pointers): ... here. For arrays use the element type. (create_variable_info_for): Initialize may_have_pointers. (new_var_info): Likewise. (handle_lhs_call): Make the HEAP variable unknown-sized. (intra_create_variable_infos): Use a type with pointers for PARM_NOALIAS, make it unknown-sized. From-SVN: r144292
2009-02-18re PR c++/39219 (attribute doesn't work with enums properly)H.J. Lu4-0/+25
gcc/cp 2009-02-18 H.J. Lu <hongjiu.lu@intel.com> PR c++/39219 * parser.c (cp_parser_enum_specifier): Apply all attributes. gcc/testsuite/ 2009-02-18 H.J. Lu <hongjiu.lu@intel.com> PR c++/39219 * g++.dg/parse/attr3.C: New. From-SVN: r144284
2009-02-19Daily bump.GCC Administrator1-1/+1
From-SVN: r144282
2009-02-18re PR testsuite/38165 (g++.dg/pubtypes.C fails at -m32/-m64 on ↵Jack Howarth2-4/+8
i686-apple-darwin9) 2009-02-18 Jack Howarth <howarth@bromo.med.uc.edu> PR testsuite/38165 * g++.dg/pubtypes.C: Adopt Radar 4535968 fix to testcase. From-SVN: r144277
2009-02-18re PR testsuite/38166 (g++.dg/ext/visibility/class1.C fails at -m64 on ↵Jack Howarth2-2/+9
i686-apple-darwin9) 2009-02-18 Jack Howarth <howarth@bromo.med.uc.edu> PR testsuite/38166 * g++.dg/ext/visibility/class1.C: Revert revision 122348 and skip on Darwin. From-SVN: r144274
2009-02-18re PR target/39224 (ABI attribute doesn't work with long double)H.J. Lu2-4/+13
2009-02-18 H.J. Lu <hongjiu.lu@intel.com> PR target/39224 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI. From-SVN: r144272
2009-02-18revert accidental commitJason Merrill4-29/+10
From-SVN: r144271
2009-02-18re PR target/39179 (Wrong code in c++ for const members initialized in ↵Jason Merrill13-16/+69
external file) PR target/39179 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero value if DECL_EXTERNAL. * tree-sra.c (sra_walk_gimple_assign): Likewise. * target.h (gcc_target::binds_local_p): Clarify module. * tree.h (TREE_PUBLIC): Clarify module. From-SVN: r144270
2009-02-18fix typoJason Merrill1-1/+1
From-SVN: r144269
2009-02-18gfortran.texi: New chapter about compiler characteristics.Daniel Kraft2-0/+65
2009-02-18 Daniel Kraft <d@domob.eu> * gfortran.texi: New chapter about compiler characteristics. (Compiler Characteristics): Document KIND type parameters here. From-SVN: r144268
2009-02-18misc.c (gnat_post_options): Turn off warn_psabi.H.J. Lu2-2/+9
2009-02-18 H.J. Lu <hongjiu.lu@intel.com> * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi. From-SVN: r144267
2009-02-18intrinsic.texi (MALLOC): Make example more portable.Tobias Burnus2-5/+6
2009-02-18 Tobias Burnus <burnus@net-b.de> * intrinsic.texi (MALLOC): Make example more portable. From-SVN: r144266
2009-02-18callabi.exp: Moved to ...H.J. Lu9-7/+47
2009-02-18 H.J. Lu <hongjiu.lu@intel.com> * gcc.dg/callabi/callabi.exp: Moved to ... * gcc.target/x86_64/abi/callabi/callabi.exp: Here. Only run in 64bit mode. * gcc.target/x86_64/abi/callabi/func-1.c: Don't check target. * gcc.target/x86_64/abi/callabi/func-indirect.c: Likewise. * gcc.target/x86_64/abi/callabi/func-indirect.c: Likewise. * gcc.target/x86_64/abi/callabi/pr38891.c: Likewise. * gcc.target/x86_64/abi/callabi/vaarg-1.c: Likewise. * gcc.target/x86_64/abi/callabi/vaarg-2.c: Likewise. * gcc.target/x86_64/abi/callabi/vaarg-3.c: Likewise. * gcc.dg/callabi/callabi.h: Moved to ... * gcc.target/x86_64/abi/callabi/callabi.h: Here. * gcc.dg/callabi/func-1.c: Moved to ... * gcc.target/x86_64/abi/callabi/func-1.c: Here. * gcc.dg/callabi/func-indirect.c: Moved to ... * gcc.target/x86_64/abi/callabi/func-indirect.c: Here. * gcc.dg/callabi/pr38891.c: Moved to ... * gcc.target/x86_64/abi/callabi/pr38891.c: Here. * gcc.dg/callabi/vaarg-1.c: Moved to ... * gcc.target/x86_64/abi/callabi/vaarg-1.c: Here. * gcc.dg/callabi/vaarg-2.c: Moved to ... * gcc.target/x86_64/abi/callabi/vaarg-2.c: Here. * gcc.dg/callabi/vaarg-3.c: Moved to ... * gcc.target/x86_64/abi/callabi/vaarg-3.c: Here. From-SVN: r144264
2009-02-17re PR target/38891 (using ms_abi function attribute with -mno-sse generates ↵H.J. Lu5-11/+67
an internal compiler error) gcc/ 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com> PR target/38891 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of initialization for MS_ABI prior to the hunk of !TARGET_MMX. gcc/testsuite 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com> PR target/38891 * gcc.dg/callabi/pr38891.c: New. 2009-02-17 H.J. Lu <hongjiu.lu@intel.com> * gcc.dg/callabi/callabi.exp: New. From-SVN: r144258
2009-02-17re PR target/39082 (union with long double doesn't follow x86-64 psABI)H.J. Lu16-15/+634
gcc/ 2009-02-17 H.J. Lu <hongjiu.lu@intel.com> PR target/39082 * c.opt (Wabi): Support C and ObjC. (Wpsabi): New. * c-opts.c (c_common_handle_option): Handle OPT_Wabi. * config/i386/i386.c (classify_argument): Warn once about the ABI change when passing union with long double. * doc/invoke.texi: Update -Wabi for warning psABI changes. gcc/testsuite/ 2009-02-17 H.J. Lu <hongjiu.lu@intel.com> PR target/39082 * g++.dg/compat/struct-layout-1_generate.c (dg_options): Add -Wno-abi for x86. * gcc.dg/compat/struct-layout-1_generate.c (dg_options): Likewise. * gcc.target/i386/pr39082-1.c: New. * gcc.target/x86_64/abi/abi-x86_64.exp (additional_flags): Add -Wno-abi. * gcc.target/x86_64/abi/args.h (XMM_T): Add _m64 and _m128 if CHECK_M64_M128 is defined. (check_f_arguments): Add "do". (check_vector_arguments): New. (check_m64_arguments): Likewise. (check_m128_arguments): Likewise. * gcc.target/x86_64/abi/defines.h: Include <xmmintrin.h>. (CHECK_M64_M128): Define. * gcc.target/x86_64/abi/test_m64m128_returning.c: New. Based on abitest. * gcc.target/x86_64/abi/test_passing_m64m128.c: Likewise. * gcc.target/x86_64/abi/test_passing_structs.c: Define __m128 tests only if CHECK_M64_M128 is defined. * gcc.target/x86_64/abi/test_passing_structs.c (m128_struct): New. (m128_2_struct): Likewise. (check_struct_passing5): Likewise. (check_struct_passing6): Likewise. (main): Test struct with __m128 if CHECK_M64_M128 is defined. * gcc.target/x86_64/abi/test_passing_unions.c (un4): New. (un5): Likewise. (check_union_passing4): Likewise. (main): Test union with __m128 if CHECK_M64_M128 is defined. From-SVN: r144257
2009-02-18re PR c/35447 (ICE with broken statement expression)Joseph Myers4-1/+25
PR c/35447 * c-parser.c (c_parser_compound_statement): Always enter and leave a scope. testsuite: * gcc.dg/noncompile/pr35447-1.c: New test. From-SVN: r144256
2009-02-18Daily bump.GCC Administrator1-1/+1
From-SVN: r144254
2009-02-17re PR target/34587 (gcc.dg/initpri1.c fails on *-apple-darwin)John David Anglin2-0/+9
PR target/34587 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define. From-SVN: r144251
2009-02-18re PR tree-optimization/36922 (ICE in tree-data-ref.c with -ftree-loop-linear)Jakub Jelinek5-0/+63
PR tree-optimization/36922 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR. * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1): Likewise. * gfortran.dg/pr36922.f: New test. From-SVN: r144250
2009-02-17mips.c (mips_override_options): Set flag_dwarf2_cfi_asm to 0 for EABI64.Richard Sandiford2-0/+26
gcc/ * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm to 0 for EABI64. From-SVN: r144247
2009-02-17mips.md (type): Reclassify lui_movf as "unknown".Richard Sandiford2-1/+7
gcc/ * config/mips/mips.md (type): Reclassify lui_movf as "unknown". From-SVN: r144246
2009-02-17mips.c (mips_gimplify_va_arg_expr): Fix invalid tree sharing.Richard Sandiford2-12/+19
gcc/ * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid tree sharing. From-SVN: r144244
2009-02-172009-02-xx Ruan Beihong <ruanbeihong@gmail.com> Richard Sandiford ↵Ruan Beihong3-2/+8
<rdsandiford@googlemail.com> gcc/ 2009-02-xx Ruan Beihong <ruanbeihong@gmail.com> Richard Sandiford <rdsandiford@googlemail.com> * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete. * config/mips/loongson.md (reduc_uplus_<mode>): Rename to... (loongson_biadd): ...this. Co-Authored-By: Richard Sandiford <rdsandiford@googlemail.com> From-SVN: r144243
2009-02-17re PR tree-optimization/39202 (internal compiler error: in ↵Richard Guenther4-2/+46
collapse_rest_of_var, at tree-ssa-structalias.c:3296) 2009-02-17 Richard Guenther <rguenther@suse.de> PR tree-optimization/39202 * tree-ssa-structalias.c (do_structure_copy): Before collapsing a var make sure to follow existing collapses. * gcc.c-torture/compile/pr39202.c: New testcase. From-SVN: r144235
2009-02-17re PR middle-end/39214 (internal compiler error: Segmentation fault)Richard Guenther2-1/+6
2009-02-17 Richard Guenther <rguenther@suse.de> PR middle-end/39214 * langhooks.c (lhd_print_error_function): Check for NULL block. From-SVN: r144234
2009-02-17re PR tree-optimization/39204 (ICE in compute_antic)Richard Guenther4-0/+145
2009-02-17 Richard Guenther <rguenther@suse.de> PR tree-optimization/39204 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number of the PHI arg. * gcc.dg/torture/pr39204.c: New testcase. From-SVN: r144233
2009-02-17vect-outer-5.c: Require vect_float support.Bingfeng Mei3-2/+7
2009-02-17 Bingfeng Mei <bmei@broadcom.com> * gcc.dg/vect/vect-outer-5.c: Require vect_float support. * gcc.dg/vect/vect-outer-6.c: Ditto. From-SVN: r144232
2009-02-17double.h: Update from glibc CVS.Uros Bizjak2-3/+8
* config/soft-fp/double.h: Update from glibc CVS. From-SVN: r144229
2009-02-17re PR tree-optimization/39207 (Strict aliasing warnings in libstdc++ headers)Richard Guenther2-0/+7
2009-02-17 Richard Guenther <rguenther@suse.de> PR tree-optimization/39207 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit strict-aliasing warnings for pointers pointing to NULL. From-SVN: r144228
2009-02-17Daily bump.GCC Administrator1-1/+1
From-SVN: r144222
2009-02-16re PR c/35446 (ICE with invalid array initializer)Joseph Myers5-1/+18
PR c/35446 * c-parser.c (c_parser_braced_init): Call pop_init_level when skipping until next close brace. testsuite: * gcc.dg/noncompile/init-5.c: New test. * gcc.dg/init-bad-4.c: Adjust expected errors. From-SVN: r144216
2009-02-16re PR target/37049 (Unaligned move used on aligned destination of push insn)H.J. Lu4-0/+32
gcc/ 2009-02-16 H.J. Lu <hongjiu.lu@intel.com> PR target/37049 * config/i386/i386.c (ix86_expand_push): Set memory alignment to function argument boundary. gcc/testsuite/ 2009-02-16 H.J. Lu <hongjiu.lu@intel.com> PR target/37049 * gcc.target/i386/push-1.c: New. From-SVN: r144209
2009-02-16picochip.md (lea_add): Allow any nonimmediate in the lea_add.Hariharan Sandanagobalane3-7/+10
* config/picochip/picochip.md (lea_add): Allow any nonimmediate in the lea_add. Reload eventually constraints it properly. * config/picochip/constraints.md : Remove the target constraint "b", since it is not needed anymore. From-SVN: r144202
2009-02-16gthr-dce.h: Uglify function parameter and local variable names.Jakub Jelinek13-502/+523
* gthr-dce.h: Uglify function parameter and local variable names. * gthr-gnat.h: Likewise. * gthr-mipssde.h: Likewise. * gthr-nks.h: Likewise. * gthr-posix95.h: Likewise. * gthr-posix.h: Likewise. * gthr-rtems.h: Likewise. * gthr-single.h: Likewise. * gthr-solaris.h: Likewise. * gthr-tpf.h: Likewise. * gthr-vxworks.h: Likewise. * gthr-win32.h: Likewise. From-SVN: r144201
2009-02-16* gcc-interface/deftarg.c: Remove.Eric Botcazou2-40/+4
From-SVN: r144199
2009-02-16Daily bump.GCC Administrator1-1/+1
From-SVN: r144196
2009-02-15re PR rtl-optimization/39196 (ICE in copyprop_hardreg_forward_1, at ↵H.J. Lu2-1/+8
regrename.c:1603 during libjava compile) 2009-02-15 H.J. Lu <hongjiu.lu@intel.com> PR target/39196 * config/i386/i386.md: Restrict the new peephole2 to move between MMX/SSE registers. From-SVN: r144191
2009-02-15revert: configure.ac: Enable LFS.Richard Guenther4-394/+23
Revert 2009-02-13 Richard Guenther <rguenther@suse.de> * configure.ac: Enable LFS. * configure: Re-generate. * config.in: Likewise. libcpp/ * configure.ac: Enable LFS. * configure: Re-generate. * config.in: Likewise. From-SVN: r144189
2009-02-15w_prof_single_str_global.c: Mask return value.Uros Bizjak3-2/+8
* gcc.dg/struct/w_prof_single_str_global.c: Mask return value. From-SVN: r144187
2009-02-15Daily bump.GCC Administrator1-1/+1
From-SVN: r144185
2009-02-14spu_internals.h (spu_sr, [...]): Define.Ulrich Weigand7-5/+640
ChangeLog: * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw, spu_srqwbyte, spu_srqwbytebc): Define. * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw, spu_srqwbyte, spu_srqwbytebc): New overloaded builtins. * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>", "shrqby_<mode>"): New insn-and-split patterns. * config/spu/spu.c (expand_builtin_args): Determine and return number of operands using spu_builtin_description data. (spu_expand_builtin_1): Use it. testsuite/ChangeLog: * gcc.target/spu/intrinsics-sr.c: New test. From-SVN: r144178