Remove unused attribute from __table macros; the tables are no longer
static since otherwise gcc4 optimises them away completely. Also, it really *is* an error if the table start and end are unused, so they certainly shouldn't be marked with attribute unused.
This commit is contained in:
parent
d0e4f198d6
commit
ecdcdea1af
@ -192,7 +192,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define __table(table,idx) \
|
#define __table(table,idx) \
|
||||||
__attribute__ (( unused, __table_section(table,idx) ))
|
__attribute__ (( __table_section(table,idx) ))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Linker table start marker.
|
* Linker table start marker.
|
||||||
@ -208,7 +208,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define __table_start(table) \
|
#define __table_start(table) \
|
||||||
__attribute__ (( unused, __table_section_start(table) ))
|
__attribute__ (( __table_section_start(table) ))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Linker table end marker.
|
* Linker table end marker.
|
||||||
@ -224,6 +224,6 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define __table_end(table) \
|
#define __table_end(table) \
|
||||||
__attribute__ (( unused, __table_section_end(table) ))
|
__attribute__ (( __table_section_end(table) ))
|
||||||
|
|
||||||
#endif /* _GPXE_TABLES_H */
|
#endif /* _GPXE_TABLES_H */
|
||||||
|
Reference in New Issue
Block a user