OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [lto/] [lto.h] - Diff between revs 288 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 288 Rev 816
/* LTO declarations.
/* LTO declarations.
   Copyright 2009, 2010 Free Software Foundation, Inc.
   Copyright 2009, 2010 Free Software Foundation, Inc.
   Contributed by CodeSourcery, Inc.
   Contributed by CodeSourcery, Inc.
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify it under
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
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
Software Foundation; either version 3, or (at your option) any later
version.
version.
 
 
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.
for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.  */
<http://www.gnu.org/licenses/>.  */
 
 
#ifndef LTO_H
#ifndef LTO_H
#define LTO_H
#define LTO_H
 
 
#include "hashtab.h"
#include "hashtab.h"
 
 
/* A file.  */
/* A file.  */
typedef struct lto_file_struct
typedef struct lto_file_struct
{
{
  /* The name of the file.  */
  /* The name of the file.  */
  const char *filename;
  const char *filename;
  /* The offset for the object inside an ar archive file (or zero).  */
  /* The offset for the object inside an ar archive file (or zero).  */
  off_t offset;
  off_t offset;
} lto_file;
} lto_file;
 
 
/* In lto-lang.c  */
/* In lto-lang.c  */
extern const char *resolution_file_name;
extern const char *resolution_file_name;
 
 
/* In lto.c  */
/* In lto.c  */
extern void lto_main (int);
extern void lto_main (int);
extern void lto_read_all_file_options (void);
extern void lto_read_all_file_options (void);
 
 
/* In lto-elf.c or lto-coff.c  */
/* In lto-elf.c or lto-coff.c  */
extern lto_file *lto_obj_file_open (const char *filename, bool writable);
extern lto_file *lto_obj_file_open (const char *filename, bool writable);
extern void lto_obj_file_close (lto_file *file);
extern void lto_obj_file_close (lto_file *file);
extern htab_t lto_obj_build_section_table (lto_file *file);
extern htab_t lto_obj_build_section_table (lto_file *file);
extern void lto_obj_begin_section (const char *name);
extern void lto_obj_begin_section (const char *name);
extern void lto_obj_append_data (const void *data, size_t len, void *block);
extern void lto_obj_append_data (const void *data, size_t len, void *block);
extern void lto_obj_end_section (void);
extern void lto_obj_end_section (void);
extern lto_file *lto_set_current_out_file (lto_file *file);
extern lto_file *lto_set_current_out_file (lto_file *file);
extern lto_file *lto_get_current_out_file (void);
extern lto_file *lto_get_current_out_file (void);
 
 
/* Hash table entry to hold the start offset and length of an LTO
/* Hash table entry to hold the start offset and length of an LTO
   section in a .o file.  */
   section in a .o file.  */
struct lto_section_slot
struct lto_section_slot
{
{
  const char *name;
  const char *name;
  intptr_t start;
  intptr_t start;
  size_t len;
  size_t len;
};
};
 
 
int64_t lto_parse_hex (const char *p);
int64_t lto_parse_hex (const char *p);
 
 
#endif /* LTO_H */
#endif /* LTO_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.