Commit graph

85573 commits

Author SHA1 Message Date
Jakub Jelinek
765d600ac5 re PR preprocessor/34692 (Internal error with pragma in macro)
PR preprocessor/34692
	* macro.c (collect_args): Add pragma_buff argument.  Push
	CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather
	than into arguments.  Reset prevent_expansion and parsing_args
	state at CPP_PRAGMA_EOL/CPP_EOF.
	(funlike_invocation_p): Add pragma_buff argument, pass it through
	to collect_args.
	(enter_macro_context): Add result argument.  Adjust
	funlike_invocation_p caller.  Emit all deferred pragma tokens
	gathered during collect_args before the expansion, add a padding
	token.  Return 2 instead of 1 if any pragma tokens were prepended.
	(cpp_get_token): If enter_macro_context returns 2, don't return
	a padding token, instead cycle to grab CPP_PRAGMA token.
	* directives.c (_cpp_handle_directive): If was_parsing_args
	in deferred pragma, leave parsing_args and prevent_expansion as is.

	* gcc.dg/cpp/pr34692.c: New test.
	* gcc.dg/gomp/pr34692.c: New test.

From-SVN: r131819
2008-01-25 10:01:27 +01:00
Golovanevsky Olga
1525f2c3a5 ipa-struct-reorg.c (remove_str_allocs_in_func, [...]): New functions.
2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>

	* ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
	New functions.
	(remove_structure): Update allocations list before removing structure.

From-SVN: r131818
2008-01-25 08:02:54 +00:00
Olga Golovanevsky
bd91d74392 [multiple changes]
2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>

	* ipa-struct-reorg.c (is_safe_cond_expr, 
	create_new_stmts_for_cond_expr): Use integer_zerop function,
	that recognize not only zero-pointer, but zero-integer too.
	
2008-01-24  Olga Golovanevsky  <olga@il.ibm.com>

        * gcc.dg/struct/wo_prof_malloc_size_var.c: UnXFAIL.

From-SVN: r131817
2008-01-25 07:47:46 +00:00
GCC Administrator
6ba2cd5959 Daily bump.
From-SVN: r131814
2008-01-25 00:17:48 +00:00
Daniel Franke
79f40de682 re PR fortran/33375 (ICE (segfault) gfortran.dg/common_6.f90)
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/33375
        PR fortran/34858
        * gfortran.h: Revert changes from 2008-01-17.
        * match.c: Likewise.
        * symbol.c: Likewise.
        (gfc_undo_symbols): Undo namespace changes related to common blocks.

From-SVN: r131811
2008-01-24 16:36:14 -05:00
Daniel Franke
7c8d270315 re PR fortran/34202 (ICE (segfault) for invalid code in formalize_init_expr (data.c:691))
gcc/fortran:
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/34202
	* data.c (formalize_structure_cons): Skip formalization on
	empty structures.

gcc/testsuite:
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/34202
        * gfortran.dg/empty_type.f90: New test.

From-SVN: r131810
2008-01-24 16:28:20 -05:00
Ben Elliston
ae7a8ebc89 Committed with RM approval this time.
PR other/22232
	* fixproto: Escape "." in sed expression that strips leading "./".

From-SVN: r131809
2008-01-25 07:52:56 +11:00
Paolo Carlini
3fe82414fe re PR c++/34603 (ICE with broken template declaration)
/cp
2008-01-24  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34603
        * pt.c (push_template_decl_real): Return error_mark_node in case
	of template definition of non-template.

/testsuite
2008-01-24  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34603
        * g++.dg/template/crash77.C: New.

From-SVN: r131804
2008-01-24 19:54:11 +00:00
H.J. Lu
3371362cb0 re PR driver/34904 (-march=native doesn't work with multiple input files)
2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>

	PR driver/34904
	* gcc.c (SWITCH_OK): Removed.
	(SWITCH_LIVE): Changed to bit.
	(SWITCH_FALSE): Likewise.
	(SWITCH_IGNORE): Likewise.
	(switchstr): Change live_cond to unsigned int.
	(process_command): Replace SWITCH_OK with 0.
	(do_self_spec): Likewise.
	(set_collect_gcc_options): Check the SWITCH_IGNORE bit.
	(give_switch): Likewise.
	(used_arg): Likewise.
	(do_spec_1): Set the SWITCH_IGNORE bit.
	(check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
	bits.  Set the SWITCH_LIVE bit.

From-SVN: r131802
2008-01-24 10:57:12 -08:00
Tom Tromey
c496dbb3c1 * resource/gnu/classpath/tools/native2ascii/messages.properties
(Native2ASCII.ReversedHelpCompat): New.
	* tools/gnu/classpath/tools/native2ascii/Native2ASCII.java
	(createParser): Add -reverse.  Update -reversed.

From-SVN: r131801
2008-01-24 18:31:50 +00:00
Daniel Franke
3b30368313 gfortran.texi (OpenMP): Extended existing documentation.
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        * gfortran.texi (OpenMP): Extended existing documentation.
        (contributors): Added major contributors of 2008 that were
        not listed yet.
        (proposed extensions): Removed implemented items.

From-SVN: r131800
2008-01-24 13:28:11 -05:00
Andreas Krebbel
5f1b2ee68f s390.h (MOVE_RATIO): Define new target macro.
2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.h (MOVE_RATIO): Define new target macro.

From-SVN: r131799
2008-01-24 18:06:20 +00:00
Richard Sandiford
986d97ed88 re PR tree-optimization/34472 (gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work)
gcc/
	PR tree-optimization/34472
	* ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
	parameter to a "bool *" and set *DATA to false if there is
	an unsafe access.  Do not delete the structure here.
	(check_cond_exprs): Delete it here instead.
	(check_cond_exprs, exclude_cold_structs): Do not increase
	I when removing a structure.

From-SVN: r131798
2008-01-24 17:46:31 +00:00
Uros Bizjak
fcc448088d re PR target/34856 (ICE with some constant vectors)
PR target/34856
	* config/i386/i386.c (ix86_expand_vector_init): Consider only
	CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.

testsuite/ChangeLog:

	PR target/34856
	* gcc.dg/pr34856.c: New test.

From-SVN: r131796
2008-01-24 18:08:10 +01:00
Tobias Burnus
94de25225d namelist_39.f90: Delete temporary files.
2008-01-24  Tobias Burnus  <burnus@net-b.de>

       * gfortran.dg/namelist_39.f90: Delete temporary files.
       * gfortran.dg/namelist_44.f90: Ditto.

From-SVN: r131795
2008-01-24 17:59:02 +01:00
David Edelsohn
ed44a2c764 shlibpath.m4: Add AIX 6 support.
* shlibpath.m4: Add AIX 6 support.
        * configure: Regenerate.

From-SVN: r131794
2008-01-24 11:35:10 -05:00
David Edelsohn
445bad9bb9 * configure: Regenerate.
From-SVN: r131793
2008-01-24 11:33:29 -05:00
David Edelsohn
95d4f544d5 * configure: Regenerate.
From-SVN: r131792
2008-01-24 11:32:40 -05:00
David Edelsohn
f3641e7e09 * configure: Regenerate.
From-SVN: r131791
2008-01-24 11:31:24 -05:00
David Edelsohn
d2a9664c83 * configure: Regenerate.
From-SVN: r131790
2008-01-24 11:30:08 -05:00
David Edelsohn
4f6bebc326 * configure: Regenerate.
From-SVN: r131789
2008-01-24 11:29:16 -05:00
David Edelsohn
e7ad4ca775 * configure: Regenerate.
From-SVN: r131788
2008-01-24 11:28:13 -05:00
David Edelsohn
3e7b7e2b68 * configure: Regenerate.
From-SVN: r131787
2008-01-24 11:27:14 -05:00
David Edelsohn
c8e9554201 Fix date.
From-SVN: r131786
2008-01-24 11:25:43 -05:00
David Edelsohn
716e4bc6b5 * configure: Regenerate.
From-SVN: r131785
2008-01-24 11:25:09 -05:00
David Edelsohn
d653fdfb25 * configure: Regenerate.
From-SVN: r131784
2008-01-24 11:23:13 -05:00
David Edelsohn
349b60e795 * libtool.m4: Backport AIX 6 support from ToT Libtool.
From-SVN: r131783
2008-01-24 11:21:00 -05:00
Richard Biener
366784f820 re PR c++/34953 (ICE on destructor + noreturn-function at -O3)
2008-01-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34953
	* g++.dg/torture/pr34953.C: New testcase.

From-SVN: r131782
2008-01-24 16:02:51 +00:00
Jakub Jelinek
134c2de333 re PR middle-end/34934 (-O1 crash compile *** glibc detected *** /usr/lib/gcc/i486-linux-gnu/4.2.3/cc1: double free or corruption (!prev))
PR middle-end/34934
	* tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
	a fixed vector for stack.

	* gcc.c-torture/compile/20080124-1.c: New test.

From-SVN: r131780
2008-01-24 16:13:17 +01:00
Jason Merrill
160b8b8014 re PR c++/34913 (ICE vector in template)
PR c++/34913
        * decl2.c (is_late_template_attribute): Defer any attribute with
        dependent args.  Also defer type attributes if the type is dependent.

From-SVN: r131779
2008-01-24 09:41:32 -05:00
Ben Elliston
89bf8683d7 re PR c++/25701 (gcc.texi missing @direntry for g++)
PR c++/25701
	* doc/gcc.texi (Software development): Add a direntry for g++.

From-SVN: r131778
2008-01-24 21:22:11 +11:00
Paul Thomas
ae18bd76ae re PR fortran/34872 (Spurious error in snapshot of 01/18/08: Statement at (1) is not a valid branch target statement for the branch statement at (2))
2008-01-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34872
	* parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS  is
	seen, check for a statement label and, if present, delete it
	and set the locus to the start of the statement.

2008-01-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34872
	* gfortran.dg/function_charlen_3.f: New test.

From-SVN: r131777
2008-01-24 08:40:38 +00:00
GCC Administrator
d82b58c2ac Daily bump.
From-SVN: r131772
2008-01-24 00:17:30 +00:00
Ben Elliston
a831a85585 Revert this patch, as it is not a regression.
2008-01-24  Ben Elliston  <bje@au.ibm.com>

	PR other/22232
	* fixproto: Escape "." in sed expression that strips leading "./".

From-SVN: r131769
2008-01-24 11:11:47 +11:00
Ben Elliston
c67bfa31ef re PR other/22232 (Bug in "fixproto" (missing escape))
PR other/22232
	* fixproto: Escape "." in sed expression that strips leading "./".

From-SVN: r131768
2008-01-24 10:26:24 +11:00
David Daney
3e603aef40 2008-01-23 David Daney <ddaney@avtrex.com>
* class.c (hide)  Rename to...
	(java_hide_decl) ... this throughout, and make public.
	* resource.c (Jr_count): Remove.
	(compile_resource_data): Call java_mangle_resource_name to generate
	decl name.  Make resource decl public and hidden.
	* mangle.c (java_mangle_resource_name): New function.
	* java-tree.h (java_hide_decl, java_mangle_resource_name): Declare
	functions.

From-SVN: r131767
2008-01-23 23:00:39 +00:00
Hans-Peter Nilsson
6c660aeb0e cris.h (CC1PLUS_SPEC, [...]): Drop stale and straggling -fforce-addr comments above.
* config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
	stale and straggling -fforce-addr comments above.

From-SVN: r131763
2008-01-23 17:24:06 +00:00
Hans-Peter Nilsson
02a4bca9c9 cris.h (CRIS_SUBTARGET_VERSION, [...]): Don't define.
* config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
	define.
	* config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
	* config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.

From-SVN: r131762
2008-01-23 17:17:58 +00:00
Michael Matz
b4da9f9dd0 re PR debug/34895 (ICE in force_type_die, at dwarf2out.c:12923)
PR debug/34895
        * dwarf2out.c (force_type_die): Use modified_type_die instead of
        gen_type_die.

        * g++.dg/debug/pr34895.cc: New testcase.

From-SVN: r131761
2008-01-23 16:44:27 +00:00
Andreas Krebbel
1b7af7b04c ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type.
2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>

	* ipa-struct-reorg.c (create_new_malloc): Use pointer type as
	malloc result type.

From-SVN: r131760
2008-01-23 16:41:30 +00:00
Anatoly Sokolov
19298da4bd avr.c (avr_current_arch): New variable.
* config/avr/avr.c (avr_current_arch): New variable.
	(avr_arch_types): Add 'avr31' and 'avr51' entries.
	(avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
	(avr_mcu_types): Add 'avr31' and 'avr51' architectures.
	(avr_override_options): Init 'avr_current_arch'. 
	(base_arch_s): Move from here...
	* config/avr/avr.h (base_arch_s): ... here. Add new members 
	'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
	'mega' to 'have_jmp_call'.
	(TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
	"__AVR_HAVE_RAMPZ__", 	"__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
	macros.
	(LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
	architectures.
	* config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
	MULTILIB_MATCHES): (Ditto.).

From-SVN: r131759
2008-01-23 18:07:09 +03:00
Richard Guenther
b86b3ea354 re PR middle-end/31529 (ICE in cgraph_expand_function with IMA)
2008-01-23  Richard Guenther  <rguenther@suse.de>

	PR middle-end/31529
	* cgraphunit.c (cgraph_reset_node): Always mark the node
	not reachable if it is not queued already.

	* gcc.dg/pr31529-1.c: New testcase.
	* gcc.dg/pr31529-2.c: Likewise.

From-SVN: r131758
2008-01-23 14:20:07 +00:00
Jakub Jelinek
8b1eb9ae80 re PR c++/34829 (placement new with primitive Java types rejected)
PR c++/34829
	* g++.dg/ext/pr34829.C (operator new): Use size_t instead of
	unsigned int for the first argument.

From-SVN: r131756
2008-01-23 09:33:22 +01:00
Jason Merrill
b2a7def5ab re PR c++/28560 (Trouble with __attribute__ in template parameter)
PR c++/28560
        * decl.c (groktypename): Also ignore attributes on dependent
        possibly-class types.

From-SVN: r131755
2008-01-23 00:11:58 -05:00
Thiago Jung Bauermann
62b445b31c cplus-dem.c (demangle_function_name): Changed to return value indicating if a name was correctly demangled.
2008-01-23  Thiago Jung Bauermann  <bauerman@br.ibm.com>

	* cplus-dem.c (demangle_function_name): Changed to return value
	indicating if a name was correctly demangled.
	(iterate_demangle_function): Use demangle_function_name return
	value.

From-SVN: r131754
2008-01-23 16:04:03 +11:00
Ben Elliston
3ca06a6878 * config.sub, config.guess: Update from upstream sources.
From-SVN: r131753
2008-01-23 13:37:40 +11:00
Bernd Schmidt
fa8d4a0f09 bfin-protos.h (WA_RETS, [...]): New macros.
* config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
	* config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
	(cputype_selected): New static variable.
	(bfin_handle_option): Set it if -mcpu is used.
	(override_option): Select default set of workarounds if no cpu type
	selected on the command line.
	(workaround_rts_anomaly): Only run if ENABLE_WA_RETS.

From-SVN: r131752
2008-01-23 02:17:00 +00:00
Jakub Jelinek
24030e4c48 re PR c++/33984 (bit-fields, references and overloads)
gcc/cp/ChangeLog:
PR c++/33984
* call.c (reference_binding): For bitfields use the declared bitfield
type.
(add_builtin_candidates): Likewise.
* class.c (layout_class_type): For bitfields copy over the
original type quals.
gcc/testsuite/ChangeLog:
PR c++/33984
* g++.dg/conversion/bitfield7.C: New test.
* g++.dg/cpp0x/decltype4.C: Fixed xfail.

From-SVN: r131751
2008-01-23 01:50:45 +00:00
GCC Administrator
3573f8da19 Daily bump.
From-SVN: r131749
2008-01-23 00:17:08 +00:00
Bernd Schmidt
64882649ca gcc/
From  Michael Frysinger  <michael.frysinger@analog.com>
	* config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
	BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.

	* config/bfin/elf.h (LIB_SPEC): Use proper linker script
	for bf547, bf523, bf524, and bf526.
	* config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
	bf526.
	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
	__ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
	__ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
	__ADSPBF547__ and __ADSPBF54x__ for bf547.
	* doc/invoke.texi (Blackfin Options): Document that
	-mcpu now accept bf547, bf523, bf524, and bf526.

gcc/testsuite/
	From Michael Frysinger  <michael.frysinger@analog.com>
	* gcc.target/bfin/mcpu-bf547.c: New test.
	* gcc.target/bfin/mcpu-bf523.c: New test.
	* gcc.target/bfin/mcpu-bf524.c: New test.
	* gcc.target/bfin/mcpu-bf526.c: New test.

From-SVN: r131746
2008-01-22 23:55:43 +00:00