Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ctags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
tr4d3wind
n00b
n00b


Joined: 19 Jan 2005
Posts: 15

PostPosted: Mon Feb 12, 2007 4:38 pm    Post subject: ctags Reply with quote

Hi people
I have a problem with ctags(5.5.4-r2) on my ibook. It doesn't build the TAGS file in the right way.
that's what I do:
Code:

exuberant-ctags -Re # in projects source tree


I tried to build the TAGS file on a x86 pc( clearly with the same version of ctags and emacs ) and every things works fine.

this are the first 40 lines of both TAGS file:

ppc:
Code:

(null),806
WorkToolBar::WorkToolBar(QMainWindow *parentWindow, const char*name)WorkToolBar27,1027
WorkToolBar::~WorkToolBar() {~WorkToolBar48,1949
void WorkToolBar::insertHotBtn(ToolBar_Buttons tbb) {insertHotBtn52,2057
void WorkToolBar::insertBasicAssociations()  {insertBasicAssociations57,2222
void WorkToolBar::slotCheckToolBar(Uml::Diagram_Type dt) {slotCheckToolBar66,2491
void WorkToolBar::buttonChanged(int b) {buttonChanged166,5399
QCursor WorkToolBar::currentCursor() {currentCursor193,6292
void WorkToolBar::slotResetToolBar() {slotResetToolBar197,6386
void WorkToolBar::setOldTool() {setOldTool214,6835
void WorkToolBar::setDefaultTool() {setDefaultTool220,6979
QPixmap WorkToolBar::load(const QString & fileName) {load226,7123
void WorkToolBar::loadPixmaps() {loadPixmaps232,7237


messagewidget.h,710
#define MESSAGEWIDGET_HMESSAGEWIDGET_H13,796
class MessageWidget : public UMLWidget, public LinkWidget {MessageWidget41,1699
    Uml::Sequence_Message_Type getSequenceMessageType() const {getSequenceMessageType92,3291
    FloatingTextWidget * getFloatingTextWidget() {getFloatingTextWidget123,4142
    void setFloatingTextWidget(FloatingTextWidget * f) {setFloatingTextWidget132,4345
    QString m_SequenceNumber;m_SequenceNumber367,11244
    QString m_CustomOp;m_CustomOp368,11274
    Uml::Sequence_Message_Type m_sequenceMessageType;m_sequenceMessageType372,11372
    ObjectWidget * m_pOw[2];m_pOw378,11520
    FloatingTextWidget * m_pFText;m_pFText379,11549
    int m_nY;m_nY380,11584


exuberant-ctags,1610
#define UMLDOC_HUMLDOC_H13,789
#define ENC_UNKNOWN ENC_UNKNOWN42,1295
#define ENC_UNICODE ENC_UNICODE43,1317
#define ENC_OLD_ENC ENC_OLD_ENC44,1339
class UMLDoc : public QObject {UMLDoc77,2292
    bool isModified() {isModified135,3972
    UMLFolder * getDatatypeFolder() {getDatatypeFolder482,14925
    QString getDocumentation() const {getDocumentation641,19674
    void setDocumentation(const QString &doc) {setDocumentation650,19874
    int getFileVersion(void) {return version;}getFileVersion669,20293
    UMLFolder *m_root[Uml::N_MODELTYPES];m_root776,22814


x86:
Code:

worktoolbar.cpp,806
WorkToolBar::WorkToolBar(QMainWindow *parentWindow, const char*name)WorkToolBar27,1027
WorkToolBar::~WorkToolBar() {~WorkToolBar48,1949
void WorkToolBar::insertHotBtn(ToolBar_Buttons tbb) {insertHotBtn52,2057
void WorkToolBar::insertBasicAssociations()  {insertBasicAssociations57,2222
void WorkToolBar::slotCheckToolBar(Uml::Diagram_Type dt) {slotCheckToolBar66,2491
void WorkToolBar::buttonChanged(int b) {buttonChanged166,5399
QCursor WorkToolBar::currentCursor() {currentCursor193,6292
void WorkToolBar::slotResetToolBar() {slotResetToolBar197,6386
void WorkToolBar::setOldTool() {setOldTool214,6835
void WorkToolBar::setDefaultTool() {setDefaultTool220,6979
QPixmap WorkToolBar::load(const QString & fileName) {load226,7123
void WorkToolBar::loadPixmaps() {loadPixmaps232,7237


messagewidget.h,710
#define MESSAGEWIDGET_HMESSAGEWIDGET_H13,796
class MessageWidget : public UMLWidget, public LinkWidget {MessageWidget41,1699
    Uml::Sequence_Message_Type getSequenceMessageType() const {getSequenceMessageType92,3291
    FloatingTextWidget * getFloatingTextWidget() {getFloatingTextWidget123,4142
    void setFloatingTextWidget(FloatingTextWidget * f) {setFloatingTextWidget132,4345
    QString m_SequenceNumber;m_SequenceNumber367,11244
    QString m_CustomOp;m_CustomOp368,11274
    Uml::Sequence_Message_Type m_sequenceMessageType;m_sequenceMessageType372,11372
    ObjectWidget * m_pOw[2];m_pOw378,11520
    FloatingTextWidget * m_pFText;m_pFText379,11549
    int m_nY;m_nY380,11584


umldoc.h,1610
#define UMLDOC_HUMLDOC_H13,789
#define ENC_UNKNOWN ENC_UNKNOWN42,1295
#define ENC_UNICODE ENC_UNICODE43,1317
#define ENC_OLD_ENC ENC_OLD_ENC44,1339
class UMLDoc : public QObject {UMLDoc77,2292
    bool isModified() {isModified135,3972
    UMLFolder * getDatatypeFolder() {getDatatypeFolder482,14925
    QString getDocumentation() const {getDocumentation641,19674
    void setDocumentation(const QString &doc) {setDocumentation650,19874
    int getFileVersion(void) {return version;}getFileVersion669,20293
    UMLFolder *m_root[Uml::N_MODELTYPES];m_root776,22814


as you can see the only differences are file names...
has anyone the same problem?
Back to top
View user's profile Send private message
tr4d3wind
n00b
n00b


Joined: 19 Jan 2005
Posts: 15

PostPosted: Mon Feb 12, 2007 6:28 pm    Post subject: Reply with quote

I think that I have found the problem.
if I compile ctags without the -O2 flag everything works fine.[gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)]
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 12, 2007 7:06 pm    Post subject: Reply with quote

Might be a strict aliasing issue. Does compiling with -O2 and -fno-strict-aliasing work?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
tr4d3wind
n00b
n00b


Joined: 19 Jan 2005
Posts: 15

PostPosted: Mon Feb 12, 2007 7:40 pm    Post subject: Reply with quote

CFLAGS="-O2 -mcpu=G4 -mtune=G4 -mabi=altivec -fno-strict-aliasing -pipe -fomit-frame-pointer"
these are my CFLAGS.
removing only the -O2 everything seems to work fine.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 13, 2007 1:10 am    Post subject: Reply with quote

Does it work with -O1? With -O?

You don't need -fomit-frame-pointer, it's already turned on with any level of optimization on PPC.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
tr4d3wind
n00b
n00b


Joined: 19 Jan 2005
Posts: 15

PostPosted: Tue Feb 13, 2007 9:09 am    Post subject: Reply with quote

JoseJX wrote:
Does it work with -O1? With -O?

You don't need -fomit-frame-pointer, it's already turned on with any level of optimization on PPC.

It doesn't.
thank you I'll remove it :)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 13, 2007 1:20 pm    Post subject: Reply with quote

So it does *not* work with -O1?

These are the flags that are enabled with -O1:
-fdefer-pop
-fdelayed-branch
-fguess-branch-probability
-fcprop-registers
-floop-optimize
-fif-conversion
-fif-conversion2
-ftree-ccp
-ftree-dce
-ftree-dominator-opts
-ftree-dse
-ftree-ter
-ftree-lrs
-ftree-sra
-ftree-copyrename
-ftree-fre
-ftree-ch
-fmerge-constants

Can you try them individually to see if we can figure out which is breaking ctags? I'd probably test half each time, bisect the list on each attempt until you find the offending flag. Once you do that, we'll see if we can write a simpler case and get it reported to gcc, or fix the issue in ctags.

Thanks.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum