Andrew Pinski

Results 46 issues of Andrew Pinski

**Compiler name:** This is not really a new compiler request but rather a request to add Objective-C support for x86_64 GCC. **Compiler version:** GCC trunk is enough for now. **Compiler...

new-compilers
new-language
request

From the spec: ``` Note: bitwise-operations (|,&,^,~) are not defined on expressions of type int. ``` But p4c allows to compile: ``` const bit tmp2 = (1 | 2) |+|...

enhancement
question

Take: ``` parser p() { state start { transition accept; } } void func() { p() t; t(); } ``` The reference compiler produces: ``` t8.p4(9): [--Werror=invalid] error: t: cannot...

enhancement
fixed

take: ``` struct s { bit f0; bit f1; } extern bit ext(); control c() { bit tt; action a(in bit v1, in bit v2) { tt = v1++v2; }...

bug
fixed

I thought this was working previously but it is no longer working and also gives a compiler bug. I was using header stacks to get a static assert before I...

bug
fixed

Take: ``` action a(in bit v, in bit v1){} bit f(inout bit v) { v = ~v; return v; } control c() { bit tt; table t { actions =...

This is a fuzzy area of the specifications so I am not 100% sure this is a compiler bug but it might be a specifications oversight too. Take: ``` #include...

bug

Take: ``` #include control c(in bit a) { apply { switch (a) { 4w0: {} 4w1: {} // { dg-note "" } 4w1: {} // { dg-error "" } }...

bug

The testcase is ``` action act() { bit a; a = a / -1; a = -5 / a; a = a % -1; a = -5 % a; }...

question

Take: ``` parser p() { bit t; state start { t = 1; transition t; } state t { transition accept; } } ``` Currently p4c rejects this with saying...

question