diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-11 10:47:05 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-11 10:47:05 +0000 |
commit | 1eefe28060f6a5b3a78cdfe24ccd543d8e94f70a (patch) | |
tree | da16232d8b5f58baa59884c0e12dc7f8fef82993 /gcc/dominance.c | |
parent | 70e887e93a8b94ea400c849899ad6bfcb81b9839 (diff) | |
download | gcc-1eefe28060f6a5b3a78cdfe24ccd543d8e94f70a.tar.gz |
* dbxout.c: Fix formatting.
* dependence.c: Likewise.
* df.c: Likewise.
* diagnostic.c: Likewise.
* doloop.c: Likewise.
* dominance.c: Likewise.
* doschk.c: Likewise.
* dwarf2asm.c: Likewise.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53380 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dominance.c')
-rw-r--r-- | gcc/dominance.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gcc/dominance.c b/gcc/dominance.c index 8bfd09dd3bc..3b8abdb28e8 100644 --- a/gcc/dominance.c +++ b/gcc/dominance.c @@ -1,9 +1,9 @@ /* Calculate (post)dominators in slightly super-linear time. Copyright (C) 2000 Free Software Foundation, Inc. Contributed by Michael Matz (matz@ifh.de). - + This file is part of GCC. - + GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) @@ -119,17 +119,19 @@ static void idoms_to_doms PARAMS ((struct dom_info *, /* Helper macro for allocating and initializing an array, for aesthetic reasons. */ #define init_ar(var, type, num, content) \ - do { \ - unsigned int i = 1; /* Catch content == i. */ \ - if (! (content)) \ - (var) = (type *) xcalloc ((num), sizeof (type)); \ - else \ - { \ - (var) = (type *) xmalloc ((num) * sizeof (type)); \ - for (i = 0; i < num; i++) \ - (var)[i] = (content); \ - } \ - } while (0) + do \ + { \ + unsigned int i = 1; /* Catch content == i. */ \ + if (! (content)) \ + (var) = (type *) xcalloc ((num), sizeof (type)); \ + else \ + { \ + (var) = (type *) xmalloc ((num) * sizeof (type)); \ + for (i = 0; i < num; i++) \ + (var)[i] = (content); \ + } \ + } \ + while (0) /* Allocate all needed memory in a pessimistic fashion (so we round up). This initialises the contents of DI, which already must be allocated. */ |