Jie Zhang [Wed, 31 Mar 2010 09:57:03 +0000 (09:57 +0000)]
re PR middle-end/43574 (Revision 157795 failed gcc.dg/lto/
20090914-1 c_lto_20090914-1_0.o)
PR 43574
* opt-functions.awk (var_type_struct): Use signed char type
for simple variables.
From-SVN: r157859
Rainer Orth [Wed, 31 Mar 2010 09:26:05 +0000 (09:26 +0000)]
inclhack.def (alpha_assert): Allow for more whitespace in select.
* inclhack.def (alpha_assert): Allow for more whitespace in
select.
* fixincl.x: Regenerate.
From-SVN: r157858
Dodji Seketeli [Wed, 31 Mar 2010 09:21:02 +0000 (09:21 +0000)]
re PR c++/43558 (Rejects specialization)
Fix PR c++/43558
gcc/cp/ChangeLog:
PR c++/43558
* cp-tree.h (TEMPLATE_TYPE_PARM_SIBLING_PARMS): New accessor macro.
* pt.c (end_template_parm_list): Store sibling template parms of
each TEMPLATE_TYPE_PARMs into its TEMPLATE_TYPE_PARM_SIBLING_PARMS.
(push_template_decl_real): Don't store the containing template decl
into the DECL_CONTEXT of TEMPLATE_TYPE_PARMs anymore.
* typeck.c (get_template_parms_of_dependent_type): Get sibling parms
of a TEMPLATE_TYPE_PARM from TEMPLATE_TYPE_PARM_SIBLING_PARMS.
Simplify the logic.
gcc/testsuite/ChangeLog:
PR c++/43558
* g++.dg/template/typedef31.C: New test.
From-SVN: r157857
Rainer Orth [Wed, 31 Mar 2010 09:19:20 +0000 (09:19 +0000)]
sol2.c: Include output.h.
gcc:
* config/sol2.c: Include output.h.
(solaris_assemble_visibility): New function.
* config/t-sol2 (sol2.o): Add output.h dependency.
* config/sol2-protos.h (solaris_assemble_visibility): Declare.
* config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
Redefine.
gcc/testsuite:
* g++.dg/ext/visibility/pragma-override1.C: Allow for .hidden in
assembler output on *-*-solaris2*.
* g++.dg/ext/visibility/pragma-override2.C: Likewise.
From-SVN: r157856
Rainer Orth [Wed, 31 Mar 2010 09:16:24 +0000 (09:16 +0000)]
Added forgotten ChangeLog entry.
From-SVN: r157855
Rainer Orth [Wed, 31 Mar 2010 09:03:29 +0000 (09:03 +0000)]
re PR target/39048 (gcc 4.4.0
20090131 - Extra underscore hides libgcc's soft-fp functions from Testsuite causing FAILs + naming error in libgcc)
gcc:
PR target/39048
* config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
and soft-fp/t-softfp to tmake_file.
* config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
(LIBGCC2_TF_CEXT): Define.
(TF_SIZE): Define.
libgcc:
PR target/39048
* config.host (i[34567]86-*-solaris2): Handle 32-bit Solaris 2/x86
like other remaining 32-bit x86 OSes.
* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Support Sun
assembler syntax.
* config/i386/libgcc-sol2.ver: New file.
* config/i386/t-sol2 (SHLIB_MAPFILES): Add it.
Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r157854
Jakub Jelinek [Wed, 31 Mar 2010 08:41:28 +0000 (10:41 +0200)]
re PR target/43580 (ICE segfault compiling libgcc2.c)
PR target/43580
* config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
V2SImode or XFmode on PRE_DEC.
From-SVN: r157853
Jakub Jelinek [Wed, 31 Mar 2010 08:39:22 +0000 (10:39 +0200)]
re PR debug/43557 (ICE with -combine and -g)
PR debug/43557
* cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
BLKmode.
* gcc.dg/pr43557-1.c: New test.
* gcc.dg/pr43557-2.c: New file.
From-SVN: r157852
Ralf Wildenhues [Wed, 31 Mar 2010 05:44:30 +0000 (05:44 +0000)]
Fix toplevel configure --enable-multilib handling.
/:
PR bootstrap/43328
* configure.ac: Do not pass --enable-multilib nor
--disable-multilib in baseargs. Accept explicitly passed
--enable_multilib.
* configure: Regenerate.
From-SVN: r157851
Jie Zhang [Wed, 31 Mar 2010 02:44:10 +0000 (02:44 +0000)]
re PR other/43562 (GCC ICE on optimize attribute)
PR 43562
* reload.h (caller_save_initialized_p): Declare.
* toplev.c (backend_init_target): Don't call
init_caller_save but set caller_save_initialized_p
to false.
* caller-save.c (caller_save_initialized_p): Define.
(init_caller_save): Check caller_save_initialized_p.
* ira.c (ira): Call init_caller_save if flag_caller_saves.
testsuite/
PR 43562
* gcc.dg/pr43562.c: New test.
From-SVN: r157849
GCC Administrator [Wed, 31 Mar 2010 00:17:04 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r157845
Jason Merrill [Tue, 30 Mar 2010 22:34:02 +0000 (18:34 -0400)]
re PR c++/43076 (ICE: SIGSEGV with invalid C++ code after giving diagnostics)
PR c++/43076
* pt.c (push_template_decl_real): Deal better with running out of
scopes before running out of template parms.
From-SVN: r157842
Jason Merrill [Tue, 30 Mar 2010 21:19:23 +0000 (17:19 -0400)]
re PR c++/41185 (size of array ... has non-integral type ...)
PR c++/41185
PR c++/41786
* parser.c (cp_parser_direct_declarator): Don't allow VLAs in
function parameter context. Don't print an error if parsing
tentatively.
From-SVN: r157838
Alexandre Oliva [Tue, 30 Mar 2010 21:00:47 +0000 (21:00 +0000)]
re PR debug/42977 ("-fcompare-debug failure" with "-O2 -finline-functions -fomit-frame-pointer -ftracer -fsched2-use-superblocks -fPIC")
PR debug/42977
* cselib.c (n_useless_values): Document handling of debug locs.
(n_useless_debug_values, n_debug_values): New variables.
(new_elt_loc_list): Don't add to debug values, keep count.
(promote_debug_loc): New.
(cselib_reset_table): Zero new variables.
(entry_and_rtx_equal_p): Promote debug locs.
(discard_useless_locs): Increment n_useless_debug_values for
debug values.
(remove_useless_values): Adjust n_useless_values and n_debug_values
with n_useless_debug_values.
(add_mem_for_addr): Promote debug locs.
(cselib_lookup_mem): Likewise.
(cselib_lookup_addr): Renamed to...
(cselib_lookup_addr_1): ... this. Promote debug locs.
Don't call...
(cselib_log_lookup): ... this. Turn into...
(cselib_lookup_addr): ... new wrapper.
(cselib_lookup_from_insn): New.
(cselib_invalidate_regno): Increment n_useless_debug_values for
debug values.
(cselib_invalidate_mem): Likewise.
(cselib_process_insn): Take n_deleted and n_debug_values into
account to guard remove_useless_value call.
(cselib_finish): Zero n_useless_debug_values.
* cselib.h (cselib_lookup_from_insn): Declare.
* sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
(sched_analyze_2): Likewise.
From-SVN: r157837
Jakub Jelinek [Tue, 30 Mar 2010 20:17:39 +0000 (22:17 +0200)]
var-tracking.c (use_narrower_mode_test, [...]): New functions.
* var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
functions.
(adjust_mems): Replace narrowing SUBREG of expression containing
just PLUS, MINUS, MULT and ASHIFT of registers and constants
with operations in the narrower mode.
From-SVN: r157835
Jakub Jelinek [Tue, 30 Mar 2010 20:16:52 +0000 (22:16 +0200)]
re PR debug/43593 (Var-tracking unnecessarily flushes all call used registers on calls instead of regs invalidated by call)
PR debug/43593
* var-tracking.c (dataflow_set_clear_at_call): Invalidate
just regs_invalidated_by_call instead all call_used_reg_set
registers.
* gcc.dg/guality/pr43593.c: New test.
From-SVN: r157834
Sebastian Pop [Tue, 30 Mar 2010 19:58:35 +0000 (19:58 +0000)]
Replace type != type comparisons with types_compatible_p.
2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43430
* tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
pointer comparisons with types_compatible_p.
* tree-vect-stmts.c (vectorizable_call): Same.
(vectorizable_condition): Same.
* gcc.dg/vect/pr43430-1.c: New.
From-SVN: r157833
Jason Merrill [Tue, 30 Mar 2010 19:39:48 +0000 (15:39 -0400)]
re PR c++/43559 (Overloaded template functions became ambiguous)
PR c++/43559
* pt.c (more_specialized_fn): Don't control cv-qualifier check
with same_type_p.
From-SVN: r157831
Johannes Singler [Tue, 30 Mar 2010 14:50:56 +0000 (14:50 +0000)]
random_shuffle.h (__parallel_random_shuffle_drs): Take as many threads as possible, i.
2010-03-30 Johannes Singler <singler@kit.edu>
* include/parallel/random_shuffle.h
(__parallel_random_shuffle_drs) : Take as many threads as
possible, i. e. favor parallelism over cache efficiency.
Use own PRNG also for the 1 thread case.
From-SVN: r157826
Andreas Krebbel [Tue, 30 Mar 2010 13:53:10 +0000 (13:53 +0000)]
s390.c (s390_emit_prologue): Omit issuing a dynamic stack check if the mask would be zero.
2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
stack check if the mask would be zero.
2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc.target/s390/stackcheck1.c: New testcase.
From-SVN: r157825
Seongbae Park [Tue, 30 Mar 2010 13:10:16 +0000 (13:10 +0000)]
tree-profile.c (tree_init_ic_make_global_vars): Make static variables TLS.
2010-03-30 Seongbae Park <seongbae.park@gmail.com>
Jack Howarth <howarth@bromo.med.uc.edu>
* tree-profile.c (tree_init_ic_make_global_vars): Make static
variables TLS.
Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>
From-SVN: r157822
Jack Howarth [Tue, 30 Mar 2010 13:08:52 +0000 (13:08 +0000)]
re PR c/43553 (libgcc built with -DHAVE_CC_TLS against xgcc when emutls in use)
2010-03-30 Jack Howarth <howarth@bromo.med.uc.edu>
PR c/43553
* Makefile.in (INTERNAL_CFLAGS): Add @set_use_emutls@.
* configure.ac: Use GCC_CHECK_EMUTLS to see if emulated TLS
is used and substitute set_use_emutls.
* configure: Regenerated.
From-SVN: r157821
Joseph Myers [Tue, 30 Mar 2010 12:35:08 +0000 (13:35 +0100)]
re PR other/25232 (libgcc-std.ver should include __unordxf2 and __unordtf2)
PR other/25232
* libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
and __unordtf2.
* config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
Include ___unordxf2 and ___unordtf2.
* config/i386/libgcc-glibc.ver: Do not define inheritance from
GCC_4.4.0 here.
From-SVN: r157819
Paolo Carlini [Tue, 30 Mar 2010 10:59:17 +0000 (10:59 +0000)]
unordered_map: Clean-up includes and guards.
2010-03-30 Paolo Carlini <paolo.carlini@oracle.com>
* include/debug/unordered_map: Clean-up includes and guards.
* include/debug/unordered_set: Likewise.
* include/debug/list: Likewise.
* include/profile/unordered_map: Likewise.
* include/profile/unordered_set: Likewise.
From-SVN: r157818
Tarik Graba [Tue, 30 Mar 2010 10:26:24 +0000 (12:26 +0200)]
t-lm32: New file.
2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
gcc/
* config/lm32/t-lm32: New file.
* config.gcc: Use the above file when targetting lm32.
libgcc/
* config/lm32/t-lm32: Remove misplaced MULTILIB_OPTIONS.
From-SVN: r157817
Duncan Sands [Tue, 30 Mar 2010 10:03:25 +0000 (12:03 +0200)]
The dragonegg plugin needs except.h, so add it to the list of
plugin headers.
From-SVN: r157816
Jerry DeLisle [Tue, 30 Mar 2010 03:25:04 +0000 (03:25 +0000)]
re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
2010-03-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/43265
* gfortran.dg/read_eof_8.f90: New test.
From-SVN: r157811
Jerry DeLisle [Tue, 30 Mar 2010 03:22:28 +0000 (03:22 +0000)]
re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
2010-03-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/43265
* io/transfer.c (next_record_r): Only call hit_eof for specific
conditions when an EOF is encountered.
From-SVN: r157810
GCC Administrator [Tue, 30 Mar 2010 00:17:33 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r157809
John David Anglin [Mon, 29 Mar 2010 23:51:05 +0000 (23:51 +0000)]
re PR target/43458 (c99_classification_macros_c.cc fails on hppa*-*-hpux*)
PR target/43458
* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
Xfail hppa*-*-hpux*.
From-SVN: r157806
Jason Merrill [Mon, 29 Mar 2010 20:57:00 +0000 (16:57 -0400)]
* gcc.dg/cpp/include6.c: Change [] to ().
From-SVN: r157805
Jason Merrill [Mon, 29 Mar 2010 20:07:29 +0000 (16:07 -0400)]
More N3077 raw string changes
More N3077 raw string changes
* charset.c (cpp_interpret_string): Don't transform UCNs in raw
strings.
* lex.c (bufring_append): Split out from...
(lex_raw_string): ...here. Undo trigraph and line splicing
transformations. Do process line notes in multi-line literals.
(_cpp_process_line_notes): Ignore notes that were already handled.
From-SVN: r157804
Jason Merrill [Mon, 29 Mar 2010 19:40:36 +0000 (15:40 -0400)]
raw-string-1.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-1.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-2.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-3.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-4.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-5.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-6.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-7.c: Combine C and C++ raw string tests.
From-SVN: r157803
Sebastian Pop [Mon, 29 Mar 2010 16:38:40 +0000 (16:38 +0000)]
Improve vectorization cost model diagnostic.
2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43431
* tree-vect-loop.c (vect_estimate_min_profitable_iters):
Improve vectorization cost model diagnostic.
From-SVN: r157801
Sebastian Pop [Mon, 29 Mar 2010 16:38:34 +0000 (16:38 +0000)]
Improve vectorization diagnostic: loop contains function calls.
2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43436
* tree-vect-data-refs.c (vect_analyze_data_refs): When
compute_data_dependences_for_loop returns false, early exit
and output an extra diagnostic for the failed data reference
analysis.
From-SVN: r157800
Richard Guenther [Mon, 29 Mar 2010 15:20:07 +0000 (15:20 +0000)]
re PR tree-optimization/43560 (possible wrong code bug)
2010-03-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43560
* tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p
parameter.
(can_sm_ref_p): Treat stores to readonly locations as
trapping.
* gcc.dg/torture/pr43560.c: New testcase.
From-SVN: r157799
Jason Merrill [Mon, 29 Mar 2010 15:00:43 +0000 (11:00 -0400)]
Some raw string changes from N3077
Some raw string changes from N3077
* charset.c (cpp_interpret_string): Change inner delimiters to ().
* lex.c (lex_raw_string): Likewise. Also disallow '\' in delimiter.
From-SVN: r157797
Jie Zhang [Mon, 29 Mar 2010 13:06:50 +0000 (13:06 +0000)]
re PR other/43564 (ICE on code with optimize attribute and inlining)
PR 43564
* toplev.c (process_options): Set optimization_default_node
and optimization_current_node.
* opts.c (decode_options): Don't set optimization_default_node
and optimization_current_node.
testsuite/
PR 43564
* gcc.dg/pr43564.c: New test.
From-SVN: r157795
Tobias Burnus [Mon, 29 Mar 2010 06:17:19 +0000 (08:17 +0200)]
re PR libfortran/43551 (Buffered direct I/O reads wrong record)
2010-03-29 Tobias Burnus <burnus@net-b.de>
PR fortran/43551
* io/unix.c (buf_write): Set physical_offset after lseek.
2010-03-29 Tobias Burnus <burnus@net-b.de>
PR fortran/43551
* gfortran.dg/direct_io_12.f90: New test.
From-SVN: r157792
Ralf Corsepius [Mon, 29 Mar 2010 05:06:42 +0000 (07:06 +0200)]
rtems.h: Abandon -qrtems_debug.
2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* config/rtems.h: Abandon -qrtems_debug.
From-SVN: r157791
Andrew Pinski [Mon, 29 Mar 2010 05:00:30 +0000 (22:00 -0700)]
MAINTAINERS (spu port): Remove me.
2010-03-28 Andrew Pinski <pinskia@gmail.com>
* MAINTAINERS (spu port): Remove me.
From-SVN: r157790
GCC Administrator [Mon, 29 Mar 2010 00:16:36 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r157789
Jan Hubicka [Sun, 28 Mar 2010 21:46:50 +0000 (23:46 +0200)]
re PR tree-optimization/43505 (type mismatch between an SSA_NAME and its symbol with -O3)
PR tree-optimization/43505
* cgraph.c (cgraph_clone_node): When clonning a clone, replacement
map should not be copied.
* gfortran.dg/pr43505.f90: New testcase.
From-SVN: r157786
H.J. Lu [Sun, 28 Mar 2010 16:40:50 +0000 (16:40 +0000)]
re PR target/40722 (ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls)
2010-03-28 H.J. Lu <hongjiu.lu@intel.com>
PR target/40722
* mkfixinc.sh: Revert the last change for mingw.
From-SVN: r157784
GCC Administrator [Sun, 28 Mar 2010 00:16:45 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r157783
John David Anglin [Sat, 27 Mar 2010 15:43:19 +0000 (15:43 +0000)]
re PR middle-end/41674 (/usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main)
PR middle-end/41674
* cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
cdtors, set DECL_PRESERVE_P.
* ipa.c (cgraph_externally_visible_p): Return true if declaration
should be preseved.
From-SVN: r157779
Uros Bizjak [Sat, 27 Mar 2010 13:40:08 +0000 (14:40 +0100)]
re PR tree-optimization/43528 (ICE: in tree_low_cst, at tree.c:6198 with -mms-bitfields at x86_64-linux)
PR tree-optimization/43528
* stor-layout.c (place_field): Check that constant fits into
unsigned HWI when skipping calculation of MS bitfield layout.
testsuite/ChangeLog:
PR tree-optimization/43528
* gcc.target/i386/pr43528.c: New test.
From-SVN: r157776
Jan Hubicka [Sat, 27 Mar 2010 11:56:30 +0000 (12:56 +0100)]
re PR middle-end/43391 (make_decl_rtl failure for C++ on AIX and HPUX)
PR middle-end/43391
* varasm.c (make_decl_rtl): Deal with COMMON flag to make
notice_global_symbol work.
From-SVN: r157773
Jakub Jelinek [Sat, 27 Mar 2010 10:52:27 +0000 (11:52 +0100)]
dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl instead of dwarf2out_decl.
* dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
instead of dwarf2out_decl.
(struct var_loc_node): Remove section_label field.
(dwarf2out_function_decl): New function.
(dwarf2out_var_location): Don't set section_label field.
(dwarf2out_begin_function): Don't empty decl_loc_table here.
From-SVN: r157771
Michael Meissner [Sat, 27 Mar 2010 10:27:39 +0000 (10:27 +0000)]
PR 43544, change TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION to take a tree argument
From-SVN: r157770
GCC Administrator [Sat, 27 Mar 2010 00:16:41 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r157769
Joseph Myers [Fri, 26 Mar 2010 23:52:09 +0000 (23:52 +0000)]
re PR c/43381 (infinite loop in gcc.dg/parm-impl-decl-1.c with -g)
PR c/43381
* c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
nested binding iff it is a FUNCTION_DECL.
(store_parm_decls_newstyle): Pass nested=true to bind for
FUNCTION_DECLs amongst parameters.
testsuite:
* gcc.dg/parm-impl-decl-3.c: New test.
From-SVN: r157766
Jason Merrill [Fri, 26 Mar 2010 21:39:48 +0000 (17:39 -0400)]
re PR c++/43509 ([C++0x] ICE in constructor_name_p, at cp/name-lookup.c:1809)
PR c++/43509
* parser.c (cp_parser_qualifying_entity): Do accept enum names in
c++0x mode, but not other type-names.
From-SVN: r157765
Jakub Jelinek [Fri, 26 Mar 2010 20:55:34 +0000 (21:55 +0100)]
var-tracking.c (vt_expand_loc_callback): Don't run cselib_expand_value_rtx_cb in dummy mode if...
* var-tracking.c (vt_expand_loc_callback): Don't run
cselib_expand_value_rtx_cb in dummy mode if
cselib_dummy_expand_value_rtx_cb returned false.
From-SVN: r157764
Jakub Jelinek [Fri, 26 Mar 2010 20:54:43 +0000 (21:54 +0100)]
var-tracking.c (emit_note_insn_var_location): For one part notes with offset 0, don't add EXPR_LIST around the location.
* var-tracking.c (emit_note_insn_var_location): For one part
notes with offset 0, don't add EXPR_LIST around the location.
* dwarf2out.c (loc_descriptor, dw_loc_list_1,
add_location_or_const_value_attribute): Adjust for that change.
From-SVN: r157763
Jakub Jelinek [Fri, 26 Mar 2010 20:53:58 +0000 (21:53 +0100)]
re PR debug/43540 (ICE: vector VEC(dw_cfi_ref,heap) grow domain error, in output_cfis at dwarf2out.c:3346 or OOM-killed)
PR debug/43540
* dwarf2out.c (reg_save): For DW_CFA_expression put regnum
into first operand and location into second.
(dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
dw_cfi_oprnd_loc for DW_CFA_expression.
(dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
(output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
assume first argument is regnum and second argument is location.
From-SVN: r157762
Uros Bizjak [Fri, 26 Mar 2010 18:45:56 +0000 (19:45 +0100)]
re PR target/42113 (Internal Compiler error with -O3, breaking commit known)
PR target/42113
* config/alpha/alpha.md (*cmp_sadd_si): Change mode
of scratch register to DImode. Split to DImode comparison operator.
Use SImode subreg of scratch register in the multiplication.
(*cmp_sadd_sidi): Ditto.
(*cmp_ssub_si): Ditto.
(*cmp_ssub_sidi): Ditto.
From-SVN: r157759
Uros Bizjak [Fri, 26 Mar 2010 18:22:37 +0000 (19:22 +0100)]
re PR target/43524 (ICE: in ix86_expand_prologue, at config/i386/i386.c:8636 with -mstack-arg-probe on x86_64-linux)
PR target/43524
* config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
Remove invalid assert and wrong comment.
testsuite/ChangeLog:
PR target/43524
* gcc.target/i386/pr43524.c: New test.
From-SVN: r157757
Joseph Myers [Fri, 26 Mar 2010 17:53:13 +0000 (17:53 +0000)]
* gcc.pot: Regenerate.
From-SVN: r157756
Rainer Orth [Fri, 26 Mar 2010 16:33:41 +0000 (16:33 +0000)]
profile_mode.xml (Profile Diagnostics): Correct cols.
* doc/xml/manual/profile_mode.xml (Profile Diagnostics): Correct
cols.
* doc/xml/manual/using.xml (C++ 1998 Library Headers): Add missing
c5 colspec.
(C++ 1998 Library Headers for C Library Facilities): Likewise.
(C++ 200x Library Headers): Likewise.
From-SVN: r157754
Jakub Jelinek [Fri, 26 Mar 2010 16:18:51 +0000 (17:18 +0100)]
re PR debug/43516 ("-fcompare-debug failure" at -O2)
PR debug/43516
* flags.h (final_insns_dump_p): New extern.
* final.c (final_insns_dump_p): New variable.
(rest_of_clean_state): Set it before -fdump-final-insns=
dumping, clear afterwards.
* print-rtl.c (print_rtx): If final_insns_dump_p don't dump
MEM_ALIAS_SET on MEMs.
From-SVN: r157753
Martin Jambor [Fri, 26 Mar 2010 13:21:34 +0000 (14:21 +0100)]
loadpre1.c: Deleted trailing whitespace, renamed main to foo.
2010-03-26 Martin Jambor <mjambor@suse.cz>
* gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c: Deleted trailing
whitespace, renamed main to foo.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c: Likewise.
From-SVN: r157748
H.J. Lu [Fri, 26 Mar 2010 13:07:14 +0000 (06:07 -0700)]
Remove svn:executable.
From-SVN: r157747
Eric Botcazou [Fri, 26 Mar 2010 09:51:32 +0000 (09:51 +0000)]
Fix nit
From-SVN: r157746
Dodji Seketeli [Fri, 26 Mar 2010 09:20:58 +0000 (09:20 +0000)]
re PR c++/43327 (ICE in unifiy.c)
Fix for PR c++/43327
gcc/cp/ChangeLog:
PR c++/43327
* pt.c (add_to_template_args): Support NULL ARGS;
(most_specialized_class): call coerce_template_parms on
template arguments passed to get_class_bindings. Use
add_to_template_args.
(unify): Handle VAR_DECLs.
gcc/testsuite/ChangeLog:
PR c++/43327
* g++.dg/other/crash-10.C: New test.
* g++.dg/other/crash-11.C: New test.
From-SVN: r157745
Dodji Seketeli [Fri, 26 Mar 2010 08:26:04 +0000 (08:26 +0000)]
Fix compilation.
* cp-tree.h (get_template_parms_at_level): Change unsigned parm
into int.
* pt.c (get_template_parms_at_level): Adjust.
From-SVN: r157743
David S. Miller [Fri, 26 Mar 2010 05:40:32 +0000 (05:40 +0000)]
configure.ac: Fix sparc GOTDATA_OP bug check.
* configure.ac: Fix sparc GOTDATA_OP bug check.
* configure: Rebuild.
From-SVN: r157741
Jerry DeLisle [Fri, 26 Mar 2010 03:26:26 +0000 (03:26 +0000)]
re PR fortran/43517 (spurious end-of-file condition when namelist read follows formatted read)
2010-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/43517
* gfortran.dg/read_eof_7.f90: New test.
From-SVN: r157738
Jerry DeLisle [Fri, 26 Mar 2010 03:23:34 +0000 (03:23 +0000)]
re PR fortran/43517 (spurious end-of-file condition when namelist read follows formatted read)
2010-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/43517
* io/read.c (read_x): Return if seen EOR condition.
From-SVN: r157737
Paolo Carlini [Fri, 26 Mar 2010 02:19:10 +0000 (02:19 +0000)]
[multiple changes]
2010-03-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/unordered_map.h (operator==, operator!=): Add per N3068.
* include/bits/unordered_set.h (operator==, operator!=): Likewise.
* include/debug/unordered_map (operator==, operator!=): Likewise.
* include/debug/unordered_set: Likewise.
* include/profile/unordered_map: Likewise.
* include/profile/unordered_set: Likewise.
* testsuite/23_containers/unordered_map/operators/1.cc: New.
* testsuite/23_containers/unordered_multimap/operators/1.cc: Likewise.
* testsuite/23_containers/unordered_multimap/operators/2.cc: Likewise.
* testsuite/23_containers/unordered_set/operators/1.cc: Likewise.
* testsuite/23_containers/unordered_multiset/operators/1.cc: Likewise.
2010-03-25 John Lakos <jlakos@bloomberg.net>
Pablo Halpern <phalpern@halpernwightsoftware.com>
Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/hashtable_policy.h (struct _Equality_base): Add.
* include/bits/hashtable.h (_Hashtable<>): Derive from the latter.
From-SVN: r157736
GCC Administrator [Fri, 26 Mar 2010 00:16:47 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r157735
Alan Modra [Thu, 25 Mar 2010 23:01:41 +0000 (09:31 +1030)]
rs6000.md (cmptf_internal2): Correct comparison.
* config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
From-SVN: r157732
Iain Sandoe [Thu, 25 Mar 2010 22:25:05 +0000 (22:25 +0000)]
re PR objc/35165 (Massive failures of objc on i686-apple-darwin9)
2010-03-25 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR objc/35165
PR testsuite/43512
* objc-obj-c++-shared: New directory.
* objc-obj-c++-shared/Object1-implementation.h: New file.
* objc-obj-c++-shared/Object1.h: New file.
* objc-obj-c++-shared/Protocol1.h: New file.
* objc-obj-c++-shared/next-abi.h: New file.
* objc-obj-c++-shared/next-mapping.h: New file.
* objc/execute/next_mapping.h: Delete.
* objc.dg/special/special.exp: For all targets run the tests with
-fgnu-runtime, for darwin targets also run the tests with
-fnext-runtime.
* objc.dg/dg.exp: Ditto.
* obj-c++.dg/dg.exp: Ditto.
* objc/execute/forward-1.m: Use shared wrapper headers (Object1.h,
Protocol1.h) and next-mapping.h as required. Amend testcase to
include use of updated NeXT interface.
* objc/execute/formal_protocol-5.m: Ditto.
* objc/execute/protocol-isEqual-2.m: Ditto.
* objc/execute/protocol-isEqual-4.m: Ditto.
* objc/execute/class-11.m: Use shared wrapper headers (Object1.h,
Protocol1.h) and next-mapping.h as required.
* objc/execute/object_is_class.m: Ditto.
* objc/execute/enumeration-1.m: Ditto.
* objc/execute/class-13.m: Ditto.
* objc/execute/formal_protocol-2.m: Ditto.
* objc/execute/formal_protocol-4.m: Ditto.
* objc/execute/class-1.m: Ditto.
* objc/execute/bycopy-1.m: Ditto.
* objc/execute/formal_protocol-6.m: Ditto.
* objc/execute/bycopy-3.m: Ditto.
* objc/execute/class-3.m: Ditto.
* objc/execute/bf-11.m: Ditto.
* objc/execute/class-5.m: Ditto.
* objc/execute/bf-13.m: Ditto.
* objc/execute/class-7.m: Ditto.
* objc/execute/bf-15.m: Ditto.
* objc/execute/class-9.m: Ditto.
* objc/execute/bf-17.m: Ditto.
* objc/execute/bf-19.m: Ditto.
* objc/execute/IMP.m: Ditto.
* objc/execute/exceptions/catchall-1.m: Ditto.
* objc/execute/exceptions/trivial.m: Ditto.
* objc/execute/exceptions/finally-1.m: Ditto.
* objc/execute/exceptions/local-variables-1.m: Ditto.
* objc/execute/exceptions/foward-1.m: Ditto.
* objc/execute/bf-2.m: Ditto.
* objc/execute/string1.m: Ditto.
* objc/execute/bf-4.m: Ditto.
* objc/execute/informal_protocol.m: Ditto.
* objc/execute/string3.m: Ditto.
* objc/execute/bf-6.m: Ditto.
* objc/execute/bf-8.m: Ditto.
* objc/execute/class-tests-1.h: Ditto.
* objc/execute/protocol-isEqual-1.m: Ditto.
* objc/execute/protocol-isEqual-3.m: Ditto.
* objc/execute/_cmd.m: Ditto.
* objc/execute/function-message-1.m: Ditto.
* objc/execute/bf-20.m: Ditto.
* objc/execute/bf-common.h: Ditto.
* objc/execute/np-2.m: Ditto.
* objc/execute/class-10.m: Ditto.
* objc/execute/class-12.m: Ditto.
* objc/execute/enumeration-2.m: Ditto.
* objc/execute/class-14.m: Ditto.
* objc/execute/encode-1.m: Ditto.
* objc/execute/formal_protocol-1.m: Ditto.
* objc/execute/formal_protocol-3.m: Ditto.
* objc/execute/accessing_ivars.m: Ditto.
* objc/execute/bycopy-2.m: Ditto.
* objc/execute/class-2.m: Ditto.
* objc/execute/bf-10.m: Ditto.
* objc/execute/formal_protocol-7.m: Ditto.
* objc/execute/root_methods.m: Ditto.
* objc/execute/class-4.m: Ditto.
* objc/execute/bf-12.m: Ditto.
* objc/execute/class-6.m: Ditto.
* objc/execute/bf-14.m: Ditto.
* objc/execute/nested-func-1.m: Ditto.
* objc/execute/class-8.m: Ditto.
* objc/execute/private.m: Ditto.
* objc/execute/bf-16.m: Ditto.
* objc/execute/bf-18.m: Ditto.
* objc/execute/load-3.m: Ditto.
* objc/execute/compatibility_alias.m: Ditto.
* objc/execute/bf-1.m: Ditto.
* objc/execute/no_clash.m: Ditto.
* objc/execute/bf-3.m: Ditto.
* objc/execute/string2.m: Ditto.
* objc/execute/bf-5.m: Ditto.
* objc/execute/string4.m: Ditto.
* objc/execute/bf-7.m: Ditto.
* objc/execute/object_is_meta_class.m: Ditto.
* objc/execute/bf-9.m: Ditto.
* objc/execute/bf-21.m: Ditto.
* objc/execute/cascading-1.m: Ditto.
* objc/execute/trivial.m: Ditto.
* objc/execute/np-1.m: Ditto.
* objc/compile/trivial.m: Ditto.
* objc/execute/class_self-2.m: Include <stdlib.h>.
* objc/execute/forward-1.x: Do not XFAIL for 32bit powerpc-darwin.
* objc.dg/desig-init-1.m: Use shared wrapper headers (Object1.h,
Protocol1.h) and next-mapping.h as required. XFAIL run if NeXT
and 64bit. Use new NeXT interface as required.
* objc.dg/special/unclaimed-category-1.m: Ditto.
* objc.dg/special/unclaimed-category-1.h: Ditto.
* objc.dg/special/unclaimed-category-1a.m: Ditto.
* objc.dg/func-ptr-1.m: Ditto.
* objc.dg/stret-1.m: Ditto.
* objc.dg/encode-2.m: Ditto.
* objc.dg/category-1.m: Ditto.
* objc.dg/encode-3.m: Ditto.
* objc.dg/call-super-3.m: Ditto.
* objc.dg/method-3.m: Ditto.
* objc.dg/func-ptr-2.m: Ditto.
* objc.dg/lookup-1.m: Ditto.
* objc.dg/encode-4.m: Ditto.
* objc.dg/fix-and-continue-1.m: Ditto.
* objc.dg/proto-lossage-3.m: Ditto.
* objc.dg/method-13.m: Ditto.
* objc.dg/proto-qual-1.m: Ditto.
* objc.dg/zero-link-3.m: Ditto.
* objc.dg/bitfield-1.m: Ditto.
* objc.dg/va-meth-1.m: Ditto.
* objc.dg/super-class-3.m: Ditto.
* objc.dg/call-super-1.m: Ditto.
* objc.dg/type-size-2.m: Ditto.
* objc.dg/method-10.m: Ditto.
* objc.dg/defs.m: Ditto.
* objc.dg/const-str-3.m: Ditto.
* objc.dg/try-catch-6.m: Use shared wrapper headers (Object1.h,
Protocol1.h) and next-mapping.h as required. Use new NeXT
interface as required.
* objc.dg/super-class-4.m: Ditto.
* objc.dg/comp-types-8.m: Ditto.
* objc.dg/call-super-2.m: Ditto.
* objc.dg/objc-fast-4.m: Ditto.
* objc.dg/method-6.m: Ditto.
* objc.dg/const-str-3.m: Ditto.
* objc.dg/const-str-7.m: Ditto.
* objc.dg/method-15.m: Ditto.
* objc.dg/method-19.m: Ditto.
* objc.dg/sync-1.m: Ditto.
* objc.dg/layout-1.m: Ditto.
* objc.dg/bitfield-3.m: Ditto.
* objc.dg/try-catch-3.m: Ditto.
* objc.dg/try-catch-7.m: Ditto.
* objc.dg/comp-types-10.m: Ditto.
* objc.dg/selector-2.: Ditto.
* objc.dg/method-7.m: Ditto.
* objc.dg/typedef-alias-1.m: Ditto.
* objc.dg/proto-lossage-2.m: Ditto.
* objc.dg/comp-types-11.m: Ditto.
* objc.dg/sizeof-1.m: Ditto.
* objc.dg/method-17.m: Ditto.
* objc.dg/bitfield-5.m: Ditto.
* objc.dg/try-catch-1.m: Ditto.
* objc.dg/encode-5.m: Ditto.
* objc.dg/fix-and-continue-2.m: Ditto.
* objc.dg/method-9.m: Ditto.
* objc.dg/isa-field-1.m: Ditto.
* objc.dg/local-decl-2.m: Ditto.
* objc.dg/objc-gc-4.m: Ditto.
* objc.dg/type-stream-1.m: Skip for NeXT runtime.
* objc.dg/gnu-runtime-3.m: Ditto.
* objc.dg/encode-7.m: Ditto.
* objc.dg/encode-8.m: Ditto.
* objc.dg/selector-3.m: Ditto.
* objc.dg/gnu-runtime-1.m: Ditto.
* objc.dg/const-str-12.m: Ditto.
* objc.dg/gnu-runtime-2.m: Ditto.
* objc.dg/no-extra-load.m: Skip for gnu-runtime.
* objc.dg/selector-1.m: Ditto.
* objc.dg/stubify-2.m: Ditto.
* objc.dg/zero-link-1.m: Ditto.
* objc.dg/stret-2.m: Ditto.
* objc.dg/zero-link-2.m: Ditto.
* objc.dg/next-runtime-1.m: Ditto.
* objc.dg/symtab-1.m: Ditto.
* objc.dg/stubify-1.m: Ditto.
* objc.dg/bitfield-2.m: Ditto.
* objc.dg/try-catch-10.m: Apply to both runtimes.
* objc.dg/const-str-1.m: Ditto.
* objc.dg/image-info.m: Ditto.
* objc.dg/encode-9.m: Ditto.
* objc.dg/pragma-1.m: Apply test to all targets.
* objc.dg/const-str-4.m: Ditto.
* objc.dg/const-str-8.m: Ditto.
* objc.dg/super-class-2.m: Ditto.
* objc.dg/try-catch-5.m: Ditto.
* objc.dg/const-str-10.m: Use shared wrapper headers (Object1.h,
Protocol1.h) and next-mapping.h as required. Use new NeXT
interface as required. Skip for gnu-runtime. Test for .quad
at m64.
* objc.dg/const-str-11.m: Ditto.
* objc.dg/const-str-9.m: Ditto.
* objc.dg/method-4.m: Skip for 64Bit NeXT.
* objc.dg/encode-1.m: Remove redundant -lobjc.
* objc.dg/try-catch-9.m: Tidy space.
* obj-c++.dg/method-19.mm: Use shared wrapper headers (Object1.h,
Protocol1.h) and next-mapping.h as required. XFAIL run if NeXT
and 64bit. Use new NeXT interface as required.
* obj-c++.dg/template-4.mm: Ditto.
* obj-c++.dg/defs.mm: Ditto.
* obj-c++.dg/basic.mm: Ditto.
* obj-c++.dg/encode-4.mm: Ditto.
* obj-c++.dg/method-17.mm: Ditto.
* obj-c++.dg/proto-lossage-3.mm: Ditto.
* obj-c++.dg/cxx-class-1.mm: Ditto.
* obj-c++.dg/method-10.mm: Ditto.
* obj-c++.dg/va-meth-1.mm: Ditto.
* obj-c++.dg/encode-5.mm: Ditto.
* obj-c++.dg/lookup-2.mm: Ditto.
* obj-c++.dg/template-3.mm: Ditto.
* obj-c++.dg/proto-qual-1.mm: Ditto.
* obj-c++.dg/qual-types-1.m: Ditto.
* obj-c++.dg/cxx-scope-1.mm: Ditto.
* obj-c++.dg/template-1.mm: Ditto.
* obj-c++.dg/encode-6.mm: Ditto.
* obj-c++.dg/bitfield-2.mm: Use shared wrapper headers (Object1.h,
Protocol1.h) and next-mapping.h as required. Use new NeXT
interface as required.
* obj-c++.dg/except-1.mm: Ditto.
* obj-c++.dg/const-str-7.mm: Ditto.
* obj-c++.dg/ivar-list-semi.mm: Ditto.
* obj-c++.dg/cxx-scope-2.mm: Ditto.
* obj-c++.dg/selector-2.mm: Ditto.
* obj-c++.dg/isa-field-1.mm: Ditto.
* obj-c++.dg/try-catch-1.mm: Ditto.
* obj-c++.dg/local-decl-1.mm: Ditto.
* obj-c++.dg/try-catch-9.mm: Ditto.
* obj-c++.dg/no-extra-load.mm: Ditto.
* obj-c++.dg/selector-5.mm: Ditto.
* obj-c++.dg/method-12.mm: Ditto.
* obj-c++.dg/try-catch-11.mm: Ditto.
* obj-c++.dg/comp-types-11.mm: Ditto.
* obj-c++.dg/bitfield-3.mm: Ditto.
* obj-c++.dg/method-6.mm: Ditto.
* obj-c++.dg/super-class-2.mm: Ditto.
* obj-c++.dg/method-21.mm: Ditto.
* obj-c++.dg/const-str-8.mm: Ditto.
* obj-c++.dg/try-catch-7.mm: Ditto.
* obj-c++.dg/method-15.mm: Ditto.
* obj-c++.dg/layout-1.mm: Ditto.
* obj-c++.dg/cxx-ivars-1.mm: Ditto.
* obj-c++.dg/const-str-3.mm: Ditto.
* obj-c++.dg/try-catch-2.mm: Ditto.
* obj-c++.dg/objc-gc-3.mm: Ditto.
* obj-c++.dg/fix-and-continue-2.mm: Ditto.
* obj-c++.dg/bitfield-1.mm: Ditto.
* obj-c++.dg/selector-6.mm: Ditto.
* obj-c++.dg/method-13.mm: Ditto.
* obj-c++.dg/comp-types-12.mm: Ditto.
* obj-c++.dg/bitfield-4.mm: Ditto.
* obj-c++.dg/try-catch-8.mm: Ditto.
* obj-c++.dg/method-2.mm: Ditto.
* obj-c++.dg/cxx-ivars-2.mm: Ditto.
* obj-c++.dg/typedef-alias-1.mm: Ditto.
* obj-c++.dg/const-str-4.mm: Ditto.
* obj-c++.dg/proto-lossage-2.mm: Ditto.
* obj-c++.dg/try-catch-3.mm: Ditto.
* obj-c++.dg/comp-types-9.mm: Ditto.
* obj-c++.dg/gnu-runtime-2.mm: Skip if NeXT runtime.
* obj-c++.dg/gnu-runtime-3.mm: Ditto.
* obj-c++.dg/gnu-runtime-1.mm: Ditto.
* objc.dg/zero-link-2.m: Skip if gnu runtime. Use shared wrapper
headers (Object1.h, Protocol1.h) and next-mapping.h as required.
Use new NeXT interface as required.
* obj-c++.dg/const-str-10.mm: Ditto.
* obj-c++.dg/const-str-11.mm: Ditto.
* obj-c++.dg/const-str-9.mm: Ditto.
* obj-c++.dg/method-11.mm: Ditto.
* obj-c++.dg/cxx-ivars-3.mm: Skip if gnu runtime. Use shared wrapper
headers (Object1.h, Protocol1.h) and next-mapping.h as required.
Use new NeXT interface as required. XFAIL run if NeXT and 64bit.
* obj-c++.dg/encode-8.mm: Remove redundant -lobjc.
* obj-c++.dg/const-str-1.mm: Run for NeXT as well as gnu.
From-SVN: r157731
Dodji Seketeli [Thu, 25 Mar 2010 22:08:33 +0000 (22:08 +0000)]
Fix candidate for PR c++/43206
gcc/cp/ChangeLog:
PR c++/43206
* cp-tree.h (get_template_parms_at_level): Declare ...
* pt.c (get_template_parms_at_level): ... new function.
* typeck.c (get_template_parms_of_dependent_type): If a template
type parm's DECL_CONTEXT isn't yet set, get its siblings from
current_template_parms. Use get_template_parms_at_level. Remove
useless test.
(incompatible_dependent_types_p): If we get empty parms from just one
of the template type parms we are comparing then the template parms are
incompatible.
gcc/testsuite/ChangeLog:
PR c++/43206
* g++.dg/template/typedef30.C: New test case.
From-SVN: r157730
Rainer Orth [Thu, 25 Mar 2010 18:42:05 +0000 (18:42 +0000)]
tm.texi (Sections): Document TLS_COMMON_ASM_OP, TLS_SECTION_ASM_FLAG.
* doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
TLS_SECTION_ASM_FLAG.
From-SVN: r157728
Jakub Jelinek [Thu, 25 Mar 2010 12:19:32 +0000 (13:19 +0100)]
re PR bootstrap/43511 (Configure error at stage 1 in i386/libgomp)
PR bootstrap/43511
* config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
Clear first_function_block_is_cold.
From-SVN: r157723
Jakub Jelinek [Thu, 25 Mar 2010 08:16:18 +0000 (09:16 +0100)]
re PR c/43385 (glibc regex testsuite failures)
PR c/43385
* gimplify.c (gimple_boolify): Only recurse on __builtin_expect
argument if the argument is truth_value_p.
* gcc.c-torture/execute/pr43385.c: New test.
From-SVN: r157721
GCC Administrator [Thu, 25 Mar 2010 00:16:46 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r157720
Joseph Myers [Wed, 24 Mar 2010 23:20:15 +0000 (23:20 +0000)]
inclhack.def (glibc_strncpy): New fix.
fixincludes:
* inclhack.def (glibc_strncpy): New fix.
* fixincl.x: Regenerate.
* tests/base/bits/string2.h: Update.
gcc/testsuite:
* gcc.dg/strncpy-fix-1.c: New test.
From-SVN: r157717
Iain Sandoe [Wed, 24 Mar 2010 22:52:47 +0000 (22:52 +0000)]
re PR testsuite/41609 (Torture tests do not check "trivial.{m,mm}" for each run case.)
2010-03-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR testsuite/41609
* lib/objc-torture.exp (objc-set-runtime-options): New.
* objc/execute/execute.exp: Check runtime options on each pass.
* objc/execute/exceptions/exceptions.exp: Ditto.
* objc/compile/compile.exp: Ditto.
From-SVN: r157716
Iain Sandoe [Wed, 24 Mar 2010 22:51:08 +0000 (22:51 +0000)]
re PR testsuite/42348 (Syntax of dg-skip-if in two obj-c++ tests)
2010-03-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR testsuite/42348
* lib/target-supports.exp: Add support for ObjC/ObjC++ tools in
standard tests.
(check_effective_target_objc2): New proc.
(check_effective_target_next_runtime): New proc.
* lib/objc.exp: Determine which runtime is in force and support it.
* lib/obj-c++.exp: Ditto.
From-SVN: r157715
Michael Meissner [Wed, 24 Mar 2010 22:14:08 +0000 (22:14 +0000)]
Update copyright year
From-SVN: r157713
Michael Meissner [Wed, 24 Mar 2010 20:59:24 +0000 (20:59 +0000)]
Fix 43484, swap registers if one is R0 for multiword moves
From-SVN: r157709
Jakub Jelinek [Wed, 24 Mar 2010 20:44:48 +0000 (21:44 +0100)]
re PR debug/43293 (Invalid unwind info for i?86 -fpic)
PR debug/43293
* target.h (struct gcc_target): Add code_end hook.
* target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
if not yet defined.
(TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
* toplev.c (compile_file): Call targetm.asm_out.code_end
hook before unwind info/debug info output.
* config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
* config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
(TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
* config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
(TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
* config/i386/i386.c (ix86_file_end): Renamed to...
(ix86_code_end): ... this. Make static. Don't call
file_end_indicate_exec_stack. Emit unwind info using
final_start_function/final_end_function.
(darwin_x86_file_end): Remove.
(TARGET_ASM_CODE_END): Define.
* config/i386/i386.h (TARGET_ASM_FILE_END,
NEED_INDICATE_EXEC_STACK): Don't define.
* config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
(TARGET_ASM_FILE_END): Define to darwin_file_end.
* config/i386/i386-protos.h (ix86_file_end): Remove prototype.
* doc/tm.texi (TARGET_ASM_CODE_END): Document.
From-SVN: r157707
Jakub Jelinek [Wed, 24 Mar 2010 20:31:09 +0000 (21:31 +0100)]
re PR target/43498 (No unwind info for thunks even with -fasynchronous-unwind-tables)
PR target/43498
* config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
at the beginning and final_end_function at the end.
* config/s390/s390.c (s390_output_mi_thunk): Likewise.
From-SVN: r157706
Rainer Orth [Wed, 24 Mar 2010 18:49:49 +0000 (18:49 +0000)]
re PR target/38118 (gcc emits non-TLS data as TLS on Solaris 11/SPARC)
* configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
and Sun as TLS syntax.
(TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
* configure: Regenerate.
* config.in: Regenerate.
* varasm.c (TLS_SECTION_ASM_FLAG): Define default.
(default_elf_asm_named_section): Use it.
* config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
(i386_output_dwarf_dtprel): Likewise.
(output_addr_const_extra): Likewise.
(output_pic_addr_const): Lowercase @GOTTPOFF.
(output_addr_const_extra): Likewise.
(output_pic_addr_const): Lowercase @GOTNTPOFF.
(output_addr_const_extra): Likewise.
(output_pic_addr_const): Lowercase @INDNTPOFF.
(output_addr_const_extra): Likewise.
(output_pic_addr_const): Lowercase @NTPOFF.
(output_addr_const_extra): Likewise.
(output_pic_addr_const): Lowercase @TPOFF.
(output_addr_const_extra): Likewise.
* config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase
@TLSGD.
(*tls_global_dynamic_64): Likewise.
(*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
(*tls_local_dynamic_base_64): Lowercase @TLSLD.
* defaults.h (TLS_COMMON_ASM_OP): Provide default.
(ASM_OUTPUT_TLS_COMMON): Use it.
* config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
PR target/38118
* config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to
tm_file.
* config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
* config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
* config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
* config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
From-SVN: r157705
Rainer Orth [Wed, 24 Mar 2010 18:31:07 +0000 (18:31 +0000)]
i386.c (override_options): Don't accept -mtls-dialect=sun any longer.
* config/i386/i386.c (override_options): Don't accept
-mtls-dialect=sun any longer.
* config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
* config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
(*tls_local_dynamic_base_32_sun): Likewise.
* config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
From-SVN: r157704
Jakub Jelinek [Wed, 24 Mar 2010 16:51:02 +0000 (17:51 +0100)]
re PR debug/43508 (ICE when compiling SSE code with -ggdb)
PR debug/43508
* dwarf2out.c (mem_loc_descriptor): Don't ICE on
VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
From-SVN: r157703
Jakub Jelinek [Wed, 24 Mar 2010 16:50:11 +0000 (17:50 +0100)]
re PR debug/43479 (Missing DW_TAG_lexical_block+DW_TAG_variable)
PR debug/43479
* ira.c (adjust_cleared_regs): New function.
(update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
From-SVN: r157702
Jason Merrill [Wed, 24 Mar 2010 16:49:06 +0000 (12:49 -0400)]
re PR c++/43502 ([C++0x] uninitialised read in grokfndecl() with lambda functions cause -fcompare-debug failures)
PR c++/43502
* parser.c (make_declarator): Initialize id_loc.
(cp_parser_lambda_declarator_opt): And set it.
From-SVN: r157701
Martin Jambor [Wed, 24 Mar 2010 16:26:52 +0000 (17:26 +0100)]
ipa-1.c: Delete trailing spaces, put the call to f into a loop.
2010-03-24 Martin Jambor <mjambor@suse.cz>
* gcc.dg/ipa/ipa-1.c: Delete trailing spaces, put the call to f into
a loop.
* gcc.dg/ipa/ipa-2.c: Likewise.
* gcc.dg/ipa/ipa-3.c: Likewise.
* gcc.dg/ipa/ipa-4.c: Likewise.
* gcc.dg/ipa/ipa-5.c: Likewise.
* gcc.dg/ipa/ipa-7.c: Likewise.
* gcc.dg/ipa/ipa-6.c: Delete trailing spaces, put the call to foo into
a loop.
* gcc.dg/ipa/ipacost-2.c: Delete trailing spaces, put the call to
i_can_not_be_propagated_fully2 into a loop.
* gcc.dg/ipa/ipa-8.c: New test.
* g++.dg/ipa/iinline-1.C: Put the call to docalling into a loop.
From-SVN: r157698
Mike Stump [Wed, 24 Mar 2010 16:07:51 +0000 (16:07 +0000)]
re PR java/43504 (many libjava testsuite regressions on x86_64-apple-darwin10)
PR java/43504
Revert fix for PR target/33120.
From-SVN: r157697
Jakub Jelinek [Wed, 24 Mar 2010 13:41:30 +0000 (14:41 +0100)]
re PR debug/19192 (Current development gcc generates inaccurate line info for example code)
PR debug/19192
PR debug/43479
* cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
from gimple_block.
* expr.c (expand_expr_real): Restore previous
curr_insn_source_location and curr_insn_block after
expand_expr_real_1 call.
(expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
instead of expand_expr_real_1.
* gcc.dg/guality/pr43479.c: New test.
* gcc.dg/debug/dwarf2/inline2.c (third): Make a a global var
and add volatile keyword.
From-SVN: r157693
Mike Stump [Wed, 24 Mar 2010 03:04:16 +0000 (03:04 +0000)]
* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability.
From-SVN: r157690
Jason Merrill [Wed, 24 Mar 2010 02:49:55 +0000 (22:49 -0400)]
* g++.dg/ext/altivec-17.C: Adjust error message.
From-SVN: r157689
GCC Administrator [Wed, 24 Mar 2010 00:16:57 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r157688
Jason Merrill [Tue, 23 Mar 2010 22:29:53 +0000 (18:29 -0400)]
Make lambda conversion op and op() non-static.
* semantics.c (maybe_add_lambda_conv_op): Make non-static.
Also add the thunk function returned by the conversion op.
Mark the conversion deleted if the op() is variadic.
* decl2.c (mark_used): Give helpful message about deleted conversion.
* parser.c (cp_parser_lambda_declarator_opt): Don't make op() static.
* semantics.c (finish_this_expr): Adjust.
* mangle.c (write_closure_type_name): Adjust.
* decl.c (grok_op_properties): Don't allow it.
* call.c (build_user_type_conversion_1): No static conversion ops.
(build_op_call): Or op().
* decl2.c (change_return_type): Fix 'this' quals.
From-SVN: r157681
Mike Stump [Tue, 23 Mar 2010 20:02:57 +0000 (20:02 +0000)]
re PR target/33120 (Data not put in BSS section on Mac OS)
PR target/33120
* config/darwin.h (ASM_OUTPUT_ALIGNED_BSS): Add.
* config/darwin.c (darwin_output_aligned_bss): Add.
* config/darwin-protos.h: Add darwin_output_aligned_bss.
testsuite:
* g++.dg/ext/instantiate2.C: Update for .zerofill as it doesn't
follow the usual conventions for symbol definitions.
* gcc.target/i386/darwin-zerofill.c: Add.
From-SVN: r157677
Vladimir Makarov [Tue, 23 Mar 2010 19:18:42 +0000 (19:18 +0000)]
re PR rtl-optimization/43413 (Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used)
2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/43413
* ira-color.c (setup_allocno_available_regs_num): Count prohibited
hard regs too.
From-SVN: r157676
Joseph Myers [Tue, 23 Mar 2010 16:04:30 +0000 (16:04 +0000)]
configure.ac (tic6x-*-*): New case.
* configure.ac (tic6x-*-*): New case.
* configure: Regenerate.
From-SVN: r157675