public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/2725: Trouble using -mipsX without -mabi on IRIX
@ 2002-04-03 17:05 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-04-03 17:05 UTC (permalink / raw)
  To: echristo, gcc-bugs, gcc-prs, nobody, reichelt

Synopsis: Trouble using -mipsX without -mabi on IRIX

Responsible-Changed-From-To: unassigned->echristo
Responsible-Changed-By: rth
Responsible-Changed-When: Wed Apr  3 17:05:27 2002
Responsible-Changed-Why:
    mips

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2725


^ permalink raw reply	[flat|nested] 2+ messages in thread

* target/2725: Trouble using -mipsX without -mabi on IRIX
@ 2001-05-03  3:06 reichelt
  0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2001-05-03  3:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2725
>Category:       target
>Synopsis:       Trouble using -mipsX without -mabi on IRIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 03 03:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Volker Reichelt
>Release:        gcc 2.95.3, gcc 3.0 20010430 (prerelease)
>Organization:
>Environment:
IRIX 6.5
>Description:
The file consisting of a single line

#include <new>

won't compile under IRIX 6.5, if I try
to compile it using "-mips3" or "-mips4"
without explicitly specifying "-mabi=...".
Instead I get the error message

.../include/g++-v3/new:55: `operator new' 
   takes type `size_t' (`long unsigned int') as first parameter
.../include/g++-v3/new:56: `operator new' 
   takes type `size_t' (`long unsigned int') as first parameter

etc. According to the documentation mabi should
default to 64 when using "-mips3" or "-mips4".
This seems to be the case for the compiler.
The preprocessor however gets the symbols of the mabi n32.
>How-To-Repeat:
g++ -mips4 -c MabiBug.cpp (for the error message)
g++ -mips4 -dM -E -c MabiBug.cpp (for the wrong symbols)
g++ -mips4 -mabi=64 -dM -E -c MabiBug.cpp (for the correct symbols))
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-04  1:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-03 17:05 target/2725: Trouble using -mipsX without -mabi on IRIX rth
  -- strict thread matches above, loose matches on Subject: below --
2001-05-03  3:06 reichelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).