OSDN Git Service

PR c++/43856
[pf3gnuchains/gcc-fork.git] / gcc / lto-section-in.c
index da2384e..4f2ae4f 100644 (file)
@@ -55,11 +55,10 @@ const char *lto_section_name[LTO_N_SECTION_TYPES] =
   "ipa_pure_const",
   "ipa_reference",
   "symtab",
-  "wpa_fixup",
   "opts"
 };
 
-unsigned char 
+unsigned char
 lto_input_1_unsigned (struct lto_input_block *ib)
 {
   if (ib->p >= ib->len)
@@ -72,7 +71,7 @@ lto_input_1_unsigned (struct lto_input_block *ib)
 
 /* Read an ULEB128 Number of IB.  */
 
-unsigned HOST_WIDE_INT 
+unsigned HOST_WIDE_INT
 lto_input_uleb128 (struct lto_input_block *ib)
 {
   unsigned HOST_WIDE_INT result = 0;
@@ -92,7 +91,7 @@ lto_input_uleb128 (struct lto_input_block *ib)
 /* HOST_WIDEST_INT version of lto_input_uleb128.  IB is as in
    lto_input_uleb128.  */
 
-unsigned HOST_WIDEST_INT 
+unsigned HOST_WIDEST_INT
 lto_input_widest_uint_uleb128 (struct lto_input_block *ib)
 {
   unsigned HOST_WIDEST_INT result = 0;
@@ -111,7 +110,7 @@ lto_input_widest_uint_uleb128 (struct lto_input_block *ib)
 
 /* Read an SLEB128 Number of IB.  */
 
-HOST_WIDE_INT 
+HOST_WIDE_INT
 lto_input_sleb128 (struct lto_input_block *ib)
 {
   HOST_WIDE_INT result = 0;
@@ -137,7 +136,7 @@ lto_input_sleb128 (struct lto_input_block *ib)
 /* Hooks so that the ipa passes can call into the lto front end to get
    sections.  */
 
-static struct lto_file_decl_data ** file_decl_data; 
+static struct lto_file_decl_data ** file_decl_data;
 static lto_get_section_data_f* get_section_f;
 static lto_free_section_data_f* free_section_f;
 
@@ -146,8 +145,8 @@ static lto_free_section_data_f* free_section_f;
    used by the ipa passes to get the data that they will
    deserialize.  */
 
-void 
-lto_set_in_hooks (struct lto_file_decl_data ** data, 
+void
+lto_set_in_hooks (struct lto_file_decl_data ** data,
                  lto_get_section_data_f* get_f,
                  lto_free_section_data_f* free_f)
 {
@@ -206,9 +205,9 @@ struct lto_data_header
    returned.  */
 
 const char *
-lto_get_section_data (struct lto_file_decl_data *file_data, 
+lto_get_section_data (struct lto_file_decl_data *file_data,
                      enum lto_section_type section_type,
-                     const char *name, 
+                     const char *name,
                      size_t *len)
 {
   const char *data = (get_section_f) (file_data, section_type, name, len);
@@ -233,9 +232,9 @@ lto_get_section_data (struct lto_file_decl_data *file_data,
   header = (struct lto_data_header *) xmalloc (header_length);
   header->data = data;
   header->len = *len;
-  
+
   buffer.data = (char *) header;
-  buffer.length = header_length; 
+  buffer.length = header_length;
 
   stream = lto_start_uncompression (lto_append_data, &buffer);
   lto_uncompress_block (stream, data, *len);
@@ -250,8 +249,8 @@ lto_get_section_data (struct lto_file_decl_data *file_data,
    parameters are the same as above.  DATA is the data to be freed and
    LEN is the length of that data.  */
 
-void 
-lto_free_section_data (struct lto_file_decl_data *file_data, 
+void
+lto_free_section_data (struct lto_file_decl_data *file_data,
                       enum lto_section_type section_type,
                       const char *name,
                       const char *data,
@@ -285,16 +284,16 @@ lto_free_section_data (struct lto_file_decl_data *file_data,
    used to free the section.  Return NULL if the section is not present.  */
 
 struct lto_input_block *
-lto_create_simple_input_block (struct lto_file_decl_data *file_data, 
+lto_create_simple_input_block (struct lto_file_decl_data *file_data,
                               enum lto_section_type section_type,
                               const char **datar, size_t *len)
 {
   const char *data = lto_get_section_data (file_data, section_type, NULL, len);
-  const struct lto_simple_header * header 
+  const struct lto_simple_header * header
     = (const struct lto_simple_header *) data;
 
   struct lto_input_block* ib_main;
-  int32_t main_offset = sizeof (struct lto_simple_header); 
+  int32_t main_offset = sizeof (struct lto_simple_header);
 
   if (!data)
     return NULL;
@@ -316,7 +315,7 @@ lto_create_simple_input_block (struct lto_file_decl_data *file_data,
    that call.  */
 
 void
-lto_destroy_simple_input_block (struct lto_file_decl_data *file_data, 
+lto_destroy_simple_input_block (struct lto_file_decl_data *file_data,
                                enum lto_section_type section_type,
                                struct lto_input_block *ib,
                                const char *data, size_t len)