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
Paul Thomas [Tue, 22 Jan 2008 21:22:13 +0000 (21:22 +0000)]
re PR fortran/34875 (read into vector-valued section doesn't transfer any values)
2008-01-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34875
* trans-io.c (gfc_trans_transfer): If the array reference in a
read has a vector subscript, use gfc_conv_subref_array_arg to
copy back the temporary.
2008-01-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34875
* gfortran.dg/vector_subscript_3.f90: New test.
From-SVN: r131742
David Edelsohn [Tue, 22 Jan 2008 21:12:05 +0000 (21:12 +0000)]
re PR target/34529 (Wrong code with altivec stores and offsets)
PR target/34529
* config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
Offset addresses are not valid for Altivec or paired float modes.
From-SVN: r131741
Jason Merrill [Tue, 22 Jan 2008 19:50:37 +0000 (14:50 -0500)]
re PR c++/34912 (ICE with friend in local class)
PR c++/34912
* friend.c (do_friend): Check for prior declaration of a friend
function of a local class.
* name-lookup.c (lookup_name_innermost_nonclass_level):
No longer static.
* name-lookup.h: Declare it.
From-SVN: r131740
Tobias Burnus [Tue, 22 Jan 2008 19:35:49 +0000 (20:35 +0100)]
re PR fortran/34848 (internal compiler error with optional argument of character type and array return type)
2008-01-22 Tobias Burnus <burnus@net-b.de>
PR fortran/34848
* interface.c (compare_actual_formal): Fix adding type
to missing_arg_type for absent optional arguments.
2008-01-22 Tobias Burnus <burnus@net-b.de>
PR fortran/34848
* gfortran.dg/missing_optional_dummy_4.f90
From-SVN: r131738
Kaveh R. Ghazi [Tue, 22 Jan 2008 18:41:24 +0000 (18:41 +0000)]
vect-ifcvt-9.c: Use inline.
* gcc.dg/vect/vect-ifcvt-9.c: Use inline.
From-SVN: r131735
Tobias Grosser [Tue, 22 Jan 2008 18:23:52 +0000 (18:23 +0000)]
Changelog: Insert forgotten entry of commit 131705.
2008-01-22 Tobias Grosser <grosser@fim.uni-passau.de>
* Changelog: Insert forgotten entry of commit 131705.
Commit 131705 was:
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r131734
Eric Botcazou [Tue, 22 Jan 2008 18:15:49 +0000 (18:15 +0000)]
decl.c (components_to_record): Do not reuse the empty union type if there is a representation clause on the record.
* decl.c (components_to_record): Do not reuse the empty union type
if there is a representation clause on the record.
* trans.c (addressable_p): Return true for INTEGER_CST.
From-SVN: r131733
Tom Tromey [Tue, 22 Jan 2008 17:54:59 +0000 (17:54 +0000)]
re PR c++/34829 (placement new with primitive Java types rejected)
gcc/testsuite
PR c++/34829:
* g++.dg/ext/pr34829.C: New file.
gcc/cp
PR c++/34829:
* init.c (build_new_1): Only disallow Java aggregates.
From-SVN: r131732
Matthias Klose [Tue, 22 Jan 2008 17:34:56 +0000 (17:34 +0000)]
user.cfg.in: Set SHORT_NAMES to YES.
2008-01-21 Matthias Klose <doko@ubuntu.com>
* doc/doxygen/user.cfg.in: Set SHORT_NAMES to YES.
From-SVN: r131731
Jakub Jelinek [Tue, 22 Jan 2008 17:25:37 +0000 (18:25 +0100)]
re PR c++/34607 (ICE with invalid for loop after #pragma omp for)
PR c++/34607
* c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
if DECL_INITIAL (decl) is error_mark_node.
* semantics.c (finish_omp_for): Don't call c_finish_omp_for
if decl or init is error_mark_node.
* gcc.dg/gomp/pr34607.c: New test.
* g++.dg/gomp/pr34607.C: New test.
From-SVN: r131730
Jakub Jelinek [Tue, 22 Jan 2008 17:03:12 +0000 (18:03 +0100)]
re PR c++/34914 (Member pointer to vector rejected)
PR c++/34914
* c-common.c (handle_vector_size_attribute): Only allow
integral, scalar float and fixed point types. Handle OFFSET_TYPE
the same way as pointer, array etc. types.
* tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
* g++.dg/ext/vector10.C: New test.
From-SVN: r131729
Tobias Burnus [Tue, 22 Jan 2008 16:43:20 +0000 (17:43 +0100)]
re PR fortran/34907 (valgrind error indication from testsuite trans-types.c: gfc_typenode_for_spec)
2008-01-22 Tobias Burnus <burnus@net-b.de>
PR fortran/34907
* parse.c (parse_spec): Change = into ==.
From-SVN: r131728
Jakub Jelinek [Tue, 22 Jan 2008 16:22:06 +0000 (17:22 +0100)]
re PR c++/34918 (Broken diagnostic: 'vector_cst' not supported by dump_expr)
PR c++/34918
* error.c (dump_expr): Handle VECTOR_CST.
* g++.dg/other/error23.C: New test.
From-SVN: r131727
Jakub Jelinek [Tue, 22 Jan 2008 16:18:14 +0000 (17:18 +0100)]
re PR c++/34917 (ICE with const vector)
PR c++/34917
* tree.c (build_type_attribute_qual_variant): Call
build_qualified_type if attributes are equal, but quals are not.
* g++.dg/ext/vector12.C: New test.
From-SVN: r131726
Jason Merrill [Tue, 22 Jan 2008 14:48:05 +0000 (09:48 -0500)]
re PR c++/33959 (ICE in instantiate_class_template, at cp/pt.c:6649)
PR c++/33959
* pt.c (tsubst_aggr_type): Make sure our context is complete.
PR c++/34573
* pt.c (retrieve_local_specialization): Robustify.
(tsubst_pack_expansion, tsubst_decl): Remove redundant checks.
PR c++/34846
* pt.c (tsubst): Only call retrieve_local_specialization if the
original typedef was in a function template.
From-SVN: r131724
Manuel López-Ibáñez [Tue, 22 Jan 2008 14:19:01 +0000 (14:19 +0000)]
Missed testcases in earlier commit.
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 32102
testsuite/
* gcc.dg/Wstrict-overflow-21.c: New.
* g++.dg/warn/Wstrict-aliasing-8.C: New.
From-SVN: r131722
Manuel López-Ibáñez [Tue, 22 Jan 2008 14:17:00 +0000 (14:17 +0000)]
Missed testcase in earlier commit.
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/33092
testsuite/
* gcc.dg/pr33092.c: New.
From-SVN: r131721
Manuel López-Ibáñez [Tue, 22 Jan 2008 14:11:44 +0000 (14:11 +0000)]
re PR c/32102 (-Wall stomps on -Wstrict-overflow)
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 32102
* doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
* flags.h (warn_strict_aliasing): Remove.
(warn_strict_overflow): Remove.
* opts.c (warn_strict_aliasing): Remove.
(warn_strict_overflow): Remove.
* c-opts.c (c_common_handle_option): -Wall only sets
-Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
(c_common_post_options): Give default values to -Wstrict-aliasing
and -Wstrict-overflow if they are uninitialized.
* common.opt (Wstrict-aliasing): Specify Var and Init.
(Wstrict-overflow): Likewise.
testsuite/
* gcc.dg/Wstrict-overflow-21.c: New.
* g++.dg/warn/Wstrict-aliasing-8.C: New.
From-SVN: r131720
Kenneth Zadeck [Tue, 22 Jan 2008 13:57:01 +0000 (13:57 +0000)]
re PR tree-optimization/26854 (Inordinate compile times on large routines)
2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
PR rtl-optimization/26854
PR rtl-optimization/34400
PR rtl-optimization/34884
* ddg.c (create_ddg_dep_from_intra_loop_link): Use
DF_RD->gen.
* df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
(df_rd_bb_info.expanded_lr_out): Deleted
* loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
* loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
(df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
Removed code to allocate, initialize or free expanded_lr_out.
(df_rd_bb_local_compute_process_def): Restructured to make more
understandable.
(df_rd_confluence_n): Removed code to no apply invalidate_by_call
sets if the sets are being trimmed.
From-SVN: r131719