[llvm-commits] x32 psABI support for dragonegg

Michael Liao michael.liao at intel.com
Tue Jul 3 09:21:17 PDT 2012


On Tue, 2012-07-03 at 18:14 +0200, Duncan Sands wrote:
> Hi Michael,
> 
> > On Tue, 2012-07-03 at 17:55 +0200, Duncan Sands wrote:
> >> Hi Michael,
> >>
> >>> I see your point. The root cause is that x32 psABI is supported from
> >>> gcc-4.6 (in hjl's 4.6 branch) but the official support won't wait until
> >>> 4.6.x or 4.7. Check gcc minor revision may not a reliable way to detect
> >>> whether x32 is supported or not. It's better to detect TARGET_X32 as
> >>> well.
> >>
> >> is there any reason to check GCC_MINOR at all, rather than just testing whether
> >> TARGET_X32 is defined?
> >>
> >> Ciao, Duncan.
> >>
> >
> > it's not necessary to GCC_MINOR (my original patch only checks
> > TARGET_X32
> 
> your original patch failed to build against older versions of GCC.
> 

Which one? I checked with gcc-4.5. Which version you tried? How about
that patch attached? Is there any issue to build this against older
versions of GCC?

Yours
- Michael

> ). But TARGET_X32 is only defined in GCC headers and we need
> > move the environment overrriding part into source file.
> 
> Why?
> 
> Ciao, Duncan.
> 
> >
> > Yours
> > - Michael
> >
> >>>
> >>> Yours
> >>> - Michael
> >>>
> >>> On Tue, 2012-07-03 at 10:24 +0200, Duncan Sands wrote:
> >>>> Hi Michael,
> >>>>> Thanks for Duncan refactoring the target triple overriding code in
> >>>>> dragonegg. The attached patch fixes an issue in the new code where
> >>>>> GCC_MINOR or other gcc symbols are not included yet due to the order of
> >>>>> headers.
> >>>>
> >>>> GCC_MINOR isn't defined in a header, it is defined in the Makefile and provided
> >>>> to the compiler via -DGCC_MINOR=6.  Thus header order is irrelevant, so I don't
> >>>> understand what this patch is about.
> >>>>
> >>>> Ciao, Duncan.
> >>>>
> >>>>     This patch put the x86 environment overriding code into source
> >>>>> file to detect GCC minor revision reliably (in addition TARGET_X32 is
> >>>>> checked as well to work with back-ported gcc versions.)
> >>>>>
> >>>>> Please commit the patch if it seems acceptable.
> >>>>>
> >>>>> Yours
> >>>>> - Michael
> >>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> llvm-commits mailing list
> >>>>> llvm-commits at cs.uiuc.edu
> >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >>>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> llvm-commits mailing list
> >>>> llvm-commits at cs.uiuc.edu
> >>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >>>
> >>>
> >>
> >>
> >
> >
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-x32-support.patch
Type: text/x-patch
Size: 1623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120703/c49b781d/attachment.bin>


More information about the llvm-commits mailing list