Iain Sandoe
1ef3b58e57
libgomp.exp: Reorder lib loads into dependency order.
...
2013-06-20 Iain Sandoe <iain@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
* testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
* testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
* testsuite/libgomp.fortran/fortran.exp: Likewise.
* testsuite/libgomp.graphite/graphite.exp: Likewise.
* testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
Use dg-runtest rather than gfortran-dg-runtest.
Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r200253
2013-06-20 16:48:26 +00:00
Iain Sandoe
6c84d5762f
libitm.exp: Reorder lib loads into dependency order.
...
2013-06-20 Iain Sandoe <iain@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
* testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
* testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
* testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r200252
2013-06-20 16:44:23 +00:00
Torvald Riegel
480c696bb0
libitm: Handle HTM fastpath in status query functions.
...
* query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
(_ITM_getTransactionId): Same.
* config/x86/target.h (htm_transaction_active): New.
From-SVN: r200251
2013-06-20 16:40:54 +00:00
Torvald Riegel
b1db457bf9
libitm: Fix handling of reentrancy in the HTM fastpath.
...
PR libitm/57643
* beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
the HTM fastpath.
From-SVN: r200250
2013-06-20 16:40:38 +00:00
Eric Botcazou
dcef09b5d1
gcc: Delete.
...
* ada/acats/tests/gcc: Delete.
* gnat.dg/style: Likewise.
From-SVN: r200249
2013-06-20 16:31:22 +00:00
Jeff Law
1f4d123a79
* gcc.dg/tree-ssa/forwprop-28.c: Add missing dg-final.
...
From-SVN: r200248
2013-06-20 09:52:57 -06:00
Jan Hubicka
7a89ad0008
lto-cgraph.c (input_symtab): Do not set cgraph state.
...
* lto-cgraph.c (input_symtab): Do not set cgraph state.
* lto.c (read_cgraph_and_symbols): Set cgraph state.
From-SVN: r200247
2013-06-20 14:23:15 +00:00
Matthias Klose
cda7fd66fd
pkg.m4 (PKG_CHECK_MODULES): Use AC_PATH_TOOL to check for pkg-config.
...
2013-06-20 Matthias Klose <doko@ubuntu.com>
* pkg.m4 (PKG_CHECK_MODULES): Use AC_PATH_TOOL to check for pkg-config.
* classpath/m4/pkg.m4 (PKG_CHECK_MODULES): Likewise.
* configure: Regenerate.
* classpath/configure: Regenerate.
From-SVN: r200244
2013-06-20 13:16:57 +00:00
Matthias Klose
a72a72e66d
libtool-version: Bump soversion.
...
2013-06-20 Matthias Klose <doko@ubuntu.com>
* libtool-version: Bump soversion.
From-SVN: r200242
2013-06-20 13:02:05 +00:00
Joern Rennecke
bd280792f0
re PR rtl-optimization/57425 (RTL alias analysis unprepared to handle stack slot sharing)
...
PR rtl-optimization/57425
PR rtl-optimization/57569
* alias.c (write_dependence_p): Remove parameters mem_mode and
canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
Changed all callers.
(canon_anti_dependence): Get comments and semantics in sync.
Add parameter mem_canonicalized. Changed all callers.
* rtl.h (canon_anti_dependence): Update prototype.
From-SVN: r200241
2013-06-20 13:43:29 +01:00
Richard Biener
d16e9a99f9
data-streamer-in.c (streamer_read_uhwi): Optimize single byte case...
...
2013-06-20 Richard Biener <rguenther@suse.de>
* data-streamer-in.c (streamer_read_uhwi): Optimize single
byte case, inline streamer_read_uchar and defer section
overrun check.
From-SVN: r200239
2013-06-20 11:33:43 +00:00
Tobias Burnus
937424c182
re PR fortran/57633 (I/O: Problem with formatted read: reading CR-LF files (\r\n))
...
2013-06-20 Tobias Burnus <burnus@net-b.de>
PR fortran/57633
* io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
2013-06-20 Tobias Burnus <burnus@net-b.de>
PR fortran/57633
* gfortran.dg/list_read_11.f90: New.
From-SVN: r200238
2013-06-20 12:55:03 +02:00
Richard Biener
c3a9b91b4a
re PR tree-optimization/57584 (ice: SSA corruption: Unable to coalesce ssa_names)
...
2013-06-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/57584
* tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
SSA names into the expanded expression that take part in
abnormal coalescing.
* gcc.dg/torture/pr57584.c: New testcase.
From-SVN: r200237
2013-06-20 10:22:33 +00:00
Tobias Burnus
dd28cdaabf
resolve.c (get_temp_from_expr): Don't set FL_VARIABLE twice.
...
2013-06-20 Tobias Burnus <burnus@net-b.de>
* resolve.c (get_temp_from_expr): Don't set FL_VARIABLE twice.
From-SVN: r200234
2013-06-20 11:37:15 +02:00
Jan Hubicka
76764e7ba2
Fix duplicated lines.
...
From-SVN: r200233
2013-06-20 08:57:14 +00:00
Sharad Singhai
fc8a650e33
gcov.c (print_usage): Handle new option.
...
2013-06-19 <singhai@google.com>
* gcov.c (print_usage): Handle new option.
(process_args): Ditto.
(get_gcov_intermediate_filename): New function.
(output_intermediate_file): New function.
(output_gcov_file): New function
(generate_results): Handle new option.
(release_function): Relase demangled name.
(read_graph_file): Handle demangled name.
(output_lines): Ditto.
* doc/gcov.texi: Document gcov intermediate format.
testsuite/ChangeLog:
* g++.dg/gcov/gcov-8.C: New testcase.
* lib/gcov.exp: Handle intermediate format.
From-SVN: r200232
2013-06-20 05:20:09 +00:00
GCC Administrator
39c31476d3
Daily bump.
...
From-SVN: r200231
2013-06-20 00:16:33 +00:00
Vladimir Makarov
11f5b71a76
re PR bootstrap/57604 (LRA related bootstrap comparison failure on s390x --with-arch=zEC12)
...
2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/57604
* lra.c (emit_add3_insn, emit_add2_insn): New functions.
(lra_emit_add): Use the functions. Add comment about Y as an
address segment.
From-SVN: r200227
2013-06-19 23:57:22 +00:00
David Edelsohn
e1f9340b00
re PR driver/57652 (collect2 does not clean up temporary files)
...
PR driver/57652
* collect2.c (collect_atexit): New.
(collect_exit): Delete.
(main): Register collect_atexit with atexit.
(collect_wait): Change collect_exit to exit.
(do_wait): Same.
* collect2.h (collect_exit): Delete.
* tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
From-SVN: r200226
2013-06-19 19:51:05 -04:00
Wei Mi
e3f9e0acec
re PR rtl-optimization/57518 (Redundant insn generated in LRA)
...
2013-06-19 Wei Mi <wmi@google.com>
PR rtl-optimization/57518
* ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
if regno is used in paradoxical subreg.
(update_equiv_regs): Check pdx_subregs[regno] before
set a reg to be equivalent with a mem.
From-SVN: r200224
2013-06-19 21:57:42 +00:00
Ian Lance Taylor
8259d36468
compiler: reject incorrect unsafe.Offsetof expressions.
...
The x.Field argument to Offsetof may not involve hidden
dereferences of embedded pointer fields.
Also correct uninitialized implicit_ field.
From-SVN: r200221
2013-06-19 21:24:58 +00:00
Matthias Klose
a09f1a766b
re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin)
...
2013-06-19 Matthias Klose <doko@ubuntu.com>
PR driver/57651
* file-find.h (find_a_file): Add a mode parameter.
* file-find.c (find_a_file): Likewise.
* gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
with X_OK for the executables.
* collect2.c (main): Call find_a_file with X_OK.
From-SVN: r200219
2013-06-19 21:01:06 +00:00
Steve Ellcey
7d18b0ad76
re PR target/56942 (MIPS GCC will not build with -mips16 mode because libgcc fails to build)
...
2013-06-19 Steve Ellcey <sellcey@mips.com>
PR target/56942
* config/mips/mips.md (casesi_internal_mips16_<mode>):
Use NEXT_INSN instead of next_real_insn.
From-SVN: r200216
2013-06-19 20:00:56 +00:00
Igor Zamyatin
0ecdbac6df
loop-19.c: Add -fno-common.
...
gcc/testsuite/ChangeLog
* gcc.dg/tree-ssa/loop-19.c: Add -fno-common.
From-SVN: r200213
2013-06-19 19:24:25 +00:00
Jan Hubicka
6a6dac5293
cgraph.h (const_value_known_p): Replace by ...
...
* cgraph.h (const_value_known_p): Replace by ...
(ctor_for_folding): .. this one.
* cgraphunit.c (process_function_and_variable_attributes): Use it.
* lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
* expr.c (expand_expr_real_1): Likewise.
(string_constant): Likewise.
* tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
* ipa.c (process_references): Likewise.
(symtab_remove_unreachable_nodes): Likewise.
* ipa-inline-analysis.c (param_change_prob): Likewise.
* gimple-fold.c (canonicalize_constructor_val): Likewise.
(get_base_constructor): Likwise.
* varpool.c (varpool_remove_node): Likewise.
(varpool_remove_initializer): LIkewise.
(dump_varpool_node): LIkwise.
(const_value_known_p): Rewrite to ...
(ctor_for_folding): ... this one.
* lto-partition.c (add_references_to_partition): Use
ctor_for_folding.
* gcc.dg/tree-ssa/attr-alias-2.c: New testcase.
From-SVN: r200211
2013-06-19 18:06:12 +00:00
Jakub Jelinek
216c12abf6
re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin)
...
PR driver/57651
* gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
PERSONALITY in $PATH derived prefixes.
From-SVN: r200209
2013-06-19 19:37:36 +02:00
Jeff Law
ecdbf30675
tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo in comment.
...
* tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
in comment.
From-SVN: r200208
2013-06-19 11:09:10 -06:00
Balaji V. Iyer
a0f88ffd21
Replace array size in Array Notation testcode with #define.
...
2013-06-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
* c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Replaced all the
hard-coded values of array sizes with a #define.
* c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Likewise.
* c-c++-common/cilk-plus/AN/builtin_func_double2.c: Likewise.
* c-c++-common/cilk-plus/AN/gather_scatter.c: Likewise.
* c-c++-common/cilk-plus/AN/pr57577.c: Likewise.
* c-c++-common/cilk-plus/AN/sec_implicit_ex.c: Likewise.
From-SVN: r200205
2013-06-19 09:29:37 -07:00
Yufeng Zhang
47035d1fcd
builtin-apply-2.c: set STACK_ARGUMENTS_SIZE with 0 if __aarch64__ is defined.
...
gcc/testsuite/
* gcc.dg/torture/stackalign/builtin-apply-2.c: set
STACK_ARGUMENTS_SIZE with 0 if __aarch64__ is defined.
From-SVN: r200204
2013-06-19 15:52:19 +00:00
Jeff Law
d53e2f9954
tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
...
* tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
(simplify_bitwise_binary): Use it to simpify certain binary ops on
booleans.
* gcc.dg/tree-ssa/forwprop-28.c: New test.
From-SVN: r200201
2013-06-19 08:06:53 -06:00
Sofiane Naci
89e7fc04af
vfp.md: Move VFP instruction classification documentation to ...
...
* config/arm/vfp.md: Move VFP instruction classification documentation
to ...
* config/arm/arm.md: ... here. Update instruction classification
documentation.
From-SVN: r200199
2013-06-19 13:05:14 +00:00
Richard Earnshaw
5e7f6aaaaf
arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
...
(peepholes for eq(reg, not-0)): Ensure condition register is dead after
pattern. Use more efficient sequences on ARMv5 and Thumb2.
From-SVN: r200197
2013-06-19 12:25:26 +00:00
Steven Bosscher
5fdc1e5d8a
re PR bootstrap/57609 (S/390 ESA mode bootstrap failure since r197266)
...
2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
PR target/57609
* config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
with NEXT_INSN. Use tablejump_p to check for jump table data
insns.
From-SVN: r200196
2013-06-19 12:06:30 +00:00
Paolo Carlini
e952afba8f
re PR c++/56544 (documentation for __cplusplus is out of date)
...
2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56544
* doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
that now in C++ the value is correct per the C++ standards.
From-SVN: r200193
2013-06-19 09:03:07 +00:00
Manuel López-Ibáñez
6be8258d83
re PR c++/57638 (warning container: 'integer_cst’ not supported by dump_type#<type error>)
...
/cp
2013-06-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c++/57638
* pt.c (unify, [TEMPLATE_PARM_INDEX]): Pass to unify_type_mismatch
TREE_TYPE (arg), not arg itself.
/testsuite
2013-06-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c++/57638
* g++.dg/template/error53.C: New.
From-SVN: r200192
2013-06-19 08:49:59 +00:00
Sebastian Huber
4033c667ce
re PR target/55033 (PowerPC section type conflict error)
...
gcc/testsuite
2013-06-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR target/55033
* gcc.target/powerpc/pr55033.c: Fix options.
From-SVN: r200191
2013-06-19 08:35:10 +00:00
Richard Biener
3fd0303a57
expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check for global context.
...
2013-06-19 Richard Biener <rguenther@suse.de>
* expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
for global context.
From-SVN: r200190
2013-06-19 08:15:31 +00:00
Uros Bizjak
22fc7d3d46
* ChangeLog: Fix whitespace.
...
From-SVN: r200189
2013-06-19 08:52:56 +02:00
Andreas Krebbel
b04e4b081b
revert: re PR bootstrap/57609 (S/390 ESA mode bootstrap failure since r197266)
...
2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Revert:
2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
PR target/57609
* config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
with next_active_insn.
From-SVN: r200188
2013-06-19 06:40:05 +00:00
Uros Bizjak
e8e694715e
fpu-387.h: Use __asm__ and __volatile__ consistently.
...
* config/fpu-387.h: Use __asm__ and __volatile__ consistently.
(get_fpu_except_flags): Initialize result.
From-SVN: r200187
2013-06-19 08:38:16 +02:00
GCC Administrator
2fceae711a
Daily bump.
...
From-SVN: r200185
2013-06-19 00:16:31 +00:00
Ian Lance Taylor
fdbc38a6e8
compiler, runtime: Use function descriptors.
...
This changes the representation of a Go value of function type
from being a pointer to function code (like a C function
pointer) to being a pointer to a struct. The first field of
the struct points to the function code. The remaining fields,
if any, are the addresses of variables referenced in enclosing
functions. For each call to a function, the address of the
function descriptor is passed as the last argument.
This lets us avoid generating trampolines, and removes the use
of writable/executable sections of the heap.
From-SVN: r200181
2013-06-18 23:49:49 +00:00
Jonathan Wakely
25e00ab674
re PR libstdc++/57641 (std::timed_mutex.try_lock_until() is broken)
...
PR libstdc++/57641
* include/std/mutex (timed_mutex, recursive_timed_mutex): Move common
functionality to new __timed_mutex_impl mixin. Overload try_lock_until
to handle conversion between different clocks. Replace constrained
__try_lock_for_impl overloads with conditional increment.
* include/std/shared_mutex (shared_mutex::_Mutex): Use the new mixin.
* testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: New.
From-SVN: r200180
2013-06-18 23:55:02 +01:00
Sriraman Tallam
bef8491a65
Emit errors when always_inline functions cannot be inlined in -O0 mode.
...
* tree-inline.c (expand_call_inline): Allow the error to be flagged
in early inline pass.
* ipa-inline.c (inline_always_inline_functions): Pretend always_inline
functions are inlined during failures to flag an error.
* gcc.target/i386/inline_error.c: New test.
* gcc.c-torture/compile/pr44043.c: Fix test to expect an error.
* gcc.c-torture/compile/pr43791.c: Fix test to expect an error.
From-SVN: r200179
2013-06-18 22:45:03 +00:00
Paolo Carlini
3dd55b2f9f
re PR c++/53211 (range-based 'for' expression of type 'const int []' has incomplete type)
...
/cp
2013-06-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53211
* pt.c (type_dependent_expression_p): Handle an array of unknown
bound depending on a variadic parameter.
* parser.c (cp_parser_range_for): Revert PR56794 changes.
/testsuite
2013-06-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53211
* g++.dg/cpp0x/decltype55.C: New.
From-SVN: r200178
2013-06-18 22:20:10 +00:00
Joern Rennecke
299a5f6a09
Correct ChangeLog:
...
PR rtl-optimization/57425
PR rtl-optimization/57569
- * alias.c (write_dependence_p): Add new parameters mem_size,
+ * alias.c (write_dependence_p): Add new parameters mem_mode,
From-SVN: r200177
2013-06-18 21:27:09 +01:00
H.J. Lu
c21b257dc6
Fix a typo in comments in config/i386/i386.c
...
* config/i386/i386.c (initial_ix86_tune_features): Fix a typo
in comments.
From-SVN: r200174
2013-06-18 09:57:06 -07:00
Julian Brown
33255ae30b
arm.c (neon_vector_mem_operand): Add strict argument.
...
* config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
Permit virtual register pre-reload if !strict.
(coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
change.
* config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
prototype.
* config/arm/neon.md (movmisalign<mode>): Use
neon_perm_struct_or_reg_operand instead of
neon_struct_or_register_operand.
(*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
neon_permissive_struct_operand instead of neon_struct_operand.
* config/arm/constraints.md (Un, Um, Us): Adjust calls to
neon_vector_mem_operand.
* config/arm/predicates.md (neon_struct_operand): Adjust call to
neon_vector_mem_operand.
(neon_permissive_struct_operand): New.
(neon_struct_or_register_operand): Rename to...
(neon_perm_struct_or_reg_operand): This. Adjust call to
neon_vector_mem_operand.
From-SVN: r200172
2013-06-18 15:19:55 +00:00
Richard Biener
d579fcda92
Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
...
2013-06-18 Richard Biener <rguenther@suse.de>
* Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
* lto-streamer.h: Include pointer-set.h.
(struct lto_decl_slot): Remove.
(struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
Remove next_index entry.
(lto_hash_decl_slot_node, lto_eq_decl_slot_node,
lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
(lto_init_tree_ref_encoder): Adjust.
(lto_destroy_tree_ref_encoder): Likewise.
* lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
(lto_output_decl_index): Adjust.
(lto_new_out_decl_state): Likewise.
(lto_record_function_out_decl_state): Likewise.
* lto-streamer-out.c (copy_function): Likewise.
From-SVN: r200171
2013-06-18 14:39:57 +00:00
Richard Biener
31ee20ba67
Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
...
2013-06-18 Richard Biener <rguenther@suse.de>
* Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
* cgraphunit.c: Include cfgloop.h.
(init_lowered_empty_function): Initialize the loop tree.
(assemble_thunk): Insert new BBs into loops.
From-SVN: r200169
2013-06-18 14:14:00 +00:00