lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #8742] lwIP fails to build with NO_SYS=1 in single s


From: Sylvain Rochet
Subject: [lwip-devel] [patch #8742] lwIP fails to build with NO_SYS=1 in single stack mode
Date: Wed, 16 Sep 2015 19:03:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.2.1

Follow-up Comment #4, patch #8742 (project lwip):

OK, you made me doubt ;-), so I checked, at least with gcc:


#include <stdio.h>

static int test_a(void);
static int test_b(void);

static int test_a(void) {
        test_b();
}

static int test_b(void) {
        printf("Hello World !\n");
        printf("Hello World !\n");
        printf("Hello World !\n");
}

static int caller(int (*f)(void)) {
        return f();
}

int main() {
        test_b();
        caller(test_a);
}

$ gcc -O2 -o test test.c && nm -S ./test | grep test_
0000000000400520 0000000000000026 t test_b



test_a() was aliased into test_b()

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8742>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]