- 05 Jun, 2006 6 commits
-
-
PR c++/27819 * decl.c (cp_finish_decl): Process initializers for static data members with non-dependent initializers, even in templates. PR c++/27722 * decl.c (maybe_deduce_size_from_array_init): If the declaration is erroneous, give it an erroneous type. (layout_var_decl): If the type is erroneous, give up. (check_initializer): Likewise. PR c++/27807 * cp-tree.h (TYPE_OBJ_P): New macro. (TYPE_PTROB_P): Use it. (TYPE_REF_OBJ_P): Likewise. * semantics.c (finish_compound_literal): Do not permit compound literals of non-object types. PR c++/27806 * typeck.c (original_type): Robustify. PR c++/27819 * g++.dg/template/static25.C: New test. PR c++/27722 * g++.dg/init/array21.C: New test. PR c++/27807 * g++.dg/ext/complit7.C: New test. PR c++/27806 * g++.dg/parse/ptrmem5.C: New test. From-SVN: r114382
Mark Mitchell committed -
PR middle-end/27382 PR c/27150 * gcc.dg/pr27150-1.c: New testcase. * gcc.dg/pr27382-1.c: New testcase. * gcc.dg/pr27382-2.c: New testcase. From-SVN: r114381
Roger Sayle committed -
PR middle-end/27382 * c-common.c (c_common_truthvalue_conversion): Explicitly check for LABEL_DECL before calling DECL_WEAK. PR c/27150 * c-typeck.c (build_binary_op): Likewise, explicitly check for LABEL_DECL and PARM_DECL. * gcc.dg/pr27150-1.c: New testcase. * gcc.dg/pr27382-1.c: New testcase. * gcc.dg/pr27382-2.c: New testcase. Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu> From-SVN: r114380
Roger Sayle committed -
PR c/25161 PR c/27020 * c-decl.c (grokdeclarator): Disallow variably modified types at file scope. Avoid marking shared array type of constant size as VLA. testsuite: * gcc.dg/array-10.c: New test. From-SVN: r114378
Joseph Myers committed -
PR c++/27804 * init.c (constant_value_1): Return decl instead of error_mark_node for invalid initializers. PR c++/27804 * g++.dg/init/const4.C: New test. * g++.dg/init/member1.C: Add error-marker. * g++.dg/other/fold1.C: Adjust error-marker. From-SVN: r114377
Volker Reichelt committed -
From-SVN: r114375
GCC Administrator committed
-
- 04 Jun, 2006 10 commits
-
-
PR c++/27601 * c-common.c (fold_offsetof_1): Handle static members. * g++.dg/ext/offsetof1.C: New test. From-SVN: r114369
Volker Reichelt committed -
2006-06-04 Eric Christopher <echristo@apple.com> * stor-layout.c (start_record_layout): Initialize remaining_in_alignment. (debug_rli): Output value for remaining_in_alignment. (update_alignment_for_field): Unconditionalize ms_bitfield_layout_p code. Handle non-bitfield fields. Remove extra alignment code. (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize ms_bitfield_layout_p code. Rewrite handling of structure fields. * tree.h (record_layout_info_s): Remove prev_packed. * doc/extend.texi (ms_struct): Add documentation of format. 2006-06-04 Eric Christopher <echristo@apple.com> * gcc.dg/attr-ms_struct-1.c: New. From-SVN: r114364
Eric Christopher committed -
2006-06-01 Andrew Pinski <pinskia@physics.uc.edu> PR c++/27592 * rtti.c (build_dynamic_cast_1): Call c_common_truthvalue_conversion on operand of the COND_EXPR for the null pointer check. From-SVN: r114361
Andrew Pinski committed -
2006-06-01 Andrew Pinski <pinskia@physics.uc.edu> PR c++/26740 * typeck.c (build_unary_op): Mark the function as being used. From-SVN: r114360
Andrew Pinski committed -
* gcc.c-torture/compile/builtin_constant_p.c: New test. (neglected in previous commit) From-SVN: r114359
Mark Shinwell committed -
gcc: * tree.h: Declare folding_initializer. * builtins.c (fold_builtin_constant_p): Give definite answer if folding inside an initializer. * fold-const.c: Define folding_initializer. (START_FOLD_INIT): Save and then set folding_initializer. (END_FOLD_INIT): Restore folding_initializer. gcc/testsuite: * gcc.c-torture/compile/builtin_constant_p.c: New test. From-SVN: r114358
Mark Shinwell committed -
2006-06-04 Richard Guenther <rguenther@suse.de> PR tree-optimization/27039 * fold-const.c (fold_comparison): Handle pointer comparison again for all comparison codes. Compare offsets in signed size type. (fold_binary): Move code from here. * gcc.dg/tree-ssa/loop-17.c: New testcase. From-SVN: r114357
Richard Guenther committed -
2006-06-04 Paolo Carlini <pcarlini@suse.de> PR libstdc++/27867 * include/bits/valarray_before.h (struct _BinClos<_Oper, _ValArray, _ValArray, _Tp, _Tp>): Fix value_type typedef. * testsuite/26_numerics/valarray/27867.cc: New. From-SVN: r114356
Paolo Carlini committed -
PR target/26223 * config/i386/i386.c (construct_container): Split static issued_error flag into issued_sse_arg_error, issued_sse_ret_error and issued_x87_ret_error. Issue a daignostic if the x86-64 ABI requires the use of x87 registers and the user explicitly specified the -mno-80387 command line option. * gcc.target/i386/amd64-abi-2.c: New test case. From-SVN: r114355
Roger Sayle committed -
From-SVN: r114353
GCC Administrator committed
-
- 03 Jun, 2006 8 commits
-
-
* trans.c (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return): Add strings for common runtime error messages. (gfc_trans_runtime_check): Add a locus argument, use a string and not a string tree for the message. * trans.h (gfc_trans_runtime_check): Change prototype accordingly. (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return): Add proto. * trans-const.c (gfc_strconst_bounds, gfc_strconst_fault, gfc_strconst_wrong_return, gfc_strconst_current_filename): Remove. (gfc_init_constants): Likewise. * trans-const.h: Likewise. * trans-decl.c (gfc_build_builtin_function_decls): Call to _gfortran_runtime_error has only one argument, the message string. * trans-array.h (gfc_conv_array_ref): Add a symbol argument and a locus. * trans-array.c (gfc_trans_array_bound_check): Build precise error messages. (gfc_conv_array_ref): Use the new symbol argument and the locus to build more precise error messages. (gfc_conv_ss_startstride): More precise error messages. * trans-expr.c (gfc_conv_variable): Give symbol reference and locus to gfc_conv_array_ref. (gfc_conv_function_call): Use the new prototype for gfc_trans_runtime_check. * trans-stmt.c (gfc_trans_goto): Build more precise error message. * trans-io.c (set_string): Likewise. * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use new prototype for gfc_trans_runtime_check. From-SVN: r114346
Francois-Xavier Coudert committed -
2006-06-03 Carlos O'Donell <carlos@codesourcery.com> * Makefile.in: Add html and install-html targets. From-SVN: r114345
Carlos O'Donell committed -
2006-06-03 Laurynas Biveinis <laurynas.biveinis@gmail.com> * MAINTAINERS (Write After Approval): Update my e-mail address. From-SVN: r114343
Laurynas Biveinis committed -
2006-06-03 Paolo Bonzini <bonzini@gnu.org> * scripts/jar.in: Ensure return with argument has non-empty argument. From-SVN: r114341
Paolo Bonzini committed -
From-SVN: r114340
Geoffrey Keating committed -
2006-06-02 Geoffrey Keating <geoffk@apple.com> * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with HAVE_DECL_SIGALTSTACK. (MC_FLD): New. (segv_handler): Use MC_FLD. * configure.ac: Check for a sigaltstack declaration. Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin. * configure: Regenerate. * config.in: Regenerate. Index: boehm-gc/ChangeLog 2006-06-02 Geoffrey Keating <geoffk@apple.com> * configure.ac: Define HAS_PPC_THREAD_STATE_R0, HAS_PPC_THREAD_STATE___R0, HAS_PPC_THREAD_STATE64_R0, HAS_PPC_THREAD_STATE64___R0, HAS_I386_THREAD_STATE_EAX, HAS_I386_THREAD_STATE___EAX. * configure: Regenerate. * include/gc_config.h.in: Regenerate. * darwin_stop_world.c (PPC_RED_ZONE_SIZE): Use standard Darwin macro names to determine value. (THREAD_STATE): New. (THREAD_FLD): New. (GC_push_all_stacks): Use THREAD_STATE and THREAD_FLD in both versions. From-SVN: r114339
Geoffrey Keating committed -
2006-06-02 Eric Christopher <echristo@apple.com> * gcc.c-torture/compile/20000804-1.c: Skip if i?86-darwin. * gcc.target/i386/20020523-1.c: Skip if darwin. * gcc.target/i386/asm-3.c: Ditto. * gcc.target/i386/20011119-1.c: Ditto. * gcc.target/i386/clobbers.c: Remove pic part of test. From-SVN: r114338
Eric Christopher committed -
From-SVN: r114336
GCC Administrator committed
-
- 02 Jun, 2006 6 commits
-
-
PR other/27850 * Makefile.in (stmp-fixinc): Fix typo. From-SVN: r114332
J"orn Rennecke committed -
* compare_tests: Handle multilibs better. Co-Authored-By: Mike Stump <mrs@apple.com> From-SVN: r114331
Richard Earnshaw committed -
* fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions are type correct. Clean-up. <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z). <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z). From-SVN: r114330
Roger Sayle committed -
* g++.old-deja/g++.other/init5.C: XFAIL if cxa-atexit is false. * g++.old-deja/g++.other/init19.C: Ditto. * g++.old-deja/g++.other/init18.C: Ditto, plus change _Exit to _exit and add other platforms as expected failures. From-SVN: r114327
Steve Ellcey committed -
* pex-unix.c (pex_unix_exec_child): Insert cast when assigning to environ. From-SVN: r114326
Mark Shinwell committed -
From-SVN: r114324
GCC Administrator committed
-
- 01 Jun, 2006 10 commits
-
-
* lib/target-supports.exp (is-effective-target): Add cxa_atexit. (is-effective-target-keyword): Ditto. From-SVN: r114320
Steve Ellcey committed -
2006-06-01 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/27715 * arith.c: Cast the characters from the strings to unsigned char to avoid values less than 0 for extended ASCII. 2006-06-01 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/27715 * gfortran.dg/extended_char_comparison_1.f: New test. From-SVN: r114317
Thomas Koenig committed -
v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the shift, as we've disabled the "switch" insn that needs it. * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the shift, as we've disabled the "switch" insn that needs it. From-SVN: r114315
DJ Delorie committed -
From-SVN: r114312
Per Bothner committed -
* c-opts.c (finish_options): Use internal line 0 for <command-line>. * c-ppoutput.c (cb_define): Don't increment line 0. From-SVN: r114311
Per Bothner committed -
* data.c (gfc_assign_data_value): Handle USE_MAPPED_LOCATION. * scanner.c (gfc_gobble_whitespace): Likewise. From-SVN: r114310
Per Bothner committed -
* doc/invoke.texi: Add cpu_type power6. * config.gcc: Add cpu_type power6. * config/rs6000/rs6000.c (rs6000_override_options): Alias power6 to power5+ with Altivec. * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6. From-SVN: r114309
Pete Steinmetz committed -
* config/avr/avr.h (SET_ASM_OP): Define. From-SVN: r114308
Anatoly Sokolov committed -
From-SVN: r114306
Kazu Hirata committed -
2006-06-01 Paolo Bonzini <bonzini@gnu.org> PR 25453 * doc/install.texi: Document --enable-bootstrap and --disable-bootstrap. From-SVN: r114305
Paolo Bonzini committed
-