Jerry DeLisle [Sun, 27 Jan 2008 19:38:59 +0000 (19:38 +0000)]
re PR fortran/34990 (ICE in gfc_typenode_for_spec, at fortran/trans-types.c:842)
2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/34990
* array.c (gfc_check_constructor_type): Revert clearing the expression.
From-SVN: r131890
Joseph Myers [Sun, 27 Jan 2008 19:10:03 +0000 (19:10 +0000)]
config.gcc (strongarm*-*, [...]): Mark obsolete.
* config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
*-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
*-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
From-SVN: r131889
Bernhard Fischer [Sun, 27 Jan 2008 18:44:42 +0000 (19:44 +0100)]
basic-block.h (condjump_equiv_p): Fix comment.
2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
* basic-block.h (condjump_equiv_p): Fix comment.
From-SVN: r131888
Bernhard Fischer [Sun, 27 Jan 2008 16:48:54 +0000 (17:48 +0100)]
tree-pretty-print.c (print_generic_decl, [...]): Fix comment.
2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
* tree-pretty-print.c (print_generic_decl, print_generic_stmt,
print_generic_stmt_indented): Fix comment.
From-SVN: r131885
Bernhard Fischer [Sun, 27 Jan 2008 16:43:07 +0000 (17:43 +0100)]
configure.ac (__stack_chk_fail): Add detecion for availability of SSP in uClibc by checking if...
2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
* configure.ac (__stack_chk_fail): Add detecion for availability
of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
* configure: Regenerate.
From-SVN: r131884
David Daney [Sun, 27 Jan 2008 06:01:00 +0000 (06:01 +0000)]
demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE...
include/
2008-01-26 David Daney <ddaney@avtrex.com>
* demangle.h (demangle_component_type): Add
DEMANGLE_COMPONENT_JAVA_RESOURCE,
DEMANGLE_COMPONENT_COMPOUND_NAME, and
DEMANGLE_COMPONENT_CHARACTER as new enum values.
(demangle_component): Add struct s_character to union u.
libiberty/
2008-01-26 David Daney <ddaney@avtrex.com>
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
DEMANGLE_COMPONENT_COMPOUND_NAME, and
DEMANGLE_COMPONENT_CHARACTER cases.
(d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
(d_make_character): New function.
(d_java_resource): Same.
(d_special_name): Handle "Gr" case.
(d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
DEMANGLE_COMPONENT_COMPOUND_NAME, and
DEMANGLE_COMPONENT_CHARACTER cases.
* testsuite/demangle-expected: Add test for java resource name
mangling.
From-SVN: r131883
GCC Administrator [Sun, 27 Jan 2008 00:17:25 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r131881
Maxim Kuvyrkov [Sat, 26 Jan 2008 23:08:54 +0000 (23:08 +0000)]
re PR middle-end/34688 ([4.1/4.2] ICE: output_operand: invalid expression as operand)
PR middle-end/34688
* final.c (output_addr_const): Handle TRUNCATE.
* gcc.c-torture/compile/pr34688: New test.
From-SVN: r131878
Zdenek Dvorak [Sat, 26 Jan 2008 22:44:19 +0000 (23:44 +0100)]
re PR target/34711 (g++.dg/tree-ssa/ivopts-1.C fails for power and arm)
PR target/34711
* tree-ssa-loop-ivopts.c (comp_cost): New type.
(zero_cost, infinite_cost): New constants.
(struct cost_pair): Change type of cost to comp_cost.
(struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
(new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
New functions.
(set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
split_address_cost, ptr_difference_cost, difference_cost,
get_computation_cost_at, get_computation_cost,
determine_use_iv_cost_generic, determine_use_iv_cost_address,
determine_use_iv_cost_condition, determine_use_iv_costs,
cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
Change type of cost to comp_cost.
(determine_iv_cost): Increase cost of non-original ivs, instead
of decreasing the cost of original ones.
(get_address_cost): Indicate the complexity of the addressing mode
in comp_cost.
(try_add_cand_for): Prefer using ivs not specific to some object.
* tree-flow.h (force_expr_to_var_cost): Declaration removed.
From-SVN: r131877
Tobias Burnus [Sat, 26 Jan 2008 20:44:49 +0000 (21:44 +0100)]
re PR fortran/34848 (internal compiler error with optional argument of character type and array return type)
2008-01-26 Tobias Burnus <burnus@net-b.de>
PR fortran/34848
* trans-expr.c (gfc_conv_function_call): Don't call
gfc_add_interface_mapping if the expression is NULL.
2008-01-26 Tobias Burnus <burnus@net-b.de>
PR fortran/34848
* gfortran.dg/missing_optional_dummy_5.f90: New.
From-SVN: r131876
Kaveh R. Ghazi [Sat, 26 Jan 2008 20:25:12 +0000 (20:25 +0000)]
20070302-1.c (baz): Mark with attribute noinline.
* gcc.dg/tree-ssa/
20070302-1.c (baz): Mark with attribute
noinline. XFAIL test.
From-SVN: r131875
Jerry DeLisle [Sat, 26 Jan 2008 19:05:15 +0000 (19:05 +0000)]
re PR fortran/31610 (ICE with transfer, merge in gfc_conv_expr_descriptor)
2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31610
* gfortran.dg/array_3.f90: New test.
From-SVN: r131874
Jerry DeLisle [Sat, 26 Jan 2008 19:01:07 +0000 (19:01 +0000)]
re PR fortran/31610 (ICE with transfer, merge in gfc_conv_expr_descriptor)
2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31610
* trans-array.c (gfc_trans_create_temp_array): Remove call to
gcc_assert (integer_zerop (loop->from[n])).
From-SVN: r131873
Richard Sandiford [Sat, 26 Jan 2008 18:24:37 +0000 (18:24 +0000)]
gcconfig.h (HBLKSIZE): Define for MIPS.
boehm-gc/
* include/private/gcconfig.h (HBLKSIZE): Define for MIPS.
From-SVN: r131872
Peter Bergner [Sat, 26 Jan 2008 17:18:35 +0000 (11:18 -0600)]
re PR target/34814 (SDmode function args not passed according to ABI specification)
PR target/34814
* doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
(TARGET_INSTANTIATE_DECLS): Likewise.
* target.h (expand_to_rtl_hook): New target hook.
(instantiate_decls): Likewise.
* function.c (instantiate_decl): Make non-static. Rename to...
(instantiate_decl_rtl): ... this.
(instantiate_expr): Use instantiate_decl_rtl.
(instantiate_decls_1): Likewise.
(instantiate_decls): Likewise.
(instantiate_virtual_regs: Call new instantiate_decls taget hook.
* function.h (instantiate_decl_rtl): Add prototype.
* cfgexpand.c (target.h): New include.
(tree_expand_cfg): Call new expand_to_rtl_hook target hook.
* target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
(TARGET_INSTANTIATE_DECLS): Likewise.
(TARGET_INITIALIZER): New target hooks added.
* config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
New prototype.
* config/rs6000/rs6000.c (tree-flow.h): New include.
(machine_function): Add sdmode_stack_slot field.
(rs6000_alloc_sdmode_stack_slot): New function.
(rs6000_instantiate_decls): Likewise.
(rs6000_secondary_memory_needed_rtx): Likewise.
(rs6000_check_sdmode): Likewise.
(TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
(TARGET_INSTANTIATE_DECLS): Likewise.
(rs6000_hard_regno_mode_ok): Allow SDmode.
(num_insns_constant): Likewise. Handle _Decimal32 constants.
(rs6000_emit_move): Handle SDmode.
(function_arg_advance): Likewise.
(function_arg): Likewise.
(rs6000_gimplify_va_arg): Likewise. Add special handling of
SDmode var args for 32-bit compiles.
(rs6000_secondary_reload_class): Handle SDmode.
(rs6000_output_function_epilogue): Likewise.
(rs6000_function_value): Simplify if statement.
(rs6000_libcall_value): Likewise.
* config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
(SECONDARY_MEMORY_NEEDED_RTX): Add define.
* config/rs6000/dfp.md (movsd): New define_expand and splitter.
(movsd_hardfloat): New define_insn.
(movsd_softfloat): Likewise.
(movsd_store): Likewise.
(movsd_load): Likewise.
(extendsddd2): Likewise.
(extendsdtd2): Likewise.
(truncddsd2): Likewise.
(movdd_hardfloat64): Fixup comment.
(UNSPEC_MOVSD_LOAD): New constant.
(UNSPEC_MOVSD_STORE): Likewise.
Co-Authored-By: Janis Johnson <janis187@us.ibm.com>
From-SVN: r131869
Jakub Jelinek [Sat, 26 Jan 2008 17:04:54 +0000 (18:04 +0100)]
re PR c++/34965 (Broken diagnostic: 'truth_and_expr' not supported by dump_expr)
PR c++/34965
* c-pretty-print.c (pp_c_exclusive_or_expression): Handle
TRUTH_XOR_EXPR.
(pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
(pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
(pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
and TRUTH_XOR_EXPR.
* error.c (dump_expr): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
and TRUTH_XOR_EXPR.
* gcc.dg/pr34965.c: New test.
* g++.dg/other/error24.C: New test.
From-SVN: r131868
Jakub Jelinek [Sat, 26 Jan 2008 17:02:44 +0000 (18:02 +0100)]
pr34966.c (atan): Only use asm on i?86/x86_64.
* gcc.c-torture/compile/pr34966.c (atan): Only use asm
on i?86/x86_64.
From-SVN: r131867
David Edelsohn [Sat, 26 Jan 2008 16:28:03 +0000 (16:28 +0000)]
re PR target/34794 (build of gcc 4.2.2 fails on AIX 6.1 / libstdc++-v3/libmath/stubs.c:47)
PR target/34794
* config/os/aix/os_defines.h: Define __COMPATMATH__.
From-SVN: r131866
David Edelsohn [Sat, 26 Jan 2008 16:26:27 +0000 (16:26 +0000)]
re PR target/34794 (build of gcc 4.2.2 fails on AIX 6.1 / libstdc++-v3/libmath/stubs.c:47)
PR target/34794
* config.gcc: Separate AIX 5.3 from AIX 6.1.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
__LONGDOUBLE128 too.
* config/rs6000/aix61.h: New file.
From-SVN: r131865
Thomas Koenig [Sat, 26 Jan 2008 15:22:59 +0000 (15:22 +0000)]
re PR libfortran/34887 (reverse tabbing before slash descriptor (regression vs. g77))
2008-01-26 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfofortran/34887
* io/transfer.c (next_record_w): Always move to the farthest
position when completing the record (also when we are
processing a slash edit descriptor).
2008-01-26 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfofortran/34887
* gfortran.dg/x_slash_2.f: New test.
From-SVN: r131864
Richard Sandiford [Sat, 26 Jan 2008 11:34:41 +0000 (11:34 +0000)]
re PR rtl-optimization/34959 (23_containers/bitset/ext/15361.cc fails for MIPS n64)
gcc/
PR rtl-optimization/34959
* optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
popcount and parity rtxes the same mode as their operand.
Truncate or extend the result to the return value's mode
if necessary.
From-SVN: r131863
Richard Guenther [Sat, 26 Jan 2008 11:26:36 +0000 (11:26 +0000)]
re PR c++/34235 (short variable cast to unsigned int fails to right shift as unsigned)
2008-01-26 Richard Guenther <rguenther@suse.de>
PR c++/34235
* typeck.c (build_binary_op): Remove code to shorten compares.
* g++.dg/torture/pr34235.C: New testcase.
From-SVN: r131862
Richard Sandiford [Sat, 26 Jan 2008 11:20:07 +0000 (11:20 +0000)]
ivopts-1.C: XFAIL for MIPS too.
gcc/testsuite/
* g++.dg/tree-ssa/ivopts-1.C: XFAIL for MIPS too.
From-SVN: r131861
Richard Sandiford [Sat, 26 Jan 2008 10:22:14 +0000 (10:22 +0000)]
re PR target/34981 (Lazily-bound function called twice)
gcc/
PR target/34981
* config/mips/mips-protos.h (mips_expand_call): Return an rtx.
* config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
to GOT_VERSION_REGNUM.
(CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
(EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
* config/mips/mips.c (mips_emit_call_insn): New function.
(mips_call_tls_get_addr): Call mips_expand_call directly.
(mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
emit_call_insn.
(mips16_build_call_stub): Likewise. Return the call insn or null.
(mips_expand_call): Update the call to mips16_build_call_stub
accordingly and a remove redundant condition. Assert that MIPS16
stubs do not use lazy binding. Use mips_emit_call_insn and return
the call insn.
(mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
TARGET_USE_GOT.
(mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
(mips_avoid_hazard): Remove hazard_set handling.
* config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
(UNSPEC_RESTORE_GP): ...this.
(UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
(FAKE_CALL_REGNO): Rename to...
(GOT_VERSION_REGNUM): ...this.
(type): Add "ghost" value. Add an associated insn reservation.
(hazard_set): Remove.
(exception_receiver): Rename to...
(restore_gp): ...this and update the unspec identifier accordingly.
(exception_receiver, nonlocal_got_receiver): New expanders.
(load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
FAKE_CALL_REGNO. Remove hazard_set attribute.
(set_got_version, update_got_version): New patterns.
gcc/testsuite/
PR target/34981
* gcc.target/mips/lazy-binding-1.c: New test.
* gcc.target/mips/mips.exp (setup_mips_tests): Set
mips_forced_no_abicalls and mips_forced_no_shared.
(dg-mips-options): Avoid using -mabicalls with an implicit -mabi=eabi.
Avoid using small data with -mabicalls. Don't make -G0 force
-mn-abicalls. Skip -mabicalls and -mshared tests if the multilib
forces the opposite option.
From-SVN: r131860
Danny Smith [Sat, 26 Jan 2008 09:31:30 +0000 (09:31 +0000)]
re PR target/34970 (name mangling broken for __attributte__((fastcall)))
PR target/34970
gcc
* config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
testsuite
* gcc.target/i386/fastcall-1.c: Scan for correct label.
Use -std=gnu89 switch.
From-SVN: r131859
Eric Botcazou [Sat, 26 Jan 2008 09:29:00 +0000 (09:29 +0000)]
decl.c (components_to_record): Improve comment.
* decl.c (components_to_record): Improve comment.
From-SVN: r131858
Jason Merrill [Sat, 26 Jan 2008 00:41:49 +0000 (19:41 -0500)]
re PR c++/27177 (ICE in build_simple_base_path, at cp/class.c:474)
PR c++/27177
* class.c (build_base_path): Don't mess with virtual access if
skip_evaluation.
* call.c (standard_conversion): Don't check whether source type
is complete.
From-SVN: r131855
GCC Administrator [Sat, 26 Jan 2008 00:17:28 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r131853
Jerry DeLisle [Fri, 25 Jan 2008 23:40:23 +0000 (23:40 +0000)]
re PR fortran/34876 (Can't read/write array sections with negative stride not specified)
2008-01-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/34876
* gfortran.dg/direct_io_9.f: New test.
From-SVN: r131850
Jerry DeLisle [Fri, 25 Jan 2008 23:36:39 +0000 (23:36 +0000)]
Fix date.
From-SVN: r131849
Jerry DeLisle [Fri, 25 Jan 2008 23:34:53 +0000 (23:34 +0000)]
re PR fortran/34876 (Can't read/write array sections with negative stride not specified)
2008-01-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/34876
* io/transfer.c (write_buf): Handle case of zero sized array.
(transfer_array): Set data pointer to NULL and size to zero. Then
make a data transfer and return.
From-SVN: r131848
Daniel Franke [Fri, 25 Jan 2008 21:55:47 +0000 (16:55 -0500)]
re PR fortran/34661 (ice on where / ASSIGNMENT(=))
gcc/fortran:
2008-01-25 Daniel Franke <franke.daniel@gmail.com>
PR fortran/34661
* resolve.c (resolve_where): Added check if user-defined assignment
operator is an elemental subroutine.
(gfc_resolve_where_code_in_forall): Likewise.
gcc/testsuite:
2008-01-25 Daniel Franke <franke.daniel@gmail.com>
PR fortran/34661
* gfortran.dg/where_operator_assign_4.f90: New test.
From-SVN: r131845
Joseph Myers [Fri, 25 Jan 2008 21:34:38 +0000 (21:34 +0000)]
re PR other/31955 (gcc_release does not generate HTML files from install manual)
PR other/31955
* doc/install.texi2html: Generate gcc-vers.texi.
From-SVN: r131842
Richard Guenther [Fri, 25 Jan 2008 21:20:00 +0000 (21:20 +0000)]
re PR c++/33887 (Reference to bitfield gets wrong value when optimizing)
2008-01-25 Richard Guenther <rguenther@suse.de>
PR c++/33887
* decl.c (record_builtin_java_type): Make __java_boolean
a variant of bool.
* typeck.c (structural_comptypes): Move TYPE_FOR_JAVA check
after TYPE_MAIN_VARIANT check.
From-SVN: r131840
DJ Delorie [Fri, 25 Jan 2008 21:00:56 +0000 (16:00 -0500)]
* config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
From-SVN: r131836
Joseph Myers [Fri, 25 Jan 2008 20:49:04 +0000 (20:49 +0000)]
MAINTAINERS (c4x port): Remove.
* MAINTAINERS (c4x port): Remove.
contrib:
* paranoia.cc (main): Remove handling of c4x_single and
c4x_extended formats.
gcc:
* config/c4x: Remove directory.
* config.gcc (crx-*, mt-*): Mark obsolete.
(c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
sh-*-rtemscoff*): Remove cases.
* defaults.h (C4X_FLOAT_FORMAT): Remove.
* real.c (encode_c4x_single, decode_c4x_single,
encode_c4x_extended, decode_c4x_extended, c4x_single_format,
c4x_extended_format): Remove.
* real.h (c4x_single_format, c4x_extended_format): Remove.
* doc/extend.texi (interrupt, naked): Remove mention of attributes
on C4x.
(Pragmas): Remove comment about c4x pragmas.
* doc/install.texi (c4x): Remove target-specific instructions.
* doc/invoke.texi (TMS320C3x/C4x Options): Remove.
* doc/md.texi (Machine Constraints): Remove C4x documentation.
* doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
refer to C4x source files as examples.
(C4X_FLOAT_FORMAT): Remove documentation.
gcc/testsuite:
* gcc.dg/builtin-inf-1.c, gcc.dg/compare6.c, gcc.dg/sibcall-3.c,
gcc.dg/sibcall-4.c, gcc.dg/torture/builtin-attr-1.c: Don't handle
c4x-*-* targets.
libgcc:
* config.host (tic4x-*-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*,
tic4x-*, h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
sh-*-rtemscoff*): Remove cases.
From-SVN: r131835
Jason Merrill [Fri, 25 Jan 2008 19:47:28 +0000 (14:47 -0500)]
decl2.c (is_late_template_attribute): Don't defer attribute visibility just because the type is dependent.
* decl2.c (is_late_template_attribute): Don't defer attribute
visibility just because the type is dependent.
From-SVN: r131833
Jason Merrill [Fri, 25 Jan 2008 19:45:11 +0000 (14:45 -0500)]
re PR c++/31780 (ICE with incompatible types for ?: with "complex type" conversion)
PR c++/31780
* call.c (standard_conversion): Allow conversion from integer/real
to complex.
(compare_ics): Such a conversion is worse than a normal arithmetic
conversion.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r131832
Janis Johnson [Fri, 25 Jan 2008 18:47:12 +0000 (18:47 +0000)]
decCommonSymbols.h: Commit.
* decCommonSymbols.h: Commit.
* decDPDSybmols.h: Commit.
From-SVN: r131831
Janis Johnson [Fri, 25 Jan 2008 18:07:54 +0000 (18:07 +0000)]
Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
* Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
* decCommonSymbols.h: New file.
* decCommon.c: Include it.
* decDPDSymbols.h: New file.
* decDPD.h: Include it.
* decNumberLocal.h: Include the two new files.
* decContextSymbols.h (DECPOWERS, DECSTICKYTAB): New.
* decNumberSymbols.h (LNnn, d2utable): New.
* dpd/decimal32Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
* dpd/decimal64Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
* dpd/decimal128Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
* dpd/decimal32.c: Remove redefine of DPD2BIN, BIN2DPD.
* dpd/decimal64.c: Ditto.
* dpd/decimal128.c: Ditto.
From-SVN: r131830
Bernd Schmidt [Fri, 25 Jan 2008 17:05:26 +0000 (17:05 +0000)]
bfin.c (override_options): Reorder tests so that flag_pic gets enabled for -msep-data.
* config/bfin/bfin.c (override_options): Reorder tests so that
flag_pic gets enabled for -msep-data.
From-SVN: r131829
Richard Guenther [Fri, 25 Jan 2008 15:33:09 +0000 (15:33 +0000)]
re PR middle-end/32244 (bit-field: optimization BUG)
2008-01-25 Richard Guenther <rguenther@suse.de>
PR middle-end/32244
* expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
to its bitfield precision if required.
* gcc.c-torture/execute/pr32244-1.c: New testcase.
From-SVN: r131828
Jakub Jelinek [Fri, 25 Jan 2008 12:54:42 +0000 (13:54 +0100)]
re PR middle-end/33880 (ICE: in extract_omp_for_data, at omp-low.c:162)
PR middle-end/33880
* tree-nested.c (walk_omp_for): New function.
(convert_nonlocal_reference, convert_local_reference): Call
walk_omp_for on OMP_FOR.
(convert_call_expr): Call walk_body on OMP_FOR's
OMP_FOR_PRE_INIT_BODY.
* testsuite/libgomp.c/pr33880.c: New test.
* testsuite/libgomp.fortran/pr33880.f90: New test.
From-SVN: r131825
Richard Guenther [Fri, 25 Jan 2008 12:08:52 +0000 (12:08 +0000)]
re PR tree-optimization/34966 (ICE: verify_ssa fails when optimization trigonometric code)
2008-01-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34966
* tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
default defs and PHI_NODEs we have to insert after the
defining statement.
* gcc.c-torture/compile/pr34966.c: New testcase.
From-SVN: r131824
Richard Guenther [Fri, 25 Jan 2008 12:06:31 +0000 (12:06 +0000)]
re PR c++/33887 (Reference to bitfield gets wrong value when optimizing)
2008-01-25 Richard Guenther <rguenther@suse.de>
PR c++/33887
* cp-lang.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define
to true.
* g++.dg/torture/pr33887-1.C: New testcase.
* g++.dg/torture/pr33887-2.C: Likewise.
* g++.dg/torture/pr33887-3.C: Likewise.
* gcc.c-torture/execute/
20071211-1.c: Likewise.
From-SVN: r131823
Nick Clifton [Fri, 25 Jan 2008 11:23:44 +0000 (11:23 +0000)]
stormy16-lib2.c (MIN_UNITS_PER_WORD): Provide a default definition.
* config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
Provide a default definition.
(LIBGCC2_UNITS_PER_WORD): Likewise.
* config/stormy16/stormy16.c: Include df.h for the prototype
for df_regs_ever_live_p.
(xstormy16_expand_builtin_va_start): Convert the stack offset
into a component_ref and then use POINTER_PLUS_EXPR to add it
to the incoming_virtual_args_rtx.
(xstormy16_gimplify_va_arg_expr): Rename to
xstormy16_gimplify_va_arg_expr.
Use POINTER_PLUS_EXPR when performing pointer arithmetic.
(TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
xstormy16_gimplify_va_arg_expr.
Fix up some formatting issues.
* config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
Move to predicates.md.
(xs_hi_general_operand): Likewise.
(xs_hi_nonmemory_operand): Likewise.
* config/stormy16/predicates.md:
(xstormy16_carry_plus_operand): New predicate.
(xs_hi_general_operand): New predicate.
(xs_hi_nonmemory_operand): New predicate.
* config/stormy16/stormy16-protos.h:
(xstormy16_carry_plus_operand): Delete prototype.
(xs_hi_general_operand): Likewise.
(xs_hi_nonmemory_operand): Likewise.
* config/storm16/stormy16.md (addhi3): Remove earlyclobber
modifiers as they are no longer needed and they can trigger
reload spill failures.
* config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
with a match_operand in order to help reload.
* config/storm16/stormy16.md (movhi_internal): Replace 'r'
constraint with 'e' for the 8th alternative as this version of
the mov.w instruction only accepts the lower 8 registers.
From-SVN: r131822
Uros Bizjak [Fri, 25 Jan 2008 10:25:21 +0000 (11:25 +0100)]
re PR target/34856 (ICE with some constant vectors)
PR target/34856
* simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
vector elements.
testsuite/ChangeLog:
PR target/34856
* gcc.dg/pr34856.c: Use pointer mode for "pin".
From-SVN: r131821
Jakub Jelinek [Fri, 25 Jan 2008 09:12:57 +0000 (10:12 +0100)]
re PR middle-end/33333 (ICE with #pragma omp parallel for in try/catch statement)
PR middle-end/33333
* gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
* g++.dg/gomp/pr33333.C: New test.
From-SVN: r131820
Jakub Jelinek [Fri, 25 Jan 2008 09:01:27 +0000 (10:01 +0100)]
re PR preprocessor/34692 (Internal error with pragma in macro)
PR preprocessor/34692
* macro.c (collect_args): Add pragma_buff argument. Push
CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather
than into arguments. Reset prevent_expansion and parsing_args
state at CPP_PRAGMA_EOL/CPP_EOF.
(funlike_invocation_p): Add pragma_buff argument, pass it through
to collect_args.
(enter_macro_context): Add result argument. Adjust
funlike_invocation_p caller. Emit all deferred pragma tokens
gathered during collect_args before the expansion, add a padding
token. Return 2 instead of 1 if any pragma tokens were prepended.
(cpp_get_token): If enter_macro_context returns 2, don't return
a padding token, instead cycle to grab CPP_PRAGMA token.
* directives.c (_cpp_handle_directive): If was_parsing_args
in deferred pragma, leave parsing_args and prevent_expansion as is.
* gcc.dg/cpp/pr34692.c: New test.
* gcc.dg/gomp/pr34692.c: New test.
From-SVN: r131819
Golovanevsky Olga [Fri, 25 Jan 2008 08:02:54 +0000 (08:02 +0000)]
ipa-struct-reorg.c (remove_str_allocs_in_func, [...]): New functions.
2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
* ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
New functions.
(remove_structure): Update allocations list before removing structure.
From-SVN: r131818
Olga Golovanevsky [Fri, 25 Jan 2008 07:47:46 +0000 (07:47 +0000)]
[multiple changes]
2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
* ipa-struct-reorg.c (is_safe_cond_expr,
create_new_stmts_for_cond_expr): Use integer_zerop function,
that recognize not only zero-pointer, but zero-integer too.
2008-01-24 Olga Golovanevsky <olga@il.ibm.com>
* gcc.dg/struct/wo_prof_malloc_size_var.c: UnXFAIL.
From-SVN: r131817
GCC Administrator [Fri, 25 Jan 2008 00:17:48 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r131814
Daniel Franke [Thu, 24 Jan 2008 21:36:14 +0000 (16:36 -0500)]
re PR fortran/33375 (ICE (segfault) gfortran.dg/common_6.f90)
2008-01-24 Daniel Franke <franke.daniel@gmail.com>
PR fortran/33375
PR fortran/34858
* gfortran.h: Revert changes from 2008-01-17.
* match.c: Likewise.
* symbol.c: Likewise.
(gfc_undo_symbols): Undo namespace changes related to common blocks.
From-SVN: r131811
Daniel Franke [Thu, 24 Jan 2008 21:28:20 +0000 (16:28 -0500)]
re PR fortran/34202 (ICE (segfault) for invalid code in formalize_init_expr (data.c:691))
gcc/fortran:
2008-01-24 Daniel Franke <franke.daniel@gmail.com>
PR fortran/34202
* data.c (formalize_structure_cons): Skip formalization on
empty structures.
gcc/testsuite:
2008-01-24 Daniel Franke <franke.daniel@gmail.com>
PR fortran/34202
* gfortran.dg/empty_type.f90: New test.
From-SVN: r131810
Ben Elliston [Thu, 24 Jan 2008 20:52:56 +0000 (20:52 +0000)]
Committed with RM approval this time.
PR other/22232
* fixproto: Escape "." in sed expression that strips leading "./".
From-SVN: r131809
Paolo Carlini [Thu, 24 Jan 2008 19:54:11 +0000 (19:54 +0000)]
re PR c++/34603 (ICE with broken template declaration)
/cp
2008-01-24 Paolo Carlini <pcarlini@suse.de>
PR c++/34603
* pt.c (push_template_decl_real): Return error_mark_node in case
of template definition of non-template.
/testsuite
2008-01-24 Paolo Carlini <pcarlini@suse.de>
PR c++/34603
* g++.dg/template/crash77.C: New.
From-SVN: r131804
H.J. Lu [Thu, 24 Jan 2008 18:57:12 +0000 (18:57 +0000)]
re PR driver/34904 (-march=native doesn't work with multiple input files)
2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
PR driver/34904
* gcc.c (SWITCH_OK): Removed.
(SWITCH_LIVE): Changed to bit.
(SWITCH_FALSE): Likewise.
(SWITCH_IGNORE): Likewise.
(switchstr): Change live_cond to unsigned int.
(process_command): Replace SWITCH_OK with 0.
(do_self_spec): Likewise.
(set_collect_gcc_options): Check the SWITCH_IGNORE bit.
(give_switch): Likewise.
(used_arg): Likewise.
(do_spec_1): Set the SWITCH_IGNORE bit.
(check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
bits. Set the SWITCH_LIVE bit.
From-SVN: r131802
Tom Tromey [Thu, 24 Jan 2008 18:31:50 +0000 (18:31 +0000)]
* resource/gnu/classpath/tools/native2ascii/messages.properties
(Native2ASCII.ReversedHelpCompat): New.
* tools/gnu/classpath/tools/native2ascii/Native2ASCII.java
(createParser): Add -reverse. Update -reversed.
From-SVN: r131801
Daniel Franke [Thu, 24 Jan 2008 18:28:11 +0000 (13:28 -0500)]
gfortran.texi (OpenMP): Extended existing documentation.
2008-01-24 Daniel Franke <franke.daniel@gmail.com>
* gfortran.texi (OpenMP): Extended existing documentation.
(contributors): Added major contributors of 2008 that were
not listed yet.
(proposed extensions): Removed implemented items.
From-SVN: r131800
Andreas Krebbel [Thu, 24 Jan 2008 18:06:20 +0000 (18:06 +0000)]
s390.h (MOVE_RATIO): Define new target macro.
2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
* config/s390/s390.h (MOVE_RATIO): Define new target macro.
From-SVN: r131799
Richard Sandiford [Thu, 24 Jan 2008 17:46:31 +0000 (17:46 +0000)]
re PR tree-optimization/34472 (gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work)
gcc/
PR tree-optimization/34472
* ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
parameter to a "bool *" and set *DATA to false if there is
an unsafe access. Do not delete the structure here.
(check_cond_exprs): Delete it here instead.
(check_cond_exprs, exclude_cold_structs): Do not increase
I when removing a structure.
From-SVN: r131798
Uros Bizjak [Thu, 24 Jan 2008 17:08:10 +0000 (18:08 +0100)]
re PR target/34856 (ICE with some constant vectors)
PR target/34856
* config/i386/i386.c (ix86_expand_vector_init): Consider only
CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
testsuite/ChangeLog:
PR target/34856
* gcc.dg/pr34856.c: New test.
From-SVN: r131796
Tobias Burnus [Thu, 24 Jan 2008 16:59:02 +0000 (17:59 +0100)]
namelist_39.f90: Delete temporary files.
2008-01-24 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/namelist_39.f90: Delete temporary files.
* gfortran.dg/namelist_44.f90: Ditto.
From-SVN: r131795
David Edelsohn [Thu, 24 Jan 2008 16:35:10 +0000 (16:35 +0000)]
shlibpath.m4: Add AIX 6 support.
* shlibpath.m4: Add AIX 6 support.
* configure: Regenerate.
From-SVN: r131794
David Edelsohn [Thu, 24 Jan 2008 16:33:29 +0000 (16:33 +0000)]
* configure: Regenerate.
From-SVN: r131793
David Edelsohn [Thu, 24 Jan 2008 16:32:40 +0000 (16:32 +0000)]
* configure: Regenerate.
From-SVN: r131792
David Edelsohn [Thu, 24 Jan 2008 16:31:24 +0000 (16:31 +0000)]
* configure: Regenerate.
From-SVN: r131791
David Edelsohn [Thu, 24 Jan 2008 16:30:08 +0000 (16:30 +0000)]
* configure: Regenerate.
From-SVN: r131790
David Edelsohn [Thu, 24 Jan 2008 16:29:16 +0000 (16:29 +0000)]
* configure: Regenerate.
From-SVN: r131789
David Edelsohn [Thu, 24 Jan 2008 16:28:13 +0000 (16:28 +0000)]
* configure: Regenerate.
From-SVN: r131788
David Edelsohn [Thu, 24 Jan 2008 16:27:14 +0000 (16:27 +0000)]
* configure: Regenerate.
From-SVN: r131787
David Edelsohn [Thu, 24 Jan 2008 16:25:43 +0000 (11:25 -0500)]
Fix date.
From-SVN: r131786
David Edelsohn [Thu, 24 Jan 2008 16:25:09 +0000 (16:25 +0000)]
* configure: Regenerate.
From-SVN: r131785
David Edelsohn [Thu, 24 Jan 2008 16:23:13 +0000 (16:23 +0000)]
* configure: Regenerate.
From-SVN: r131784
David Edelsohn [Thu, 24 Jan 2008 16:21:00 +0000 (16:21 +0000)]
* libtool.m4: Backport AIX 6 support from ToT Libtool.
From-SVN: r131783
Richard Biener [Thu, 24 Jan 2008 16:02:51 +0000 (16:02 +0000)]
re PR c++/34953 (ICE on destructor + noreturn-function at -O3)
2008-01-24 Richard Guenther <rguenther@suse.de>
PR middle-end/34953
* g++.dg/torture/pr34953.C: New testcase.
From-SVN: r131782
Jakub Jelinek [Thu, 24 Jan 2008 15:13:17 +0000 (16:13 +0100)]
re PR middle-end/34934 (-O1 crash compile *** glibc detected *** /usr/lib/gcc/i486-linux-gnu/4.2.3/cc1: double free or corruption (!prev))
PR middle-end/34934
* tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
a fixed vector for stack.
* gcc.c-torture/compile/
20080124-1.c: New test.
From-SVN: r131780
Jason Merrill [Thu, 24 Jan 2008 14:41:32 +0000 (09:41 -0500)]
re PR c++/34913 (ICE vector in template)
PR c++/34913
* decl2.c (is_late_template_attribute): Defer any attribute with
dependent args. Also defer type attributes if the type is dependent.
From-SVN: r131779
Ben Elliston [Thu, 24 Jan 2008 10:22:11 +0000 (10:22 +0000)]
re PR c++/25701 (gcc.texi missing @direntry for g++)
PR c++/25701
* doc/gcc.texi (Software development): Add a direntry for g++.
From-SVN: r131778
Paul Thomas [Thu, 24 Jan 2008 08:40:38 +0000 (08:40 +0000)]
re PR fortran/34872 (Spurious error in snapshot of 01/18/08: Statement at (1) is not a valid branch target statement for the branch statement at (2))
2008-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34872
* parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
seen, check for a statement label and, if present, delete it
and set the locus to the start of the statement.
2008-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34872
* gfortran.dg/function_charlen_3.f: New test.
From-SVN: r131777
GCC Administrator [Thu, 24 Jan 2008 00:17:30 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r131772
Ben Elliston [Thu, 24 Jan 2008 00:11:47 +0000 (11:11 +1100)]
Revert this patch, as it is not a regression.
2008-01-24 Ben Elliston <bje@au.ibm.com>
PR other/22232
* fixproto: Escape "." in sed expression that strips leading "./".
From-SVN: r131769
Ben Elliston [Wed, 23 Jan 2008 23:26:24 +0000 (23:26 +0000)]
re PR other/22232 (Bug in "fixproto" (missing escape))
PR other/22232
* fixproto: Escape "." in sed expression that strips leading "./".
From-SVN: r131768
David Daney [Wed, 23 Jan 2008 23:00:39 +0000 (23:00 +0000)]
2008-01-23 David Daney <ddaney@avtrex.com>
* class.c (hide) Rename to...
(java_hide_decl) ... this throughout, and make public.
* resource.c (Jr_count): Remove.
(compile_resource_data): Call java_mangle_resource_name to generate
decl name. Make resource decl public and hidden.
* mangle.c (java_mangle_resource_name): New function.
* java-tree.h (java_hide_decl, java_mangle_resource_name): Declare
functions.
From-SVN: r131767
Hans-Peter Nilsson [Wed, 23 Jan 2008 17:24:06 +0000 (17:24 +0000)]
cris.h (CC1PLUS_SPEC, [...]): Drop stale and straggling -fforce-addr comments above.
* config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
stale and straggling -fforce-addr comments above.
From-SVN: r131763
Hans-Peter Nilsson [Wed, 23 Jan 2008 17:17:58 +0000 (17:17 +0000)]
cris.h (CRIS_SUBTARGET_VERSION, [...]): Don't define.
* config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
define.
* config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
* config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
From-SVN: r131762
Michael Matz [Wed, 23 Jan 2008 16:44:27 +0000 (16:44 +0000)]
re PR debug/34895 (ICE in force_type_die, at dwarf2out.c:12923)
PR debug/34895
* dwarf2out.c (force_type_die): Use modified_type_die instead of
gen_type_die.
* g++.dg/debug/pr34895.cc: New testcase.
From-SVN: r131761
Andreas Krebbel [Wed, 23 Jan 2008 16:41:30 +0000 (16:41 +0000)]
ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type.
2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
* ipa-struct-reorg.c (create_new_malloc): Use pointer type as
malloc result type.
From-SVN: r131760
Anatoly Sokolov [Wed, 23 Jan 2008 15:07:09 +0000 (18:07 +0300)]
avr.c (avr_current_arch): New variable.
* config/avr/avr.c (avr_current_arch): New variable.
(avr_arch_types): Add 'avr31' and 'avr51' entries.
(avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
(avr_mcu_types): Add 'avr31' and 'avr51' architectures.
(avr_override_options): Init 'avr_current_arch'.
(base_arch_s): Move from here...
* config/avr/avr.h (base_arch_s): ... here. Add new members
'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
'mega' to 'have_jmp_call'.
(TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
"__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
macros.
(LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
architectures.
* config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
MULTILIB_MATCHES): (Ditto.).
From-SVN: r131759
Richard Guenther [Wed, 23 Jan 2008 14:20:07 +0000 (14:20 +0000)]
re PR middle-end/31529 (ICE in cgraph_expand_function with IMA)
2008-01-23 Richard Guenther <rguenther@suse.de>
PR middle-end/31529
* cgraphunit.c (cgraph_reset_node): Always mark the node
not reachable if it is not queued already.
* gcc.dg/pr31529-1.c: New testcase.
* gcc.dg/pr31529-2.c: Likewise.
From-SVN: r131758
Jakub Jelinek [Wed, 23 Jan 2008 08:33:22 +0000 (09:33 +0100)]
re PR c++/34829 (placement new with primitive Java types rejected)
PR c++/34829
* g++.dg/ext/pr34829.C (operator new): Use size_t instead of
unsigned int for the first argument.
From-SVN: r131756
Jason Merrill [Wed, 23 Jan 2008 05:11:58 +0000 (00:11 -0500)]
re PR c++/28560 (Trouble with __attribute__ in template parameter)
PR c++/28560
* decl.c (groktypename): Also ignore attributes on dependent
possibly-class types.
From-SVN: r131755
Thiago Jung Bauermann [Wed, 23 Jan 2008 05:04:03 +0000 (05:04 +0000)]
cplus-dem.c (demangle_function_name): Changed to return value indicating if a name was correctly demangled.
2008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
* cplus-dem.c (demangle_function_name): Changed to return value
indicating if a name was correctly demangled.
(iterate_demangle_function): Use demangle_function_name return
value.
From-SVN: r131754
Ben Elliston [Wed, 23 Jan 2008 02:37:40 +0000 (02:37 +0000)]
* config.sub, config.guess: Update from upstream sources.
From-SVN: r131753
Bernd Schmidt [Wed, 23 Jan 2008 02:17:00 +0000 (02:17 +0000)]
bfin-protos.h (WA_RETS, [...]): New macros.
* config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
* config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
(cputype_selected): New static variable.
(bfin_handle_option): Set it if -mcpu is used.
(override_option): Select default set of workarounds if no cpu type
selected on the command line.
(workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
From-SVN: r131752
Jakub Jelinek [Wed, 23 Jan 2008 01:50:45 +0000 (02:50 +0100)]
re PR c++/33984 (bit-fields, references and overloads)
gcc/cp/ChangeLog:
PR c++/33984
* call.c (reference_binding): For bitfields use the declared bitfield
type.
(add_builtin_candidates): Likewise.
* class.c (layout_class_type): For bitfields copy over the
original type quals.
gcc/testsuite/ChangeLog:
PR c++/33984
* g++.dg/conversion/bitfield7.C: New test.
* g++.dg/cpp0x/decltype4.C: Fixed xfail.
From-SVN: r131751
GCC Administrator [Wed, 23 Jan 2008 00:17:08 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r131749
Bernd Schmidt [Tue, 22 Jan 2008 23:55:43 +0000 (23:55 +0000)]
gcc/
From Michael Frysinger <michael.frysinger@analog.com>
* config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
* config/bfin/elf.h (LIB_SPEC): Use proper linker script
for bf547, bf523, bf524, and bf526.
* config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
bf526.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
__ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
__ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
__ADSPBF547__ and __ADSPBF54x__ for bf547.
* doc/invoke.texi (Blackfin Options): Document that
-mcpu now accept bf547, bf523, bf524, and bf526.
gcc/testsuite/
From Michael Frysinger <michael.frysinger@analog.com>
* gcc.target/bfin/mcpu-bf547.c: New test.
* gcc.target/bfin/mcpu-bf523.c: New test.
* gcc.target/bfin/mcpu-bf524.c: New test.
* gcc.target/bfin/mcpu-bf526.c: New test.
From-SVN: r131746
Eric Botcazou [Tue, 22 Jan 2008 22:27:47 +0000 (22:27 +0000)]
re PR rtl-optimization/34628 (problems with inlining on ARM)
PR rtl-optimization/34628
* combine.c (try_combine): Stop and undo after the first combination
if an autoincrement side-effect on the first insn has effectively
been lost.
From-SVN: r131744
Tom Tromey [Tue, 22 Jan 2008 21:43:49 +0000 (21:43 +0000)]
re PR c++/34859 (g++ -D__STDC_LIMIT_MACROS -D__STDC_LIMIT_MACROS causes error)
libcpp
PR c++/34859:
* macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and
__STDC_CONSTANT_MACROS.
gcc/testsuite
PR c++/34859:
* gcc.dg/cpp/pr34859.c: New file.
From-SVN: r131743