Project

General

Profile

Bug #5725

sparc build noise in libdtrace

Added by Gordon Ross over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2015-03-17
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

See lint noise like:

"../common/dt_consume.c", line 1845: warning: pointer cast may result in improper alignment (E_BAD_PTR_CAST_ALIGN)

History

#1

Updated by Gordon Ross over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Gordon Ross

Add lintflags like intel uses:

diff --git a/usr/src/lib/libdtrace/sparc/Makefile b/usr/src/lib/libdtrace/sparc/Makefile
index 99c63ef..7c3f193 100644
--- a/usr/src/lib/libdtrace/sparc/Makefile
+++ b/usr/src/lib/libdtrace/sparc/Makefile
@@ -29,5 +29,7 @@ ASFLAGS += -D_ASM -K PIC -P

 include ../Makefile.com

+LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+
 install yydebug: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT) \\
     $(ROOTDLIBS) $(ROOTDOBJS)
diff --git a/usr/src/lib/libdtrace/sparcv9/Makefile b/usr/src/lib/libdtrace/sparcv9/Makefile
index 0e3892d..0355519 100644
--- a/usr/src/lib/libdtrace/sparcv9/Makefile
+++ b/usr/src/lib/libdtrace/sparcv9/Makefile
@@ -32,5 +32,7 @@ include ../../Makefile.lib.64

 CPPFLAGS += -D_ELF64

+LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN
+
 install yydebug: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64) \\
     $(ROOTDLIBS) $(ROOTDOBJS64)

#2

Updated by Electric Monk over 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 2bbdd445a21f9d61f4a0ca0faf05d5ceb2bd91f3

commit  2bbdd445a21f9d61f4a0ca0faf05d5ceb2bd91f3
Author: Gordon Ross <gwr@nexenta.com>
Date:   2015-03-18T02:45:35.000Z

    5725 sparc build noise in libdtrace
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF