OSDN Git Service

* config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
[pf3gnuchains/gcc-fork.git] / gcc / config / xtensa / elf.h
index 611bebf..5620e95 100644 (file)
@@ -19,6 +19,13 @@ along with GCC; see the file COPYING.  If not, write to the Free
 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 02111-1307, USA.  */
 
+#define TARGET_OS_CPP_BUILTINS()                               \
+  do {                                                         \
+    builtin_define ("__ELF__");                                        \
+  } while (0)
+
+#define TARGET_SECTION_TYPE_FLAGS xtensa_multibss_section_type_flags
+
 /* Don't assume anything about the header files. */
 #define NO_IMPLICIT_EXTERN_C
 
@@ -58,7 +65,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #undef ASM_FINAL_SPEC
 
 #undef LIB_SPEC
-#define LIB_SPEC "-lc -lsim -lc -lhandlers-sim"
+#define LIB_SPEC "-lc -lsim -lc -lhandlers-sim -lhal"
 
 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC "crt1-sim%O%s crti%O%s crtbegin%O%s _vectors%O%s"
@@ -74,9 +81,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
       %{rdynamic:-export-dynamic} \
     %{static:-static}}}"
 
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__XTENSA__ -D__ELF__ -Acpu=xtensa -Amachine=xtensa"
-
 /* Local compiler-generated symbols must have a prefix that the assembler
    understands.   By default, this is $, although some targets (e.g.,
    NetBSD-ELF) need to override this. */
@@ -112,23 +116,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   do                                                           \
     {                                                          \
       if (!flag_inhibit_size_directive)                                \
-       {                                                       \
-         char label[256];                                      \
-         static int labelno;                                   \
-                                                               \
-         labelno++;                                            \
-                                                               \
-         ASM_GENERATE_INTERNAL_LABEL (label, "Lfe", labelno);  \
-         ASM_OUTPUT_INTERNAL_LABEL (FILE, "Lfe", labelno);     \
-                                                               \
-         fprintf (FILE, "%s", SIZE_ASM_OP);                    \
-         assemble_name (FILE, (FNAME));                        \
-         fprintf (FILE, ",");                                  \
-         assemble_name (FILE, label);                          \
-         fprintf (FILE, "-");                                  \
-         assemble_name (FILE, (FNAME));                        \
-         putc ('\n', FILE);                                    \
-       }                                                       \
+       ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME);                 \
       XTENSA_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL);         \
     }                                                          \
   while (0)