]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove __cplusplus >= 201103
authorMartin Liska <mliska@suse.cz>
Thu, 22 Apr 2021 07:39:39 +0000 (09:39 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 10 May 2021 07:16:17 +0000 (09:16 +0200)
Right now, we require a C++11 compiler, so the check is not needed any
longer.

gcc/analyzer/ChangeLog:

* program-state.cc (program_state::operator=): Remove
__cplusplus >= 201103.
(program_state::program_state): Likewise.
* program-state.h: Likewise.
* region-model.h (class region_model): Remove dead code.

gcc/ChangeLog:

* bitmap.h (class auto_bitmap): Remove
__cplusplus >= 201103.
* config/aarch64/aarch64.c: Likewise.
* gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
Likewise.
* sbitmap.h: Likewise.

gcc/analyzer/program-state.cc
gcc/analyzer/program-state.h
gcc/analyzer/region-model.h
gcc/bitmap.h
gcc/config/aarch64/aarch64.c
gcc/gimple-ssa-store-merging.c
gcc/sbitmap.h

index f8094621309996984708fd0551045b2409ac8910..5c690b08fd33e53cb2696be0d0a4c2ad9f07f7ab 100644 (file)
@@ -731,7 +731,6 @@ program_state::operator= (const program_state &other)
   return *this;
 }
 
-#if __cplusplus >= 201103
 /* Move constructor for program_state (when building with C++11).  */
 program_state::program_state (program_state &&other)
 : m_region_model (other.m_region_model),
@@ -747,7 +746,6 @@ program_state::program_state (program_state &&other)
 
   m_valid = other.m_valid;
 }
-#endif
 
 /* program_state's dtor.  */
 
index 898c57ff8337b09634cb128fc607af1530a805b3..f16fe6ba984c6923432cb158b4b25698a7c3da75 100644 (file)
@@ -192,11 +192,7 @@ public:
   program_state (const extrinsic_state &ext_state);
   program_state (const program_state &other);
   program_state& operator= (const program_state &other);
-
-#if __cplusplus >= 201103
   program_state (program_state &&other);
-#endif
-
   ~program_state ();
 
   hashval_t hash () const;
index 4123500f3bc775892487668c4968b735a934fa52..a169396dcb50d2d2426c907425ae465c8570b663 100644 (file)
@@ -414,11 +414,6 @@ class region_model
   region_model (region_model_manager *mgr);
   region_model (const region_model &other);
   ~region_model ();
-
-#if 0//__cplusplus >= 201103
-  region_model (region_model &&other);
-#endif
-
   region_model &operator= (const region_model &other);
 
   bool operator== (const region_model &other) const;
index 84632af7009846f8a6dbb4f2940293c76bc00161..26138556b2a506f3e2b2246603a75b71496faaa9 100644 (file)
@@ -951,10 +951,8 @@ class auto_bitmap
   // Prevent making a copy that references our bitmap.
   auto_bitmap (const auto_bitmap &);
   auto_bitmap &operator = (const auto_bitmap &);
-#if __cplusplus >= 201103L
   auto_bitmap (auto_bitmap &&);
   auto_bitmap &operator = (auto_bitmap &&);
-#endif
 
   bitmap_head m_bits;
 };
index c2f4b27f6e4bc8c7ab103d8c623a7d6d50131352..04855cbd5761701fadb53cf0830cdbb69434fdc7 100644 (file)
@@ -221,9 +221,7 @@ public:
      predicate in each predicate argument register.  This means that
      we need at least 12 pieces.  */
   static const unsigned int MAX_PIECES = NUM_FP_ARG_REGS + NUM_PR_ARG_REGS;
-#if __cplusplus >= 201103L
   static_assert (MAX_PIECES >= 8, "Need to store at least 8 predicates");
-#endif
 
   /* Describes one piece of a PST.  Each piece is one of:
 
index 7eb50d65a20df5dce8a7a8f005acc3a8050b0257..123c92d9b44bfaa0b0aac61a87545ec6b3a4017b 100644 (file)
@@ -1595,17 +1595,9 @@ store_immediate_info::store_immediate_info (unsigned HOST_WIDE_INT bs,
   : bitsize (bs), bitpos (bp), bitregion_start (brs), bitregion_end (bre),
     stmt (st), order (ord), rhs_code (rhscode), n (nr),
     ins_stmt (ins_stmtp), bit_not_p (bitnotp), ops_swapped_p (false),
-    lp_nr (nr2)
-#if __cplusplus >= 201103L
-    , ops { op0r, op1r }
+    lp_nr (nr2), ops { op0r, op1r }
 {
 }
-#else
-{
-  ops[0] = op0r;
-  ops[1] = op1r;
-}
-#endif
 
 /* Struct representing a group of stores to contiguous memory locations.
    These are produced by the second phase (coalescing) and consumed in the
index 89a86e49f6004dd347eaabbc953c9b2e602bcf32..17660e5a65ec129378aa0ef3116ca3561a638ca7 100644 (file)
@@ -301,10 +301,8 @@ private:
   /* Prevent making a copy that refers to our sbitmap.  */
   auto_sbitmap (const auto_sbitmap &);
   auto_sbitmap &operator = (const auto_sbitmap &);
-#if __cplusplus >= 201103L
   auto_sbitmap (auto_sbitmap &&);
   auto_sbitmap &operator = (auto_sbitmap &&);
-#endif
 
   /* The bitmap we are managing.  */
   sbitmap m_bitmap;