[Bug c/37506] New: attribute section is not working with constant strings

2008-09-13 Thread nm127 at freemail dot hu
ReportedBy: nm127 at freemail dot hu GCC build triplet: 4.3.1 GCC target triplet: i486-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37506

[Bug c/37506] attribute section is not working with constant strings

2008-09-13 Thread nm127 at freemail dot hu
--- Comment #2 from nm127 at freemail dot hu 2008-09-13 13:59 --- This problem maybe related to bug #192. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37506

[Bug c/37506] attribute section is not working with constant strings

2008-09-13 Thread nm127 at freemail dot hu
--- Comment #4 from nm127 at freemail dot hu 2008-09-14 05:32 --- (In reply to comment #3) char* y __attribute__ ((__section__(.xxx_section))) = Hello World!; That only puts the pointer variable y into that section and not the string. Exatly that is my problem. So the pointer

[Bug c/37506] attribute section is not working with constant strings

2008-09-14 Thread nm127 at freemail dot hu
--- Comment #6 from nm127 at freemail dot hu 2008-09-14 07:14 --- (In reply to comment #5) This is all expected, if you want a string constant to be in a different section, you need to put there your self by using a variable. So the __attribute__ __section__ modifier

[Bug c/37519] New: confusing error message about attribute section name type

2008-09-14 Thread nm127 at freemail dot hu
Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nm127 at freemail dot hu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org

[Bug c/37519] confusing error message about attribute section name type

2008-09-14 Thread nm127 at freemail dot hu
--- Comment #1 from nm127 at freemail dot hu 2008-09-14 09:18 --- Created an attachment (id=16317) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16317action=view) add a new error message for attribute section parameter type check This patch separates the type check