aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2006-09-28gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr on the ↵Eric Botcazou4-3/+38
element before gimplifying it... * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr on the element before gimplifying it, instead of punting if it is of variable size. From-SVN: r117288
2006-09-28loop.texi: New file.Zdenek Dvorak4-1/+557
* doc/loop.texi: New file. * doc/gccint.texi: Reference loop.texi. * Makefile.in (loop.texi): Add. From-SVN: r117277
2006-09-28darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not __sysctl.Geoffrey Keating4-94/+45
* config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not __sysctl. * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove. * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove. From-SVN: r117274
2006-09-28sh.md (divsi_inv_m0): Remove unused variable.Kaz Kojima2-1/+4
* config/sh/sh.md (divsi_inv_m0): Remove unused variable. From-SVN: r117272
2006-09-28Daily bump.GCC Administrator1-1/+1
From-SVN: r117263
2006-09-27re PR fortran/28276 (EXPONENT() broken for real constants)Steven G. Kargl9-32/+173
* configure.in: Check for GMP 4.1 or newer. Check for MPFR 2.2.0 or newer. * configure: Regenerated. * doc/install.texi: Document required versions of GMP and MPFR. * fortran/arith.c: Conditionally include arctangent2(). (gfc_check_real_range): Use mpfr_subnormalize in preference to local hack. * fortran/trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Append l for long double functions. * fortran/simplify.c: Wrap Copyright to new line. (gfc_simplify_atan2): Use mpfr_atan2 in preference to arctangent2(). (gfc_simplify_log): Ditto. PR fortran/28276 * fortran/simplify.c (gfc_simplify_exponent): Use mpfr_get_exp in preference to broken local hack. PR fortran/27021 * fortran/simplify.c (gfc_simplify_nearest): Use mpfr_nexttoward and mpfr_subnormalize to handle numbers near zero in preference to broken local hack. PR fortran/28276 * testsuite/gfortran.dg/exponent_1.f90: New test. PR fortran/27021 * testsuite/gfortran.dg/nearest_1.f90: New test. From-SVN: r117257
2006-09-27re PR target/29230 (gcc-4.1 generates faulty asm on ARM when compiling ↵Paul Brook2-3/+19
openmsx 0.6.1 with -O3) 2006-09-27 Paul Brook <paul@codesourcery.com> PR target/29230 gcc/ * config/arm/arm.md (arith_adjacentmem): Handle large offsets. From-SVN: r117253
2006-09-27reload1.c (alter_reg): Require the alignment of the stack slot to be at ↵Richard Sandiford2-6/+21
least reg_max_ref_width bytes. gcc/ * reload1.c (alter_reg): Require the alignment of the stack slot to be at least reg_max_ref_width bytes. (scan_paradoxical_subregs): Record the largest width in reg_max_ref_width. From-SVN: r117252
2006-09-27Daily bump.GCC Administrator1-1/+1
From-SVN: r117242
2006-09-26re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel ↵Jakub Jelinek4-3/+105
blocks) PR middle-end/25261 PR middle-end/28790 * tree-nested.c (struct nesting_info): Added static_chain_added. (convert_call_expr): Set static_chain_added when adding static chain. Handle OMP_PARALLEL and OMP_SECTION. * gcc.dg/gomp/nestedfn-1.c: New test. * testsuite/libgomp.c/nestedfn-4.c: New test. * testsuite/libgomp.c/nestedfn-5.c: New test. * testsuite/libgomp.fortran/nestedfn3.f90: New test. From-SVN: r117235
2006-09-26re PR fortran/29097 (!$ include 'omp_lib.h' does not work)Jakub Jelinek2-1/+24
PR fortran/29097 * scanner.c (include_line): Handle conditional include. * testsuite/libgomp.fortran/condinc1.f: New test. * testsuite/libgomp.fortran/condinc2.f: New test. * testsuite/libgomp.fortran/condinc3.f90: New test. * testsuite/libgomp.fortran/condinc4.f90: New test. * testsuite/libgomp.fortran/condinc1.inc: New file. From-SVN: r117234
2006-09-26re PR objc/29195 (ICE in expand_expr_real_1, at expr.c:6932)Andrew Pinski4-12/+46
2006-09-26 Andrew Pinski <pinskia@physics.uc.edu> PR objc/29195 * objc-act.c (objc_push_parm): If we change the type of the decl, relayout the decl. 2006-09-26 Andrew Pinski <pinskia@physics.uc.edu> PR objc/29195 * objc/compile/method-1.m: New test. From-SVN: r117229
2006-09-26Daily bump.GCC Administrator1-1/+1
From-SVN: r117219
2006-09-25invoke.texi: Add missing full stop.Matthias Klose2-1/+5
2006-09-25 Matthias Klose <doko@debian.org> * doc/invoke.texi: Add missing full stop. From-SVN: r117211
2006-09-25re PR c++/27667 (ICE with in-class specialization)Lee Millward7-11/+49
PR c++/27667 * cp-tree.h (begin_specialization): Return bool instead of void. * pt.c (check_specialization_scope): Likwise. Adjust comment. Return false if a specialization isn't permitted in the current scope,. (begin_specialization): Use the return value of check_specialization_scope. * parser.c (cp_parser_explicit_specialization): If begin_specialization returned false, skip the rest of the specialization. * g++.dg/template/spec33.C: New test. * g++.old-deja/g++.pt/spec20.C: Adjust error markers. From-SVN: r117206
2006-09-25re PR c++/27329 (ICE with misplaced expression)Lee Millward11-14/+71
PR c++/27329 PR c++/26938 * cp-tree.h (redeclare_class_template): Adjust declaration to return bool instead of void. * pt.c (redeclare_class_template): Update definition. Return false on error. * decl.c (xref_tag): Return error_mark_node if redeclare_class_template returned false. * g++.dg/template/crash58.C: New test. * g++.dg/template/crash59.C: New test. * g++.dg/parse/crash28.C: Adjust error markers. * g++.dg/template/crash34.C: Likewise. * g++.dg/template/friend31.C: Likewise. * g++.dg/template/crash32.C: Likewise. From-SVN: r117205
2006-09-25cgraph.c (dump_cgraph_varpool_node): Don't crash if called before ↵Richard Henderson2-1/+9
cgraph_function_flags_ready. * cgraph.c (dump_cgraph_varpool_node): Don't crash if called before cgraph_function_flags_ready. From-SVN: r117203
2006-09-25* ChangeLog: attribute change to its author :)Tobias Schluter1-1/+1
From-SVN: r117192
2006-09-25re PR fortran/21203 (gfortran doesn't work on targets/variants without two ↵Tobias Schluter2-1/+7
floating point types) PR fortran/21203 * error.c (show_loci): No need to risk an ICE to output a slightly nicer error message. From-SVN: r117191
2006-09-25Daily bump.GCC Administrator1-1/+1
From-SVN: r117189
2006-09-24ivopts-1.c: New test.Zdenek Dvorak3-0/+56
* gcc.dg/tree-ssa/ivopts-1.c: New test. * gcc.dg/tree-ssa/ivopts-2.c: New test. Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com> From-SVN: r117183
2006-09-24tree-ssa-loop-ivopts.c (aff_combination_convert, [...]): New functions.Zdenek Dvorak2-8/+105
* tree-ssa-loop-ivopts.c (aff_combination_convert, determine_common_wider_type): New functions. (get_computation_aff): Use them to simplify arithmetic between UBASE and CBASE if they are shortened from the same type. Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com> From-SVN: r117182
2006-09-24re PR target/28911 (Cross compiler build for m68k--elf fails on ↵Kazu Hirata4-3/+27
x86_64-linux-gnu) gcc/ PR target/28911 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use -2147483647 - 1 instead of 0x80000000. gcc/testsuite/ PR target/28911 * gcc.dg/pr28911.c: New. From-SVN: r117181
2006-09-24Daily bump.GCC Administrator1-1/+1
From-SVN: r117176
2006-09-23flags.h (HONOR_NANS): Fix typo in comment.Revital Eres2-1/+5
gcc/ 2001-01-01 Revital1 Eres <ERES@il.ibm.com> * flags.h (HONOR_NANS): Fix typo in comment. From-SVN: r117172
2006-09-23re PR target/29169 (sse3-not-fisttp.c scan-assembler-not fisttp FAILs on ↵Uros Bizjak2-1/+7
i386-pc-solaris2.10) PR target/29169 * gcc.target/i386/sse-21.c: Rename from sse3-not-fisttp.c. (dg-options): Add -mfpmath=387. From-SVN: r117171
2006-09-23driver-i386.c (host_detect_local_cpu): Add prototype.Uros Bizjak2-0/+6
* config/i386/driver-i386.c (host_detect_local_cpu): Add prototype. From-SVN: r117169
2006-09-23re PR c/28706 (Compile failure with --combine and explicitly aligned structures)Jakub Jelinek6-5/+89
PR c/28706 PR c/28712 * tree.c (merge_attributes, attribute_list_contained): If both TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of simple_cst_equal. * c-typeck.c (comptypes_internal): Don't consider aggregates in different TUs as compatible if there one set of attributes is not a subset of the other type's attributes. (composite_type): Try harder not to create a new aggregate type. * gcc.dg/pr28706.c: New test. * gcc.dg/pr28712.c: New test. From-SVN: r117167
2006-09-23* obj-c++.dg/encode-3.mm: Fix for 64-bit support.Mike Stump2-4/+14
From-SVN: r117165
2006-09-23Daily bump.GCC Administrator1-1/+1
From-SVN: r117163
2006-09-22driver-i386.c: Always define host_detect_local_cpu.Geoffrey Keating4-15/+16
* config/i386/driver-i386.c: Always define host_detect_local_cpu. * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT. (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather than replicating condition above. * config.host (i[34567]86-*-*): Always use driver-i386.o. From-SVN: r117159
2006-09-22darwin.h (LINK_SYSROOT_SPEC): New.Geoffrey Keating2-1/+14
* config/darwin.h (LINK_SYSROOT_SPEC): New. (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to the linker by default. From-SVN: r117158
2006-09-22darwin.h (PROFILE_HOOK): Reassociate comment with code.Mike Stump2-2/+7
* config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with code. From-SVN: r117152
2006-09-22Fix up whitespacingMike Stump1-1/+1
From-SVN: r117151
2006-09-22re PR middle-end/28964 (partition_stack_vars uses unstable sort)Richard Guenther2-0/+14
2006-09-22 Richard Guenther <rguenther@suse.de> PR middle-end/28964 * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make sort of stack variables stable. From-SVN: r117146
2006-09-22Set REG_POINTER flag according to MEM_POINTER flag.Peter Bergner2-0/+8
From-SVN: r117143
2006-09-22re PR tree-optimization/28888 (ICE in tree check: expected cond_expr, have ↵Zdenek Dvorak5-64/+106
label_expr in simplify_using_initial_conditions, at tree-ssa-loop-niter.c) PR tree-optimization/28888 * tree-if-conv.c (combine_blocks): Rewritten. * tree-cfg.c (tree_verify_flow_info): Check that edges with EDGE_TRUE/FALSE_VALUE follow COND_EXPR. * gcc.dg/pr28888.c: New test. From-SVN: r117135
2006-09-22tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if needed.Jakub Jelinek2-0/+12
* tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if needed. From-SVN: r117134
2006-09-22Daily bump.GCC Administrator1-1/+1
From-SVN: r117131
2006-09-21re PR c++/29016 (tree check: expected class 'expression', have 'exceptional' ↵Mark Mitchell4-0/+27
(baselink) in get_base_var, at ipa-utils.c:224) PR c++/29016 * typeck.c (build_unary_op): Don't form an ADDR_EXPR around a BASELINK. PR c++/29016 * g++.dg/init/ptrfn1.C: New test. From-SVN: r117123
2006-09-21varasm.c (copy_constant): Fix reversed gcc_assert check.Richard Sandiford2-1/+5
gcc/ * varasm.c (copy_constant): Fix reversed gcc_assert check. From-SVN: r117121
2006-09-21re PR c++/28303 (ICE on invalid typedef)Lee Millward6-3/+25
PR c++/28303 * decl.c (grokdeclarator): Return error_mark_node on declaration with two or more data types. * g++.dg/template/typedef6.C: New test. * g++.dg/init/error1.C: Adjust error markers. * g++.dg/parse/crash9.C: Likewise. * g++.dg/template/crash55.C: Likewise. From-SVN: r117118
2006-09-21re PR c++/28861 (ICE on invalid in-class specialization)Lee Millward5-2/+21
PR c++/28861 * decl.c (shadow_tag): Return error_mark_node if maybe_process_partial_specialization failed. * g++.dg/template/spec32.C: New test. * g++.dg/parse/crash9.C: Adjust error markers. From-SVN: r117117
2006-09-21decfloat.h (DEC*_DEN): Define using the correct builtins.Janis Johnson4-5/+12
gcc: * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins. testsuite: * gcc.dg/dfp/decfloat-constants.c: Remove 'dg-do compile', fix typo. From-SVN: r117115
2006-09-21re PR debug/29132 (Mips exception handling broken.)Roger Sayle2-1/+8
2006-09-21 Roger Sayle <roger@eyesopen.com> PR debug/29132 * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label, dw_fde_current_label, to be the start of the function, i.e. the same value as dw_fde_begin. From-SVN: r117114
2006-09-21Daily bump.GCC Administrator1-1/+1
From-SVN: r117103
2006-09-20re PR target/27650 (internal compiler error while compiling Gecode)Danny Smith2-0/+27
PR target/27650 * g++.dg/ext/dllimport12.C: New test. From-SVN: r117097
2006-09-20re PR target/27650 (internal compiler error while compiling Gecode)Danny Smith2-0/+16
PR target/27650 * class.c (check_for_override): Remove dllimport from virtual methods. From-SVN: r117096
2006-09-20mips.c (CODE_FOR_mips_abs_ps): Delete.Richard Sandiford11-18/+269
gcc/ * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete. * config/mips/mips.md (UNSPEC_ABS_PS): New constant. (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2) (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1. (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS. (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise. (abs<mode>2, neg<mode>2): Likewise. * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand. (*mips_abs_ps): New define_insn. gcc/testsuite/ * gcc.target/mips/mips-ps-type.c: Add -ffinite-math-only. * gcc.target/mips/nmadd-2.c: Likewise. * gcc.target/mips/mips-ps-6.c: New test. * gcc.target/mips/neg-abs-1.c: Likewise. * gcc.target/mips/neg-abs-2.c: Likewise. * gcc.target/mips/nmadd-3.c: New test. From-SVN: r117093
2006-09-20re PR ada/28716 (Ada: Bind_Socket doesn't bind to specified address)Laurent GUERBY2-0/+6
2006-08-20 Laurent GUERBY <laurent@guerby.net> PR ada/28716 g-socket.adb (Bind_Socket): Call Set_Address. From-SVN: r117092