/* Copyright (C) 2011-2023 Free Software Foundation, Inc.
   Contributed by Georg-Johann Lay (avr@gjlay.de)

   This file is part of GCC.

   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 Software Foundation; either version 3, or (at your option)
   any later version.
   
   GCC is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with GCC; see the file COPYING3.  If not see
   <http://www.gnu.org/licenses/>.  */

/* defaults.h requires HAVE_INITFINI_ARRAY_SUPPORT to be present
   in order for attribute "retain" to be recognized.  This is due
   to some quirks in crtstuff.h -- which isn't even used by avr.
   All we need is that Binutils supports the "R"etain section flag.
   If that's the case, define SUPPORTS_SHF_GNU_RETAIN so that
   defaults.h doesn't define it to 0.  */
#if defined(IN_GCC) && !defined(USED_FOR_TARGET) && !defined(GENERATOR_FILE)
#include "auto-host.h" /* HAVE_GAS_SHF_GNU_RETAIN */
#if HAVE_GAS_SHF_GNU_RETAIN
#undef SUPPORTS_SHF_GNU_RETAIN
#define SUPPORTS_SHF_GNU_RETAIN 1
#endif
#endif

/* Overriding some definitions from elfos.h for AVR.  */

#undef PCC_BITFIELD_TYPE_MATTERS

#undef MAX_OFILE_ALIGNMENT
#define MAX_OFILE_ALIGNMENT (32768 * 8)

#undef STRING_LIMIT
#define STRING_LIMIT ((unsigned) 64)

/* Be conservative in crtstuff.c.  */
#undef INIT_SECTION_ASM_OP
#undef FINI_SECTION_ASM_OP
