/* { dg-do compile } */
-/* { dg-options "-mmcu=avr51 -Os" } */
+/* { dg-options "-Os" } */
#include <stdbool.h>
/* { dg-do compile } */
-/* { dg-options "-mmcu=avr25 -Os" } */
+/* { dg-options "-Os" } */
typedef int HItype __attribute__ ((mode (HI)));
HItype
-/* { dg-do compile } */
+/* { dg-do compile { target { ! avr_tiny } } } */
/* { dg-options "" } */
typedef __SIZE_TYPE__ size_t;
-/* { dg-do run } */
+/* { dg-do run { target { ! avr_tiny } } } */
/* { dg-options "-Os -fsplit-wide-types" } */
/* This testcase should uncover bugs like
-/* { dg-do run } */
+/* { dg-do run { target { ! avr_tiny } } } */
/* { dg-options "-Os -fno-split-wide-types" } */
/* This testcase should uncover bugs like
-/* { dg-do compile } */
+/* { dg-do compile { target { ! avr_tiny } } } */
+/* { dg-additional-options "-std=gnu99 -w" } */
struct S {
char y[2];
-/* { dg-do compile } */
+/* { dg-do compile { target { ! avr_tiny } } } */
+/* { dg-additional-options "-std=gnu99" } */
void test()
{
/* { dg-options "-std=gnu99 -Tavr51-flash1.x" } */
/* { dg-do run { target { ! avr_tiny } } } */
+#ifdef __FLASH1
#define __as __flash1
+#else
+#define __as __flash
+#endif
#include "addr-space-1.h"
/* { dg-options "-std=gnu99 -Tavr51-flash1.x" } */
/* { dg-do run { target { ! avr_tiny } } } */
+#ifdef __FLASH1
#define __as __flash1
+#else
+#define __as __flash
+#endif
#include "addr-space-2.h"
#include <stdlib.h>
const __flash char c0 = 1;
+#ifdef __FLASH1
const __flash1 char c1 = 1;
+#endif
int main (void)
{
if (__builtin_avr_flash_segment (p) != 0)
abort();
+#ifdef __FLASH1
p = &c1;
if (__builtin_avr_flash_segment (p) != 1)
abort();
+#endif
if (__builtin_avr_flash_segment ("p") != -1)
abort();