aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2013-06-21compiler: do not skip compilation of blank-named functions.Ian Lance Taylor3-3/+22
Fixes issue 22. From-SVN: r200316
2013-06-21Fix HLE example in manualAndi Kleen2-2/+9
The HLE example in the manual only commits when using bool for the flag, because __atomic_clear only writes bool, and HLE requires the acquire and release to match. So when the example is copied with e.g. an int variable it does not commit and causes slower than expected performance. Some people are running into problems because of this. Switch it over to use __atomic_store. Also fix a minor typo nearby. gcc/: 2013-06-21 Andi Kleen <ak@linux.intel.com> * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo. From-SVN: r200304
2013-06-21Improve __atomic_clear/test_and_set documentationAndi Kleen2-0/+11
Document that __atomic_clear and __atomic_test_and_set should only be used with bool. gcc/: 2013-06-21 Andi Kleen <ak@linux.intel.com> * doc/extend.texi: Document that __atomic_clear and __atomic_test_and_set should only be used with bool. From-SVN: r200303
2013-06-21gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use types_same_for_odr.Jan Hubicka4-3/+136
* gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use types_same_for_odr. * tree.c (decls_same_for_odr): New function. (same_for_edr): New function. (types_same_for_odr): New function. (get_binfo_at_offset): Use it. * tree.h (types_same_for_odr): Declare. From-SVN: r200288
2013-06-21compiler: Really only make descriptors when needed.Ian Lance Taylor2-21/+0
From-SVN: r200280
2013-06-20re PR c++/55149 (capturing VLA in lambda)Jason Merrill7-22/+83
PR c++/55149 * decl.c (compute_array_index_type): Don't reject VLAs in SFINAE context if we're in C++14 mode. * tree.c (array_of_runtime_bound_p): Return true for a dependent bound that is not potentually constant. * cp-tree.h (DECL_VLA_CAPTURE_P, REFERENCE_VLA_OK): New. * pt.c (tsubst) [REFERENCE_TYPE]: Check REFERENCE_VLA_OK. * semantics.c (build_lambda_object): Don't rvalue a VLA capture. (build_capture_proxy): Set REFERENCE_VLA_OK. (vla_capture_type): Make it a proper C++ class. (add_capture): Set DECL_VLA_CAPTURE_P. Don't pre-digest the initializer. From-SVN: r200279
2013-06-20* decl.c (compute_array_index_type): Use size_one_node.Jason Merrill2-1/+3
From-SVN: r200278
2013-06-21Daily bump.GCC Administrator1-1/+1
From-SVN: r200277
2013-06-21compiler: Only make function descriptors if needed.Ian Lance Taylor5-109/+252
From-SVN: r200273
2013-06-20array-notation-common.c (find_inv_trees): Removed an unwanted typecasting.Balaji V. Iyer3-2/+9
2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> * array-notation-common.c (find_inv_trees): Removed an unwanted typecasting. * c-common.h (struct inv_list::additional_tcodes): Changed type from enum rid to enum tree_code. From-SVN: r200272
2013-06-20system.h: Include <cstdlib> as well as <stdlib.h>.Oleg Endo2-0/+13
* system.h: Include <cstdlib> as well as <stdlib.h>. Co-Authored-By: Jason Merrill <jason@redhat.com> From-SVN: r200265
2013-06-20pt.c (process_partial_specialization): Build a TEMPLATE_DECL for a partial ↵Jason Merrill3-24/+35
specialization. * pt.c (process_partial_specialization): Build a TEMPLATE_DECL for a partial specialization. (tsubst_decl): Don't clobber CLASSTYPE_TI_TEMPLATE of a partial specialization. (most_specialized_class): Adjust. From-SVN: r200263
2013-06-20* cp-tree.h (DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT)Jason Merrill2-4/+15
(DECL_TEMPLATE_INSTANTIATIONS, DECL_TEMPLATE_SPECIALIZATIONS): Use TEMPLATE_DECL_CHECK. From-SVN: r200262
2013-06-20re PR target/57655 (ICE: in create_pre_exit, at mode-switching.c:418 with ↵Uros Bizjak4-1/+22
-mno-fp-ret-in-387 -mvzeroupper -mxop and __builtin_ilogbl()) PR target/57655 * config/i386/i386.c (construct_container): Report error if long double is used with disabled x87 float returns. testsuite/ChangeLog: PR target/57655 * gcc.target/i386/pr57655.c: New test. From-SVN: r200260
2013-06-20re PR tree-optimization/57660 (FAIL: gcc.dg/tree-ssa/forwprop-28.c ↵Jeff Law2-1/+5
scan-tree-dump-times forwprop1 "Replaced" 8) PR tree-optimization/57660 * gcc.dg/tree-ssa/forwprop-28.c: Don't run test on various * targets based on their branch cost. From-SVN: r200258
2013-06-20gcc: Delete.Eric Botcazou3-52/+5
* ada/acats/tests/gcc: Delete. * gnat.dg/style: Likewise. From-SVN: r200249
2013-06-20* gcc.dg/tree-ssa/forwprop-28.c: Add missing dg-final.Jeff Law2-0/+6
From-SVN: r200248
2013-06-20lto-cgraph.c (input_symtab): Do not set cgraph state.Jan Hubicka4-11/+9
* lto-cgraph.c (input_symtab): Do not set cgraph state. * lto.c (read_cgraph_and_symbols): Set cgraph state. From-SVN: r200247
2013-06-20re PR rtl-optimization/57425 (RTL alias analysis unprepared to handle stack ↵Joern Rennecke5-43/+64
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-20data-streamer-in.c (streamer_read_uhwi): Optimize single byte case...Richard Biener2-8/+29
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-20re PR fortran/57633 (I/O: Problem with formatted read: reading CR-LF files ↵Tobias Burnus2-7/+50
(\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-20re PR tree-optimization/57584 (ice: SSA corruption: Unable to coalesce ↵Richard Biener4-0/+92
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-20resolve.c (get_temp_from_expr): Don't set FL_VARIABLE twice.Tobias Burnus2-1/+4
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-20Fix duplicated lines.Jan Hubicka1-20/+0
From-SVN: r200233
2013-06-20gcov.c (print_usage): Handle new option.Sharad Singhai6-46/+385
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-20Daily bump.GCC Administrator1-1/+1
From-SVN: r200231
2013-06-19re PR bootstrap/57604 (LRA related bootstrap comparison failure on s390x ↵Vladimir Makarov2-23/+64
--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-19re PR driver/57652 (collect2 does not clean up temporary files)David Edelsohn4-18/+25
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-19re PR rtl-optimization/57518 (Redundant insn generated in LRA)Wei Mi4-1/+77
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-19compiler: reject incorrect unsafe.Offsetof expressions.Ian Lance Taylor2-1/+21
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-19re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin)Matthias Klose5-28/+37
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-19re PR target/56942 (MIPS GCC will not build with -mips16 mode because libgcc ↵Steve Ellcey2-1/+7
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-19loop-19.c: Add -fno-common.Igor Zamyatin2-1/+5
gcc/testsuite/ChangeLog * gcc.dg/tree-ssa/loop-19.c: Add -fno-common. From-SVN: r200213
2013-06-19cgraph.h (const_value_known_p): Replace by ...Jan Hubicka14-112/+224
* 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-19re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin)Jakub Jelinek2-9/+11
PR driver/57651 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for PERSONALITY in $PATH derived prefixes. From-SVN: r200209
2013-06-19tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo in comment.Jeff Law2-1/+4
* tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo in comment. From-SVN: r200208
2013-06-19Replace array size in Array Notation testcode with #define.Balaji V. Iyer7-44/+61
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-19builtin-apply-2.c: set STACK_ARGUMENTS_SIZE with 0 if __aarch64__ is defined.Yufeng Zhang2-1/+6
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-19tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.Jeff Law4-1/+169
* 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-19vfp.md: Move VFP instruction classification documentation to ...Sofiane Naci3-67/+88
* config/arm/vfp.md: Move VFP instruction classification documentation to ... * config/arm/arm.md: ... here. Update instruction classification documentation. From-SVN: r200199
2013-06-19arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.Richard Earnshaw2-10/+84
(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-19re PR bootstrap/57609 (S/390 ESA mode bootstrap failure since r197266)Steven Bosscher2-23/+22
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-19re PR c++/56544 (documentation for __cplusplus is out of date)Paolo Carlini2-5/+11
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-19re PR c++/57638 (warning container: 'integer_cst’ not supported by ↵Manuel López-Ibáñez4-1/+25
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-19re PR target/55033 (PowerPC section type conflict error)Sebastian Huber2-1/+6
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-19expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check for global context.Richard Biener2-1/+6
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* ChangeLog: Fix whitespace.Uros Bizjak1-11/+10
From-SVN: r200189
2013-06-19revert: re PR bootstrap/57609 (S/390 ESA mode bootstrap failure since r197266)Andreas Krebbel2-11/+11
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-19Daily bump.GCC Administrator1-1/+1
From-SVN: r200185
2013-06-18compiler, runtime: Use function descriptors.Ian Lance Taylor13-292/+957
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