designated initializers extension and sparc

2013-06-16 Thread Sergey Kljopov
Hi, Reading the text - In a structure initializer, specify the name of a field to initialize with `.fieldname =' before the element value. For example, given the following structure, struct point { int x, y; }; the following initialization struct point p = { .y = yvalue,

init_priority across different namespaces

2013-05-06 Thread Sergey Kljopov
Hi, Is init_priority affects initialization order across different namespaces? Means in the code (the same file) namespace x_sp { Foo a_x __attribute__ ((init_priority (2000))); } namespace y_sp { Foo a_y __attribute__ ((init_priority (1000))); } which object will be initialized first? Sergey