/* PR middle-end/106080 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wdangling-pointer" } */
+/* { dg-require-effective-target label_values } */
void
foo (void **failaddr)
+/* { dg-require-effective-target label_values } */
#include "../../gcc.dg/analyzer/analyzer-decls.h"
void test_1 (int pc)
(GPL v2.0). */
/* { dg-additional-options "-Wno-analyzer-too-complex -Wno-analyzer-symbol-too-complex" } */
+/* { dg-require-effective-target named_sections } */
/* Types. */
/* Adapted from gcc.dg/Winfinite-recursion.c. */
+/* { dg-require-effective-target nonlocal_goto } */
#define NORETURN __attribute__ ((noreturn))
+/* { dg-require-effective-target label_values } */
extern void* malloc (__SIZE_TYPE__);
const char* write_strchr_literal (int x)
/* { dg-do compile } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
/* { dg-options "-Wall -Wno-infinite-recursion -O2" } */
+/* { dg-require-effective-target named_sections } */
struct dtv_slotinfo_list
{
/* { dg-do compile } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
+/* { dg-require-effective-target named_sections } */
/* { dg-options "-Wall -Wno-infinite-recursion -O2" } */
struct dtv_slotinfo_list
/* { dg-do compile } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
+/* { dg-require-effective-target label_values } */
/* { dg-options "-Wall -O2" } */
int __attribute__((used,section(".data.foo"))) foo2 = 2;
/* { dg-do compile } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
+/* { dg-require-effective-target label_values } */
/* { dg-options "-Wall -O2" } */
int __attribute__((section(".data.foo"))) foo1 = 1;
/* { dg-do compile } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
+/* { dg-require-effective-target label_values } */
/* { dg-options "-Wall -Wno-infinite-recursion -O2" } */
struct dtv_slotinfo_list
/* Test for attribute non-translation. */
/* { dg-do compile }
{ dg-require-iconv "IBM1047" }
- { dg-final { scan-assembler "foo" } } */
+ { dg-final { scan-assembler "foo" } }
+ { dg-require-effective-target named_sections } */
int walrus __attribute__ ((section (".foo")));
int main (void)
+/* { dg-require-effective-target label_values } */
/* PR target/120250 */
int a = 5, b = 7, c, *d;
Exercise warning with optimization. Same as -Winfinite-recursion.c
plus mutually recursive calls that depend on inlining.
{ dg-do compile }
- { dg-options "-O2 -Wall -Winfinite-recursion" } */
+ { dg-options "-O2 -Wall -Winfinite-recursion" }
+ { dg-require-effective-target nonlocal_goto } */
#define NORETURN __attribute__ ((noreturn))
Verify simple cases without optimization.
{ dg-do compile }
{ dg-options "-Wall -Winfinite-recursion" } */
+/* { dg-require-effective-target nonlocal_goto } */
#define NORETURN __attribute__ ((noreturn))
/* Adapted from malloc-1.c, but wrapping the pointers in a struct. */
+/* { dg-require-effective-target label_values } */
#include <stdlib.h>
/* C only: reuse of same array for int and label pointers. */
+/* { dg-require-effective-target label_values } */
#include "../../gcc.dg/analyzer/analyzer-decls.h"
+/* { dg-require-effective-target label_values } */
#include <stdlib.h>
extern int foo (void);
/* { dg-do compile } */
/* { dg-options "-fcallgraph-info" } */
+/* { dg-require-effective-target alias } */
void f() {}
void g() __attribute__ ((__alias__ ("f")));
/* Test for attribute non-translation. */
/* { dg-do compile }
{ dg-require-iconv "IBM1047" }
- { dg-final { scan-assembler "foo" } } */
+ { dg-final { scan-assembler "foo" } }
+ { dg-require-effective-target named_sections } */
int walrus __attribute__ ((section (".foo")));
int main (void)
/* { dg-do compile } */
/* { dg-options "-fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fdiagnostics-show-line-numbers -fdiagnostics-add-output=experimental-html:javascript=no" } */
/* { dg-enable-nn-line-numbers "" } */
+/* { dg-require-effective-target signal } */
#include <stdio.h>
#include <signal.h>
/* { dg-do compile } */
/* { dg-options "-fchecking" } */
+/* { dg-require-effective-target nonlocal_goto } */
struct S { int i; };
void baz(struct S *p)
/* { dg-do compile } */
/* { dg-options "-O2" } */
+/* { dg-require-effective-target label_values } */
int main(int argc, char **argv)
{
/* { dg-do compile } */
/* { dg-options "-O2" } */
+/* { dg-require-effective-target label_values } */
struct {
long *sp;
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fpic" } */
+/* { dg-require-effective-target named_sections } */
struct link_map
{
/* PR middle-end/122773 */
/* { dg-do compile } */
+/* { dg-require-effective-target label_values } */
/* { dg-options "-Wimplicit-fallthrough -O2 -ftrivial-auto-var-init=zero" } */
void *l;
/* { dg-options "-O2 -fcommon -fdata-sections" } */
/* { dg-additional-sources pr83100-3.c } */
/* { dg-skip-if "-fdata-sections not supported" { hppa*-*-hpux* nvptx-*-* } } */
+/* { dg-require-effective-target named_sections } */
+
const int a;
/* { dg-do compile } */
/* { dg-options "-O2 -fcommon -fdata-sections" } */
/* { dg-skip-if "-fdata-sections not supported" { hppa*-*-hpux* nvptx-*-* } } */
+/* { dg-require-effective-target named_sections } */
const int a = 7;
/* { dg-skip-if "No section attribute" { { hppa*-*-hpux* } && { ! lp64 } } } */
/* { dg-options "-fpic -Os -g" } */
/* { dg-require-effective-target fpic } */
+/* { dg-require-effective-target named_sections } */
struct fit_loadable_tbl {
int type;
/* { dg-do run } */
/* { dg-options "-std=gnu23" } */
+/* { dg-require-effective-target nonlocal_goto } */
#include <stdarg.h>
/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections" } */
/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" { target static } } */
+/* { dg-require-effective-target named_sections } */
#include <stdlib.h>
/* { dg-do run } */
/* { dg-require-effective-target tls_runtime } */
+/* { dg-require-effective-target named_sections } */
/* { dg-options "-fdata-sections" } */
/* { dg-add-options tls } */
/* { dg-do link } */
+/* { dg-require-effective-target label_values } */
static void *j;
int v, g;