tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT on OMP_RETURN for OMP_FOR.
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 May 2008 23:14:13 +0000 (01:14 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 May 2008 23:14:13 +0000 (01:14 +0200)
* tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
on OMP_RETURN for OMP_FOR.

From-SVN: r135059

gcc/ChangeLog
gcc/tree-parloops.c

index 1104f77b2561472ec92880b6574f1fe243327412..18711d17d3aae61bad60b4807bec4ed9c15db726 100644 (file)
@@ -1,4 +1,9 @@
-2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-05-08  Jakub Jelinek  <jakub@redhat.com>
+
+       * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
+       on OMP_RETURN for OMP_FOR.
+
+2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
         PATCH rtl/7335
         PATCH rtl/33826
        (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
        case V4SI_FTYPE_V2DF.
 
-2008-05-03  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        * doc/invoke.texi (max-flow-memory-locations): Removed.
        * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
        * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
        of LR/CTR moves for Power6.
 
-2008-04-22  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        PR middle-end/36003
        * passes.c (init_optimization_passes): Remove
        * coverage.c: Include tree-pass.h.
        (coverage_counter_alloc): Print da_file_name to the dump file.
 
-2008-04-21  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        * sbitmap.c (sbitmap_range_empty_p): New function.
        * sbitmap.h (sbitmap_range_empty_p): New function.
        * bitmap.h: Now includes obstack.h.
 
 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
-           Kenneth Zadeck <zadeck@naturalbridge.com>
+           Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        * dbgcnt.def (ra_byte_scan): Added.
        * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
        * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
        control string instead of quoted.
 
-2008-04-07  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        * doc/rtl.texi: Rewrite of subreg section.
 
 
        * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
 
-2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        * fwprop.c (update_df): Support width and offset parameters of
        df_ref_create.
        * common.opt (Wstrict-aliasing): Specify Var and Init.
        (Wstrict-overflow): Likewise.
 
-2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        PR rtl-optimization/26854
        PR rtl-optimization/34400
        * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
        when the structure size is not a power of 2.
 
-2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        * doc/install.texi: Add doc for --enable-checking=df.
        
        * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
        input.
 
-2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
+2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
 
        PR rtl-optimization/26854
        PR rtl-optimization/34400
index b377e846d0a0900a1484092e16dbb42566727208..de4f3065a52490a9bca4ec79ff5cb1ccf9e2377e 100644 (file)
@@ -1,5 +1,5 @@
 /* Loop autoparallelization.
-   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
    Contributed by Sebastian Pop <pop@cri.ensmp.fr> and
    Zdenek Dvorak <dvorakz@suse.cz>.
 
@@ -1639,7 +1639,9 @@ create_parallel_loop (struct loop *loop, tree loop_fn, tree data,
 
   /* Emit OMP_RETURN for OMP_FOR.  */
   bsi = bsi_last (ex_bb);
-  bsi_insert_after (&bsi, make_node (OMP_RETURN), BSI_NEW_STMT);
+  t = make_node (OMP_RETURN);
+  OMP_RETURN_NOWAIT (t) = 1;
+  bsi_insert_after (&bsi, t, BSI_NEW_STMT);
 
   return paral_bb;
 }