| Summary: | kdesdk compile errors on amd64/gcc4 | ||
|---|---|---|---|
| Product: | [Developer tools] kcachegrind | Reporter: | Ana Guerrero (Debian KDE maintainers) <ana> |
| Component: | general | Assignee: | Josef Weidendorfer <josef.weidendorfer> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | kdesdk patch for amd64 w/ gcc4 | ||
|
Description
Ana Guerrero (Debian KDE maintainers)
2005-03-15 16:20:39 UTC
Created attachment 10128 [details]
kdesdk patch for amd64 w/ gcc4
CVS commit by weidendo:
We use hexadecimal hash values as identifiers for
nodes in a graph to be layouted by GraphViz. These IDs
are simply the address of the function object.
Fix: Use "long" as ID type for pointers both on 32/64bit platforms.
Thanks to Debian for the patch.
BUGS:101556
M +11 -11 callgraphview.cpp 1.21
--- kdesdk/kcachegrind/kcachegrind/callgraphview.cpp #1.20:1.21
@@ -580,5 +580,5 @@ void GraphExporter::writeDot()
}
if (f)
- *stream << QString(" center=F%1;\n").arg((int)f, 0, 16);
+ *stream << QString(" center=F%1;\n").arg((long)f, 0, 16);
*stream << QString(" overlap=false;\n splines=true;\n");
}
@@ -631,5 +631,5 @@ void GraphExporter::writeDot()
abr = abr.left(Configuration::maxSymbolLength()) + "...";
- *stream << QString(" F%1 [").arg((int)f, 0, 16);
+ *stream << QString(" F%1 [").arg((long)f, 0, 16);
if (_useBox) {
// make label 3 lines for CallGraphView
@@ -674,7 +674,7 @@ void GraphExporter::writeDot()
*stream << QString(" F%1 -> F%2 [weight=%3")
- .arg((int)e.from(), 0, 16)
- .arg((int)e.to(), 0, 16)
- .arg((int)log(log(e.cost)));
+ .arg((long)e.from(), 0, 16)
+ .arg((long)e.to(), 0, 16)
+ .arg((long)log(log(e.cost)));
if (_go->detailLevel() ==1)
@@ -713,8 +713,8 @@ void GraphExporter::writeDot()
*stream << QString(" R%1 [shape=point,label=\"\"];\n")
- .arg((int)n.function(), 0, 16);
+ .arg((long)n.function(), 0, 16);
*stream << QString(" R%1 -> F%2 [label=\"%3\\n%4 x\",weight=%5];\n")
- .arg((int)n.function(), 0, 16)
- .arg((int)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
.arg(SubCost(costSum).pretty())
.arg(SubCost(countSum).pretty())
@@ -736,8 +736,8 @@ void GraphExporter::writeDot()
*stream << QString(" S%1 [shape=point,label=\"\"];\n")
- .arg((int)n.function(), 0, 16);
+ .arg((long)n.function(), 0, 16);
*stream << QString(" F%1 -> S%2 [label=\"%3\\n%4 x\",weight=%5];\n")
- .arg((int)n.function(), 0, 16)
- .arg((int)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
.arg(SubCost(costSum).pretty())
.arg(SubCost(countSum).pretty())
|