diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-15 13:08:44 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-15 13:08:44 +0000 |
commit | a561ec107670fea70971066de274511b2bc9a852 (patch) | |
tree | bde934e4aa356a8650f60f1d993ef54085998bc3 /gcc/loop-invariant.c | |
parent | f1f5c175f48e0d5ecf6ffc9601d3906cd1583ae3 (diff) | |
download | gcc-a561ec107670fea70971066de274511b2bc9a852.tar.gz |
* gengtype.c (create_user_defined_type): Workaround
-Wmaybe-uninitialized false positives.
* cse.c (fold_rtx): Likewise.
* loop-invariant.c (gain_for_invariant): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index be9078cabaa..e5eb9e6366e 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -1268,7 +1268,9 @@ gain_for_invariant (struct invariant *inv, unsigned *regs_needed, bool speed, bool call_p) { int comp_cost, size_cost; - enum reg_class cl; + /* Workaround -Wmaybe-uninitialized false positive during + profiledbootstrap by initializing it. */ + enum reg_class cl = NO_REGS; int ret; actual_stamp++; |