From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9ff6a39316ae3a1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!cycny01.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc06.POSTED!20ae255c!not-for-mail Newsgroups: comp.lang.ada From: Anonymous Coward Subject: GDB won't break on constants (was: Any way to turn of constant merging in GCC 2.8.1?) References: <8VQGf.150321$7l4.51461@trnddc05> <172dv1lppbvgnqcbvvh5mvuk58h8t13ha4@4ax.com> User-Agent: slrn/0.9.7.4 (Linux) Message-ID: Date: Sat, 18 Feb 2006 17:10:41 GMT NNTP-Posting-Host: 141.149.87.138 X-Complaints-To: abuse@verizon.net X-Trace: trnddc06 1140282641 141.149.87.138 (Sat, 18 Feb 2006 12:10:41 EST) NNTP-Posting-Date: Sat, 18 Feb 2006 12:10:41 EST Xref: g2news1.google.com comp.lang.ada:2958 Date: 2006-02-18T17:10:41+00:00 List-Id: In article , Craig Carey wrote: > > "-fmerge-constants Attempt to merge identical constants (string > constants and floating point constants) across compilation units." > [is the default] I may have misunderstood what merging constants does. If it's only merging identical constants, then inhibiting it won't help me. My problem is that the debugger will not break on a definition for a constant, and in some cases it will not allow me to override a constant value. It appears that the compiler may be doing some kind of optimization, though I'm using the -O0 switch. Are you saying (in your first response) that aliased constants won't have this problem?