This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove incorrect comment in add_const_value_attribute
- From: gkeating at apple dot com (Geoffrey Keating)
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Jan 2004 12:07:10 -0800 (PST)
- Subject: Remove incorrect comment in add_const_value_attribute
I noticed this comment, which is wrong in parts (CONST_INTs are not
used for floating-point constants), and unhelpful in others, so I'll
just remove the whole thing.
Tested with 'make quickstrap' on powerpc-darwin.
--
- Geoffrey Keating <geoffk@apple.com>
====================
2004-01-06 Geoffrey Keating <geoffk@apple.com>
* dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.468
diff -u -p -u -p -r1.468 dwarf2out.c
--- dwarf2out.c 24 Dec 2003 00:14:18 -0000 1.468
+++ dwarf2out.c 6 Jan 2004 20:02:33 -0000
@@ -9109,11 +9109,6 @@ add_const_value_attribute (dw_die_ref di
switch (GET_CODE (rtl))
{
case CONST_INT:
- /* Note that a CONST_INT rtx could represent either an integer
- or a floating-point constant. A CONST_INT is used whenever
- the constant will fit into a single word. In all such
- cases, the original mode of the constant value is wiped
- out, and the CONST_INT rtx is assigned VOIDmode. */
{
HOST_WIDE_INT val = INTVAL (rtl);
====================