------- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-22 20:12 ------- THis is not a bug, -fno-merge-constants works only across TUs and not inside a TU. >From the documentation: Attempt to merge identical constants (string constants and floating point constants) across compilation units.
Plus it is working correctly for your case as it emits the string in the .rodata section and not in the .string section. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34925