This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);
 
====================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]