The offset overflow warning would cause build fails when function's
start line is missing(0). Until the start line issues is fixed, we
will suppress this warning.

Testing on-going. OK for google-4_9?

Thanks,
Dehao

Index: gcc/auto-profile.c

===================================================================
--- gcc/auto-profile.c (revision 219263)
+++ gcc/auto-profile.c (working copy)
@@ -398,8 +398,6 @@ static unsigned
 get_combined_location (location_t loc, tree decl)
 {
   /* TODO: allow more bits for line and less bits for discriminator.  */
-  if (LOCATION_LINE (loc) - DECL_SOURCE_LINE (decl) >= (1<<16))
-    warning_at (loc, OPT_Woverflow, "Offset exceeds 16 bytes.");
   return ((LOCATION_LINE (loc) - DECL_SOURCE_LINE (decl)) << 16)
          | get_discriminator_from_locus (loc);
 }

Reply via email to