aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2007-10-12re PR tree-optimization/33645 (undefined static variable in vortex for ↵Jakub Jelinek6-14/+137
-fno-unit-at-a-time) PR tree-optimization/33645 * tree-ssa-live.c (mark_all_vars_used): Add data argument, pass it to walk_tree. (mark_all_vars_used_1): Pass data through to mark_all_vars_used. When calling set_is_used on a VAR_DECL, if data is not NULL and its DECL_UID is in the bitmap, call mark_all_vars_used on its DECL_INITIAL after clearing the bit in bitmap. (remove_unused_locals): Adjust mark_all_vars_used callers. Instead of removing unused global vars from unexpanded_var_list immediately record them in bitmap, call mark_all_vars_used on all used global vars from unexpanded_var_list and only purge global vars that weren't found used even during that step. * gcc.dg/pr33645-1.c: New test. * gcc.dg/pr33645-2.c: New test. * gcc.dg/pr33645-3.c: New test. From-SVN: r129254
2007-10-12re PR c++/32121 (C++ front-end accepts invalid __label__ declarations)Jakub Jelinek8-7/+83
PR c++/32121 * parser.c (cp_parser_compound_statement): Handle label-declarations at the beginning of the compound statement. (cp_parser_block_declaration): Issue diagnostics about __label__ not at the beginning of a block. * g++.dg/ext/label4.C: Adjust error regexp. * g++.dg/ext/label6.C: Adjust error regexp. * g++.dg/ext/label7.C: New test. * g++.dg/ext/label8.C: New test. * g++.dg/ext/label9.C: New test. From-SVN: r129253
2007-10-12pr33676.c: Move from gcc.dg/torture directory.Uros Bizjak2-3/+3
* gcc.dg/pr33676.c: Move from gcc.dg/torture directory. From-SVN: r129252
2007-10-12Daily bump.GCC Administrator1-1/+1
From-SVN: r129249
2007-10-12gthr-posix.h (__gthread_active_init): Create detached instead of joinable ↵John David Anglin3-12/+18
thread when... * gthr-posix.h (__gthread_active_init): Create detached instead of joinable thread when testing whether threads are active on hppa-hpux. * gthr-posix95.h (__gthread_active_init): Likewise. From-SVN: r129246
2007-10-11re PR rtl-optimization/33676 (libgfortran bootstrap failure: ↵Kenneth Zadeck4-0/+97
selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer) 2007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com> PR middle-end/33676 * global.c (build_insn_chain): Include insn that occur between basic blocks. 2007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com> PR middle-end/33676 * gcc.dg/torture/pr33676.c: New. From-SVN: r129244
2007-10-11* gengtype-yacc.y: Delete.Tom Tromey2-226/+4
From-SVN: r129240
2007-10-11i386.md (AX_REG, [...]): New constants.Uros Bizjak3-29/+40
* config/i386/i386.md (AX_REG, BX_REG, CX_REG): New constants. * config/i386/i386.c (ix86_function_arg_regno_p, function_arg_32, function_value_32, function_value_64, function_value_ms_64, setup_incoming_varargs_64, ix86_expand_prologue, ix86_expand_call, legitimize_tls_address, x86_this_parameter, x86_output_mi_thunk): Use new constants. From-SVN: r129236
2007-10-11Fixed omission in changelog.Kenneth Zadeck1-0/+1
From-SVN: r129234
2007-10-11gcse.c (hash_scan_set): If the next nonnote insn is in a different basic ↵Richard Guenther2-0/+6
block insert the set. 2007-10-11 Richard Guenther <rguenther@suse.de> * gcse.c (hash_scan_set): If the next nonnote insn is in a different basic block insert the set. From-SVN: r129230
2007-10-11re PR c++/31441 (ICE with variadic template and specialization)Paolo Carlini6-3/+58
/testsuite 2007-10-11 Paolo Carlini <pcarlini@suse.de> PR c++/31441 * g++.dg/cpp0x/variadic83.C: New. /cp 2007-10-11 Paolo Carlini <pcarlini@suse.de> PR c++/33461 * pt.c (coerce_template_parameter_pack): Do not pass error_mark_node to convert_template_argument. (coerce_template_parms): Return error_mark_node after fixed-length error. (tsubst_decl): Check for error_mark_node the return value of the first tsubst in 'case VAR_DECL'. /testsuite 2007-10-11 Paolo Carlini <pcarlini@suse.de> PR c++/33461 * g++.dg/cpp0x/variadic81.C: New. * g++.dg/cpp0x/variadic82.C: Likewise. From-SVN: r129229
2007-10-11re PR middle-end/33724 (Type checking error with address-of and ref-all ↵Richard Guenther4-6/+53
pointer type) 2007-10-11 Richard Guenther <rguenther@suse.de> PR middle-end/33724 * tree-cfg.c (one_pointer_to_useless_type_conversion_p): New function. (verify_gimple_expr): Use it to verify pointer-to types for ADDR_EXPRs. * gcc.dg/pr33724.c: New testcase. From-SVN: r129228
2007-10-11re PR c/33726 (Type checking error with address-of and volatile and arrays)Richard Guenther4-2/+28
2007-10-11 Richard Guenther <rguenther@suse.de> PR c/33726 * c-typeck.c (build_array_ref): Do not strip qualifiers from the array element type. * gcc.dg/pr33726.c: New testcase. From-SVN: r129227
2007-10-11re PR rtl-optimization/33638 (wrong code with -O2 -fforce-addr)Eric Botcazou2-38/+36
PR rtl-optimization/33638 * dse.c (struct insn_info): Remove 'stack_read' field, add 'stack_pointer_based' field. (record_store): For a store with non-constant base, record whether it is stack pointer based. (scan_insn): For the call to a const function, remove stack pointer based stores from the list of local active stores. (scan_reads_nospill): Delete code dealing with const functions. From-SVN: r129226
2007-10-11re PR fortran/33500 (ICE in copy_to_mode_reg with logical(kind=1) expression)Uros Bizjak2-0/+13
PR fortran/33500 * gfortran.fortran-torture/compile/logical-1.f90: New testcase. From-SVN: r129225
2007-10-11Daily bump.GCC Administrator1-1/+1
From-SVN: r129222
2007-10-10ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables to ↵Peter Bergner4-20/+32
HOST_WIDE_INT. * ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables to HOST_WIDE_INT. (conflict_p, set_conflict, set_conflicts): Likewise. * global.c (global_alloc): Likewise. * ra.h: Update prototypes. From-SVN: r129211
2007-10-10re PR testsuite/33391 (gfortran.dg/do_3.F90 fails at -O2)Francois-Xavier Coudert2-1/+6
PR testsuite/33391 * gfortran.dg/do_3.F90: Run with -fwrapv. From-SVN: r129209
2007-10-10re PR fortran/33636 (Rejects valid use of vector subscript in derived type ↵Francois-Xavier Coudert2-1/+6
parameter) PR fortran/33636 * expr.c (find_array_section): Check for constructor constantness. From-SVN: r129208
2007-10-10be.po, [...]: Update.Joseph Myers16-84308/+84365
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, zh_CN.po, zh_TW.po: Update. From-SVN: r129204
2007-10-10opth-gen.awk: Fixed generation of comment stating the origin of options.hWolfgang Gellerich2-1/+6
2007-10-10 Wolfgang Gellerich <gellerich@de.ibm.com> * opth-gen.awk: Fixed generation of comment stating the origin of options.h From-SVN: r129203
2007-10-10revert: longlong.h (count_leading_zeros): Replace '{' and '}' with '%{' and ↵Kazu Hirata5-71/+110
'%}', respectively. Revert: 2007-10-09 Kazu Hirata <kazu@codesourcery.com> * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{' and '%}', respectively. Revert: 2007-10-09 Kazu Hirata <kazu@codesourcery.com> * config/m68k/m68k.c (print_operand): Handle '{' and '}'. * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{' and '}'. * config/m68k/m68k.md: Replace '{' with '%{' where '{' is meant to be output. Revert: 2007-10-07 Kazu Hirata <kazu@codesourcery.com> * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly syntax for ASSEMBLER_DIALECT. * config/m68k/m68k.h (ASSEMBLER_DIALECT): New. From-SVN: r129202
2007-10-10SMS: Add dump infoRevital Eres2-13/+68
From-SVN: r129200
2007-10-10fixed date on last commit.Kenneth Zadeck1-1/+1
From-SVN: r129194
2007-10-10re PR rtl-optimization/33669 (Revision 128957 miscompiles 481.wrf)Kenneth Zadeck2-9/+17
2007-10-07 Kenneth Zadeck <zadeck@naturalbridge.com> PR middle-end/33669 * ra-conflict.c (record_one_conflict_between_regnos, set_conflicts_for_earlyclobber, global_conflicts): Improved logging. (global_conflicts): Enhanced incorrect check. From-SVN: r129193
2007-10-10Daily bump.GCC Administrator1-1/+1
From-SVN: r129191
2007-10-09Index: gcc/ChangeLogGeoffrey Keating5-27/+36
2007-10-09 Geoffrey Keating <geoffk@apple.com> * dwarf2out.c (output_call_frame_info): FDEs are always emitted if flag_exceptions is not set. * config/darwin.c (darwin_emit_unwind_label): Rewrite to use assemble_name rather than incorrectly emulating it. Index: gcc/testsuite/ChangeLog 2007-10-09 Geoffrey Keating <geoffk@apple.com> * gcc.dg/unwind-1.c: New. From-SVN: r129187
2007-10-09extend.texi (Deprecated Features): Mention that <?Geoffrey Keating2-2/+7
* doc/extend.texi (Deprecated Features): Mention that <? and >? and friends are removed from G++. From-SVN: r129186
2007-10-09c-opts.c (c_common_handle_option): -Wnontemplate-friend...Manuel López-Ibáñez2-6/+8
2007-10-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * c-opts.c (c_common_handle_option): -Wnontemplate-friend, -Wwrite-strings and -Wmultichar are enabled by default, so Wall enabling them is redundant. Don't check two times for c_dialect_cxx. From-SVN: r129183
2007-10-09re PR libfortran/33683 (calculating lgamma instead of gamma)Thomas Koenig2-1/+7
2007-10-09 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/33683 * gfortran.dg/gamma_5.f90: Adjust tolerance to avoid failure on some common systems. From-SVN: r129174
2007-10-09ra-conflict.c (record_one_conflict_between_regnos): Revert the last change.H.J. Lu2-6/+13
2007-10-09 H.J. Lu <hongjiu.lu@intel.com> * ra-conflict.c (record_one_conflict_between_regnos): Revert the last change. (set_conflicts_for_earlyclobber): Likewise. (global_conflicts): Likewise. From-SVN: r129170
2007-10-09longlong.h (count_leading_zeros): Replace '{' and '}' with '%{' and '%}', ↵Kazu Hirata2-1/+6
respectively. * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{' and '%}', respectively. From-SVN: r129169
2007-10-09m68k.c (print_operand): Handle '{' and '}'.Kazu Hirata4-17/+34
* config/m68k/m68k.c (print_operand): Handle '{' and '}'. * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{' and '}'. * config/m68k/m68k.md: Replace '{' with '%{' where '{' is meant to be output. From-SVN: r129168
2007-10-09re PR middle-end/33692 (Type checking error with address-of and volatile)Richard Guenther4-4/+41
2007-10-09 Richard Guenther <rguenther@suse.de> PR middle-end/33692 * gimplify.c (canonicalize_component_ref): Honor qualifiers of referenced structure and component. * gcc.dg/pr33692.c: New testcase. From-SVN: r129167
2007-10-09re PR rtl-optimization/33669 (Revision 128957 miscompiles 481.wrf)Kenneth Zadeck4-6/+59
gcc/ 2007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com> PR middle-end/33669 * ra-conflict.c (record_one_conflict_between_regnos, set_conflicts_for_earlyclobber, global_conflicts): Improved logging. (global_conflicts): Removed incorrect check. gcc/testsuite/ 2007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com> PR middle-end/33669 * gcc.c-torture/execute/pr33669.c: New. From-SVN: r129166
2007-10-09re PR tree-optimization/33615 (Hoisting of potentially-throwing values for ↵Richard Sandiford4-4/+36
-fnon-call-exceptions) gcc/ PR tree-optimization/33615 * tree-ssa-pre.c (compute_avail): Don't call make_values_for_stmt if the statement might throw. Fix formatting. gcc/testsuite/ PR tree-optimization/33615 * g++.dg/tree-ssa/pr33615-2.C: New test. From-SVN: r129164
2007-10-09re PR tree-optimization/33615 (Hoisting of potentially-throwing values for ↵Richard Sandiford4-1/+33
-fnon-call-exceptions) gcc/ PR tree-optimization/33615 * tree-ssa-loop-im.c (movement_possibility): Return MOVE_IMPOSSIBLE if the rhs might throw. gcc/testsuite/ PR tree-optimization/33615 * g++.dg/tree-ssa/pr33615.C: New test. From-SVN: r129163
2007-10-09invoke.texi (align-threshold, [...]): Document.Jan Hubicka5-7/+81
* invoke.texi (align-threshold, align-loop-iterations): Document. * final.c: Include cfgloop.h, params.h (compute_alignments): Dump decisions and compare them with loop structure; honor given parameters. (pass_compute_alignments): New dump file. * params.def (PARAM_ALIGN_THRESHOLD, PARAM_ALIGN_LOOP_ITERATIONS): New. * Makefile.in (final.o): Add dependency on cfgloop.h and params.h From-SVN: r129162
2007-10-09re PR tree-optimization/33655 (ICE in bitfield_overlaps_p, at tree-sra.c:2901)James E Wilson2-1/+9
PR tree-optimization/33655 PR middle-end/22156 * tree-sra.c (bitfield_overlaps_p): When fld->element is INTEGER_CST, convert it to bitsizetype before size_binop call. From-SVN: r129152
2007-10-09re PR tree-optimization/33572 (wrong code with -O)Alexandre Oliva2-1/+8
PR tree-optimization/33572 * tree-inline.c (update_ssa_across_abnormal_edges): Tolerate the absence of a corresponding edge from the exit block. From-SVN: r129151
2007-10-09re PR middle-end/22156 (bit-field copying regressed)Alexandre Oliva2-16/+36
PR middle-end/22156 * tree-sra.c (instantiate_element): Use BYTES_BIG_ENDIAN for bit-field layout. (sra_build_assignment): Likewise. Set up mask depending on precision, not type. (sra_build_bf_assignment): Use BYTES_BIG_ENDIAN. Don't overflow computing bit masks. (sra_build_elt_assignment): Don't view-convert from signed to unsigned. (sra_explode_bitfield_assignment): Use bit-field type if possible. Use BYTES_BIG_ENDIAN. From-SVN: r129150
2007-10-09Add missing hunk in r129143 check in. Add references to PR 22156.Alexandre Oliva1-0/+4
From-SVN: r129149
2007-10-09Daily bump.GCC Administrator1-1/+1
From-SVN: r129147
2007-10-08re PR tree-optimization/33572 (wrong code with -O)Alexandre Oliva2-27/+12
PR tree-optimization/33572 * g++.dg/torture/pr33572.C: Replace with complete test. From-SVN: r129144
2007-10-08tree-sra.c (scalarize_lsdt): Fix thinko in testing whether the original stmt ↵Alexandre Oliva2-2/+7
can throw. * tree-sra.c (scalarize_lsdt): Fix thinko in testing whether the original stmt can throw. From-SVN: r129143
2007-10-08re PR fortran/33689 ([Regression 4.3] Array with constant bound rejected as ↵Tobias Schlüter4-28/+38
automatic array) PR fortran/33689 fortran/ * resolve.c (gfc_resolve_expr): Fix indentation. (resolve_fl_variable_derived): Rename argument. (resolve_fl_variable): Fix case in message. Clarify logic. Correctly simplify array bounds. testsuite/ * gfortran.dg/spec_expr_5.f90: New. From-SVN: r129139
2007-10-08darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register '#pragma mark' to be ↵Geoffrey Keating4-1/+35
executed at preprocessing time. * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register '#pragma mark' to be executed at preprocessing time. From-SVN: r129134
2007-10-08varasm.c (compare_constant): Removed call to lang_hooks.expand_constant.Ollie Wild11-65/+60
gcc/ * varasm.c (compare_constant): Removed call to lang_hooks.expand_constant. (copy_constants): Removed call to lang_hooks.expand_constant. (compute_reloc_for_constant): Removed call to lang_hooks.expand_constant. (output_addressed_constants): Removed call to lang_hooks.expand_constant. (constructor_static_from_elts_p): Removed call to lang_hooks.expand_constant. (output_constant): Removed calls to lang_hooks.expand_constant. * langhooks.h (struct lang_hooks): Removed field expand_constant. * langhooks-def.h (lhd_return_tree): Removed. (LANG_HOOKS_EXPAND_CONSTANT): Removed. (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT. * langhooks.c (lhd_return_tree): Removed. gcc/cp/ * typeck2.c (digest_init): Call cplus_expand_constant after convert_for_initialization. * cp-objcp-common.h (LANG_HOOKS_EXPAND_CONSTANT): Removed. * expr.c (cplus_expand_constant): Updated function description. gcc/ada/ * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with gnat_return_tree. (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with gnat_return_tree. (gnat_eh_runtime_type): Removed. (gnat_return_tree): New function. From-SVN: r129133
2007-10-08combine.c (setup_incoming_promotions): Ensure that arguments that have not ↵Mark Shinwell2-4/+12
undergone mode promotions do not... gcc/ * combine.c (setup_incoming_promotions): Ensure that arguments that have not undergone mode promotions do not incorrectly get marked as being sign- or zero-extended. From-SVN: r129131
2007-10-08re PR middle-end/33693 (Type checking error with bitwise xor/and)Richard Guenther6-6/+52
2007-10-08 Richard Guenther <rguenther@suse.de> PR middle-end/33693 PR middle-end/33695 PR middle-end/33697 * fold-const.c (fold_binary): Use correct types in folding of a * (1 << b) to (a << b). Likewise for ~A & ~B to ~(A | B) and building of RROTATE_EXPR. * gcc.dg/pr33693.c: New testcase. * gcc.dg/pr33695.c: Likewise. * gcc.dg/pr33697.c: Likewise. From-SVN: r129130