This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/34925] -fno-merge-constants doesn't work.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 20:12:32 -0000
- Subject: [Bug other/34925] -fno-merge-constants doesn't work.
- References: <bug-34925-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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