This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g++ 3.1 EH broken for irix6.5




--On Friday, June 29, 2001 07:59:53 AM +0000 Richard Kenner 
<kenner@vlsi1.ultra.nyu.edu> wrote:

>     Your change, on the other hand, is as surprising as changing the size
>     of an `int' -- except that it is less severe because it will impact
>     fewer programs.
>
> Hardly!  *Very* few programs would notice a change in alignment of a
> struct or union.  You have to go to extremes to construct a case where
> it will even be visible, much less matter.

  template <int I> void f () {}
  void g () { f<__alignof__ (S)> (); }

will do it in two small lines in C++.  The mangled name of the
template instantiation will be different.  Yes, I have code that does
this, by the way...

> I don't mind changing the default back, but I would like a way for users
> to get this behavior

That sounds reasonable.

Please change it back, and then propose a way to get the other behavior.

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]