SConstruct (8492:1ad244a20877) SConstruct (8614:2fc7787f47a9)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 473 unchanged lines hidden (view full) ---

482 main.Append(CCFLAGS=['-pipe'])
483 main.Append(CCFLAGS=['-fno-strict-aliasing'])
484 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
485 main.Append(CXXFLAGS=['-Wno-deprecated'])
486 # Read the GCC version to check for versions with bugs
487 # Note CCVERSION doesn't work here because it is run with the CC
488 # before we override it from the command line
489 gcc_version = readCommand([main['CXX'], '-dumpversion'], exception=False)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 473 unchanged lines hidden (view full) ---

482 main.Append(CCFLAGS=['-pipe'])
483 main.Append(CCFLAGS=['-fno-strict-aliasing'])
484 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
485 main.Append(CXXFLAGS=['-Wno-deprecated'])
486 # Read the GCC version to check for versions with bugs
487 # Note CCVERSION doesn't work here because it is run with the CC
488 # before we override it from the command line
489 gcc_version = readCommand([main['CXX'], '-dumpversion'], exception=False)
490 main['GCC_VERSION'] = gcc_version
490 if not compareVersions(gcc_version, '4.4.1') or \
491 not compareVersions(gcc_version, '4.4.2'):
492 print 'Info: Tree vectorizer in GCC 4.4.1 & 4.4.2 is buggy, disabling.'
493 main.Append(CCFLAGS=['-fno-tree-vectorize'])
494elif main['ICC']:
495 pass #Fix me... add warning flags once we clean up icc warnings
496elif main['SUNCC']:
497 main.Append(CCFLAGS=['-Qoption ccfe'])

--- 508 unchanged lines hidden ---
491 if not compareVersions(gcc_version, '4.4.1') or \
492 not compareVersions(gcc_version, '4.4.2'):
493 print 'Info: Tree vectorizer in GCC 4.4.1 & 4.4.2 is buggy, disabling.'
494 main.Append(CCFLAGS=['-fno-tree-vectorize'])
495elif main['ICC']:
496 pass #Fix me... add warning flags once we clean up icc warnings
497elif main['SUNCC']:
498 main.Append(CCFLAGS=['-Qoption ccfe'])

--- 508 unchanged lines hidden ---