Compare commits

..

No commits in common. "1b346ed9c0a4fd42c0e04af4b7f902d67b6b4c6c" and "94ebb54a8b6dff40c2f3a8c7a865d885c7304c9b" have entirely different histories.

2 changed files with 0 additions and 7 deletions

View File

@ -117,7 +117,6 @@ static void scan_tree_for_components(tree t, const char *funcname, gimple_stmt_i
case CONVERT_EXPR: case CONVERT_EXPR:
case NOP_EXPR: case NOP_EXPR:
case VIEW_CONVERT_EXPR: case VIEW_CONVERT_EXPR:
case ADDR_EXPR:
scan_tree_for_components(TREE_OPERAND(t,0), funcname, gsi); scan_tree_for_components(TREE_OPERAND(t,0), funcname, gsi);
break; break;
case ARRAY_REF: case ARRAY_REF:

View File

@ -1,6 +1,5 @@
#include <stdio.h> #include <stdio.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h>
#define container_of(ptr, type, member) ({ \ #define container_of(ptr, type, member) ({ \
const typeof(((type*)0)->member)* __mptr = (ptr); \ const typeof(((type*)0)->member)* __mptr = (ptr); \
@ -30,10 +29,5 @@ int main(int argc, char** argv) {
struct B b = { 1, 2, 3, NULL, 4.f, a, NULL }; struct B b = { 1, 2, 3, NULL, 4.f, a, NULL };
b.m2 = 42; b.m2 = 42;
struct B* someB = (struct B*)malloc(sizeof(struct B));
float* someB_m4 = &someB->m4;
container_of(someB_m4, struct B, m4)->m1 = 'x';
return 0; return 0;
} }