Open Quuxplusone opened 12 years ago
Attached target.tar.gz
(910 bytes, application/x-gzip): .tar.gz with five test cases and a perl script to compare output
Which gcc version did you test with? While working on dragonegg I noticed that
gcc's behavior (eg what it considers an error) has been evolving. Also, gcc
will
happily produce assembler that doesn't assemble, while LLVM rejects such
earlier.
(In reply to comment #1)
> Which gcc version did you test with? While working on dragonegg I noticed
that
> gcc's behavior (eg what it considers an error) has been evolving. Also, gcc
> will
> happily produce assembler that doesn't assemble, while LLVM rejects such
> earlier.
GCC 4.6.1 will reject all of the included test cases as erroneous
redefinitions, except for alias_and_body.c, which defines a function like:
void __attribute__((alias("target"))) foo() {puts("foo");}
GCC will compile this and execute the body of foo when run.
target.tar.gz
(910 bytes, application/x-gzip)